X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Fsrc%2Fgtkmm%2Fhistorytreestore.h;fp=synfig-studio%2Fsrc%2Fgtkmm%2Fhistorytreestore.h;h=0000000000000000000000000000000000000000;hb=254e11cc9af58ba7978466da54cbebf69096eb91;hp=31a4b13aa1eb478b8637dd78a83897a94f5ab95b;hpb=c11c4966980ed301f40b3dcc24e4fbec525f93e3;p=synfig.git diff --git a/synfig-studio/src/gtkmm/historytreestore.h b/synfig-studio/src/gtkmm/historytreestore.h deleted file mode 100644 index 31a4b13..0000000 --- a/synfig-studio/src/gtkmm/historytreestore.h +++ /dev/null @@ -1,172 +0,0 @@ -/* === S Y N F I G ========================================================= */ -/*! \file historytreestore.h -** \brief Template Header -** -** $Id$ -** -** \legal -** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley -** Copyright (c) 2008 Chris Moore -** -** This package 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 2 of -** the License, or (at your option) any later version. -** -** This package 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 more details. -** \endlegal -*/ -/* ========================================================================= */ - -/* === S T A R T =========================================================== */ - -#ifndef __SYNFIG_STUDIO_HISTORYTREESTORE_H -#define __SYNFIG_STUDIO_HISTORYTREESTORE_H - -/* === H E A D E R S ======================================================= */ - -#include -#include -#include -#include - -/* === M A C R O S ========================================================= */ - -/* === T Y P E D E F S ===================================================== */ - -/* === C L A S S E S & S T R U C T S ======================================= */ - -namespace studio { - -class Instance; - -class HistoryTreeStore : virtual public Gtk::TreeStore -{ - /* - -- ** -- P U B L I C T Y P E S --------------------------------------------- - */ - -public: - - class Model : public Gtk::TreeModel::ColumnRecord - { - public: - public: - Gtk::TreeModelColumn > action; - Gtk::TreeModelColumn name; - Gtk::TreeModelColumn > icon; - Gtk::TreeModelColumn is_active; - Gtk::TreeModelColumn is_undo; - Gtk::TreeModelColumn is_redo; - - Gtk::TreeModelColumn canvas_id; - Gtk::TreeModelColumn canvas; - - Model() - { - add(action); - add(name); - add(icon); - add(is_active); - add(is_undo); - add(is_redo); - add(canvas_id); - add(canvas); - } - }; - - /* - -- ** -- P U B L I C D A T A ------------------------------------------------ - */ - -public: - - const Model model; - - /* - -- ** -- P R I V A T E D A T A --------------------------------------------- - */ - -private: - - etl::loose_handle instance_; - Gtk::TreeIter curr_row; - - /* - -- ** -- P R I V A T E M E T H O D S --------------------------------------- - */ - -private: - - /* - -- ** -- P R I V A T E D A T A --------------------------------------------- - */ - -private: - - sigc::signal signal_undo_tree_changed_; - - /* - -- ** -- S I G N A L I N T E R F A C E S ----------------------------------- - */ - -public: - - sigc::signal& signal_undo_tree_changed() { return signal_undo_tree_changed_; } - - /* - -- ** -- S I G N A L T E R M I N A L S ------------------------------------- - */ - -private: - - void on_undo(); - - void on_redo(); - - void on_undo_stack_cleared(); - - void on_redo_stack_cleared(); - - void on_new_action(etl::handle action); - - void on_action_status_changed(etl::handle action); - - /* - -- ** -- P U B L I C M E T H O D S ----------------------------------------- - */ - -public: - - HistoryTreeStore(etl::loose_handle instance_); - ~HistoryTreeStore(); - - etl::loose_handle instance() { return instance_; } - etl::loose_handle instance()const { return instance_; } - - void rebuild(); - - void refresh() { rebuild(); } - - void insert_action(Gtk::TreeRow row,etl::handle action, bool is_active=true, bool is_undo=true, bool is_redo=false); - - static bool search_func(const Glib::RefPtr&,int,const Glib::ustring&,const TreeModel::iterator&); - - /* - -- ** -- P R O T E C T E D M E T H O D S ----------------------------------- - */ - -public: - - static Glib::RefPtr create(etl::loose_handle instance); - -}; // END of class HistoryTreeStore - -}; // END of namespace studio - -/* === E N D =============================================================== */ - -#endif