chalk

kis_cmb_composite.h
1/*
2 * kis_cmb_composite.h - part of KImageShop/Krayon/Chalk
3 *
4 * Copyright (c) 2004 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_COMPOSITE_H_
22#define KIS_CMB_COMPOSITE_H_
23
24#include <koffice_export.h>
25#include "tqcombobox.h"
26#include "kis_composite_op.h"
27
38
39class KRITAUI_EXPORT KisCmbComposite : public TQComboBox
40{
41 typedef TQComboBox super;
42
43 TQ_OBJECT
44
45
46 public:
47
48 KisCmbComposite(TQWidget * parent = 0, const char * name = 0 );
49 virtual ~KisCmbComposite();
50
51 KisCompositeOp currentItem() const;
52
53 void setCompositeOpList(const KisCompositeOpList& list);
54 void setCurrentItem(const KisCompositeOp& op);
55 void setCurrentText(const TQString & s);
56
57signals:
58
59 void activated(const KisCompositeOp &);
60 void highlighted(const KisCompositeOp &);
61
62private slots:
63
64 void slotOpActivated(int i);
65 void slotOpHighlighted(int i);
66
67private:
68 KisCompositeOpList m_list;
69};
70
71#endif