diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/App.cpp | 6 | ||||
-rw-r--r-- | src/gui/BreadCrumbs.cpp | 6 | ||||
-rw-r--r-- | src/gui/BreadCrumbs.hpp | 6 | ||||
-rw-r--r-- | src/gui/ConnectWindow.cpp | 6 | ||||
-rw-r--r-- | src/gui/GraphPortModule.cpp | 7 | ||||
-rw-r--r-- | src/gui/GraphPortModule.hpp | 2 | ||||
-rw-r--r-- | src/gui/GraphWindow.cpp | 6 | ||||
-rw-r--r-- | src/gui/MessagesWindow.cpp | 7 | ||||
-rw-r--r-- | src/gui/MessagesWindow.hpp | 6 | ||||
-rw-r--r-- | src/gui/NewSubgraphWindow.cpp | 6 | ||||
-rw-r--r-- | src/gui/NodeMenu.cpp | 6 | ||||
-rw-r--r-- | src/gui/NodeModule.hpp | 6 | ||||
-rw-r--r-- | src/gui/ObjectMenu.cpp | 6 | ||||
-rw-r--r-- | src/gui/PluginMenu.cpp | 6 | ||||
-rw-r--r-- | src/gui/RDFS.cpp | 8 | ||||
-rw-r--r-- | src/gui/RDFS.hpp | 7 | ||||
-rw-r--r-- | src/gui/Style.cpp | 6 | ||||
-rw-r--r-- | src/gui/URIEntry.cpp | 6 | ||||
-rw-r--r-- | src/gui/URIEntry.hpp | 6 | ||||
-rw-r--r-- | src/gui/WidgetFactory.cpp | 6 | ||||
-rw-r--r-- | src/gui/WidgetFactory.hpp | 6 | ||||
-rw-r--r-- | src/gui/Window.hpp | 7 | ||||
-rw-r--r-- | src/gui/ingen_gui.cpp | 6 | ||||
-rw-r--r-- | src/gui/rgba.hpp | 6 |
24 files changed, 47 insertions, 99 deletions
diff --git a/src/gui/App.cpp b/src/gui/App.cpp index 7ec6014e..23b77df5 100644 --- a/src/gui/App.cpp +++ b/src/gui/App.cpp @@ -74,8 +74,7 @@ #include <utility> #include <variant> -namespace ingen { -namespace gui { +namespace ingen::gui { Gtk::Main* App::_main = nullptr; @@ -502,5 +501,4 @@ App::sample_rate() const return _sample_rate; } -} // namespace gui -} // namespace ingen +} // namespace ingen::gui diff --git a/src/gui/BreadCrumbs.cpp b/src/gui/BreadCrumbs.cpp index 942b88f5..2033457d 100644 --- a/src/gui/BreadCrumbs.cpp +++ b/src/gui/BreadCrumbs.cpp @@ -29,8 +29,7 @@ #include <string> #include <variant> -namespace ingen { -namespace gui { +namespace ingen::gui { using std::string; @@ -227,5 +226,4 @@ BreadCrumbs::object_moved(const raul::Path& old_path, const raul::Path& new_path } } -} // namespace gui -} // namespace ingen +} // namespace ingen::gui diff --git a/src/gui/BreadCrumbs.hpp b/src/gui/BreadCrumbs.hpp index 9ed6f04a..e7fffc18 100644 --- a/src/gui/BreadCrumbs.hpp +++ b/src/gui/BreadCrumbs.hpp @@ -35,8 +35,7 @@ #include <memory> #include <string> -namespace ingen { -namespace gui { +namespace ingen::gui { class App; @@ -122,7 +121,6 @@ private: std::list<BreadCrumb*> _breadcrumbs; }; -} // namespace gui -} // namespace ingen +} // namespace ingen::gui #endif // INGEN_GUI_BREADCRUMBS_HPP diff --git a/src/gui/ConnectWindow.cpp b/src/gui/ConnectWindow.cpp index 4569acec..2fd3be8c 100644 --- a/src/gui/ConnectWindow.cpp +++ b/src/gui/ConnectWindow.cpp @@ -63,8 +63,7 @@ #include <utility> #include <variant> -namespace ingen { -namespace gui { +namespace ingen::gui { ConnectWindow::ConnectWindow(BaseObjectType* cobject, Glib::RefPtr<Gtk::Builder> xml) @@ -571,5 +570,4 @@ ConnectWindow::quit() Gtk::Main::quit(); } -} // namespace gui -} // namespace ingen +} // namespace ingen::gui diff --git a/src/gui/GraphPortModule.cpp b/src/gui/GraphPortModule.cpp index 4c161f3f..ccbfbebf 100644 --- a/src/gui/GraphPortModule.cpp +++ b/src/gui/GraphPortModule.cpp @@ -42,9 +42,7 @@ #include <string> #include <utility> -namespace ingen { - -namespace gui { +namespace ingen::gui { GraphPortModule::GraphPortModule( GraphCanvas& canvas, @@ -169,5 +167,4 @@ GraphPortModule::set_selected(gboolean b) } } -} // namespace gui -} // namespace ingen +} // namespace ingen::gui diff --git a/src/gui/GraphPortModule.hpp b/src/gui/GraphPortModule.hpp index b02f63a1..56b4521a 100644 --- a/src/gui/GraphPortModule.hpp +++ b/src/gui/GraphPortModule.hpp @@ -33,9 +33,7 @@ class Atom; namespace client { class PortModel; } // namespace client -} // namespace ingen -namespace ingen { namespace gui { class App; diff --git a/src/gui/GraphWindow.cpp b/src/gui/GraphWindow.cpp index 94df34e0..4efaf4ae 100644 --- a/src/gui/GraphWindow.cpp +++ b/src/gui/GraphWindow.cpp @@ -26,8 +26,7 @@ #include <gtkmm/builder.h> #include <gtkmm/layout.h> -namespace ingen { -namespace gui { +namespace ingen::gui { GraphWindow::GraphWindow(BaseObjectType* cobject, const Glib::RefPtr<Gtk::Builder>& xml) @@ -80,5 +79,4 @@ GraphWindow::on_key_press_event(GdkEventKey* event) return Gtk::Window::on_key_press_event(event); } -} // namespace gui -} // namespace ingen +} // namespace ingen::gui diff --git a/src/gui/MessagesWindow.cpp b/src/gui/MessagesWindow.cpp index 9127ad61..7a382d51 100644 --- a/src/gui/MessagesWindow.cpp +++ b/src/gui/MessagesWindow.cpp @@ -39,8 +39,8 @@ #include <string> #include <utility> -namespace ingen { -namespace gui { +namespace ingen::gui { + using std::string; MessagesWindow::MessagesWindow(BaseObjectType* cobject, @@ -156,5 +156,4 @@ MessagesWindow::clear_clicked() _clear_button->set_sensitive(false); } -} // namespace gui -} // namespace ingen +} // namespace ingen::gui diff --git a/src/gui/MessagesWindow.hpp b/src/gui/MessagesWindow.hpp index 45301889..97b6187c 100644 --- a/src/gui/MessagesWindow.hpp +++ b/src/gui/MessagesWindow.hpp @@ -37,8 +37,7 @@ class Button; class TextView; } // namespace Gtk -namespace ingen { -namespace gui { +namespace ingen::gui { class App; @@ -75,7 +74,6 @@ private: std::map< LV2_URID, Glib::RefPtr<Gtk::TextTag> > _tags; }; -} // namespace gui -} // namespace ingen +} // namespace ingen::gui #endif // INGEN_GUI_MESSAGESWINDOW_HPP diff --git a/src/gui/NewSubgraphWindow.cpp b/src/gui/NewSubgraphWindow.cpp index 9b6c4a1a..086159a5 100644 --- a/src/gui/NewSubgraphWindow.cpp +++ b/src/gui/NewSubgraphWindow.cpp @@ -47,8 +47,7 @@ #include <string> #include <utility> -namespace ingen { -namespace gui { +namespace ingen::gui { NewSubgraphWindow::NewSubgraphWindow(BaseObjectType* cobject, const Glib::RefPtr<Gtk::Builder>& xml) @@ -138,5 +137,4 @@ NewSubgraphWindow::cancel_clicked() hide(); } -} // namespace gui -} // namespace ingen +} // namespace ingen::gui diff --git a/src/gui/NodeMenu.cpp b/src/gui/NodeMenu.cpp index faddaae7..2ebc223d 100644 --- a/src/gui/NodeMenu.cpp +++ b/src/gui/NodeMenu.cpp @@ -62,8 +62,7 @@ #include <utility> #include <vector> -namespace ingen { -namespace gui { +namespace ingen::gui { NodeMenu::NodeMenu(BaseObjectType* cobject, const Glib::RefPtr<Gtk::Builder>& xml) @@ -277,5 +276,4 @@ NodeMenu::has_control_inputs() return false; } -} // namespace gui -} // namespace ingen +} // namespace ingen::gui diff --git a/src/gui/NodeModule.hpp b/src/gui/NodeModule.hpp index f94a10e9..226dccd1 100644 --- a/src/gui/NodeModule.hpp +++ b/src/gui/NodeModule.hpp @@ -42,8 +42,7 @@ class PortModel; } // namespace client } // namespace ingen -namespace ingen { -namespace gui { +namespace ingen::gui { class App; class GraphCanvas; @@ -113,7 +112,6 @@ protected: bool _initialised{false}; }; -} // namespace gui -} // namespace ingen +} // namespace ingen::gui #endif // INGEN_GUI_NODEMODULE_HPP diff --git a/src/gui/ObjectMenu.cpp b/src/gui/ObjectMenu.cpp index 87f6f9e9..56055d1c 100644 --- a/src/gui/ObjectMenu.cpp +++ b/src/gui/ObjectMenu.cpp @@ -39,8 +39,7 @@ #include <cstdint> #include <memory> -namespace ingen { -namespace gui { +namespace ingen::gui { ObjectMenu::ObjectMenu(BaseObjectType* cobject, const Glib::RefPtr<Gtk::Builder>& xml) @@ -146,5 +145,4 @@ ObjectMenu::on_menu_properties() _app->window_factory()->present_properties(_object); } -} // namespace gui -} // namespace ingen +} // namespace ingen::gui diff --git a/src/gui/PluginMenu.cpp b/src/gui/PluginMenu.cpp index 1993a7a7..ac3c3981 100644 --- a/src/gui/PluginMenu.cpp +++ b/src/gui/PluginMenu.cpp @@ -32,8 +32,7 @@ #include <memory> #include <utility> -namespace ingen { -namespace gui { +namespace ingen::gui { PluginMenu::PluginMenu(ingen::World& world) : _world(world) @@ -183,5 +182,4 @@ PluginMenu::load_plugin(const std::weak_ptr<client::PluginModel>& weak_plugin) signal_load_plugin.emit(weak_plugin); } -} // namespace gui -} // namespace ingen +} // namespace ingen::gui diff --git a/src/gui/RDFS.cpp b/src/gui/RDFS.cpp index 3a277950..bba8c31f 100644 --- a/src/gui/RDFS.cpp +++ b/src/gui/RDFS.cpp @@ -26,9 +26,7 @@ #include <utility> -namespace ingen { -namespace gui { -namespace rdfs { +namespace ingen::gui::rdfs { std::string label(World& world, const LilvNode* node) @@ -257,6 +255,4 @@ is_a(World& world, const LilvNode* inst, const LilvNode* klass) return is_instance; } -} // namespace rdfs -} // namespace gui -} // namespace ingen +} // namespace ingen::gui::rdfs diff --git a/src/gui/RDFS.hpp b/src/gui/RDFS.hpp index 9a212dff..ad4e22e8 100644 --- a/src/gui/RDFS.hpp +++ b/src/gui/RDFS.hpp @@ -33,9 +33,7 @@ namespace client { class ObjectModel; } // namespace client -namespace gui { - -namespace rdfs { +namespace gui::rdfs { /** Set of URIs. */ using URISet = std::set<URI>; @@ -79,8 +77,7 @@ URISet range(World& world, const LilvNode* prop, bool recursive); /** Return true iff `inst` is-a `klass`. */ bool is_a(World& world, const LilvNode* inst, const LilvNode* klass); -} // namespace rdfs -} // namespace gui +} // namespace gui::rdfs } // namespace ingen #endif // INGEN_GUI_RDF_HPP diff --git a/src/gui/Style.cpp b/src/gui/Style.cpp index bce98648..9a9e7478 100644 --- a/src/gui/Style.cpp +++ b/src/gui/Style.cpp @@ -23,8 +23,7 @@ #include <string> -namespace ingen { -namespace gui { +namespace ingen::gui { Style::Style(App& app) : _app(app) @@ -97,5 +96,4 @@ Style::get_port_color(const client::PortModel* p) return 0x555555FF; } -} // namespace gui -} // namespace ingen +} // namespace ingen::gui diff --git a/src/gui/URIEntry.cpp b/src/gui/URIEntry.cpp index 4ae8da10..d701e3a2 100644 --- a/src/gui/URIEntry.cpp +++ b/src/gui/URIEntry.cpp @@ -35,8 +35,7 @@ #include <map> #include <utility> -namespace ingen { -namespace gui { +namespace ingen::gui { URIEntry::URIEntry(App* app, std::set<URI> types, const std::string& value) : Gtk::HBox(false, 4) @@ -203,5 +202,4 @@ URIEntry::menu_button_event(GdkEvent* ev) return true; } -} // namespace gui -} // namespace ingen +} // namespace ingen::gui diff --git a/src/gui/URIEntry.hpp b/src/gui/URIEntry.hpp index 04dfaa41..52c9db66 100644 --- a/src/gui/URIEntry.hpp +++ b/src/gui/URIEntry.hpp @@ -34,8 +34,7 @@ class Button; class Menu; } // namespace Gtk -namespace ingen { -namespace gui { +namespace ingen::gui { class App; @@ -73,7 +72,6 @@ private: Gtk::Entry* _entry; }; -} // namespace gui -} // namespace ingen +} // namespace ingen::gui #endif // INGEN_GUI_URI_ENTRY_HPP diff --git a/src/gui/WidgetFactory.cpp b/src/gui/WidgetFactory.cpp index d70a5084..dc08dbde 100644 --- a/src/gui/WidgetFactory.cpp +++ b/src/gui/WidgetFactory.cpp @@ -24,8 +24,7 @@ #include <stdexcept> #include <string> -namespace ingen { -namespace gui { +namespace ingen::gui { Glib::ustring WidgetFactory::ui_filename = ""; @@ -77,5 +76,4 @@ WidgetFactory::create(const std::string& toplevel_widget) return Gtk::Builder::create_from_file(ui_filename, toplevel_widget.c_str()); } -} // namespace gui -} // namespace ingen +} // namespace ingen::gui diff --git a/src/gui/WidgetFactory.hpp b/src/gui/WidgetFactory.hpp index d2f449ee..1c45fd6e 100644 --- a/src/gui/WidgetFactory.hpp +++ b/src/gui/WidgetFactory.hpp @@ -23,8 +23,7 @@ #include <string> -namespace ingen { -namespace gui { +namespace ingen::gui { /** Loads widgets from an XML description. * Purely static. @@ -54,7 +53,6 @@ private: static Glib::ustring ui_filename; }; -} // namespace gui -} // namespace ingen +} // namespace ingen::gui #endif // INGEN_GUI_WIDGETFACTORY_HPP diff --git a/src/gui/Window.hpp b/src/gui/Window.hpp index fa2016a8..756ba8f0 100644 --- a/src/gui/Window.hpp +++ b/src/gui/Window.hpp @@ -22,9 +22,7 @@ #include <gtkmm/dialog.h> #include <gtkmm/window.h> -namespace ingen { - -namespace gui { +namespace ingen::gui { class App; @@ -80,7 +78,6 @@ public: App* _app = nullptr; }; -} // namespace gui -} // namespace ingen +} // namespace ingen::gui #endif // INGEN_GUI_WINDOW_HPP diff --git a/src/gui/ingen_gui.cpp b/src/gui/ingen_gui.cpp index 329e098f..4c33c514 100644 --- a/src/gui/ingen_gui.cpp +++ b/src/gui/ingen_gui.cpp @@ -29,8 +29,7 @@ #include <memory> -namespace ingen { -namespace gui { +namespace ingen::gui { struct GUIModule : public Module { using SigClientInterface = client::SigClientInterface; @@ -63,8 +62,7 @@ struct GUIModule : public Module { std::shared_ptr<gui::App> app; }; -} // namespace gui -} // namespace ingen +} // namespace ingen::gui extern "C" { diff --git a/src/gui/rgba.hpp b/src/gui/rgba.hpp index 0d2c57aa..bb53205e 100644 --- a/src/gui/rgba.hpp +++ b/src/gui/rgba.hpp @@ -20,8 +20,7 @@ #include <cmath> #include <cstdint> -namespace ingen { -namespace gui { +namespace ingen::gui { inline uint32_t rgba_to_uint(uint8_t r, uint8_t g, uint8_t b, uint8_t a) @@ -53,7 +52,6 @@ rgba_interpolate(uint32_t c1, uint32_t c2, float f) mono_interpolate(RGBA_A(c1), RGBA_A(c2), f)); } -} // namespace gui -} // namespace ingen +} // namespace ingen::gui #endif // INGEN_GUI_RGBA_HPP |