mkRPG
src/editor/GUI/Tabs/MapTab/selectiondock.h
Go to the documentation of this file.
00001 #ifndef SELECTIONDOCK_H
00002 #define SELECTIONDOCK_H
00003 
00004 #include "ui_selectiondock.h"
00005 #include "../Docks/bdockwidget.h"
00006 #include "mapviewer.h"
00007 
00008 
00009 
00010 
00022 class SelectionDock : public BDockWidget, private Ui::SelectionDock
00023 {
00024     Q_OBJECT
00025 
00026 public:
00027     explicit SelectionDock(MapViewer *mv, QWidget *parent = 0);
00028 
00029 private slots:
00030     void on_pencil_toggled(bool b);
00031     void on_rectangle_toggled(bool b);
00032     void on_region_toggled(bool b);
00033     void on_selectColor_colorChanged(const QColor &c);
00034     void on_selectOpacity_valueChanged(int v);
00035     void on_autoPreSelect_toggled(bool b);
00036     void on_preSelectColor_colorChanged(const QColor &c);
00037     void on_preSelectOpacity_valueChanged(int v);
00038 
00039 private:
00040     void updateSelectionMode();
00041     MapViewer *mv;
00042 };
00043 
00044 #endif // SELECTIONDOCK_H
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Properties Defines