1 /* === S Y N F I G ========================================================= */
2 /*! \file dialog_tooloptions.cpp
3 ** \brief Template File
8 ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
9 ** Copyright (c) 2009 Nikita Kitaev
11 ** This package is free software; you can redistribute it and/or
12 ** modify it under the terms of the GNU General Public License as
13 ** published by the Free Software Foundation; either version 2 of
14 ** the License, or (at your option) any later version.
16 ** This package is distributed in the hope that it will be useful,
17 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
18 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 ** General Public License for more details.
22 /* ========================================================================= */
24 /* === H E A D E R S ======================================================= */
33 #include <gtkmm/label.h>
34 #include <gtkmm/scrolledwindow.h>
35 #include <synfig/general.h>
36 #include "dialog_tooloptions.h"
41 /* === U S I N G =========================================================== */
45 using namespace synfig;
46 using namespace studio;
48 /* === M A C R O S ========================================================= */
50 /* === G L O B A L S ======================================================= */
52 /* === P R O C E D U R E S ================================================= */
54 /* === M E T H O D S ======================================================= */
56 Dialog_ToolOptions::Dialog_ToolOptions():
57 Dockable("tool_options",_("Tool Options"),Gtk::StockID("synfig-about")),
58 empty_label(_("This tool has no options"))
60 //scrolled_.add(sub_vbox_);
61 //scrolled_.set_policy(Gtk::POLICY_AUTOMATIC,Gtk::POLICY_AUTOMATIC);
63 //get_vbox()->pack_start(scrolled_);
67 set_widget(empty_label);
71 Dialog_ToolOptions::~Dialog_ToolOptions()
76 Dialog_ToolOptions::clear()
79 set_local_name(_("Tool Options"));
81 set_widget(empty_label);
84 set_stock_id(Gtk::StockID("synfig-about"));
88 Dialog_ToolOptions::set_widget(Gtk::Widget&x)
90 if(!sub_vbox_.children().empty())
91 sub_vbox_.children().clear();
94 sub_vbox_.pack_start(x,false,false);
99 Dialog_ToolOptions::set_name(const synfig::String& name)
101 set_stock_id(Gtk::StockID("synfig-"+name));