chalk

kis_cmb_idlist.h
1/*
2 * kis_cmb_imagetype.h - part of KImageShop/Krayon/Chalk
3 *
4 * Copyright (c) 2005 Boudewijn Rempt (boud@valdyas.org)
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 */
20
21#ifndef KIS_CMB_IDLIST_H_
22#define KIS_CMB_IDLIST_H_
23
24#include "tqcombobox.h"
25
26#include "kis_id.h"
27
33class KisCmbIDList : public TQComboBox
34{
35 typedef TQComboBox super;
36
37 TQ_OBJECT
38
39
40public:
41
42 KisCmbIDList(TQWidget * parent = 0, const char * name = 0 );
43 virtual ~KisCmbIDList();
44
45
46public:
47 void setIDList(const KisIDList & list);
48 void setCurrent(const KisID id);
49 void setCurrentText(const TQString & s);
50
51 KisID currentItem() const;
52
53signals:
54
55 void activated(const KisID &);
56 void highlighted(const KisID &);
57
58private slots:
59
60 void slotIDActivated(int i);
61 void slotIDHighlighted(int i);
62
63private:
64
65 KisIDList m_list;
66
67};
68#endif
Chalk has a large number of extensible resources.
Definition kis_id.h:57