Biomedical Image Analysis Library
The Biomedical Image Analysis Library is a poweful tool for developers, physicians, researchers, engineers, and so on.
mainwindow.h
Go to the documentation of this file.
1 #ifndef MAINWINDOW_H
2 #define MAINWINDOW_H
3 
4 #include "controller.h"
5 
6 #include <QApplication>
7 #include <QMainWindow>
8 
9 namespace Ui {
10  class MainWindow;
11 }
12 
13 class MainWindow : public QMainWindow {
14  Q_OBJECT
15 
16 public:
17  explicit MainWindow( QWidget *parent = 0 );
18  ~MainWindow( );
19 
20  void commandLineOpen( int argc, char *argv[] );
21 
22 private:
23  void createConnections( );
24  void setupLogoview( );
25  QString getFileDialog( );
26  bool loadFile( QString filename );
27  bool loadFolder( QString dirname );
28  void createActions( );
29  void loadQss( );
30  bool loadDicomdir( QString dicomFName );
31 
32 signals:
33  void updateProgress( int p );
34 
35 private slots:
36  void on_actionRed_background_triggered( );
37  void on_actionGreen_background_triggered( );
38  void on_actionBlue_background_triggered( );
39  void on_actionBlack_background_triggered( );
40  void on_actionWhite_background_triggered( );
41  void on_actionOpen_image_triggered( );
42  void on_actionQuit_triggered( );
43 
44  void currentImageChanged( );
45  void imageUpdated( );
46  void containerUpdated( );
47  void readSettings( );
48  void openRecentFile( );
49  void updateRecentFileActions( );
50  void on_actionAddLabel_triggered( );
51  void on_actionOpen_folder_triggered( );
52  void on_actionOpen_DicomDir_triggered( );
53  void on_actionAdd_image_triggered( );
54  void on_actionRemove_current_image_triggered( );
55  void on_actionSelect_default_folder_triggered( );
56  void on_actionRemove_current_label_triggered( );
57 
58  void updateIntensity( QPointF scnPos, Qt::MouseButtons buttons, size_t axis );
59 
60  void on_actionAxial_triggered( );
61  void on_actionCoronal_triggered( );
62  void on_actionSagittal_triggered( );
63  void on_action3_Views_triggered( );
64  void on_action4_Views_triggered( );
65  void on_actionVertical_triggered( );
66  void on_actionHorizontal_triggered( );
67  void on_actionGrid_triggered( );
68 
69  void on_actionWhitePen_triggered( );
70  void on_actionRedPen_triggered( );
71  void on_actionBluePen_triggered( );
72  void on_actionGreenPen_triggered( );
73  void on_actionBlackPen_triggered( );
74 
75  void on_actionToggle_overlay_triggered( );
76 
77  void on_actionDefaultTool_triggered( );
78 
79  void on_actionSegmentationTool_triggered( );
80 
81  void on_actionEnglish_triggered( );
82 
83  void on_actionPortuguese_triggered( );
84 
85  void on_actionFunctional_Tool_triggered( );
86 
87  void on_actionChange_default_parameters_triggered( );
88 
89 private:
90  Ui::MainWindow *ui;
91  Controller *controller;
92  QString defaultFolder;
93  QAction *recentFileActs[ Controller::MaxRecentFiles ];
94  bool checkExtension( const QString &suffix );
95 
96  QAction *actionDefaultTool;
97  QAction *actionSegmentationTool;
98 };
99 
101 public:
102  CursorChanger( const QCursor &cursor ) {
103  QApplication::setOverrideCursor( cursor );
104  }
106  QApplication::restoreOverrideCursor( );
107  }
108 };
109 
110 #endif /* MAINWINDOW_H */
CursorChanger(const QCursor &cursor)
Definition: mainwindow.h:102
The Controller class is one of the most important classes of the User Interface, and is responsible t...
Definition: controller.h:17
unsigned char suffix[65536]
Definition: gun.c:164