Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Cervisia
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
Incidents
Environments
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
SDK
Cervisia
Commits
60af5443
Commit
60af5443
authored
Dec 10, 2002
by
David Faure
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
standard KEditToolbar and setAutoSaveSettings stuff
svn path=/trunk/kdesdk/cervisia/; revision=193173
parent
84429f7b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
8 deletions
+17
-8
cervisiashell.cpp
cervisiashell.cpp
+14
-6
cervisiashell.h
cervisiashell.h
+3
-2
No files found.
cervisiashell.cpp
View file @
60af5443
/*
/*
* Copyright (C) 1999-2002 Bernd Gehrmann
* bernd@mail.berlios.de
*
...
...
@@ -38,7 +38,7 @@ CervisiaShell::CervisiaShell( const char *name )
setCentralWidget
(
part
->
widget
()
);
setupActions
();
// create the active filter indicator and add it to the statusbar
filterLabel
=
new
QLabel
(
"UR"
,
statusBar
());
filterLabel
->
setFixedSize
(
filterLabel
->
sizeHint
());
...
...
@@ -65,6 +65,8 @@ CervisiaShell::CervisiaShell( const char *name )
statusBar
(),
SLOT
(
clear
()
)
);
createGUI
(
part
);
setAutoSaveSettings
();
}
CervisiaShell
::~
CervisiaShell
()
...
...
@@ -81,7 +83,7 @@ void CervisiaShell::setupActions()
QString
hint
=
i18n
(
"Allows you to configure the toolbar"
);
action
->
setToolTip
(
hint
);
action
->
setWhatsThis
(
hint
);
action
=
KStdAction
::
keyBindings
(
this
,
SLOT
(
slotConfigureKeys
()),
actionCollection
()
);
hint
=
i18n
(
"Allows you to customize the keybindings"
);
...
...
@@ -134,9 +136,15 @@ void CervisiaShell::slotConfigureKeys()
void
CervisiaShell
::
slotConfigureToolBars
()
{
KEditToolbar
dlg
(
actionCollection
()
);
if
(
dlg
.
exec
()
)
createGUI
(
part
);
saveMainWindowSettings
(
KGlobal
::
config
(),
autoSaveGroup
()
);
KEditToolbar
dlg
(
factory
()
);
connect
(
&
dlg
,
SIGNAL
(
newToolbarConfig
()),
this
,
SLOT
(
slotNewToolbarConfig
()));
dlg
.
exec
();
}
void
CervisiaShell
::
slotNewToolbarConfig
()
{
applyMainWindowSettings
(
KGlobal
::
config
(),
autoSaveGroup
()
);
}
void
CervisiaShell
::
slotChangeFilterStatus
(
QString
status
)
...
...
cervisiashell.h
View file @
60af5443
/*
/*
* Copyright (C) 1999-2002 Bernd Gehrmann
* bernd@mail.berlios.de
*
...
...
@@ -40,8 +40,9 @@ public slots:
void
slotConfigureKeys
();
void
slotConfigureToolBars
();
void
slotExit
();
protected
slots
:
void
slotNewToolbarConfig
();
void
slotChangeFilterStatus
(
QString
status
);
protected:
...
...
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