Browse Source

Clean up ProjectionEditorWidget

master
Krisjanis Rijnieks 9 years ago
parent
commit
3f28befa72
  1. 17
      src/Gui/Widgets/ProjectionEditorWidget.cpp
  2. 10
      src/Gui/Widgets/ProjectionEditorWidget.h

17
src/Gui/Widgets/ProjectionEditorWidget.cpp

@ -7,23 +7,6 @@ ProjectionEditorWidget::ProjectionEditorWidget(){
surfaceManager = 0;
bShiftKeyDown = false;
fSnapDistance = 10.0f;
enable();
}
void ProjectionEditorWidget::registerAppEvents(){
ofAddListener(ofEvents().messageEvent, this, &ProjectionEditorWidget::gotMessage);
}
void ProjectionEditorWidget::unregisterAppEvents(){
ofRemoveListener(ofEvents().messageEvent, this, &ProjectionEditorWidget::gotMessage);
}
void ProjectionEditorWidget::enable(){
registerAppEvents();
}
void ProjectionEditorWidget::disable(){
unregisterAppEvents();
}
void ProjectionEditorWidget::update(){

10
src/Gui/Widgets/ProjectionEditorWidget.h

@ -10,17 +10,13 @@ class ProjectionEditorWidget {
public:
ProjectionEditorWidget();
void registerAppEvents();
void unregisterAppEvents();
void enable();
void disable();
void update();
void draw();
void mouseDragged(ofMouseEventArgs & args);
void gotMessage(ofMessage & msg);
void setSurfaceManager(SurfaceManager * newSurfaceManager);
void clearJoints();
void createJoints();

Loading…
Cancel
Save