-
Notifications
You must be signed in to change notification settings - Fork 0
/
aeasy_mainwindow.h
executable file
·72 lines (64 loc) · 2.53 KB
/
aeasy_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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/* --------------------------------------------------------------------------------------------
* aeasy_mainwindow.h
* --------------------------------------------------------------------------------------------
* DESCRIPTION: Main application window class declaration.
* --------------------------------------------------------------------------------------------
* COPYRIGHT: Copyright (c) 2005-2013
* Clive Levinson <[email protected]>
* Bundu Technology Ltd.
* --------------------------------------------------------------------------------------------
* LICENCE: AlbumEasy is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your option)
* any later version.
* --------------------------------------------------------------------------------------------
* AUTHORS: Clive Levinson
* --------------------------------------------------------------------------------------------
* REVISIONS: Date Version Who Comment
*
* 2011/04/26 3.0 cl First QT Version
* -------------------------------------------------------------------------------------------- */
#ifndef _AEASY_MAIN_WINDOW_H_
#define _AEASY_MAIN_WINDOW_H_
#include "AlbumEasy.h"
class CParser;
class CAlbumData;
class CFontFileList;
class CConfig;
/************************************************************************************************
Main window class
************************************************************************************************/
class CMainWindow : public QMainWindow
{
Q_OBJECT
public:
CMainWindow(const QString &title,QWidget *parent = 0);
~CMainWindow();
public slots:
void logMessage(QString text,QString colour="",bool bold=false);
protected:
void closeEvent(QCloseEvent *event);
public slots:
void displayHelp(QString page="");
private slots:
void openFile(void);
void generate(void);
void displayFontSelector(void);
void displayConfiguration(void);
private:
CParser *m_parser;
CAlbumData *m_albumData;
CFontFileList *m_fontFiles;
QTextEdit *m_textOut;
QAction *m_actnOpen;
QAction *m_actnGenerate;
QAction *m_actnFont;
QAction *m_actnConfig;
QAction *m_actnDisplayHelp;
QAction *m_actnExit;
QString m_albumSourceFile;
QRect m_helpWindowRect;
QRect m_fontListWindowRect;
CConfig *m_config;
};
#endif // _AEASY_MAIN_WINDOW_H_