Subversion Repositories Projects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
908 - 1
/***************************************************************************
2
 *   Copyright (C) 2010 by Manuel Schrape                                  *
3
 *   manuel.schrape@gmx.de                                                 *
4
 *                                                                         *
5
 *   This program is free software; you can redistribute it and/or modify  *
6
 *   it under the terms of the GNU General Public License as published by  *
7
 *   the Free Software Foundation; either version 2 of the License.        *
8
 *                                                                         *
9
 *   This program is distributed in the hope that it will be useful,       *
10
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
11
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
12
 *   GNU General Public License for more details.                          *
13
 *                                                                         *
14
 *   You should have received a copy of the GNU General Public License     *
15
 *   along with this program; if not, write to the                         *
16
 *   Free Software Foundation, Inc.,                                       *
17
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
18
 ***************************************************************************/
19
 
20
#include "wgt_Index.h"
21
 
22
wgt_Index::wgt_Index(QWidget *parent) : QWidget(parent)
23
{
24
    setupUi(this);
25
 
26
    connect(cb_Box, SIGNAL(clicked()), this, SLOT(slot_Clicked()));
27
}
28
 
29
void wgt_Index::set_Name(QString s_Name)
30
{
31
    lb_Name->setText(s_Name);
32
}
33
 
34
void wgt_Index::set_StyleSheet(QString s_StyleSheet)
35
{
36
    lb_Name->setStyleSheet(s_StyleSheet);
37
    lb_Wert->setStyleSheet(s_StyleSheet);
38
//    cb_Box->setStyleSheet("");
39
}
40
 
41
void wgt_Index::set_Checked(bool b_Check)
42
{
43
    cb_Box->setChecked(b_Check);
44
}
45
 
46
void wgt_Index::set_Wert(QString s_Wert)
47
{
48
    lb_Wert->setText(s_Wert);
49
}
50
 
51
bool wgt_Index::get_Checked()
52
{
53
    return cb_Box->isChecked();
54
}
55
 
56
void wgt_Index::slot_Clicked()
57
{
58
    emit(sig_Clicked());
59
}