KVIrc 5.2.6
Developer APIs
KviModeEditor.h
Go to the documentation of this file.
1#ifndef _KVI_MODEEDITOR_H_
2#define _KVI_MODEEDITOR_H_
3//=============================================================================
4//
5// File : KviModeEditor.h
6// Creation date : Sat Apr 14 2001 13:50:12 by Szymon Stefanek
7//
8// This file is part of the KVIrc IRC client distribution
9// Copyright (C) 2001-2010 Szymon Stefanek (pragma at kvirc dot net)
10//
11// This program is FREE software. You can redistribute it and/or
12// modify it under the terms of the GNU General Public License
13// as published by the Free Software Foundation; either version 2
14// of the License, or (at your option) any later version.
15//
16// This program is distributed in the HOPE that it will be USEFUL,
17// but WITHOUT ANY WARRANTY; without even the implied warranty of
18// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19// See the GNU General Public License for more details.
20//
21// You should have received a copy of the GNU General Public License
22// along with this program. If not, write to the Free Software Foundation,
23// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24//
25//=============================================================================
26
27#include "kvi_settings.h"
28#include "KviWindowToolWidget.h"
29
30#include <QMap>
31
32class QCheckBox;
33class QLineEdit;
34class QPushButton;
35class QString;
38
39//
40// class KviModeEditor
41//
42
44{
45 Q_OBJECT
46public:
47 KviModeEditor(QWidget * par, KviWindowToolPageButton * button, const char * name, KviChannelWindow * pChan);
49
50protected: // fields
52 QPushButton * m_pButton;
53 QMap<char, QCheckBox *> m_pCheckBoxes;
54 QMap<char, QLineEdit *> m_pLineEdits;
55
56protected:
57 const QString * getModeDescription(char cMode);
58 bool modeNeedsParameterOnlyWhenSet(char cMode);
59signals:
60 void setMode(const QString & szMode);
61 void done();
62protected slots:
63 void checkBoxToggled(bool bChecked);
64 void commit();
65 void updateOpStatus();
66};
67
68#endif //_KVI_MODEEDITOR_H_
The class which manages a channel.
Definition KviChannelWindow.h:108
Definition KviIrcConnectionServerInfo.h:300
Definition KviModeEditor.h:44
QMap< char, QLineEdit * > m_pLineEdits
Definition KviModeEditor.h:54
KviChannelWindow * m_pChannel
Definition KviModeEditor.h:51
QPushButton * m_pButton
Definition KviModeEditor.h:52
void setMode(const QString &szMode)
QMap< char, QCheckBox * > m_pCheckBoxes
Definition KviModeEditor.h:53
Definition KviWindowToolWidget.h:47
Definition KviWindowToolWidget.h:36
This file contains compile time settings.
#define KVIRC_API
Definition kvi_settings.h:127