1 #ifndef _KVI_SELECTORS_H_
2 #define _KVI_SELECTORS_H_
35 #include <QTreeWidget>
36 #include <QScrollArea>
40 #include <QPushButton>
44 #include <QStringList>
63 KviBoolSelector(QWidget * par,
const QString & txt,
bool * pOption,
bool bEnabled);
74 void setNotEnabled(
bool bNotEnabled);
75 void setEnabled(
bool bEnabled);
82 KviStringSelector(QWidget * par,
const QString & txt, QString * pOption,
bool bEnabled);
94 void setText(
const QString & text);
97 QLineEdit *
lineEdit() {
return m_pLineEdit; };
100 virtual void setEnabled(
bool bEnabled);
114 QLineEdit * m_pLineEdit;
122 void setText(
const QString & text);
124 virtual void setEnabled(
bool bEnabled);
126 void checkToggled(
int state);
142 void setText(
const QString & text);
144 virtual void setEnabled(
bool bEnabled);
146 void checkToggled(
int state);
179 void setImagePath(
const QString & path);
181 virtual void setEnabled(
bool bEnabled);
183 void checkBoxToggled(
bool bEnabled);
191 KviUIntSelector(QWidget * par,
const QString & txt,
unsigned int * pOption,
192 unsigned int uLowBound,
unsigned int uHighBound,
unsigned int uDefault,
bool bEnabled,
bool bShortInt =
false);
208 virtual void setPrefix(
const QString & txt);
209 virtual void setSuffix(
const QString & txt);
212 virtual void setEnabled(
bool bEnabled);
218 Q_PROPERTY(QString tmpFile READ tmpFile WRITE setTmpFile)
220 KviFileSelector(QWidget * par,
const QString & txt, QString * pOption,
bool bEnabled,
unsigned int uFlags = 0,
const QString & szFilter = QString());
226 ChooseSaveFileName = 1,
227 DontConfirmOverwrite = 2,
241 QString
tmpFile() {
return m_pLineEdit->text(); };
242 void setTmpFile(QString & szFile) { m_pLineEdit->setText(szFile); };
244 void setSelection(
const QString & szSelection);
246 void selectionChanged(
const QString & szNewValue);
248 virtual void setEnabled(
bool bEnabled);
250 void browseClicked();
253 virtual void select();
260 KviDirectorySelector(QWidget * par,
const QString & txt, QString * pOption,
bool bEnabled,
unsigned int uFlags = 0);
271 KviColorSelector(QWidget * par,
const QString & txt, QColor * pOption,
bool bEnabled);
285 void forceColor(QColor clr);
288 void setButtonPalette(QColor * pOption);
290 void changeClicked();
292 virtual void setEnabled(
bool bEnabled);
299 KviFontSelector(QWidget * par,
const QString & txt, QFont * pOption,
bool bEnabled);
312 void setButtonFont(QFont * pOption);
314 virtual void setEnabled(
bool bEnabled);
316 void changeClicked();
339 virtual void setEnabled(
bool bEnabled);
341 void textChanged(
const QString & str);
342 void itemSelectionChanged();
344 void removeClicked();
353 KviMircTextColorSelector(QWidget * par,
const QString & txt,
unsigned int * uFore,
unsigned int * uBack,
bool bEnabled);
369 virtual void setEnabled(
bool bEnabled);
371 void buttonClicked();
372 void foreSelected(QAction * pAction);
373 void backSelected(QAction * pAction);
376 void setButtonPalette();
383 KviSoundSelector(QWidget * par,
const QString & txt, QString * pOption,
bool bEnabled);
404 const QString &
pass() {
return m_szPass; }
427 virtual void setEnabled(
bool bEnabled);
429 void textChanged(
const QString & str);
430 void itemSelectionChanged();
432 void removeClicked();
QPushButton * m_pRemoveButton
Definition: KviSelectors.h:420
QPushButton * m_pAddButton
Definition: KviSelectors.h:419
Toolkit Abstraction Layer: hbox class.
Definition: KviTalHBox.h:44
QFont * m_pOption
Definition: KviSelectors.h:304
Definition: KviSelectors.h:215
QPushButton * m_pButton
Definition: KviSelectors.h:305
KviPixmapPreview * m_pPreview
Definition: KviSelectors.h:173
Definition: KviSelectors.h:395
QWidget * widgetToHighlight()
Definition: KviSelectors.h:207
QLineEdit * lineEdit()
Definition: KviSelectors.h:97
Definition: KviSelectors.h:59
void setMinimumLabelWidth(unsigned int uWidth)
Definition: KviSelectors.h:120
QLineEdit * m_pLineEdit
Definition: KviSelectors.h:329
#define KVIRC_API
Definition: kvi_settings.h:128
const QString & pass()
Definition: KviSelectors.h:404
QLabel * m_pLabel
Definition: KviSelectors.h:232
QLabel * m_pFileNameLabel
Definition: KviSelectors.h:172
KviTalListWidget * m_pListWidget
Definition: KviSelectors.h:328
Class for horizontal box.
QLineEdit * m_pPassLineEdit
Definition: KviSelectors.h:418
QString textForSearch()
Definition: KviSelectors.h:425
QString tmpFile()
Definition: KviSelectors.h:241
QLabel * m_pLabel
Definition: KviSelectors.h:111
QLineEdit * m_pLineEdit
Definition: KviSelectors.h:233
Definition: KviSelectors.h:149
QString textForSearch()
Definition: KviSelectors.h:95
unsigned int m_uLowBound
Definition: KviSelectors.h:200
QLabel * m_pLabPixmap
Definition: KviSelectors.h:157
QString textForSearch()
Definition: KviSelectors.h:336
QLabel * m_pLabel
Definition: KviSelectors.h:327
QLineEdit * m_pLineEdit
Definition: KviSelectors.h:87
QGridLayout * m_Layout
Definition: KviSelectors.h:238
KviPixmap * m_pOption
Definition: KviSelectors.h:175
QWidget * widgetToHighlight()
Definition: KviSelectors.h:426
QLineEdit * m_pLineEdit
Definition: KviSelectors.h:137
Definition: KviSelectors.h:163
QMenu * m_pContextPopup
Definition: KviSelectors.h:363
QPushButton * m_pAddButton
Definition: KviSelectors.h:330
QWidget * widgetToHighlight()
Definition: KviSelectors.h:310
~KviUIntSelector()
Definition: KviSelectors.h:193
Definition: KviSelectors.h:349
~KviFontSelector()
Definition: KviSelectors.h:300
QLineEdit * m_pChanLineEdit
Definition: KviSelectors.h:417
QColor m_memColor
Definition: KviSelectors.h:277
Definition: KviPixmap.h:33
~KviChanTreeViewItem()
Definition: KviSelectors.h:402
QLabel * m_pLabel
Definition: KviSelectors.h:86
unsigned int m_uFore
Definition: KviSelectors.h:361
QMenu * m_pForePopup
Definition: KviSelectors.h:364
QString textForSearch()
Definition: KviSelectors.h:71
void setTmpFile(QString &szFile)
Definition: KviSelectors.h:242
virtual void select()
Definition: KviSelectors.cpp:444
QCheckBox * m_pCheckBox
Definition: KviSelectors.h:171
QSpinBox * m_pSpinBox
Definition: KviSelectors.h:198
QPushButton * m_pRemoveButton
Definition: KviSelectors.h:331
QString textForSearch()
Definition: KviSelectors.h:309
Definition: KviSelectors.h:78
QString textForSearch()
Definition: KviSelectors.h:112
unsigned int * m_pUFore
Definition: KviSelectors.h:359
QString * m_pOption
Definition: KviSelectors.h:235
QLabel * m_pLabel
Definition: KviSelectors.h:415
QString textForSearch()
Definition: KviSelectors.h:206
Definition: KviSelectors.h:47
QPushButton * m_pPlayButton
Definition: KviSelectors.h:387
Definition: KviSelectors.h:256
QCheckBox * m_pCheckBox
Definition: KviSelectors.h:115
QStringList * m_pOption
Definition: KviSelectors.h:332
void setMinimumLabelWidth(unsigned int uWidth)
Definition: KviSelectors.h:92
QCheckBox * m_pCheckBox
Definition: KviSelectors.h:138
QColor * m_pOption
Definition: KviSelectors.h:276
QPushButton * m_pChooseButton
Definition: KviSelectors.h:174
Flags
Definition: KviSelectors.h:224
Definition: KviSelectors.h:407
Definition: KviSelectors.h:103
unsigned int m_uBack
Definition: KviSelectors.h:362
QPushButton * m_pButton
Definition: KviSelectors.h:278
KviSelectorInterface()
Definition: KviSelectors.h:50
Definition: KviSelectors.h:129
Toolkit Abstraction Layer: vbox class.
Definition: KviTalVBox.h:44
QString textForSearch()
Definition: KviSelectors.h:281
QWidget * widgetToHighlight()
Definition: KviSelectors.h:96
QWidget * widgetToHighlight()
Definition: KviSelectors.h:113
Definition: KviSelectors.h:379
~KviFileSelector()
Definition: KviSelectors.h:221
QString * m_pOption
Definition: KviSelectors.h:88
virtual void commit()
Definition: KviSelectors.h:54
QWidget * widgetToHighlight()
Definition: KviSelectors.h:72
QMenu * m_pBackPopup
Definition: KviSelectors.h:365
virtual QWidget * widgetToHighlight()
Definition: KviSelectors.h:56
KviPixmap m_localPixmap
Definition: KviSelectors.h:176
virtual ~KviSelectorInterface()
Definition: KviSelectors.h:51
QString m_szPass
Definition: KviSelectors.h:398
QPushButton * m_pButton
Definition: KviSelectors.h:234
QString currentText()
Definition: KviSelectors.h:98
unsigned int * m_pUBack
Definition: KviSelectors.h:360
Definition: KviSelectors.h:295
Definition: KviSelectors.h:267
virtual void setEnabled(bool bEnabled)
Definition: KviSelectors.cpp:426
QWidget * widgetToHighlight()
Definition: KviSelectors.h:337
~KviBoolSelector()
Definition: KviSelectors.h:64
unsigned int m_uFlags
Definition: KviSelectors.h:236
QTreeWidget * m_pTreeWidget
Definition: KviSelectors.h:416
This file contains compile time settings.
void setValidator(QValidator *v)
Definition: KviSelectors.h:119
#define v
Definition: detector.cpp:86
unsigned int m_uDefault
Definition: KviSelectors.h:202
QString * m_pOption
Definition: KviSelectors.h:116
QColor getColor()
Definition: KviSelectors.h:284
Definition: KviSelectors.h:319
unsigned int m_uHighBound
Definition: KviSelectors.h:201
QLabel * m_pLabel
Definition: KviSelectors.h:357
bool m_bIsShortInt
Definition: KviSelectors.h:203
QPushButton * m_pButton
Definition: KviSelectors.h:358
unsigned int * m_pOption
Definition: KviSelectors.h:199
virtual QString textForSearch()
Definition: KviSelectors.h:55
QString m_szFilter
Definition: KviSelectors.h:237
~KviDirectorySelector()
Definition: KviSelectors.h:261
Definition: KviSelectors.h:187
QStringList * m_pOption
Definition: KviSelectors.h:421
~KviColorSelector()
Definition: KviSelectors.h:272
void setValidator(QValidator *v)
Definition: KviSelectors.h:91
QWidget * widgetToHighlight()
Definition: KviSelectors.h:282