Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
SDK
Cervisia
Commits
8392939f
Commit
8392939f
authored
Jul 25, 2002
by
Christian Loose
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revived old filter status indicator in statusbar
svn path=/trunk/kdesdk/cervisia/; revision=168603
parent
67229cbb
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
0 deletions
+27
-0
cervisiapart.cpp
cervisiapart.cpp
+1
-0
cervisiapart.h
cervisiapart.h
+3
-0
cervisiashell.cpp
cervisiashell.cpp
+18
-0
cervisiashell.h
cervisiashell.h
+5
-0
No files found.
cervisiapart.cpp
View file @
8392939f
...
...
@@ -1533,6 +1533,7 @@ void CervisiaPart::setFilter()
// TODO: Find a new way to handle the status items as you can't do this with KParts yet
//filterLabel->setText(str);
emit
filterStatusChanged
(
str
);
}
...
...
cervisiapart.h
View file @
8392939f
...
...
@@ -60,6 +60,9 @@ public:
static
KAboutData
*
createAboutData
();
signals:
void
filterStatusChanged
(
QString
status
);
public
slots
:
virtual
bool
openFile
()
{
return
true
;
}
virtual
bool
openURL
(
const
KURL
&
);
...
...
cervisiashell.cpp
View file @
8392939f
...
...
@@ -14,6 +14,8 @@
#include "cervisiashell.h"
#include <qlabel.h>
#include <qtooltip.h>
#include <kapplication.h>
#include <kconfig.h>
#include <kedittoolbar.h>
...
...
@@ -36,6 +38,17 @@ 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
());
filterLabel
->
setText
(
""
);
QToolTip
::
add
(
filterLabel
,
i18n
(
"F - All files are hidden, the tree shows only directories
\n
"
"N - All up-to-date files are hidden
\n
"
"R - All removed files are hidden"
));
statusBar
()
->
addWidget
(
filterLabel
,
0
,
true
);
connect
(
part
,
SIGNAL
(
filterStatusChanged
(
QString
)
),
this
,
SLOT
(
slotChangeFilterStatus
(
QString
)
)
);
//
// Magic needed for status texts
...
...
@@ -140,6 +153,11 @@ void CervisiaShell::slotConfigureToolBars()
createGUI
(
part
);
}
void
CervisiaShell
::
slotChangeFilterStatus
(
QString
status
)
{
filterLabel
->
setText
(
status
);
}
void
CervisiaShell
::
slotExit
()
{
(
void
)
queryExit
();
...
...
cervisiashell.h
View file @
8392939f
...
...
@@ -17,6 +17,7 @@
#include <kparts/mainwindow.h>
class
QLabel
;
class
CervisiaPart
;
class
KRecentFilesAction
;
...
...
@@ -40,6 +41,9 @@ public slots:
void
slotConfigureKeys
();
void
slotConfigureToolBars
();
void
slotExit
();
protected
slots
:
void
slotChangeFilterStatus
(
QString
status
);
protected:
void
setupActions
();
...
...
@@ -50,6 +54,7 @@ protected:
private:
CervisiaPart
*
part
;
QLabel
*
filterLabel
;
};
...
...
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