Browse Source

Beautify Application grid methods

master
Krisjanis Rijnieks 8 years ago
parent
commit
a96a8fb8c3
  1. 5
      src/Application/Application.cpp

5
src/Application/Application.cpp

@ -408,7 +408,6 @@ void Application::addGridRow(){
if(getSurfaceManager()->getSelectedSurface() != 0){
if(getSurfaceManager()->getSelectedSurface()->getType() ==
SurfaceType::GRID_WARP_SURFACE){
// TODO: The command should not require projection editor pointer
getCmdManager()->exec(
new AddGridRowCmd(
@ -421,21 +420,18 @@ void Application::addGridColumn(){
if(getSurfaceManager()->getSelectedSurface() != 0){
if(getSurfaceManager()->getSelectedSurface()->getType() ==
SurfaceType::GRID_WARP_SURFACE){
// TODO: The command should not require projection editor pointer
getCmdManager()->exec(
new AddGridColCmd(
(GridWarpSurface *)getSurfaceManager()->getSelectedSurface() ));
}
}
}
void Application::removeGridRow(){
if(getSurfaceManager()->getSelectedSurface() != 0){
if(getSurfaceManager()->getSelectedSurface()->getType() ==
SurfaceType::GRID_WARP_SURFACE){
if(((GridWarpSurface *)getSurfaceManager()->getSelectedSurface())->getGridRows() > 1){
// TODO: The command should not require projection editor pointer
getCmdManager()->exec(
@ -450,7 +446,6 @@ void Application::removeGridColumn(){
if(getSurfaceManager()->getSelectedSurface() != 0){
if(getSurfaceManager()->getSelectedSurface()->getType() ==
SurfaceType::GRID_WARP_SURFACE){
if(((GridWarpSurface *)getSurfaceManager()->getSelectedSurface())->getGridCols() > 1){
// TODO: The command should not require projection editor pointer
getCmdManager()->exec(

Loading…
Cancel
Save