slot for screen clearing Definition at line 246 of file aimainwindow.cpp. 00247 { 00248 try 00249 { 00250 //~ test if screen is not empty 00251 if( !m_view->view()->emptyScreen() ) 00252 { 00253 if( QMessageBox::Yes != QMessageBox::warning(this, tr("Clear...") , tr("The screen is not empty, you want really clear this screen ?"), QMessageBox::Yes | QMessageBox::No, QMessageBox::No ) ) 00254 { 00255 return; 00256 } 00257 } 00258 m_view->view()->clear(); 00259 this->enabledChilds( false ); 00260 m_zoom = 1.; 00261 m_viewX = m_viewY = .0; 00262 } 00263 catch(const std::exception & exception ) 00264 { 00265 QMessageBox::critical(this, tr("Critical Error!"), tr("Please report this problem to adrabi[at]gmail[dot]com =).")); 00266 } 00267 } |