Browse Source

Integrate ClearSurfacesCmd into Application

master
Krisjanis Rijnieks 9 years ago
parent
commit
0d429016f4
  1. 4
      src/Application/Application.cpp
  2. 1
      src/Application/Application.h

4
src/Application/Application.cpp

@ -63,7 +63,9 @@ void Application::onKeyPressed(ofKeyEventArgs & args){
if(_keySequence.size() >= 3){
_keySequence = _keySequence.substr(_keySequence.size() - 3, 3);
if(_keySequence == "new"){
_cmdManager.exec(new ClearSurfacesCmd());
if(SurfaceStack::instance()->size()){
_cmdManager.exec(new ClearSurfacesCmd(getSurfaceManager()));
}
return;
}
}

1
src/Application/Application.h

@ -15,6 +15,7 @@
#include "Info.h"
#include "SurfaceManagerGui.h"
#include "SurfaceStack.h"
// TODO: To be removed.
#include "GuiMode.h"

Loading…
Cancel
Save