save_details_widget.h
author Akos Ladanyi <ladanyi@tmit.bme.hu>
Thu, 10 Jul 2008 18:53:00 +0100
changeset 4 244d8c60b997
permissions -rw-r--r--
Issue a custom error message when Lemon is not found.
hegyi@1
     1
#ifndef SAVE_DETAILS_WIDGET
hegyi@1
     2
#define SAVE_DETAILS_WIDGET
hegyi@1
     3
hegyi@1
     4
#include <gtkmm/entry.h>
hegyi@1
     5
#include <gtkmm/box.h>
hegyi@1
     6
#include <gtkmm/radiobutton.h>
hegyi@1
     7
#include <gtkmm/label.h>
hegyi@1
     8
#include <gtkmm/notebook.h>
hegyi@1
     9
#include <gtkmm/treemodel.h>
hegyi@1
    10
#include <gtkmm/liststore.h>
hegyi@1
    11
#include <gtkmm/treeview.h>
hegyi@1
    12
#include <gtkmm/scrolledwindow.h>
hegyi@1
    13
hegyi@1
    14
class MapStorage;
hegyi@1
    15
hegyi@1
    16
class SaveDetailsWidget : public Gtk::VBox
hegyi@1
    17
{
hegyi@1
    18
  public:
hegyi@1
    19
    struct MapModelColumns : public Gtk::TreeModel::ColumnRecord
hegyi@1
    20
    {
hegyi@1
    21
      MapModelColumns()
hegyi@1
    22
      {
hegyi@1
    23
        add(colName);
hegyi@1
    24
        add(colSaveToMainSect);
hegyi@1
    25
        add(colSaveToGuiSect);
hegyi@1
    26
      }
hegyi@1
    27
      Gtk::TreeModelColumn<Glib::ustring> colName;
hegyi@1
    28
      Gtk::TreeModelColumn<bool> colSaveToMainSect;
hegyi@1
    29
      Gtk::TreeModelColumn<bool> colSaveToGuiSect;
hegyi@1
    30
    };
hegyi@1
    31
  private:
hegyi@1
    32
    Gtk::RadioButton rbLgfFile;
hegyi@1
    33
    Gtk::RadioButton rbConfFile;
hegyi@1
    34
hegyi@1
    35
    Gtk::TreeView twNodeMaps;
hegyi@1
    36
    Gtk::TreeView twArcMaps;
hegyi@1
    37
hegyi@1
    38
    MapModelColumns NodeMapColumns;
hegyi@1
    39
    MapModelColumns ArcMapColumns;
hegyi@1
    40
hegyi@1
    41
    Glib::RefPtr<Gtk::ListStore> refNodeMapStore;
hegyi@1
    42
    Glib::RefPtr<Gtk::ListStore> refArcMapStore;
hegyi@1
    43
hegyi@1
    44
    Gtk::RadioButton rblueCoordGuiSection;
hegyi@1
    45
    Gtk::RadioButton rblueCoordNodesetSection;
hegyi@1
    46
    Gtk::RadioButton rblueCoordOneMap;
hegyi@1
    47
    Gtk::RadioButton rblueCoordTwoMaps;
hegyi@1
    48
    Gtk::Entry entNodeCoordsOneMap;
hegyi@1
    49
    Gtk::Entry entNodeCoordsTwoMaps1;
hegyi@1
    50
    Gtk::Entry entNodeCoordsTwoMaps2;
hegyi@1
    51
hegyi@1
    52
    Gtk::RadioButton rbArrowCoordGuiSection;
hegyi@1
    53
    Gtk::RadioButton rbArrowCoordArcsetSection;
hegyi@1
    54
    Gtk::RadioButton rbArrowCoordOneMap;
hegyi@1
    55
    Gtk::RadioButton rbArrowCoordTwoMaps;
hegyi@1
    56
    Gtk::Entry entArrowCoordsOneMap;
hegyi@1
    57
    Gtk::Entry entArrowCoordsTwoMaps1;
hegyi@1
    58
    Gtk::Entry entArrowCoordsTwoMaps2;
hegyi@1
    59
hegyi@1
    60
    MapStorage* pMapStorage;
hegyi@1
    61
hegyi@1
    62
    void onGuiSectSaveDestChanged();
hegyi@1
    63
hegyi@1
    64
    void onNodeCoordSaveDestChanged();
hegyi@1
    65
    void onNodeCoordMapNumChanged();
hegyi@1
    66
hegyi@1
    67
    void onNodeCoordsOneMapName();
hegyi@1
    68
    void onNodeCoordsTwoMaps1Name();
hegyi@1
    69
    void onNodeCoordsTwoMaps2Name();
hegyi@1
    70
hegyi@1
    71
    void onArrowCoordSaveDestChanged();
hegyi@1
    72
    void onArrowCoordMapNumChanged();
hegyi@1
    73
hegyi@1
    74
    void onArrowCoordsOneMapName();
hegyi@1
    75
    void onArrowCoordsTwoMaps1Name();
hegyi@1
    76
    void onArrowCoordsTwoMaps2Name();
hegyi@1
    77
hegyi@1
    78
    void onArcMapRowChanged(const Gtk::TreeModel::Path& path,
hegyi@1
    79
        const Gtk::TreeModel::iterator& iter);
hegyi@1
    80
    void onNodeMapRowChanged(const Gtk::TreeModel::Path& path,
hegyi@1
    81
        const Gtk::TreeModel::iterator& iter);
hegyi@1
    82
  public:
hegyi@1
    83
    SaveDetailsWidget(MapStorage* ms);
hegyi@1
    84
    ~SaveDetailsWidget();
hegyi@1
    85
};
hegyi@1
    86
hegyi@1
    87
#endif