Removed this extra widget thing, because it is now developed in my private branch.
authorladanyi
Wed, 10 Jan 2007 14:56:16 +0000
changeset 186013afe9ee040
parent 185 38dc9e5936c4
child 187 b465e2c34f23
Removed this extra widget thing, because it is now developed in my private branch.
Makefile.am
file_chooser_extra_widget.cc
file_chooser_extra_widget.h
nbtab.cc
     1.1 --- a/Makefile.am	Wed Jan 10 14:39:11 2007 +0000
     1.2 +++ b/Makefile.am	Wed Jan 10 14:56:16 2007 +0000
     1.3 @@ -47,8 +47,6 @@
     1.4  	design_win.cc \
     1.5  	dijkstrabox.h \
     1.6  	dijkstrabox.cc \
     1.7 -	file_chooser_extra_widget.h \
     1.8 -	file_chooser_extra_widget.cc \
     1.9  	background_chooser_dialog.h \
    1.10  	background_chooser_dialog.cc
    1.11  
     2.1 --- a/file_chooser_extra_widget.cc	Wed Jan 10 14:39:11 2007 +0000
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,64 +0,0 @@
     2.4 -/* -*- C++ -*-
     2.5 - *
     2.6 - * This file is a part of LEMON, a generic C++ optimization library
     2.7 - *
     2.8 - * Copyright (C) 2003-2006
     2.9 - * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
    2.10 - * (Egervary Research Group on Combinatorial Optimization, EGRES).
    2.11 - *
    2.12 - * Permission to use, modify and distribute this software is granted
    2.13 - * provided that this copyright notice appears in all copies. For
    2.14 - * precise terms see the accompanying LICENSE file.
    2.15 - *
    2.16 - * This software is provided "AS IS" with no warranty of any kind,
    2.17 - * express or implied, and with no claim as to its suitability for any
    2.18 - * purpose.
    2.19 - *
    2.20 - */
    2.21 -
    2.22 -#include "file_chooser_extra_widget.h"
    2.23 -#include "mapstorage.h"
    2.24 -
    2.25 -FileChooserExtraWidget::FileChooserExtraWidget(MapStorage* ms) :
    2.26 -  Gtk::Expander("_Options", true),
    2.27 -  lblGUIData("Save GUI specific data to:"),
    2.28 -  rbGUISection("_GUI section", true),
    2.29 -  rbConfFile("s_eparate .conf file", true)
    2.30 -{
    2.31 -  std::cout << "FileChooserExtraWidget()" << std::endl;
    2.32 -
    2.33 -  Gtk::RadioButtonGroup group = rbGUISection.get_group();
    2.34 -  rbConfFile.set_group(group);
    2.35 -
    2.36 -  /*
    2.37 -  switch (pMapStorage->getGUIDataSaveLocation())
    2.38 -  {
    2.39 -    case GUI_SECTION:
    2.40 -      break;
    2.41 -    case CONF_FILE:
    2.42 -      break;
    2.43 -  }
    2.44 -  */
    2.45 -
    2.46 -  add(box);
    2.47 -  box.pack_start(lblGUIData, Gtk::PACK_SHRINK);
    2.48 -  box.pack_start(rbGUISection, Gtk::PACK_SHRINK);
    2.49 -  box.pack_start(rbConfFile, Gtk::PACK_SHRINK);
    2.50 -
    2.51 -  rbConfFile.signal_group_changed().connect(
    2.52 -      sigc::mem_fun(*this, &FileChooserExtraWidget::onRbToggled));
    2.53 -  rbGUISection.signal_group_changed().connect(
    2.54 -      sigc::mem_fun(*this, &FileChooserExtraWidget::onRbToggled));
    2.55 -
    2.56 -  show_all_children();
    2.57 -}
    2.58 -
    2.59 -void FileChooserExtraWidget::onRbToggled()
    2.60 -{
    2.61 -  std::cout << "onRbToggled()" << std::endl;
    2.62 -}
    2.63 -
    2.64 -FileChooserExtraWidget::~FileChooserExtraWidget()
    2.65 -{
    2.66 -  std::cout << "~FileChooserExtraWidget()" << std::endl;
    2.67 -}
     3.1 --- a/file_chooser_extra_widget.h	Wed Jan 10 14:39:11 2007 +0000
     3.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.3 @@ -1,43 +0,0 @@
     3.4 -/* -*- C++ -*-
     3.5 - *
     3.6 - * This file is a part of LEMON, a generic C++ optimization library
     3.7 - *
     3.8 - * Copyright (C) 2003-2006
     3.9 - * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
    3.10 - * (Egervary Research Group on Combinatorial Optimization, EGRES).
    3.11 - *
    3.12 - * Permission to use, modify and distribute this software is granted
    3.13 - * provided that this copyright notice appears in all copies. For
    3.14 - * precise terms see the accompanying LICENSE file.
    3.15 - *
    3.16 - * This software is provided "AS IS" with no warranty of any kind,
    3.17 - * express or implied, and with no claim as to its suitability for any
    3.18 - * purpose.
    3.19 - *
    3.20 - */
    3.21 -
    3.22 -#ifndef FILE_CHOOSER_EXTRA_WIDGET
    3.23 -#define FILE_CHOOSER_EXTRA_WIDGET
    3.24 -
    3.25 -#include <gtkmm/expander.h>
    3.26 -#include <gtkmm/box.h>
    3.27 -#include <gtkmm/radiobutton.h>
    3.28 -#include <gtkmm/label.h>
    3.29 -
    3.30 -class MapStorage;
    3.31 -
    3.32 -class FileChooserExtraWidget : public Gtk::Expander
    3.33 -{
    3.34 -  private:
    3.35 -    Gtk::VBox box;
    3.36 -    Gtk::Label lblGUIData;
    3.37 -    Gtk::RadioButton rbGUISection;
    3.38 -    Gtk::RadioButton rbConfFile;
    3.39 -    MapStorage* pMapStorage;
    3.40 -    void onRbToggled();
    3.41 -  public:
    3.42 -    FileChooserExtraWidget(MapStorage* ms);
    3.43 -    ~FileChooserExtraWidget();
    3.44 -};
    3.45 -
    3.46 -#endif
     4.1 --- a/nbtab.cc	Wed Jan 10 14:39:11 2007 +0000
     4.2 +++ b/nbtab.cc	Wed Jan 10 14:56:16 2007 +0000
     4.3 @@ -17,7 +17,6 @@
     4.4   */
     4.5  
     4.6  #include <nbtab.h>
     4.7 -#include "file_chooser_extra_widget.h"
     4.8  
     4.9  NoteBookTab::NoteBookTab():mapwinexists(false), designwinexists(false), mapstorage(*this)
    4.10  {
    4.11 @@ -136,8 +135,6 @@
    4.12    Gtk::FileChooserDialog fcdialog("Save File", Gtk::FILE_CHOOSER_ACTION_SAVE);
    4.13    fcdialog.add_button(Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL);
    4.14    fcdialog.add_button(Gtk::Stock::SAVE, Gtk::RESPONSE_ACCEPT);
    4.15 -  FileChooserExtraWidget w(&mapstorage);
    4.16 -  fcdialog.set_extra_widget(w);
    4.17    if (fcdialog.run() == Gtk::RESPONSE_ACCEPT)
    4.18    {
    4.19      Glib::ustring filename = fcdialog.get_filename();