-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathmainWindow.h
More file actions
80 lines (72 loc) · 2.13 KB
/
mainWindow.h
File metadata and controls
80 lines (72 loc) · 2.13 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#pragma once
class CImageWindow;
class CBaseWindow;
class QAction;
class QMenu;
class QMdiArea;
class QMdiSubWindow;
class CMainWindow : public QMainWindow
{
Q_OBJECT
public:
CMainWindow();
void SetStatusLeft( QString const& status );
void SetStatusRight( QString const& status );
bool OpenFile( QString fileName );
private slots:
void Open();
void Compare();
void ReloadCurrent();
void OpenRecentFile();
void ZoomIn();
void ZoomOut();
void ViewAction();
void ChangeChannel( int channel );
void ChangeFace( int face );
void ChangeMip( int mip );
void ChangeVisMin( float visMin );
void ChangeVisMax( float visMax );
void ChangeVisGamma( float visGamma );
void ChangeVisDiffMult( float mult );
void SubWindowActivated( QMdiSubWindow* window );
private:
void UpdateToolbar( CBaseWindow* baseWindow );
void UpdateTitle( CBaseWindow* baseWindow );
void closeEvent( QCloseEvent* event ) Q_DECL_OVERRIDE;
void dragEnterEvent( QDragEnterEvent* event ) Q_DECL_OVERRIDE;
void dropEvent( QDropEvent* event ) Q_DECL_OVERRIDE;
void CreateToolbar();
void ReadSettings();
void WriteSettings();
void AddToRecentFiles( QString const& fileName );
bool CompareFiles( QString const& fileName0, QString const& fileName1 );
CBaseWindow* ActiveWindow() const;
QString m_lastDirectory;
QMdiArea m_mdiArea;
QMenu* m_windowMenu;
QComboBox m_channelComboBox;
QComboBox m_faceComboBox;
QComboBox m_mipComboBox;
QDoubleSpinBox m_visMinSpinBox;
QDoubleSpinBox m_visMaxSpinBox;
QDoubleSpinBox m_visGammaSpinBox;
QDoubleSpinBox m_visDiffMultSpinBox;
QLabel m_statusLeft;
QLabel m_statusRight;
QAction* m_actionRecentFile[ 10 ];
QAction* m_actionRecentFileSeparator;
QAction* m_actionRecentFileSubMenuAct;
QAction* m_actionOpen;
QAction* m_actionCompare;
QAction* m_actionReloadCurrent;
QAction* m_actionClose;
QAction* m_actionCloseAll;
QAction* m_actionTile;
QAction* m_actionCascade;
QAction* m_actionNext;
QAction* m_actionPrevious;
QAction* m_actionWindowMenuSeparator;
QAction* m_actionZoomIn;
QAction* m_actionZoomOut;
QAction* m_actionView[ 5 ];
};