From f913f3049982d92b0eebbb4f3d2bb03e5e508d33 Mon Sep 17 00:00:00 2001 From: Ichthyostega Date: Thu, 2 Feb 2017 20:51:03 +0100 Subject: [PATCH] UI-top-level: reshape Actions start with drilling down unnecessary includes --- src/gui/workspace/actions.cpp | 26 ++++++++---- wiki/thinkPad.ichthyo.mm | 77 ++++++++++++++++++++++++++++++++++- 2 files changed, 93 insertions(+), 10 deletions(-) diff --git a/src/gui/workspace/actions.cpp b/src/gui/workspace/actions.cpp index b51cf5462..763ac9408 100644 --- a/src/gui/workspace/actions.cpp +++ b/src/gui/workspace/actions.cpp @@ -42,19 +42,27 @@ #include -using namespace Gtk; ////////////////////////////////////////////////////////////////////////////////TICKET #1071 no wildcard includes please! -using namespace Glib; ////////////////////////////////////////////////////////////////////////////////TICKET #1071 no wildcard includes please! -using namespace sigc; ////////////////////////////////////////////////////////////////////////////////TICKET #1071 no wildcard includes please! -using namespace gui; ////////////////////////////////////////////////////////////////////////////////TICKET #1071 no wildcard includes please! - -using boost::algorithm::is_any_of; -using boost::algorithm::split; -using ::util::_Fmt; -using std::vector; namespace gui { namespace workspace { + using boost::algorithm::is_any_of; + using boost::algorithm::split; + using Gtk::Action; + using Gtk::ActionGroup; + using Gtk::ToggleAction; + using Gtk::AboutDialog; + using Gtk::AccelKey; + using Gtk::StockID; + using Gtk::Main; /////////////////////////////////////////////////////////////////////////////////////TICKET #1032 replace Main -> Application + using sigc::mem_fun; + using Glib::ustring; + using ::util::_Fmt; + using std::vector; + + namespace Stock = Gtk::Stock; + + Actions::Actions (GetWindow how_to_access_current_window) : getWorkspaceWindow(how_to_access_current_window) , is_updating_action_state(false) diff --git a/wiki/thinkPad.ichthyo.mm b/wiki/thinkPad.ichthyo.mm index d4fb456bc..9572b88dc 100644 --- a/wiki/thinkPad.ichthyo.mm +++ b/wiki/thinkPad.ichthyo.mm @@ -1856,7 +1856,7 @@ - + @@ -1864,6 +1864,81 @@ + + + + + + + + + + + + + + +

+ ...und der wird in der Tat an vielen Stellen includiert +

+

+ und verwendet, und das ist auch gut so +

+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +