From 70f4bcdde45e94dbe27300a5069994aebc523cab Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 28 Apr 2012 01:10:26 +0000 Subject: Remove using declarations from headers. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4288 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/PatchCanvas.hpp | 48 +++++++++++++++++++----------------------------- 1 file changed, 19 insertions(+), 29 deletions(-) (limited to 'src/gui/PatchCanvas.hpp') diff --git a/src/gui/PatchCanvas.hpp b/src/gui/PatchCanvas.hpp index ab29863a..2b97d650 100644 --- a/src/gui/PatchCanvas.hpp +++ b/src/gui/PatchCanvas.hpp @@ -34,19 +34,9 @@ #include "ingen/GraphObject.hpp" #include "NodeModule.hpp" -using namespace Ganv; -using namespace Ingen::Shared; - -using std::string; -using Ganv::Port; -using Ingen::Client::ConnectionModel; -using Ingen::Client::NodeModel; -using Ingen::Client::PortModel; - namespace Ingen { namespace Client { class PatchModel; } -using Ingen::Client::PatchModel; namespace GUI { @@ -59,10 +49,10 @@ class NodeModule; class PatchCanvas : public Ganv::Canvas { public: - PatchCanvas(App& app, - SharedPtr patch, - int width, - int height); + PatchCanvas(App& app, + SharedPtr patch, + int width, + int height); virtual ~PatchCanvas() {} @@ -73,13 +63,13 @@ public: void show_port_names(bool show); bool show_port_names() const { return _show_port_names; } - void add_plugin(SharedPtr pm); - void add_node(SharedPtr nm); - void remove_node(SharedPtr nm); - void add_port(SharedPtr pm); - void remove_port(SharedPtr pm); - void connection(SharedPtr cm); - void disconnection(SharedPtr cm); + void add_plugin(SharedPtr pm); + void add_node(SharedPtr nm); + void remove_node(SharedPtr nm); + void add_port(SharedPtr pm); + void remove_port(SharedPtr pm); + void connection(SharedPtr cm); + void disconnection(SharedPtr cm); void get_new_module_location(double& x, double& y); @@ -95,17 +85,17 @@ public: private: enum ControlType { NUMBER, BUTTON }; void generate_port_name( - const string& sym_base, string& sym, - const string& name_base, string& name); + const std::string& sym_base, std::string& sym, + const std::string& name_base, std::string& name); void menu_add_port( - const string& sym_base, const string& name_base, + const std::string& sym_base, const std::string& name_base, const Raul::URI& type, bool is_output); void menu_load_plugin(); void menu_new_patch(); void menu_load_patch(); - void load_plugin(WeakPtr plugin); + void load_plugin(WeakPtr plugin); void build_menus(); @@ -125,7 +115,7 @@ private: GraphObject::Properties get_initial_data(Resource::Graph ctx=Resource::DEFAULT); - Ganv::Port* get_port_view(SharedPtr port); + Ganv::Port* get_port_view(SharedPtr port); void connect(Ganv::Node* src, Ganv::Node* dst); @@ -133,10 +123,10 @@ private: void disconnect(Ganv::Node* src, Ganv::Node* dst); - App& _app; - SharedPtr _patch; + App& _app; + SharedPtr _patch; - typedef std::map, Ganv::Module*> Views; + typedef std::map, Ganv::Module*> Views; Views _views; int _auto_position_count; -- cgit v1.2.1