[Lemon-commits] ladanyi: r3365 - glemon/branches/akos
Lemon SVN
svn at lemon.cs.elte.hu
Thu Nov 8 15:39:25 CET 2007
Author: ladanyi
Date: Thu Nov 8 15:39:25 2007
New Revision: 3365
Modified:
glemon/branches/akos/main_win.cc
glemon/branches/akos/main_win.h
glemon/branches/akos/mapstorage.cc
glemon/branches/akos/mapstorage.h
glemon/branches/akos/nbtab.cc
glemon/branches/akos/nbtab.h
Log:
Remove dumpMaps().
Modified: glemon/branches/akos/main_win.cc
==============================================================================
--- glemon/branches/akos/main_win.cc (original)
+++ glemon/branches/akos/main_win.cc Thu Nov 8 15:39:25 2007
@@ -152,9 +152,6 @@
ag->add( Gtk::Action::create("DesignGraph", Gtk::Stock::REFRESH),
sigc::mem_fun ( *this , &MainWin::reDesignGraph ) );
- ag->add( Gtk::Action::create("DumpMaps", Gtk::Stock::ABOUT),
- sigc::mem_fun ( *this , &MainWin::dumpMaps ) );
-
uim=Gtk::UIManager::create();
uim->insert_action_group(ag);
add_accel_group(uim->get_accel_group());
@@ -211,7 +208,6 @@
" <separator />"
" <toolitem action='AddMap' />"
" <toolitem action='DesignGraph' />"
- " <toolitem action='DumpMaps' />"
" </toolbar>"
"</ui>";
@@ -479,15 +475,6 @@
}
}
-void MainWin::dumpMaps()
-{
- if(active_tab==-1)
- {
- newTab();
- }
- tabs[active_tab]->dumpMaps();
-}
-
void MainWin::createMapWin()
{
if(active_tab!=-1)
Modified: glemon/branches/akos/main_win.h
==============================================================================
--- glemon/branches/akos/main_win.h (original)
+++ glemon/branches/akos/main_win.h Thu Nov 8 15:39:25 2007
@@ -132,8 +132,6 @@
///Callback for 'Close' action.
virtual void close();
- void dumpMaps();
-
//Toolbar
///Callback for 'zoomIn' action.
Modified: glemon/branches/akos/mapstorage.cc
==============================================================================
--- glemon/branches/akos/mapstorage.cc (original)
+++ glemon/branches/akos/mapstorage.cc Thu Nov 8 15:39:25 2007
@@ -1167,89 +1167,6 @@
return true;
}
-void MapStorage::dumpMaps()
-{
- using std::cout;
- using std::endl;
-
- cout << "Node maps:" << endl;
- for (NodeMapStore::const_iterator it = nodemaps.begin();
- it != nodemaps.end(); ++it)
- {
- cout << it->first << " ";
- switch (it->second->type())
- {
- case MapValue::NUMERIC:
- cout << "NUMERIC";
- break;
- case MapValue::STRING:
- cout << "STRING";
- break;
- }
- switch (it->second->save_dest)
- {
- case GUI_SECT:
- cout << " GUI section";
- break;
- case NESET_SECT:
- cout << " Nodeset or Edgeset section";
- break;
- case DONT_SAVE:
- cout << " Don't save";
- break;
- }
- cout << endl;
- for (Graph::NodeIt n(graph); n != INVALID; ++n)
- {
- cout << it->second->get(n) << " ";
- }
- cout << endl;
- }
-
- cout << "Edge maps:" << endl;
- for (EdgeMapStore::const_iterator it = edgemaps.begin(); it != edgemaps.end(); ++it)
- {
- cout << it->first << " ";
- switch (it->second->type())
- {
- case MapValue::NUMERIC:
- cout << "NUMERIC";
- break;
- case MapValue::STRING:
- cout << "STRING";
- break;
- }
- switch (it->second->save_dest)
- {
- case GUI_SECT:
- cout << " GUI section";
- break;
- case NESET_SECT:
- cout << " Nodeset or Edgeset section";
- break;
- case DONT_SAVE:
- cout << " Don't save";
- break;
- }
- cout << endl;
- for (Graph::EdgeIt e(graph); e != INVALID; ++e)
- {
- cout << it->second->get(e) << " ";
- }
- cout << endl;
- }
- cout << "Node cooridnates:" << endl;
- for (NodeIt it(graph); it != INVALID; ++it)
- {
- cout << node_label[it] << node_coords[it] << endl;
- }
- cout << "Arrow cooridnates:" << endl;
- for (EdgeIt it(graph); it != INVALID; ++it)
- {
- cout << edge_label[it] << arrow_coords[it] << endl;
- }
-}
-
std::vector<std::string> MapStorage::getEdgeMaps(MapType type)
{
std::vector<std::string> maps;
Modified: glemon/branches/akos/mapstorage.h
==============================================================================
--- glemon/branches/akos/mapstorage.h (original)
+++ glemon/branches/akos/mapstorage.h Thu Nov 8 15:39:25 2007
@@ -504,7 +504,6 @@
void setArrowCoordsTwoMaps1Name(const std::string& name);
void setArrowCoordsTwoMaps2Name(const std::string& name);
- void dumpMaps();
private:
EdgeMapData* getEdgeMapData(std::string name) const;
NodeMapData* getNodeMapData(std::string name) const;
Modified: glemon/branches/akos/nbtab.cc
==============================================================================
--- glemon/branches/akos/nbtab.cc (original)
+++ glemon/branches/akos/nbtab.cc Thu Nov 8 15:39:25 2007
@@ -314,8 +314,3 @@
{
mapstorage.broadcastActiveMaps();
}
-
-void NoteBookTab::dumpMaps()
-{
- mapstorage.dumpMaps();
-}
Modified: glemon/branches/akos/nbtab.h
==============================================================================
--- glemon/branches/akos/nbtab.h (original)
+++ glemon/branches/akos/nbtab.h Thu Nov 8 15:39:25 2007
@@ -114,8 +114,6 @@
DesignWin * designwin;
public:
- void dumpMaps();
-
///Callback for 'FileNew' action.
virtual void newFile();
///Callback for 'FileOpen' action.
More information about the Lemon-commits
mailing list