00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef _KWDIALOG_H_
00022 #define _KWDIALOG_H_
00023
00024
00025 class QCheckBox;
00026 class QLineEdit;
00027 class QPushButton;
00028 class QRadioButton;
00029 class QSpinBox;
00030 class KColorButton;
00031 class QComboBox;
00032
00033 #include <kdialogbase.h>
00034 #include <opie2/ofontselector.h>
00035 #include "kateview.h"
00036
00037 class SearchDialog : public KDialogBase
00038 {
00039 Q_OBJECT
00040
00041 public:
00042 SearchDialog( QWidget *parent, QStringList &searchFor, QStringList &replaceWith, int flags );
00043 QString getSearchFor();
00044 QString getReplaceWith();
00045 int getFlags();
00046 void setSearchText( const QString &searchstr );
00047
00048 protected slots:
00049 void slotOk();
00050
00051 protected:
00052 QComboBox *m_search;
00053 QComboBox *m_replace;
00054 QCheckBox *m_opt1;
00055 QCheckBox *m_opt2;
00056 QCheckBox *m_opt3;
00057 QCheckBox *m_optRegExp;
00058 QCheckBox *m_opt4;
00059 QCheckBox *m_opt5;
00060 QCheckBox *m_opt6;
00061 };
00062
00063 class ReplacePrompt : public KDialogBase
00064 {
00065 Q_OBJECT
00066
00067 public:
00068
00069 ReplacePrompt(QWidget *parent);
00070
00071 signals:
00072
00073 void clicked();
00074
00075 protected slots:
00076
00077 void slotUser1( void );
00078 void slotUser2( void );
00079 void slotUser3( void );
00080 virtual void done(int);
00081
00082 protected:
00083
00084 void closeEvent(QCloseEvent *);
00085 };
00086
00087 class GotoLineDialog : public KDialogBase
00088 {
00089 Q_OBJECT
00090
00091 public:
00092
00093 GotoLineDialog(QWidget *parent, int line, int max);
00094 int getLine();
00095
00096 protected:
00097
00098 QSpinBox *e1;
00099 QPushButton *btnOK;
00100 };
00101
00102 class IndentConfigTab : public QWidget
00103 {
00104 Q_OBJECT
00105
00106 public:
00107
00108 IndentConfigTab(QWidget *parent, KateView *);
00109 void getData(KateView *);
00110
00111 protected:
00112
00113 static const int numFlags = 6;
00114 static const int flags[numFlags];
00115 QCheckBox *opt[numFlags];
00116 };
00117
00118 class SelectConfigTab : public QWidget
00119 {
00120 Q_OBJECT
00121
00122 public:
00123
00124 SelectConfigTab(QWidget *parent, KateView *);
00125 void getData(KateView *);
00126
00127 protected:
00128
00129 static const int numFlags = 6;
00130 static const int flags[numFlags];
00131 QCheckBox *opt[numFlags];
00132 };
00133
00134 class EditConfigTab : public QWidget
00135 {
00136 Q_OBJECT
00137
00138 public:
00139
00140 EditConfigTab(QWidget *parent, KateView *);
00141 void getData(KateView *);
00142
00143 protected:
00144
00145 static const int numFlags = 9;
00146 static const int flags[numFlags];
00147 QCheckBox *opt[numFlags];
00148 QComboBox *encoding;
00149
00150
00151 QSpinBox *e1;
00152 QSpinBox *e2;
00153 QSpinBox *e3;
00154 };
00155
00156 class ColorConfig : public QWidget
00157 {
00158 Q_OBJECT
00159
00160 public:
00161
00162 ColorConfig( QWidget *parent = 0, char *name = 0 );
00163 ~ColorConfig();
00164
00165 void setColors( QColor * );
00166 void getColors( QColor * );
00167
00168 private:
00169
00170 KColorButton *m_back;
00171 KColorButton *m_selected;
00172 };
00173
00174 class FontConfig : public QWidget
00175 {
00176 Q_OBJECT
00177
00178 public:
00179
00180 FontConfig( QWidget *parent = 0, char *name = 0 );
00181 ~FontConfig();
00182
00183 void setFont ( const QFont &font );
00184 QFont getFont ( ) { return myFont; };
00185
00186 private:
00187 Opie::Ui::OFontSelector *m_fontselect;
00188
00189 QFont myFont;
00190
00191 private slots:
00192 void slotFontSelected( const QFont &font );
00193 };
00194
00195
00196 #endif //_KWDIALOG_H_