[rkward-cvs] SF.net SVN: rkward:[3018] trunk/rkward/rkward
tfry at users.sourceforge.net
tfry at users.sourceforge.net
Sun Sep 12 13:00:41 UTC 2010
Revision: 3018
http://rkward.svn.sourceforge.net/rkward/?rev=3018&view=rev
Author: tfry
Date: 2010-09-12 13:00:41 +0000 (Sun, 12 Sep 2010)
Log Message:
-----------
Append plot, and plot properties should also be enabled, if the history is empty (but not when the history is disabled)
Modified Paths:
--------------
trunk/rkward/rkward/settings/rksettingsmoduleoutput.h
trunk/rkward/rkward/windows/rkwindowcatcher.cpp
Modified: trunk/rkward/rkward/settings/rksettingsmoduleoutput.h
===================================================================
--- trunk/rkward/rkward/settings/rksettingsmoduleoutput.h 2010-09-12 02:02:38 UTC (rev 3017)
+++ trunk/rkward/rkward/settings/rksettingsmoduleoutput.h 2010-09-12 13:00:41 UTC (rev 3018)
@@ -48,6 +48,7 @@
static bool autoShow () { return auto_show; };
static bool autoRaise () { return auto_raise; };
+ static bool plotHistoryEnabled () { return graphics_hist_enable; };
public slots:
void boxChanged (int);
private:
Modified: trunk/rkward/rkward/windows/rkwindowcatcher.cpp
===================================================================
--- trunk/rkward/rkward/windows/rkwindowcatcher.cpp 2010-09-12 02:02:38 UTC (rev 3017)
+++ trunk/rkward/rkward/windows/rkwindowcatcher.cpp 2010-09-12 13:00:41 UTC (rev 3018)
@@ -26,6 +26,7 @@
#include <klocale.h>
#include "../rkwardapplication.h"
+#include "../settings/rksettingsmoduleoutput.h"
#include "rkworkplace.h"
#include "../misc/rkstandardicons.h"
#include "../debug.h"
@@ -465,11 +466,11 @@
plot_list_action->setCurrentItem (history_position - 1);
plot_list_action->setEnabled (history_length > 0);
- plot_force_append_action->setEnabled (history_length > 0);
+ plot_force_append_action->setEnabled (RKSettingsModuleOutput::plotHistoryEnabled ());
plot_remove_action->setEnabled (history_length > 0);
plot_clear_history_action->setEnabled (history_length > 0);
- plot_properties_action->setEnabled (history_length > 0);
+ plot_properties_action->setEnabled (RKSettingsModuleOutput::plotHistoryEnabled ());
}
void RKCaughtX11Window::setStatusMessage (const QString& message, RCommand *command) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the rkward-tracker
mailing list