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