blob: 8292c3abfde66dd9815240621bca8f588879fea7 (
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
#ifndef MEDIUMMOUNTGUI_H
#define MEDIUMMOUNTGUI_H
#include <qvariant.h>
#include <qdialog.h>
class QVBoxLayout;
class QHBoxLayout;
class QGridLayout;
class QCheckBox;
class QGroupBox;
class QLabel;
class QLineEdit;
class QPushButton;
class Config;
class MediumMountGui : public QDialog
{
Q_OBJECT
public:
MediumMountGui( Config *cfg, const QString &path = "tmp/", QWidget* parent = 0, const char* name = 0, bool modal = FALSE ,WFlags fl = 0 );
~MediumMountGui();
protected:
QPushButton* quit;
QPushButton* quit_2;
QLabel* DirSelectText_2;
QLineEdit* LineEdit1;
QPushButton* PushButton3;
QLabel* DirSelectText;
QLabel* Text_2;
QLabel* Text;
QGroupBox* GroupBox1;
QCheckBox* CheckBoxAudio;
QCheckBox* CheckBoxImage;
QCheckBox* CheckBoxText;
QCheckBox* CheckBoxVideo;
QCheckBox* CheckBoxAll;
QCheckBox* CheckBoxLink;
QCheckBox* AskBox;
public:
bool check();
QStringList mimeTypes();
QStringList dirs();
private:
void startGui();
void readConfig();
void writeConfig(bool checkagain);
private slots:
void yesPressed();
void noPressed();
void deactivateOthers();
private:
QString mediumPath;
bool checkagain:1;
bool checkmimeaudio:1;
bool checkmimeimage:1;
bool checkmimetext:1;
bool checkmimevideo:1;
bool checkmimeall:1;
QString limittodirs;
QStringList mimeTypeList;
Config *m_cfg;
};
#endif
|