-
Notifications
You must be signed in to change notification settings - Fork 0
/
aeasy_helpwindow.h
executable file
·68 lines (56 loc) · 2.6 KB
/
aeasy_helpwindow.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
/* --------------------------------------------------------------------------------------------
* aeasy_helpwindow.h
* --------------------------------------------------------------------------------------------
* DESCRIPTION: Help 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_HELP_WINDOW_H_
#define _AEASY_HELP_WINDOW_H_
#include "AlbumEasy.h"
class CHelpWindow : public QWidget
{
Q_OBJECT
public:
static void showHelpWindow(const QString title,const QRect pos,QString page);
static void closeHelpWindow(void);
static bool getLayout(QRect &wrect);
private slots:
void updateButtonStates(const QUrl &);
void backwardAvailable(bool available);
void forwardAvailable(bool available);
private: //singleton, therefore:
CHelpWindow(const QString path); // private constructor
~CHelpWindow(){;}; // private destructor
CHelpWindow(const CHelpWindow &); // undefined copy constructor
CHelpWindow& operator=(const CHelpWindow &); // undefined assignment operator
private:
static CHelpWindow *m_helpWindow;
QTextBrowser *m_txtBrowser;
QPushButton *m_btnHome;
QPushButton *m_btnBack;
QPushButton *m_btnForward;
QPushButton *m_btnClose;
};
inline void CHelpWindow::backwardAvailable(bool available)
{
m_btnBack->setEnabled(available);
}
inline void CHelpWindow::forwardAvailable(bool available)
{
m_btnForward->setEnabled(available);
}
#endif // _AEASY_HELP_WINDOW_H_