author | alpar |
Wed, 04 Jan 2006 13:31:59 +0000 | |
branch | gui |
changeset 105 | 9e78d14fd0ba |
child 121 | 637c12cbd64c |
permissions | -rw-r--r-- |
hegyi@96 | 1 |
// -*- C++ -*- // |
hegyi@96 | 2 |
|
hegyi@96 | 3 |
#ifndef NBTAB_H |
hegyi@96 | 4 |
#define NBTAB_H |
hegyi@96 | 5 |
|
hegyi@96 | 6 |
class NoteBookTab; |
hegyi@96 | 7 |
|
hegyi@96 | 8 |
#include "mapstorage.h" |
hegyi@96 | 9 |
#include "map_win.h" |
hegyi@96 | 10 |
#include "graph_displayer_canvas.h" |
hegyi@96 | 11 |
#include <libgnomecanvasmm.h> |
hegyi@96 | 12 |
#include <libgnomecanvasmm/polygon.h> |
hegyi@96 | 13 |
|
hegyi@96 | 14 |
class NoteBookTab : public Gtk::VBox |
hegyi@96 | 15 |
{ |
hegyi@96 | 16 |
public: |
hegyi@96 | 17 |
NoteBookTab(); |
hegyi@96 | 18 |
|
hegyi@96 | 19 |
MapStorage mapstorage; |
hegyi@96 | 20 |
|
hegyi@96 | 21 |
sigc::signal<void, std::string> signal_title; |
hegyi@96 | 22 |
|
hegyi@96 | 23 |
sigc::signal<void, std::string> signal_title_ch(); |
hegyi@96 | 24 |
|
hegyi@96 | 25 |
sigc::signal<void, NoteBookTab *, bool> signal_newmap; |
hegyi@96 | 26 |
|
hegyi@96 | 27 |
sigc::signal<void, NoteBookTab *, bool> signal_newmap_needed(); |
hegyi@96 | 28 |
|
hegyi@96 | 29 |
void readFile(const std::string &); |
hegyi@96 | 30 |
|
hegyi@96 | 31 |
///The graph will be drawn on this \ref GraphDisplayerCanvas |
hegyi@96 | 32 |
GraphDisplayerCanvas * gd_canvas; |
hegyi@96 | 33 |
|
hegyi@96 | 34 |
bool mapwinexists; |
hegyi@96 | 35 |
|
hegyi@96 | 36 |
MapWin * mapwin; |
hegyi@96 | 37 |
|
hegyi@96 | 38 |
public: |
hegyi@96 | 39 |
///Callback for 'FileNew' action. |
hegyi@96 | 40 |
virtual void newFile(); |
hegyi@96 | 41 |
///Callback for 'FileOpen' action. |
hegyi@96 | 42 |
virtual void openFile(); |
hegyi@96 | 43 |
///Callback for 'FileSave' action. |
hegyi@96 | 44 |
virtual void saveFile(); |
hegyi@96 | 45 |
///Callback for 'FileSaveAs' action. |
hegyi@96 | 46 |
virtual void saveFileAs(); |
hegyi@96 | 47 |
///Callback for 'Close' action. |
hegyi@96 | 48 |
virtual void close(); |
hegyi@96 | 49 |
|
hegyi@96 | 50 |
void propertyChange(bool, int, std::string); |
hegyi@96 | 51 |
void popupNewMapWin(bool, int); |
hegyi@96 | 52 |
|
hegyi@96 | 53 |
std::string getActiveEdgeMap(int); |
hegyi@96 | 54 |
std::string getActiveNodeMap(int); |
hegyi@96 | 55 |
|
hegyi@96 | 56 |
void registerNewEdgeMap(std::string); |
hegyi@96 | 57 |
void registerNewNodeMap(std::string); |
hegyi@96 | 58 |
|
hegyi@96 | 59 |
void createMapWin(std::string); |
hegyi@96 | 60 |
void closeMapWin(); |
hegyi@96 | 61 |
}; |
hegyi@96 | 62 |
|
hegyi@96 | 63 |
#endif //NBTAB_H |