X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Fsrc%2Fgtkmm%2Fdockable.h;fp=synfig-studio%2Fsrc%2Fgtkmm%2Fdockable.h;h=0000000000000000000000000000000000000000;hb=254e11cc9af58ba7978466da54cbebf69096eb91;hp=e1a2ad1eab8ad580f7e55b4fb6ee46252efc4de2;hpb=c11c4966980ed301f40b3dcc24e4fbec525f93e3;p=synfig.git diff --git a/synfig-studio/src/gtkmm/dockable.h b/synfig-studio/src/gtkmm/dockable.h deleted file mode 100644 index e1a2ad1..0000000 --- a/synfig-studio/src/gtkmm/dockable.h +++ /dev/null @@ -1,144 +0,0 @@ -/* === S Y N F I G ========================================================= */ -/*! \file dockable.h -** \brief Template Header -** -** $Id$ -** -** \legal -** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley -** -** 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_DOCKABLE_H -#define __SYNFIG_STUDIO_DOCKABLE_H - -/* === H E A D E R S ======================================================= */ - -#include -#include -#include "dialogsettings.h" -#include -#include -#include -#include -#include -#include -#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 DockManager; -class DockBook; - -class Dockable : public Gtk::Table -{ - friend class DockManager; - friend class DockBook; - - - sigc::signal signal_stock_id_changed_; - sigc::connection prev_widget_delete_connection; -protected: - -// DialogSettings dialog_settings; - - -private: - - Gtk::Toolbar *toolbar_; - - synfig::String name_; - synfig::String local_name_; - Gtk::Tooltips tooltips_; - Gtk::Frame frame_; - Gtk::Label title_label_; - //Gtk::HBox button_box_; - Gtk::HBox header_box_; - - //Gtk::HandleBox handle_box_; - Gtk::ScrolledWindow *scrolled_; - Gtk::Widget *prev_widget_; - - bool use_scrolled_; - - Gtk::StockID stock_id_; - - DockBook* parent_; - - bool dnd_success_; - -public: - - void set_toolbar(Gtk::Toolbar& toolbar); - - void set_use_scrolled(bool x) { use_scrolled_=x; } - - Dockable(const synfig::String& name,const synfig::String& local_name,Gtk::StockID stock_id_=Gtk::StockID(" ")); - ~Dockable(); - - sigc::signal& signal_stock_id_changed() { return signal_stock_id_changed_; } - - const synfig::String& get_name()const { return name_; } - const synfig::String& get_local_name()const { return local_name_; } - - const Gtk::StockID& get_stock_id()const { return stock_id_; } - void set_stock_id(Gtk::StockID x) { stock_id_=x; signal_stock_id_changed()(); } - - void set_local_name(const synfig::String&); - - void clear(); - - Gtk::Tooltips& get_tooltips() { return tooltips_; } - - //DialogSettings& settings() { return dialog_settings; } - //const DialogSettings& settings()const { return dialog_settings; } - - void add(Gtk::Widget& x); - - Gtk::ToolButton* add_button(const Gtk::StockID& stock_id, const synfig::String& tooltip=synfig::String()); - - void detach(); - - void present(); - - void attach_dnd_to(Gtk::Widget& widget); - - bool clear_previous(); - virtual Gtk::Widget* create_tab_label(); - -private: - - void on_drag_data_get(const Glib::RefPtr&, Gtk::SelectionData& selection_data, guint info, guint time); - void on_drag_end(const Glib::RefPtr&context); - void on_drag_begin(const Glib::RefPtr&context); - void on_drag_data_received(const Glib::RefPtr& context, int, int, const Gtk::SelectionData& selection_data, guint, guint time); - -}; // END of studio::Dockable - -}; // END of namespace studio - -/* === E N D =============================================================== */ - -#endif