historywindow.h
author insilmaril
Mon Oct 16 12:42:54 2006 +0000 (2006-10-16)
changeset 390 0e1aeb21cb78
parent 381 c79df732d095
child 404 53efc2562a7d
permissions -rw-r--r--
Code simplifications
insilmaril@377
     1
#ifndef HISTORYWINDOW_H
insilmaril@377
     2
#define HISTORYWINDOW_H
insilmaril@377
     3
insilmaril@377
     4
#include "settings.h"
insilmaril@377
     5
#include "ui_historywindow.h"
insilmaril@377
     6
insilmaril@381
     7
insilmaril@381
     8
class MapEditor;
insilmaril@381
     9
insilmaril@377
    10
/////////////////////////////////////////////////////////////////////////////
insilmaril@377
    11
class HistoryWindow:public QDialog
insilmaril@377
    12
{
insilmaril@377
    13
	Q_OBJECT
insilmaril@377
    14
insilmaril@377
    15
public:
insilmaril@377
    16
	HistoryWindow(QWidget* parent = 0);
insilmaril@377
    17
	void update (SimpleSettings &);
insilmaril@381
    18
	void setME (MapEditor *);
insilmaril@381
    19
	void setStepsTotal (int);
insilmaril@381
    20
insilmaril@381
    21
private slots:	
insilmaril@381
    22
	void undo();
insilmaril@381
    23
	void redo();
insilmaril@381
    24
	void select();
insilmaril@377
    25
insilmaril@377
    26
private:
insilmaril@388
    27
	void clearRow (int);
insilmaril@381
    28
	void updateRow (int, int, SimpleSettings &);
insilmaril@377
    29
	Ui::HistoryWindow ui;
insilmaril@381
    30
	MapEditor *mapEditor;
insilmaril@377
    31
};
insilmaril@377
    32
insilmaril@377
    33
insilmaril@377
    34
#endif