dRonin
adbada4
dRonin GCS
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Groups
Pages
welcomemode.h
Go to the documentation of this file.
1
14
/*
15
* This program is free software; you can redistribute it and/or modify
16
* it under the terms of the GNU General Public License as published by
17
* the Free Software Foundation; either version 3 of the License, or
18
* (at your option) any later version.
19
*
20
* This program is distributed in the hope that it will be useful, but
21
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
22
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
23
* for more details.
24
*
25
* You should have received a copy of the GNU General Public License along
26
* with this program; if not, see <http://www.gnu.org/licenses/>
27
*/
28
29
#ifndef WELCOMEMODE_H
30
#define WELCOMEMODE_H
31
32
#include "
welcome_global.h
"
33
34
#include <
coreplugin/imode.h
>
35
36
QT_BEGIN_NAMESPACE
37
class
QWidget;
38
class
QUrl;
39
QT_END_NAMESPACE
40
41
namespace
Welcome {
42
43
struct
WelcomeModePrivate;
44
45
class
WELCOME_EXPORT
WelcomeMode
:
public
Core::IMode
46
{
47
Q_OBJECT
48
49
public
:
50
WelcomeMode
(QString instUUID);
51
~
WelcomeMode
();
52
53
// IMode
54
QString name()
const
;
55
QIcon icon()
const
;
56
int
priority()
const
;
57
QWidget *widget();
58
const
char
*uniqueModeName()
const
;
59
QList<int>
context()
const
;
60
void
activated();
61
QString
contextHelpId
()
const
{
return
QLatin1String(
"dRonin GCS"
); }
62
void
setPriority
(
int
priority) { m_priority = priority; }
63
64
public
slots:
65
void
openPage(
const
QString &page);
66
void
triggerAction(
const
QString &actionId);
67
68
private
slots:
69
void
modesChanged();
70
71
private
:
72
QStringList getModeNames();
73
74
WelcomeModePrivate
*m_d;
75
QWidget *m_container;
76
int
m_priority;
77
};
78
79
}
// namespace Welcome
80
81
#endif // WELCOMEMODE_H
Welcome::WelcomeMode::setPriority
void setPriority(int priority)
Definition:
welcomemode.h:62
Core::IMode
Definition:
imode.h:41
welcome_global.h
Welcome::WelcomeModePrivate
Definition:
welcomemode.cpp:58
Welcome::WelcomeMode
Definition:
welcomemode.h:45
Welcome::WelcomeMode::contextHelpId
QString contextHelpId() const
Definition:
welcomemode.h:61
imode.h
QList< int >
ground
gcs
src
plugins
welcome
welcomemode.h
Generated by
1.8.6