gui_writer.h
author hegyi
Thu, 05 Jan 2006 12:30:09 +0000
branchgui
changeset 108 bf355fd6563e
child 174 95872af46fc4
permissions -rw-r--r--
Several changes. \n If new map is added to mapstorage it emits signal with the name of the new map. This was important, because from now on not only tha mapwin should be updated. \n Furthermore algobox gets a pointer to mapstorage instead of only the mapnames from it. This is important because without it it would be complicated to pass all of the required maps to algobox.
ladanyi@98
     1
#ifndef GUI_WRITER_H
ladanyi@98
     2
#define GUI_WRITER_H
ladanyi@98
     3
ladanyi@98
     4
#include "mapstorage.h"
ladanyi@98
     5
#include <lemon/lemon_writer.h>
ladanyi@98
     6
ladanyi@98
     7
using lemon::LemonWriter;
ladanyi@98
     8
ladanyi@98
     9
class GuiWriter : public LemonWriter::SectionWriter
ladanyi@98
    10
{
ladanyi@98
    11
  private:
ladanyi@98
    12
    MapStorage* mapstorage;
ladanyi@98
    13
  protected:
ladanyi@98
    14
    virtual std::string header();
ladanyi@98
    15
    virtual void write(std::ostream&);
ladanyi@98
    16
  public:
ladanyi@98
    17
    typedef LemonWriter::SectionWriter Parent;
ladanyi@98
    18
    GuiWriter(LemonWriter&, MapStorage*);
ladanyi@98
    19
};
ladanyi@98
    20
ladanyi@98
    21
#endif