[education/rkward/devel/workspace_output] rkward: Place create output action in UI

Thomas Friedrichsmeier null at kde.org
Wed Mar 9 17:13:02 GMT 2022


Git commit 8f902226d93b802833b81e16bb9e948943e6d61e by Thomas Friedrichsmeier.
Committed on 09/03/2022 at 17:12.
Pushed by tfry into branch 'devel/workspace_output'.

Place create output action in UI

M  +6    -0    rkward/rkward.cpp

https://invent.kde.org/education/rkward/commit/8f902226d93b802833b81e16bb9e948943e6d61e

diff --git a/rkward/rkward.cpp b/rkward/rkward.cpp
index 7356eb47..f5238cad 100644
--- a/rkward/rkward.cpp
+++ b/rkward/rkward.cpp
@@ -496,6 +496,11 @@ void RKWardMainWindow::initActions() {
 	new_command_editor->setText (i18n ("Script File"));
 	new_command_editor->setIcon (RKStandardIcons::getIcon (RKStandardIcons::WindowCommandEditor));
 
+	new_output = actionCollection ()->addAction("new_output", this, SLOT(slotNewOutput()));
+	new_output->setText(i18n("Output document"));
+	new_output->setIcon(RKStandardIcons::getIcon(RKStandardIcons::WindowOutput));
+	new_output->setStatusTip(i18n("Creates and activates a new output docuemnt"));
+
 	fileOpenScript = actionCollection()->addAction(KStandardAction::Open, "file_open_script", this, SLOT(slotOpenCommandEditor()));
 	actionCollection()->setDefaultShortcut(fileOpenScript, Qt::ControlModifier + Qt::AltModifier + Qt::Key_O);
 	fileOpenScript->setText(i18n("Open R Script File..."));
@@ -615,6 +620,7 @@ void RKWardMainWindow::initActions() {
 
 	new_any_action->addAction (new_data_frame);
 	new_any_action->addAction (new_command_editor);
+	new_any_action->addAction (new_output);
 
 	save_any_action = new KActionMenu (QIcon::fromTheme("document-save"), i18n ("Save..."), this);
 	save_any_action->setDelayed (false);


More information about the rkward-tracker mailing list