KVIrc  4.9.2
DeveloperAPIs
KviModeWidget.h
Go to the documentation of this file.
1 #ifndef _KVI_MODEW_H_
2 #define _KVI_MODEW_H_
3 
4 //============================================================================
5 //
6 // File : KviModeWidget.h
7 // Creation date : Sat Nov 12 2005 23:50:12 by Alexey Uzhva
8 //
9 // This file is part of the KVIrc IRC client distribution
10 // Copyright (C) 2005-2008 Alexey Uzhva (wizard at opendoor dot ru)
11 //
12 // This program is FREE software. You can redistribute it and/or
13 // modify it under the terms of the GNU General Public License
14 // as published by the Free Software Foundation; either version 2
15 // of the License, or (at your option) any later version.
16 //
17 // This program is distributed in the HOPE that it will be USEFUL,
18 // but WITHOUT ANY WARRANTY; without even the implied warranty of
19 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20 // See the GNU General Public License for more details.
21 //
22 // You should have received a copy of the GNU General Public License
23 // along with this program. If not, write to the Free Software Foundation,
24 // Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
25 //
26 //============================================================================
27 
28 #include "KviThemedLineEdit.h"
29 
30 class KviChannelWindow;
32 
34 {
35  Q_OBJECT
36 
37 public:
38  KviModeWidget(QWidget * par, KviChannelWindow * chan, const char * name = 0);
39  ~KviModeWidget();
40  void reset();
41  void refreshModes();
42 
43 private:
45 
46 protected:
47  void mouseDoubleClickEvent(QMouseEvent * e);
48  void keyReleaseEvent(QKeyEvent * e);
49  bool modeNeedsParameterOnlyWhenSet(char cMode);
50 public slots:
51  void editorReturnPressed();
52 signals:
53  void setMode(QString & szMode);
54 };
55 
56 #endif //_KVI_MODEW_H_
#define KVIRC_API
Definition: kvi_settings.h:128
Definition: KviThemedLineEdit.h:33
#define e
Definition: detector.cpp:69
KviChannelWindow * m_pChannel
Definition: KviModeWidget.h:44
Definition: KviModeWidget.h:33
Definition: KviIrcConnectionServerInfo.h:296
QString name()
Definition: KviRuntimeInfo.cpp:655
The class which manages a channel.
Definition: KviChannelWindow.h:113