1 /* === S I N F G =========================================================== */
2 /*! \file dialog_tooloptions.cpp
3 ** \brief Template File
5 ** $Id: dialog_tooloptions.cpp,v 1.1.1.1 2005/01/07 03:34:36 darco Exp $
8 ** Copyright (c) 2002 Robert B. Quattlebaum Jr.
10 ** This software and associated documentation
11 ** are CONFIDENTIAL and PROPRIETARY property of
12 ** the above-mentioned copyright holder.
14 ** You may not copy, print, publish, or in any
15 ** other way distribute this software without
16 ** a prior written agreement with
17 ** the copyright holder.
20 /* ========================================================================= */
22 /* === H E A D E R S ======================================================= */
31 #include <gtkmm/label.h>
32 #include <gtkmm/scrolledwindow.h>
33 #include <sinfg/general.h>
34 #include "dialog_tooloptions.h"
37 /* === U S I N G =========================================================== */
41 using namespace sinfg;
42 using namespace studio;
44 /* === M A C R O S ========================================================= */
46 /* === G L O B A L S ======================================================= */
48 /* === P R O C E D U R E S ================================================= */
50 /* === M E T H O D S ======================================================= */
52 Dialog_ToolOptions::Dialog_ToolOptions():
53 Dockable("tool_options",_("Tool Options"),Gtk::StockID("sinfg-normal")),
54 empty_label(_("This tool has no options"))
56 //scrolled_.add(sub_vbox_);
57 //scrolled_.set_policy(Gtk::POLICY_AUTOMATIC,Gtk::POLICY_AUTOMATIC);
59 //get_vbox()->pack_start(scrolled_);
63 set_widget(empty_label);
67 Dialog_ToolOptions::~Dialog_ToolOptions()
72 Dialog_ToolOptions::clear()
75 set_local_name(_("Tool Options"));
77 set_widget(empty_label);
80 set_stock_id(Gtk::StockID("sinfg-normal"));
84 Dialog_ToolOptions::set_widget(Gtk::Widget&x)
86 if(!sub_vbox_.children().empty())
87 sub_vbox_.children().clear();
90 sub_vbox_.pack_start(x,false,false);
95 Dialog_ToolOptions::set_name(const sinfg::String& name)
97 set_stock_id(Gtk::StockID("sinfg-"+name));