void AiCommand::undo (  ) 

undo action

Definition at line 71 of file aicommand.cpp.

00072 {
00073     if ( m_id - 1 > m_view->stack->count() )
00074     {
00075         return;
00076     }
00077 
00078     QImage tmp;
00079     if ( m_id - 1 > -1 )
00080     {
00081         const AiCommand * cmd = (AiCommand*) m_view->stack->command( this->id() - 1 );
00082         tmp = cmd->image;
00083     }
00084     else
00085     {
00086        tmp  = QImage();
00087     }
00088 
00089     m_view->makeUndoUpdate( tmp );
00090     m_view->update();
00091 }

 All Classes Namespaces Files Functions Variables Typedefs

Generated on Sat Feb 27 08:33:23 2010 for AiFractals by  doxygen 1.6.1