summaryrefslogtreecommitdiff
path: root/noncore/apps/tinykate/libkate/view/kateviewdialog.h
Side-by-side diff
Diffstat (limited to 'noncore/apps/tinykate/libkate/view/kateviewdialog.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/tinykate/libkate/view/kateviewdialog.h194
1 files changed, 194 insertions, 0 deletions
diff --git a/noncore/apps/tinykate/libkate/view/kateviewdialog.h b/noncore/apps/tinykate/libkate/view/kateviewdialog.h
new file mode 100644
index 0000000..60f30bd
--- a/dev/null
+++ b/noncore/apps/tinykate/libkate/view/kateviewdialog.h
@@ -0,0 +1,194 @@
+/***************************************************************************
+ kateviewdialog.h - description
+ -------------------
+ copyright : (C) 2001 by The Kate Team
+ (C) 2002 by Joseph Wenninger
+ email : kwrite-devel@kde.org
+ jowenn@kde.org
+
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+// Dialogs
+
+#ifndef _KWDIALOG_H_
+#define _KWDIALOG_H_
+
+
+class QCheckBox;
+class QLineEdit;
+class QPushButton;
+class QRadioButton;
+class QSpinBox;
+class KColorButton;
+class QComboBox;
+
+#include <kdialogbase.h>
+#include "kateview.h"
+
+class SearchDialog : public KDialogBase
+{
+ Q_OBJECT
+
+ public:
+ SearchDialog( QWidget *parent, QStringList &searchFor, QStringList &replaceWith, int flags );
+ QString getSearchFor();
+ QString getReplaceWith();
+ int getFlags();
+ void setSearchText( const QString &searchstr );
+
+ protected slots:
+ void slotOk();
+
+ protected:
+ QComboBox *m_search;
+ QComboBox *m_replace;
+ QCheckBox *m_opt1;
+ QCheckBox *m_opt2;
+ QCheckBox *m_opt3;
+ QCheckBox *m_optRegExp;
+ QCheckBox *m_opt4;
+ QCheckBox *m_opt5;
+ QCheckBox *m_opt6;
+};
+
+class ReplacePrompt : public KDialogBase
+{
+ Q_OBJECT
+
+ public:
+
+ ReplacePrompt(QWidget *parent);
+
+ signals:
+
+ void clicked();
+
+ protected slots:
+
+ void slotUser1( void ); // All
+ void slotUser2( void ); // No
+ void slotUser3( void ); // Yes
+ virtual void done(int);
+
+ protected:
+
+ void closeEvent(QCloseEvent *);
+};
+
+class GotoLineDialog : public KDialogBase
+{
+ Q_OBJECT
+
+ public:
+
+ GotoLineDialog(QWidget *parent, int line, int max);
+ int getLine();
+
+ protected:
+
+ QSpinBox *e1;
+ QPushButton *btnOK;
+};
+
+class IndentConfigTab : public QWidget
+{
+ Q_OBJECT
+
+ public:
+
+ IndentConfigTab(QWidget *parent, KateView *);
+ void getData(KateView *);
+
+ protected:
+
+ static const int numFlags = 6;
+ static const int flags[numFlags];
+ QCheckBox *opt[numFlags];
+};
+
+class SelectConfigTab : public QWidget
+{
+ Q_OBJECT
+
+ public:
+
+ SelectConfigTab(QWidget *parent, KateView *);
+ void getData(KateView *);
+
+ protected:
+
+ static const int numFlags = 6;
+ static const int flags[numFlags];
+ QCheckBox *opt[numFlags];
+};
+
+class EditConfigTab : public QWidget
+{
+ Q_OBJECT
+
+ public:
+
+ EditConfigTab(QWidget *parent, KateView *);
+ void getData(KateView *);
+
+ protected:
+
+ static const int numFlags = 9;
+ static const int flags[numFlags];
+ QCheckBox *opt[numFlags];
+ QComboBox *encoding;
+
+
+ QSpinBox *e1;
+ QSpinBox *e2;
+ QSpinBox *e3;
+};
+
+class ColorConfig : public QWidget
+{
+ Q_OBJECT
+
+public:
+
+ ColorConfig( QWidget *parent = 0, char *name = 0 );
+ ~ColorConfig();
+
+ void setColors( QColor * );
+ void getColors( QColor * );
+
+private:
+
+ KColorButton *m_back;
+ KColorButton *m_selected;
+};
+
+class FontConfig : public QWidget
+{
+ Q_OBJECT
+
+public:
+
+ FontConfig( QWidget *parent = 0, char *name = 0 );
+ ~FontConfig();
+
+ void setFont ( const QFont &font );
+ QFont getFont ( ) { return myFont; };
+
+ private:
+// class KFontChooser *m_fontchooser;
+ QFont myFont;
+
+ private slots:
+ void slotFontSelected( const QFont &font );
+};
+
+
+#endif //_KWDIALOG_H_