Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
flatpak-qt-creator
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
8ba891bb
Commit
8ba891bb
authored
Mar 26, 2009
by
hjk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debugger: progress on action generalization
mostly renamings
parent
f54440b4
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
112 additions
and
104 deletions
+112
-104
src/plugins/debugger/debuggeractions.cpp
src/plugins/debugger/debuggeractions.cpp
+86
-89
src/plugins/debugger/debuggeractions.h
src/plugins/debugger/debuggeractions.h
+20
-13
src/plugins/debugger/debuggerplugin.cpp
src/plugins/debugger/debuggerplugin.cpp
+6
-2
No files found.
src/plugins/debugger/debuggeractions.cpp
View file @
8ba891bb
This diff is collapsed.
Click to expand it.
src/plugins/debugger/debuggeractions.h
View file @
8ba891bb
...
...
@@ -42,17 +42,17 @@ class QSettings;
QT_END_NAMESPACE
namespace
Debugger
{
namespace
Internal
{
namespace
Core
{
namespace
Utils
{
enum
ApplyMode
{
ImmediateApply
,
DeferedApply
};
class
Debugger
Action
:
public
QAction
class
Saved
Action
:
public
QAction
{
Q_OBJECT
public:
Debugger
Action
(
QObject
*
parent
=
0
);
Saved
Action
(
QObject
*
parent
=
0
);
virtual
QVariant
value
()
const
;
Q_SLOT
virtual
void
setValue
(
const
QVariant
&
value
,
bool
doemit
=
true
);
...
...
@@ -103,20 +103,27 @@ private:
ApplyMode
m_applyMode
;
};
class
DebuggerSettingsGroup
class
SavedActionSet
{
public:
DebuggerSettingsGroup
()
{}
~
DebuggerSettingsGroup
()
{}
SavedActionSet
()
{}
~
SavedActionSet
()
{}
void
insert
(
Debugger
Action
*
action
,
QWidget
*
widget
);
void
insert
(
Saved
Action
*
action
,
QWidget
*
widget
);
void
apply
(
QSettings
*
settings
);
void
finish
();
void
clear
()
{
m_list
.
clear
();
}
private:
QList
<
Debugger
Action
*>
m_list
;
QList
<
Saved
Action
*>
m_list
;
};
}
// namespace Utils
}
// namespace Core
namespace
Debugger
{
namespace
Internal
{
class
DebuggerSettings
:
public
QObject
{
...
...
@@ -126,8 +133,8 @@ public:
DebuggerSettings
(
QObject
*
parent
=
0
);
~
DebuggerSettings
();
void
insertItem
(
int
code
,
Debugger
Action
*
item
);
Debugger
Action
*
item
(
int
code
);
void
insertItem
(
int
code
,
Core
::
Utils
::
Saved
Action
*
item
);
Core
::
Utils
::
Saved
Action
*
item
(
int
code
);
QString
dump
();
...
...
@@ -136,7 +143,7 @@ public slots:
void
writeSettings
(
QSettings
*
settings
);
private:
QHash
<
int
,
Debugger
Action
*>
m_items
;
QHash
<
int
,
Core
::
Utils
::
Saved
Action
*>
m_items
;
};
...
...
@@ -199,7 +206,7 @@ enum DebuggerActionCode
// singleton access
DebuggerSettings
*
theDebuggerSettings
();
Debugger
Action
*
theDebuggerAction
(
int
code
);
Core
::
Utils
::
Saved
Action
*
theDebuggerAction
(
int
code
);
// convienience
bool
theDebuggerBoolSetting
(
int
code
);
...
...
src/plugins/debugger/debuggerplugin.cpp
View file @
8ba891bb
...
...
@@ -259,7 +259,7 @@ private:
Ui
::
GdbOptionPage
m_ui
;
DebuggerPlugin
*
m_plugin
;
DebuggerSettingsGroup
m_group
;
Core
::
Utils
::
SavedActionSet
m_group
;
};
QWidget
*
GdbOptionPage
::
createPage
(
QWidget
*
parent
)
...
...
@@ -273,6 +273,7 @@ QWidget *GdbOptionPage::createPage(QWidget *parent)
m_ui
.
terminalChooser
->
setExpectedKind
(
Core
::
Utils
::
PathChooser
::
Command
);
m_ui
.
terminalChooser
->
setPromptDialogTitle
(
tr
(
"Choose Location of Terminal Application"
));
m_group
.
clear
();
m_group
.
insert
(
theDebuggerAction
(
GdbLocation
),
m_ui
.
gdbLocationChooser
);
m_group
.
insert
(
theDebuggerAction
(
GdbScriptFile
),
...
...
@@ -291,6 +292,8 @@ QWidget *GdbOptionPage::createPage(QWidget *parent)
m_group
.
insert
(
theDebuggerAction
(
SelectedPluginBreakpointsPattern
),
m_ui
.
lineEditSelectedPluginBreakpointsPattern
);
m_group
.
insert
(
theDebuggerAction
(
ListSourceFiles
),
m_ui
.
checkBoxListSourceFiles
);
m_group
.
insert
(
theDebuggerAction
(
SkipKnownFrames
),
m_ui
.
checkBoxSkipKnownFrames
);
m_group
.
insert
(
theDebuggerAction
(
UseToolTips
),
...
...
@@ -346,7 +349,7 @@ private:
Ui
::
DumperOptionPage
m_ui
;
DebuggerPlugin
*
m_plugin
;
DebuggerSettingsGroup
m_group
;
Core
::
Utils
::
SavedActionSet
m_group
;
};
QWidget
*
DumperOptionPage
::
createPage
(
QWidget
*
parent
)
...
...
@@ -362,6 +365,7 @@ QWidget *DumperOptionPage::createPage(QWidget *parent)
connect
(
m_ui
.
radioButtonUsePrebuiltDumpers
,
SIGNAL
(
toggled
(
bool
)),
m_ui
.
dumperLocationChooser
,
SLOT
(
setEnabled
(
bool
)));
m_group
.
clear
();
m_group
.
insert
(
theDebuggerAction
(
UseQtDumpers
),
m_ui
.
radioButtonUseQtDumpers
);
m_group
.
insert
(
theDebuggerAction
(
UsePrebuiltDumpers
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment