summaryrefslogtreecommitdiffstats
path: root/kdict/sets.h
diff options
context:
space:
mode:
Diffstat (limited to 'kdict/sets.h')
-rw-r--r--kdict/sets.h68
1 files changed, 68 insertions, 0 deletions
diff --git a/kdict/sets.h b/kdict/sets.h
new file mode 100644
index 00000000..3e874a6e
--- /dev/null
+++ b/kdict/sets.h
@@ -0,0 +1,68 @@
+/* -------------------------------------------------------------
+
+ sets.h (part of The KDE Dictionary Client)
+
+ Copyright (C) 2000-2001 Christian Gebauer <gebauer@kde.org>
+
+ This file is distributed under the Artistic License.
+ See LICENSE for details.
+
+ -------------------------------------------------------------
+
+ dbSetsDialog dialog for editing the user defined database sets
+
+ ------------------------------------------------------------- */
+
+#ifndef _KDICT_SETS_H_
+#define _KDICT_SETS_H_
+
+#include <kdialogbase.h>
+
+class QListBox;
+
+
+//********* DbSetsDialog ******************************************
+
+
+class DbSetsDialog : public KDialogBase
+{
+ Q_OBJECT
+
+public:
+
+ DbSetsDialog(QWidget *parent=0, const char *name=0);
+
+signals:
+
+ void setsChanged();
+ void dialogClosed();
+
+protected:
+ void hideEvent(QHideEvent *);
+
+private slots:
+
+ void newPressed();
+ void deletePressed();
+ void allLeftPressed();
+ void leftPressed();
+ void rightPressed();
+ void allRightPressed();
+ void closePressed();
+ void transferSet();
+ void activateSet(int num);
+ void leftSelected(int index);
+ void rightSelected(int index);
+ void leftHighlighted(int index);
+ void rightHighlighted(int index);
+
+private:
+
+ void checkButtons();
+
+ QComboBox *w_set;
+ QListBox *w_leftBox, *w_rightBox;
+ QPushButton *w_delete,*w_save,*w_allLeft,*w_left,*w_right,*w_allRight;
+};
+
+#endif