diff options
author | David Robillard <d@drobilla.net> | 2020-11-29 18:31:45 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-11-29 18:31:45 +0100 |
commit | 98e2535b82ab601081a56c8a22d789d2da25cfd8 (patch) | |
tree | 5627e1219725342edd6aba36cd48ba24a256ba1c /src/PatchageModule.hpp | |
parent | 178d1cbe1dfc9e7b66c36cbb75590e1cee419174 (diff) | |
download | patchage-98e2535b82ab601081a56c8a22d789d2da25cfd8.tar.gz patchage-98e2535b82ab601081a56c8a22d789d2da25cfd8.tar.bz2 patchage-98e2535b82ab601081a56c8a22d789d2da25cfd8.zip |
Use more reasonable class names
Diffstat (limited to 'src/PatchageModule.hpp')
-rw-r--r-- | src/PatchageModule.hpp | 87 |
1 files changed, 0 insertions, 87 deletions
diff --git a/src/PatchageModule.hpp b/src/PatchageModule.hpp deleted file mode 100644 index 378f35ed..0000000 --- a/src/PatchageModule.hpp +++ /dev/null @@ -1,87 +0,0 @@ -/* This file is part of Patchage. - * Copyright 2007-2020 David Robillard <d@drobilla.net> - * - * Patchage is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free - * Software Foundation, either version 3 of the License, or (at your option) - * any later version. - * - * Patchage is distributed in the hope that it will be useful, but WITHOUT ANY - * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for details. - * - * You should have received a copy of the GNU General Public License - * along with Patchage. If not, see <http://www.gnu.org/licenses/>. - */ - -#ifndef PATCHAGE_PATCHAGEMODULE_HPP -#define PATCHAGE_PATCHAGEMODULE_HPP - -#include "ClientID.hpp" -#include "SignalDirection.hpp" -#include "warnings.hpp" - -PATCHAGE_DISABLE_GANV_WARNINGS -#include "ganv/Module.hpp" -#include "ganv/Port.hpp" -PATCHAGE_RESTORE_WARNINGS - -#include <gtkmm/menu_elems.h> - -#include <string> - -namespace patchage { - -struct PortID; - -class Patchage; -class PatchagePort; - -class PatchageModule : public Ganv::Module -{ -public: - PatchageModule(Patchage* app, - const std::string& name, - SignalDirection type, - ClientID id, - double x = 0, - double y = 0); - - PatchageModule(const PatchageModule&) = delete; - PatchageModule& operator=(const PatchageModule&) = delete; - - PatchageModule(PatchageModule&&) = delete; - PatchageModule& operator=(PatchageModule&&) = delete; - - ~PatchageModule() override; - - void split(); - void join(); - - bool show_menu(GdkEventButton* ev); - void update_menu(); - - PatchagePort* get_port(const PortID& id); - - void load_location(); - void menu_disconnect_all(); - void show_dialog() {} - void store_location(double x, double y); - - SignalDirection type() const { return _type; } - ClientID id() const { return _id; } - const std::string& name() const { return _name; } - -protected: - bool on_event(GdkEvent* ev) override; - - Patchage* _app; - Gtk::Menu* _menu; - std::string _name; - SignalDirection _type; - ClientID _id; -}; - -} // namespace patchage - -#endif // PATCHAGE_PATCHAGEMODULE_HPP |