summaryrefslogtreecommitdiffstats
path: root/kcontrol/filetypes/newtypedlg.h
diff options
context:
space:
mode:
Diffstat (limited to 'kcontrol/filetypes/newtypedlg.h')
-rw-r--r--kcontrol/filetypes/newtypedlg.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/kcontrol/filetypes/newtypedlg.h b/kcontrol/filetypes/newtypedlg.h
new file mode 100644
index 000000000..386b5fcdb
--- /dev/null
+++ b/kcontrol/filetypes/newtypedlg.h
@@ -0,0 +1,28 @@
+#ifndef _NEWTYPEDLG_H
+#define _NEWTYPEDLG_H
+
+#include <qstring.h>
+#include <qstringlist.h>
+#include <kdialogbase.h>
+
+class KLineEdit;
+class QComboBox;
+
+/**
+ * A dialog for creating a new file type, with
+ * a combobox for choosing the group and a line-edit
+ * for entering the name of the file type
+ */
+class NewTypeDialog : public KDialogBase
+{
+public:
+ NewTypeDialog(QStringList groups, QWidget *parent = 0,
+ const char *name = 0);
+ QString group() const;
+ QString text() const;
+private:
+ KLineEdit *typeEd;
+ QComboBox *groupCombo;
+};
+
+#endif