-
Notifications
You must be signed in to change notification settings - Fork 2
/
help_browser.hpp
50 lines (35 loc) · 1.22 KB
/
help_browser.hpp
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
/*This file is part of Circle Packings.
Circle Packings 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.
Circle Packings is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Circle Packings. If not, see <http://www.gnu.org/licenses/>.*/
#ifndef HELP_BROWSER_HPP
#define HELP_BROWSER_HPP
#include "basic_types.hpp"
#include <QWidget>
#include <QUrl>
class QTextBrowser;
class QPushButton;
class Help_Browser : public QWidget
{
Q_OBJECT
public:
Help_Browser();
static void show_page();
private slots:
void update_window_title();
void anchor_clicked(QUrl url);
private:
QSize initial_size_;
QTextBrowser *text_browser_;
QPushButton *home_button_;
QPushButton *back_button_;
QPushButton *close_button_;
};
#endif // HELP_BROWSER_HPP