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);
}
void ProjectionEditor::registerMouseEvents(){
ofAddListener(ofEvents().mouseDragged, this, &ProjectionEditor::mouseDragged);
}
void ProjectionEditor::unregisterMouseEvents(){
ofRemoveListener(ofEvents().mouseDragged, this,
&ProjectionEditor::mouseDragged);
}
void ProjectionEditor::enable(){
registerAppEvents();
registerMouseEvents();
}
void ProjectionEditor::disable(){
unregisterAppEvents();
unregisterMouseEvents();
}
void ProjectionEditor::update(){

2
src/UserInterface/ProjectionEditor.h

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

Loading…
Cancel
Save