-
Notifications
You must be signed in to change notification settings - Fork 1
/
mainwindow.h
50 lines (40 loc) · 946 Bytes
/
mainwindow.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
// Created by john on 1/28/17.
//
#ifndef KDIFF_MAINWINDOW_H
#define KDIFF_MAINWINDOW_H
#include <KToggleAction>
#include <QSplitter>
#include <QTreeWidget>
#include <kparts/mainwindow.h>
#include "kdiffinterface.h"
#include "settings.h"
namespace KParts {
class ReadOnlyPart;
class ReadWritePart;
}
class KDiffMainWindow : public KParts::MainWindow
{
Q_OBJECT
public:
KDiffMainWindow(QWidget *parent=0);
~KDiffMainWindow();
private slots:
void openFiles();
void openDiff();
void openDiffAndFiles();
void quit();
void editToolbars();
void aboutEditor();
void toggleMenuBar();
void swap();
protected:
void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE;
private:
Settings* settings;
KToggleAction* m_paShowMenuBar;
KParts::ReadWritePart* m_viewPart;
KDiffInterface* viewPart() const;
void setupActions();
QAction* swapAction;
};
#endif //KDIFF_MAINWINDOW_H