mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-23 04:16:50 +01:00
Register the actions to the classdb.
This commit is contained in:
parent
bd609fd96a
commit
233e128dc3
@ -36,7 +36,7 @@ public:
|
||||
bool can_commit();
|
||||
|
||||
void do_action(PaintCanvas *canvas, const Array &data);
|
||||
void commit_action(PaintCanvas *canvas);
|
||||
//void commit_action(PaintCanvas *canvas);
|
||||
|
||||
MultiLineAction();
|
||||
~MultiLineAction();
|
||||
|
@ -22,6 +22,20 @@ SOFTWARE.
|
||||
|
||||
#include "register_types.h"
|
||||
|
||||
#include "actions/paint_action.h"
|
||||
|
||||
#include "actions/brighten_action.h"
|
||||
#include "actions/brush_action.h"
|
||||
#include "actions/bucket_action.h"
|
||||
#include "actions/cut_action.h"
|
||||
#include "actions/darken_action.h"
|
||||
#include "actions/line_action.h"
|
||||
#include "actions/multiline_action.h"
|
||||
#include "actions/paste_cut_action.h"
|
||||
#include "actions/pencil_action.h"
|
||||
#include "actions/rainbow_action.h"
|
||||
#include "actions/rect_action.h"
|
||||
|
||||
#include "paint_window.h"
|
||||
|
||||
#ifdef TOOLS_ENABLED
|
||||
@ -31,6 +45,20 @@ SOFTWARE.
|
||||
void register_paint_types() {
|
||||
ClassDB::register_class<PaintWindow>();
|
||||
|
||||
ClassDB::register_class<PaintAction>();
|
||||
|
||||
ClassDB::register_class<BrightenAction>();
|
||||
ClassDB::register_class<BrushAction>();
|
||||
ClassDB::register_class<BucketAction>();
|
||||
ClassDB::register_class<CutAction>();
|
||||
ClassDB::register_class<DarkenAction>();
|
||||
ClassDB::register_class<LineAction>();
|
||||
ClassDB::register_class<MultiLineAction>();
|
||||
ClassDB::register_class<PasteCutAction>();
|
||||
ClassDB::register_class<PencilAction>();
|
||||
ClassDB::register_class<RainbowAction>();
|
||||
ClassDB::register_class<RectAction>();
|
||||
|
||||
#ifdef TOOLS_ENABLED
|
||||
EditorPlugins::add_by_type<PaintEditorPlugin>();
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user