Browse Source

Remove ProjectionEditor::register/unregisterMouseEvents()

master
Krisjanis Rijnieks 9 years ago
parent
commit
d5a1249b20
  1. 11
      src/UserInterface/ProjectionEditor.cpp
  2. 2
      src/UserInterface/ProjectionEditor.h

11
src/UserInterface/ProjectionEditor.cpp

@ -27,23 +27,12 @@ void ProjectionEditor::unregisterAppEvents(){
&ProjectionEditor::gotMessage); &ProjectionEditor::gotMessage);
} }
void ProjectionEditor::registerMouseEvents(){
ofAddListener(ofEvents().mouseDragged, this, &ProjectionEditor::mouseDragged);
}
void ProjectionEditor::unregisterMouseEvents(){
ofRemoveListener(ofEvents().mouseDragged, this,
&ProjectionEditor::mouseDragged);
}
void ProjectionEditor::enable(){ void ProjectionEditor::enable(){
registerAppEvents(); registerAppEvents();
registerMouseEvents();
} }
void ProjectionEditor::disable(){ void ProjectionEditor::disable(){
unregisterAppEvents(); unregisterAppEvents();
unregisterMouseEvents();
} }
void ProjectionEditor::update(){ void ProjectionEditor::update(){

2
src/UserInterface/ProjectionEditor.h

@ -14,8 +14,6 @@ class ProjectionEditor {
void registerAppEvents(); void registerAppEvents();
void unregisterAppEvents(); void unregisterAppEvents();
void registerMouseEvents();
void unregisterMouseEvents();
void enable(); void enable();
void disable(); void disable();

Loading…
Cancel
Save