-
Notifications
You must be signed in to change notification settings - Fork 1
/
opendialog.h
53 lines (45 loc) · 1.17 KB
/
opendialog.h
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
//
// Created by john on 1/28/17.
//
#ifndef KDIFF_OPENDIALOG_H
#define KDIFF_OPENDIALOG_H
#include <QGridLayout>
#include <QDialog>
#include <QSpinBox>
#include <kurlrequester.h>
#include <kurlcombobox.h>
#include "settings.h"
#include "kdiffinterface.h"
class OpenDialog : public QDialog
{
Q_OBJECT
public:
OpenDialog(QWidget* parent);
~OpenDialog();
QPushButton* okButton;
virtual void accept();
virtual void reject();
int chooseFiles();
int chooseDiff();
int chooseDiffAndFiles();
QStringList sourceList();
QStringList destinationList();
QStringList patchList();
private slots:
void open();
void selectedFilesChanged();
void clearHistory();
private:
void openURL(KUrlComboBox *urlComboBox, bool bDir, bool bPatch);
void init(Mode mode);
// KUrlRequester are only needed for autopcomplete in KUrlComboBox!!!!
QWidget* m_parentWidget;
Settings* settings;
KUrlRequester* m_sourceListRequester;
KUrlRequester* m_destinationListRequester;
KUrlComboBox* m_sourceListComboBox;
KUrlComboBox* m_destinationListComboBox;
QGridLayout *m_layout;
Mode m_openMode;
};
#endif //KDIFF_OPENDIALOG_H