KVIrc  4.9.2
DeveloperAPIs
KvsObject_colorDialog.h
Go to the documentation of this file.
1 #ifndef _CLASS_COLORDIALOG_H_
2 #define _CLASS_COLORDIALOG_H_
3 
4 //=============================================================================
5 //
6 // File : KvsObject_colorDialog.h
7 // Creation date : Wed 27 Apr 2011 15:42:05 CEST by Alessandro Carbone
8 //
9 // This file is part of the KVIrc IRC client distribution
10 // Copyright (C) 2011 Alessandro Carbone (elfonol at gmail dot com)
11 // Copyright (C) 2000-2010 Szymon Stefanek (pragma at kvirc dot net)
12 //
13 // This program is FREE software. You can redistribute it and/or
14 // modify it under the terms of the GNU General Public License
15 // as published by the Free Software Foundation; either version 2
16 // of the License, or (at your option) any later version.
17 //
18 // This program is distributed in the HOPE that it will be USEFUL,
19 // but WITHOUT ANY WARRANTY; without even the implied warranty of
20 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21 // See the GNU General Public License for more details.
22 //
23 // You should have received a copy of the GNU General Public License
24 // along with this program. If not, write to the Free Software Foundation,
25 // Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26 //
27 //=============================================================================
28 
29 #include "KvsObject_dialog.h"
30 #include "object_macros.h"
31 
33 {
34  Q_OBJECT
35 public:
37 public:
38  QWidget * widget() { return (QWidget *)object(); }
39 protected:
40  virtual bool init(KviKvsRunTimeContext * pContext, KviKvsVariantList * pParams);
45 protected slots:
46  void slotCurrentColorChanged(const QColor & col);
47  void slotColorSelected(const QColor & col);
48 };
49 #endif // !_CLASS_COLORDIALOG_H_
bool colorSelectedEvent(KviKvsObjectFunctionCall *c)
bool setCurrentColor(KviKvsObjectFunctionCall *c)
bool currentColorChangedEvent(KviKvsObjectFunctionCall *c)
char s char s char s s s s s char char c s *s c s s s d c s *s d c d d d d c
Definition: KviIrcNumericCodes.h:391
Class to handle variant variables lists.
Definition: KviKvsVariantList.h:41
Definition: KviKvsObjectFunctionCall.h:33
virtual bool init(KviKvsRunTimeContext *pContext, KviKvsVariantList *pParams)
Definition: KvsObject_colorDialog.cpp:93
Definition: KvsObject_colorDialog.h:32
bool setOptions(KviKvsObjectFunctionCall *c)
#define KVSO_DECLARE_OBJECT(__className)
Definition: object_macros.h:33
QWidget * widget()
Definition: KvsObject_colorDialog.h:38
QObject * object() const
Definition: KviKvsObject.h:94
Definition: KviKvsRunTimeContext.h:103
void slotColorSelected(const QColor &col)
Definition: KvsObject_colorDialog.cpp:217
void slotCurrentColorChanged(const QColor &col)
Definition: KvsObject_colorDialog.cpp:206
Definition: KvsObject_dialog.h:30