summaryrefslogtreecommitdiffstats
path: root/kcontrol/filetypes/newtypedlg.h
blob: 386b5fcdbcf026b24f6737f988a6bccfc7356f6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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