COIN-OR::LEMON - Graph Library

Changeset 201:879e47e5b731 in glemon-0.x for mapselector.h


Ignore:
Timestamp:
01/02/08 22:03:09 (16 years ago)
Author:
Akos Ladanyi
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/glemon/trunk@3431
Message:

Merge branches/akos to trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mapselector.h

    r194 r201  
    2323#include <libgnomecanvasmm.h>
    2424#include <libgnomecanvasmm/polygon.h>
     25#include "map_value.h"
    2526
    2627///A widget by which node and edgemaps can be selected, deselected and created.
     
    8182  ///By pressing it
    8283  ///\ref NewMapWin wilol pop-up
    83   Gtk::Button * newbut;
     84  Gtk::Button newbut;
    8485
    8586  ///Reset button.
     
    8990  ///
    9091  ///It is visible only if \ref def is true.
    91   Gtk::Button * defbut;
    92 
    93   ///Container in which GUI elements are packed.
    94   Gtk::HBox hbox;
     92  Gtk::Button defbut;
    9593
    9694  ///Shows purpose of \ref MapSelector piece.
    97   Gtk::Label * label;
     95  Gtk::Label label;
     96
     97  /// Which types of maps (integer, string, ...) to display.
     98  MapType map_type;
    9899
    99100 public:
     
    102103
    103104  ///Creates the layout and binds signal to the correct place.
    104   ///\param optionlist list of names to place in \ref cbt
     105  ///\param mapstorage Pointer to the \ref MapStorage to get the map list from.
    105106  ///\param act preselected option
    106107  ///\param purpose text of label indicating purpose of \ref MapStorage
    107108  ///\param itisedge do \ref MapSelector contains edgemap names or nodemapnames.
    108109  ///\param def do we need 'Default' option. See \ref def.
    109   MapSelector(std::vector<std::string> optionlist, std::string act, std::string purpose, bool itisedge, bool def=true);
     110  ///\param type Specifies which types of maps to display.
     111  MapSelector(std::vector<std::string> n_ml,
     112      std::vector<std::string> s_ml, std::string act, std::string labeltext,
     113      bool edge, bool d = true, MapType type = ALL);
    110114
    111115  ///Returns signal emitted if the user has changed the selection. (\ref signal_cbt)
     
    120124  ///into account that the previously selected option
    121125  ///has to be set back after the operation.
    122   void update_list( std::vector<std::string> );
     126  void update_list(std::vector<std::string> n_ml,
     127      std::vector<std::string> s_ml);
    123128
    124129  ///Handles changement in \ref cbt.
     
    169174  ///this function  will set \ref cbt to the new option.
    170175  ///\param new_option new option to append
    171   void append_text(Glib::ustring new_option);
     176  void append_text(Glib::ustring new_option, MapValue::Type);
    172177};
    173178#endif //MAPSELECTOR_H
Note: See TracChangeset for help on using the changeset viewer.