-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.h
More file actions
65 lines (51 loc) · 1.19 KB
/
MainWindow.h
File metadata and controls
65 lines (51 loc) · 1.19 KB
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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#import <QMainWindow>
#import <QHash>
#import <QRgb>
#import "ColorCount.h"
#import "ui/ui_MainWindow.h"
class ZoomWidget;
class SelWin;
class QAction;
class QMenu;
class QToolBar;
class QTreeView;
class QDockWidget;
class QComboBox;
class ColorCountModel;
class QModelIndex;
class QTableView;
class QListView;
class MainWindow : public QMainWindow, private Ui::MainWindow
{
Q_OBJECT
public:
MainWindow(QWidget* parent=0);
public slots:
protected:
void closeEvent(QCloseEvent *event);
void keyPressEvent ( QKeyEvent * event );
private slots:
void toggleGrab(bool);
void toggleShowGrid(QAction* action);
void zoomIn();
void zoomOut();
void intervalChanged(int);
void colorClicked(const QModelIndex & index);
void colorsTableChanged();
void changeColor(const QColor& color);
void copyColor();
void copyImage();
void exportCurrent();
void importScreenshot();
void toolSelected(QAction* tool);
private:
void readSettings();
void writeSettings();
ZoomWidget* zoomWidget;
SelWin* selWin;
QComboBox* intervalBox;
ColorCountModel* m_colorCountModel;
};
#endif