Mercurial > hg > easaier-soundaccess
comparison data/model/LayerItemModel.cpp @ 58:b3c3a5fa185f
frontend with easaier's look
author | benoitrigolleau |
---|---|
date | Fri, 25 May 2007 12:36:35 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
57:4f3e6a09239a | 58:b3c3a5fa185f |
---|---|
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ | |
2 | |
3 /* | |
4 Sound Access | |
5 EASAIER client application. | |
6 Silogic 2007. Benoit Rigolleau. | |
7 | |
8 This program is free software; you can redistribute it and/or | |
9 modify it under the terms of the GNU General Public License as | |
10 published by the Free Software Foundation; either version 2 of the | |
11 License, or (at your option) any later version. See the file | |
12 COPYING included with this distribution for more information. | |
13 */ | |
14 | |
15 #include "LayerItemModel.h" | |
16 | |
17 LayerItemModel::LayerItemModel(QString &title, QString &icon, QColor &color, bool visible, bool audible): | |
18 m_title(title), | |
19 m_icon(icon), | |
20 m_color(color), | |
21 m_visible(visible), | |
22 m_audible(audible) | |
23 { | |
24 | |
25 } | |
26 | |
27 | |
28 LayerItemModel::LayerItemModel(): | |
29 m_title(""), | |
30 m_icon(""), | |
31 m_color(QColor(0,0,0,0)), | |
32 m_visible(true), | |
33 m_audible(true) | |
34 { | |
35 } | |
36 | |
37 LayerItemModel::LayerItemModel(const LayerItemModel &lim): | |
38 m_title(lim.getTitle()), | |
39 m_icon(lim.getIcon()), | |
40 m_color(lim.getColor()), | |
41 m_visible(lim.getVisible()), | |
42 m_audible(lim.getAudible()) | |
43 { | |
44 } | |
45 | |
46 LayerItemModel::~LayerItemModel(){} | |
47 | |
48 QString LayerItemModel::getTitle() const{ return m_title; } | |
49 QString LayerItemModel::getIcon() const{ return m_icon; } | |
50 QColor LayerItemModel::getColor() const{ return m_color; } | |
51 bool LayerItemModel::getVisible() const{ return m_visible; } | |
52 bool LayerItemModel::getAudible() const{ return m_audible; } | |
53 | |
54 void LayerItemModel::setTitle(QString &title){ m_title=title; } | |
55 void LayerItemModel::setIcon(QString &icon){ m_icon=icon; } | |
56 void LayerItemModel::setColor(QColor &color){ m_color=color; } | |
57 void LayerItemModel::setVisible(bool visible){ m_visible=visible; } | |
58 void LayerItemModel::setAudible(bool audible){ m_audible=audible; } |