mkRPG
src/editor/GUI/Tabs/ObjectEditors/mapresizedialog.h
Go to the documentation of this file.
00001 #ifndef MAPRESIZEDIALOG_H
00002 #define MAPRESIZEDIALOG_H
00003 
00004 #include "ui_mapresizedialog.h"
00005 #include <QPushButton>
00006 
00007 
00008 
00020 class MapResizeDialog : public QDialog, private Ui::MapResizeDialog
00021 {
00022     Q_OBJECT
00023 
00024 public:
00025     explicit MapResizeDialog(int w, int h, QWidget *parent = 0);
00026     QRect newRectangle() const;
00027 
00028 private slots:
00029     void on_nWidth_valueChanged(int i);
00030     void on_nHeight_valueChanged(int i);
00031 
00032 private:
00033     void updateSize();
00034     int wi,he;
00035     int nWi,nHe;
00036 };
00037 
00038 #endif // MAPRESIZEDIALOG_H
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Properties Defines