void Animate::PreAnimate( void ) { int i; for( i = 0; i < MAX_FRAMEINFOS; i++ ) { if( animFlags[ i ] & ANIM_FINISHED ) { AnimFinished( i ); } } }
// =============== // PUBLIC // =============== TermWindow::TermWindow() : QWidget(0, Qt::Window | Qt::BypassWindowManagerHint) { //, ui(new Ui::TermWindow){ CLOSING = false; //internal flag //Create the Window this->setLayout(new QVBoxLayout()); this->setCursor(Qt::SplitVCursor); tabWidget = new QTabWidget(this); tabWidget->clear(); //just in case tabWidget->setCursor(Qt::ArrowCursor); tabWidget->setTabBarAutoHide(true); tabWidget->setTabsClosable(true); tabWidget->setMovable(true); tabWidget->setUsesScrollButtons(true); this->layout()->addWidget(tabWidget); //Setup the animation ANIM = new QPropertyAnimation(this, "geometry", this); ANIM->setDuration(300); //1/3 second animation connect(ANIM, SIGNAL(finished()), this, SLOT(AnimFinished()) ); //Create the keyboard shortcuts hideS = new QShortcut(QKeySequence(Qt::Key_Escape),this); closeS = new QShortcut(QKeySequence(Qt::CTRL | Qt::Key_Q),this); newTabS = new QShortcut(QKeySequence::AddTab,this); closeTabS = new QShortcut(QKeySequence::Close,this); //Connect the signals/slots connect(tabWidget, SIGNAL(tabCloseRequested(int)), this, SLOT(Close_Tab(int)) ); connect(closeTabS, SIGNAL(activated()), this, SLOT(Close_Tab()) ); connect(newTabS, SIGNAL(activated()), this, SLOT(New_Tab()) ); connect(hideS, SIGNAL(activated()), this, SLOT(HideWindow()) ); connect(closeS, SIGNAL(activated()), this, SLOT(CloseWindow()) ); //Now set the defaults screennum = 0; //default value setTopOfScreen(true); //default value //this->resize(this->width(),300); //this->setMinimumSize(20, 300); }