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
workspacesettings.h
Go to the documentation of this file.
1
12
/*
13
* This program is free software; you can redistribute it and/or modify
14
* it under the terms of the GNU General Public License as published by
15
* the Free Software Foundation; either version 3 of the License, or
16
* (at your option) any later version.
17
*
18
* This program is distributed in the hope that it will be useful, but
19
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
20
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21
* for more details.
22
*
23
* You should have received a copy of the GNU General Public License along
24
* with this program; if not, see <http://www.gnu.org/licenses/>
25
*/
26
27
#ifndef WORKSPACESETTINGS_H
28
#define WORKSPACESETTINGS_H
29
30
#include <
coreplugin/dialogs/ioptionspage.h
>
31
#include <QtCore/QObject>
32
#include <QtCore/QStringList>
33
#include <QTabWidget>
34
35
class
QSettings;
36
37
namespace
Core {
38
39
class
ModeManager;
40
class
IMode;
41
42
namespace
Internal {
43
44
namespace
Ui {
45
class
WorkspaceSettings;
46
}
47
48
class
WorkspaceSettings
:
public
IOptionsPage
49
{
50
Q_OBJECT
51
public
:
52
WorkspaceSettings
(QObject *parent =
nullptr
);
53
~WorkspaceSettings
();
54
55
// IOptionsPage
56
QString
id
()
const
;
57
QString
trName
()
const
;
58
QString
category
()
const
;
59
QString
trCategory
()
const
;
60
61
QWidget *
createPage
(QWidget *parent);
62
void
apply
();
63
void
finish
();
64
void
readSettings
(QSettings *qs);
65
void
saveSettings
(QSettings *qs);
66
int
numberOfWorkspaces
()
const
{
return
m_numberOfWorkspaces; }
67
QString
iconName
(
int
i
)
const
{
return
m_iconNames.at(i); }
68
QString
name
(
int
i
)
const
{
return
m_names.at(i); }
69
QString
modeName
(
int
i
)
const
{
return
m_modeNames.at(i); }
70
71
signals:
72
void
tabBarSettingsApplied
(QTabWidget::TabPosition pos,
bool
movable);
73
74
public
slots:
75
void
selectWorkspace
(
int
index,
bool
store =
false
);
76
void
numberOfWorkspacesChanged
(
int
value);
77
void
textEdited
(QString
string
);
78
void
iconChanged
();
79
void
newModeOrder
(QVector<IMode *> modes);
80
81
private
:
82
Ui::WorkspaceSettings *m_page;
83
QStringList m_iconNames;
84
QStringList m_names;
85
QStringList m_modeNames;
86
int
m_currentIndex;
87
int
m_previousNumberOfWorkspaces;
88
int
m_numberOfWorkspaces;
89
int
m_tabBarPlacementIndex;
90
bool
m_allowTabBarMovement;
91
static
const
int
MAX_WORKSPACES;
92
};
93
94
}
// namespace Internal
95
}
// namespace Core
96
97
#endif // WORKSPACESETTINGS_H
Core::Internal::WorkspaceSettings::selectWorkspace
void selectWorkspace(int index, bool store=false)
Definition:
workspacesettings.cpp:210
ioptionspage.h
Core::Internal::WorkspaceSettings::category
QString category() const
Definition:
workspacesettings.cpp:62
Core::Internal::WorkspaceSettings::id
QString id() const
Definition:
workspacesettings.cpp:52
Core::Internal::WorkspaceSettings::tabBarSettingsApplied
void tabBarSettingsApplied(QTabWidget::TabPosition pos, bool movable)
Core::Internal::WorkspaceSettings::modeName
QString modeName(int i) const
Definition:
workspacesettings.h:69
Core::Internal::WorkspaceSettings::textEdited
void textEdited(QString string)
Definition:
workspacesettings.cpp:183
Core::Internal::WorkspaceSettings
Definition:
workspacesettings.h:48
Core::Internal::WorkspaceSettings::trCategory
QString trCategory() const
Definition:
workspacesettings.cpp:67
Core::Internal::WorkspaceSettings::createPage
QWidget * createPage(QWidget *parent)
Definition:
workspacesettings.cpp:72
i
for i
Definition:
OPPlots.m:140
Core::Internal::WorkspaceSettings::iconChanged
void iconChanged()
Definition:
workspacesettings.cpp:189
Core::Internal::WorkspaceSettings::numberOfWorkspacesChanged
void numberOfWorkspacesChanged(int value)
Definition:
workspacesettings.cpp:195
Core::Internal::WorkspaceSettings::name
QString name(int i) const
Definition:
workspacesettings.h:68
Core::Internal::WorkspaceSettings::finish
void finish()
Definition:
workspacesettings.cpp:178
Core::Internal::WorkspaceSettings::saveSettings
void saveSettings(QSettings *qs)
Definition:
workspacesettings.cpp:134
Core::Internal::WorkspaceSettings::newModeOrder
void newModeOrder(QVector< IMode * > modes)
Definition:
workspacesettings.cpp:228
Core::Internal::WorkspaceSettings::trName
QString trName() const
Definition:
workspacesettings.cpp:57
Core::Internal::WorkspaceSettings::numberOfWorkspaces
int numberOfWorkspaces() const
Definition:
workspacesettings.h:66
Core::Internal::WorkspaceSettings::iconName
QString iconName(int i) const
Definition:
workspacesettings.h:67
Core::Internal::WorkspaceSettings::WorkspaceSettings
WorkspaceSettings(QObject *parent=nullptr)
Definition:
workspacesettings.cpp:41
Core::Internal::WorkspaceSettings::apply
void apply()
Definition:
workspacesettings.cpp:152
Core::Internal::WorkspaceSettings::readSettings
void readSettings(QSettings *qs)
Definition:
workspacesettings.cpp:106
Core::IOptionsPage
The IOptionsPage is an interface for providing options pages.
Definition:
ioptionspage.h:42
Core::Internal::WorkspaceSettings::~WorkspaceSettings
~WorkspaceSettings()
Definition:
workspacesettings.cpp:46
ground
gcs
src
plugins
coreplugin
workspacesettings.h
Generated by
1.8.6