UltraScan III
us.h
Go to the documentation of this file.
1 #include <QtGui>
3 
4 #include "us_global.h"
5 #include "us_help.h"
6 
8 
9 class US_Win : public QMainWindow
10 {
11  Q_OBJECT
12 
13 public:
14 
22  US_Win( QWidget* = 0, Qt::WindowFlags = 0 );
23 
25  ~US_Win();
26 
27 private:
29  QLabel* bigframe;
30  QLabel* smallframe;
31  QLabel* splash_shadow;
33  QDateTime ln_time; // Last notice-check time
34 
35  void addMenu( int, const QString&, QMenu* );
36  void splash ( void );
37  void logo ( int );
38  void help ( int );
39  void launch ( int );
40  void apply_prefs ( void );
41  bool notice_check( void );
42 
43  struct procData
44  {
45  QProcess* proc;
46  QString name;
47  int index;
48  };
49 
50  QList<procData*> procs;
51 
52 private slots:
53  void onIndexTriggered( int index );
54  void closeSplash ( void );
55  void terminated ( int, QProcess::ExitStatus );
56  void closeEvent ( QCloseEvent* );
57  void closeProcs ( void );
58 };
59 
61 
62 
66 class US_Action : public QAction
67 {
68  Q_OBJECT
69 
70 public:
71 
78  US_Action( int, const QString&, QObject* );
79 
80 signals:
82  void indexTriggered( int );
83 
84 private slots:
86  // \param bool The parameter sent by the QAction object is ignored.
87  void onTriggered( bool );
88 
89 private:
90  int index;
91 };
92