[rkward-cvs] rkward/rkward/settings rksettingsmodulewatch.cpp,1.9,1.10 rksettingsmodulewatch.h,1.3,1.4
Thomas Friedrichsmeier
tfry at users.sourceforge.net
Fri May 5 13:05:33 UTC 2006
Update of /cvsroot/rkward/rkward/rkward/settings
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28994/rkward/settings
Modified Files:
rksettingsmodulewatch.cpp rksettingsmodulewatch.h
Log Message:
Show command output immediately in command log
Index: rksettingsmodulewatch.cpp
===================================================================
RCS file: /cvsroot/rkward/rkward/rkward/settings/rksettingsmodulewatch.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** rksettingsmodulewatch.cpp 24 Oct 2005 19:29:43 -0000 1.9
--- rksettingsmodulewatch.cpp 5 May 2006 13:05:31 -0000 1.10
***************
*** 62,66 ****
if (command->type () & RCommand::EmptyCommand) return false;
!
if (command->type () & RCommand::Sync) {
return (sync_filter & ShowOutput);
--- 62,67 ----
if (command->type () & RCommand::EmptyCommand) return false;
! if (!shouldShowInput (command)) return false;
!
if (command->type () & RCommand::Sync) {
return (sync_filter & ShowOutput);
***************
*** 151,154 ****
--- 152,157 ----
vbox->addStretch ();
+
+ validateGUI ();
}
***************
*** 205,211 ****
--- 208,226 ----
void RKSettingsModuleWatch::changedSetting (int) {
RK_TRACE (SETTINGS);
+
+ validateGUI ();
+
change ();
}
+ void RKSettingsModuleWatch::validateGUI () {
+ RK_TRACE (SETTINGS);
+
+ user_filter_boxes->output->setEnabled (user_filter_boxes->input->isChecked ());
+ plugin_filter_boxes->output->setEnabled (plugin_filter_boxes->input->isChecked ());
+ app_filter_boxes->output->setEnabled (app_filter_boxes->input->isChecked ());
+ sync_filter_boxes->output->setEnabled (sync_filter_boxes->input->isChecked ());
+ }
+
//static
void RKSettingsModuleWatch::saveSettings (KConfig *config) {
Index: rksettingsmodulewatch.h
===================================================================
RCS file: /cvsroot/rkward/rkward/rkward/settings/rksettingsmodulewatch.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** rksettingsmodulewatch.h 24 Oct 2005 19:29:43 -0000 1.3
--- rksettingsmodulewatch.h 5 May 2006 13:05:31 -0000 1.4
***************
*** 44,47 ****
--- 44,48 ----
void applyChanges ();
void save (KConfig *config);
+ void validateGUI ();
static bool shouldShowInput (RCommand *command);
More information about the rkward-tracker
mailing list