Added two new classes.
1 #include "file_chooser_extra_widget.h"
2 #include "mapstorage.h"
4 FileChooserExtraWidget::FileChooserExtraWidget(MapStorage* ms) :
5 Gtk::Expander("_Options", true),
6 lblGUIData("Save GUI specific data to:"),
7 rbGUISection("_GUI section", true),
8 rbConfFile("s_eparate .conf file", true)
10 std::cout << "FileChooserExtraWidget()" << std::endl;
12 Gtk::RadioButtonGroup group = rbGUISection.get_group();
13 rbConfFile.set_group(group);
16 switch (pMapStorage->getGUIDataSaveLocation())
26 box.pack_start(lblGUIData, Gtk::PACK_SHRINK);
27 box.pack_start(rbGUISection, Gtk::PACK_SHRINK);
28 box.pack_start(rbConfFile, Gtk::PACK_SHRINK);
30 rbConfFile.signal_group_changed().connect(
31 sigc::mem_fun(*this, &FileChooserExtraWidget::onRbToggled));
32 rbGUISection.signal_group_changed().connect(
33 sigc::mem_fun(*this, &FileChooserExtraWidget::onRbToggled));
38 void FileChooserExtraWidget::onRbToggled()
40 std::cout << "onRbToggled()" << std::endl;
43 FileChooserExtraWidget::~FileChooserExtraWidget()
45 std::cout << "~FileChooserExtraWidget()" << std::endl;