mirror of
https://github.com/Heretek-AI/GDevelop.git
synced 2026-07-22 01:55:25 -04:00
a8559bfbbc
* Update all CMakeLists of extensions to use clang-format * Run clang-format on all Extensions * Update GDCore CMakeLists.txt to add clang-format * Run clang-format on GDCore files * Update GDJS and GDCpp CMakeLists.txt to add clang-format * Run clang-format on GDCpp and GDJS files
43 lines
1.2 KiB
C++
43 lines
1.2 KiB
C++
#ifndef TEXTOBJECTEDITOR_H
|
|
#define TEXTOBJECTEDITOR_H
|
|
#include "TextObjectDialogs.h"
|
|
|
|
namespace gd {
|
|
class Project;
|
|
}
|
|
class TextObject;
|
|
namespace gd {
|
|
class MainFrameWrapper;
|
|
}
|
|
|
|
class TextObjectEditor : public TextObjectEditorBase {
|
|
public:
|
|
TextObjectEditor(wxWindow* parent,
|
|
gd::Project& game,
|
|
TextObject& object,
|
|
gd::MainFrameWrapper& mainFrameWrapper);
|
|
virtual ~TextObjectEditor();
|
|
|
|
private:
|
|
gd::Project& game;
|
|
TextObject& object;
|
|
gd::MainFrameWrapper& mainFrameWrapper;
|
|
|
|
wxColour textColor;
|
|
wxBitmap colorBitmap;
|
|
|
|
protected:
|
|
virtual void OnHelpBtClicked(wxHyperlinkEvent& event);
|
|
virtual void OnChangeFontButton(wxCommandEvent& event);
|
|
virtual void OnBoldToolClicked(wxCommandEvent& event);
|
|
virtual void OnItalicToolClicked(wxCommandEvent& event);
|
|
virtual void OnUnderlineToolClicked(wxCommandEvent& event);
|
|
virtual void OnOkBtClicked(wxCommandEvent& event);
|
|
virtual void OnSizeComboboxSelectionChanged(wxCommandEvent& event);
|
|
virtual void OnSizeComboboxUpdated(wxCommandEvent& event);
|
|
virtual void OnColorToolClicked(wxCommandEvent& event);
|
|
void UpdateColorBt();
|
|
void UpdatePreview();
|
|
};
|
|
#endif // TEXTOBJECTEDITOR_H
|