file_chooser_extra_widget.cc
changeset 173 8339178ae43d
child 174 95872af46fc4
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/file_chooser_extra_widget.cc	Wed Oct 25 17:50:02 2006 +0000
     1.3 @@ -0,0 +1,46 @@
     1.4 +#include "file_chooser_extra_widget.h"
     1.5 +#include "mapstorage.h"
     1.6 +
     1.7 +FileChooserExtraWidget::FileChooserExtraWidget(MapStorage* ms) :
     1.8 +  Gtk::Expander("_Options", true),
     1.9 +  lblGUIData("Save GUI specific data to:"),
    1.10 +  rbGUISection("_GUI section", true),
    1.11 +  rbConfFile("s_eparate .conf file", true)
    1.12 +{
    1.13 +  std::cout << "FileChooserExtraWidget()" << std::endl;
    1.14 +
    1.15 +  Gtk::RadioButtonGroup group = rbGUISection.get_group();
    1.16 +  rbConfFile.set_group(group);
    1.17 +
    1.18 +  /*
    1.19 +  switch (pMapStorage->getGUIDataSaveLocation())
    1.20 +  {
    1.21 +    case GUI_SECTION:
    1.22 +      break;
    1.23 +    case CONF_FILE:
    1.24 +      break;
    1.25 +  }
    1.26 +  */
    1.27 +
    1.28 +  add(box);
    1.29 +  box.pack_start(lblGUIData, Gtk::PACK_SHRINK);
    1.30 +  box.pack_start(rbGUISection, Gtk::PACK_SHRINK);
    1.31 +  box.pack_start(rbConfFile, Gtk::PACK_SHRINK);
    1.32 +
    1.33 +  rbConfFile.signal_group_changed().connect(
    1.34 +      sigc::mem_fun(*this, &FileChooserExtraWidget::onRbToggled));
    1.35 +  rbGUISection.signal_group_changed().connect(
    1.36 +      sigc::mem_fun(*this, &FileChooserExtraWidget::onRbToggled));
    1.37 +
    1.38 +  show_all_children();
    1.39 +}
    1.40 +
    1.41 +void FileChooserExtraWidget::onRbToggled()
    1.42 +{
    1.43 +  std::cout << "onRbToggled()" << std::endl;
    1.44 +}
    1.45 +
    1.46 +FileChooserExtraWidget::~FileChooserExtraWidget()
    1.47 +{
    1.48 +  std::cout << "~FileChooserExtraWidget()" << std::endl;
    1.49 +}