KVIrc 5.2.0
Developer APIs
libkvidialog.h
Go to the documentation of this file.
1#ifndef _KVI_DIALOG_H_
2#define _KVI_DIALOG_H_
3//=============================================================================
4//
5// File : libkvidialog.h
6// Creation date : Sat Sep 15 2001 01:13:25 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 "KviWindow.h"
28#include "KviFileDialog.h"
29#include "KviImageDialog.h"
31
32#include <QDialog>
33#include <QMessageBox>
34#include <QString>
35
36class KviKvsCallbackMessageBox : public QMessageBox, public KviKvsCallbackObject
37{
38 Q_OBJECT
39public:
41 const QString & szCaption,
42 const QString & szText,
43 const QString & szIcon,
44 const QString & szButton0,
45 const QString & szButton1,
46 const QString & szButton2,
47 const QString & szCode,
48 KviKvsVariantList * pMagicParams,
49 KviWindow * pWindow, bool modal = false);
51protected slots:
52 void done(int code) override;
53};
54
55class KviKvsCallbackTextInput : public QDialog, public KviKvsCallbackObject
56{
57 Q_OBJECT
58public:
60 const QString & szCaption,
61 const QString & szLabel,
62 const QString & szDefaultText,
63 const QString & szIcon,
64 bool bMultiLine,
65 bool bPassword,
66 const QString & szButton0,
67 const QString & szButton1,
68 const QString & szButton2,
69 const QString & szCode,
70 KviKvsVariantList * pMagicParams,
71 KviWindow * pWindow, bool modal = false);
73
74protected:
77 QWidget * m_pEdit;
80
81protected:
82 void closeEvent(QCloseEvent * e) override;
83 void showEvent(QShowEvent * e) override;
84protected slots:
85 void b0Clicked();
86 void b1Clicked();
87 void b2Clicked();
88 void done(int code) override;
89};
90
92{
93 Q_OBJECT
94public:
96 const QString & szCaption,
97 const QString & szInitialSelection,
98 const QString & szFilter,
99 const QString & szCode,
100 KviKvsVariantList * pMagicParams,
101 KviWindow * pWindow, bool modal = false);
103
104protected:
105 void done(int code) override;
106};
107
109{
110 Q_OBJECT
111public:
113 const QString & szCaption,
114 const QString & szInitialSelection,
115 int iType,
116 int iMaxSize,
117 const QString & szCode,
118 KviKvsVariantList * pMagicParams,
119 KviWindow * pWindow, bool modal = false);
121
122protected:
123 void done(int code) override;
124};
125
126#endif //_KVI_DIALOG_H_
File dialog helpers.
Contains the KviWindow class.
File dialog class.
Definition KviFileDialog.h:48
Definition KviImageDialog.h:64
Definition libkvidialog.h:92
~KviKvsCallbackFileDialog()
Definition libkvidialog.cpp:574
void done(int code) override
Definition libkvidialog.cpp:579
Definition libkvidialog.h:109
~KviKvsCallbackImageDialog()
Definition libkvidialog.cpp:709
void done(int code) override
Definition libkvidialog.cpp:714
Definition libkvidialog.h:37
void done(int code) override
Definition libkvidialog.cpp:125
~KviKvsCallbackMessageBox()
Definition libkvidialog.cpp:120
Definition KviKvsCallbackObject.h:43
Definition libkvidialog.h:56
void closeEvent(QCloseEvent *e) override
Definition libkvidialog.cpp:398
int m_iDefaultButton
Definition libkvidialog.h:79
bool m_bPassword
Definition libkvidialog.h:76
~KviKvsCallbackTextInput()
Definition libkvidialog.cpp:378
void showEvent(QShowEvent *e) override
Definition libkvidialog.cpp:445
QWidget * m_pEdit
Definition libkvidialog.h:77
int m_iEscapeButton
Definition libkvidialog.h:78
void done(int code) override
Definition libkvidialog.cpp:404
void b1Clicked()
Definition libkvidialog.cpp:388
void b2Clicked()
Definition libkvidialog.cpp:393
bool m_bMultiLine
Definition libkvidialog.h:75
void b0Clicked()
Definition libkvidialog.cpp:383
Class to handle variant variables lists.
Definition KviKvsVariantList.h:42
Base class for all windows in KVIrc.
Definition KviWindow.h:75
#define e
Definition detector.cpp:70