Mercurial > hg > easaier-soundaccess
diff data/model/LayerItemModel.cpp @ 58:b3c3a5fa185f
frontend with easaier's look
author | benoitrigolleau |
---|---|
date | Fri, 25 May 2007 12:36:35 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/data/model/LayerItemModel.cpp Fri May 25 12:36:35 2007 +0000 @@ -0,0 +1,58 @@ +/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ + +/* +Sound Access +EASAIER client application. +Silogic 2007. Benoit Rigolleau. + +This program is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License as +published by the Free Software Foundation; either version 2 of the +License, or (at your option) any later version. See the file +COPYING included with this distribution for more information. +*/ + +#include "LayerItemModel.h" + +LayerItemModel::LayerItemModel(QString &title, QString &icon, QColor &color, bool visible, bool audible): +m_title(title), +m_icon(icon), +m_color(color), +m_visible(visible), +m_audible(audible) +{ + +} + + +LayerItemModel::LayerItemModel(): +m_title(""), +m_icon(""), +m_color(QColor(0,0,0,0)), +m_visible(true), +m_audible(true) +{ +} + +LayerItemModel::LayerItemModel(const LayerItemModel &lim): +m_title(lim.getTitle()), +m_icon(lim.getIcon()), +m_color(lim.getColor()), +m_visible(lim.getVisible()), +m_audible(lim.getAudible()) +{ +} + +LayerItemModel::~LayerItemModel(){} + +QString LayerItemModel::getTitle() const{ return m_title; } +QString LayerItemModel::getIcon() const{ return m_icon; } +QColor LayerItemModel::getColor() const{ return m_color; } +bool LayerItemModel::getVisible() const{ return m_visible; } +bool LayerItemModel::getAudible() const{ return m_audible; } + +void LayerItemModel::setTitle(QString &title){ m_title=title; } +void LayerItemModel::setIcon(QString &icon){ m_icon=icon; } +void LayerItemModel::setColor(QColor &color){ m_color=color; } +void LayerItemModel::setVisible(bool visible){ m_visible=visible; } +void LayerItemModel::setAudible(bool audible){ m_audible=audible; } \ No newline at end of file