18 #ifndef _BUILDING_EDITOR_PALETTE_HH_
19 #define _BUILDING_EDITOR_PALETTE_HH_
31 class BuildingEditorPalettePrivate;
51 public: std::string GetModelName()
const;
55 public: QColorDialog *CustomColorDialog()
const;
59 private slots:
void OnBrush(
int _buttonId);
63 private slots:
void OnNameChanged(
const QString &_name);
67 private slots:
void OnCustomColor(
const QColor _color);
70 private slots:
void CancelDrawModes();
75 private:
void OnSaveModel(
const std::string &_saveName);
79 private:
void OnCreateEditorItem(
const std::string &_mode);
82 private:
void OnNewModel();
86 private:
void mousePressEvent(QMouseEvent *_event);
89 private:
void OnDrawWall();
92 private:
void OnAddWindow();
95 private:
void OnAddDoor();
98 private:
void OnAddStair();
102 private:
void OnDefaultColor(
int _colorId);
105 private:
void OnCustomColorDialog();
109 private:
void OnColor(QColor _color);
113 private:
void OnTexture(
int _textureId);
116 private:
void OnImportImage();
120 private: BuildingEditorPalettePrivate *dataPtr;
A palette of building items which can be added to the editor.
Definition: BuildingEditorPalette.hh:38