void screen_controller::showPrev() { printf("screen_controller::showPrev()\n"); //printf("mCurrentScreen++\n"); if ( mCurrentScreen == mScreens.begin() ) mCurrentScreen = mScreens.end(); mCurrentScreen--; clear(display); if ( mCurrentScreen->first == "empty" ) showPrev(); else showScreen(mCurrentScreen->first); }
/** Constructor */ PostedListWidget::PostedListWidget(const RsGxsGroupId &postedId, QWidget *parent) : GxsMessageFramePostWidget(rsPosted, parent), ui(new Ui::PostedListWidget) { /* Invoke the Qt Designer generated object setup routine */ ui->setupUi(this); /* Setup UI helper */ mStateHelper->addWidget(mTokenTypeAllPosts, ui->hotSortButton); mStateHelper->addWidget(mTokenTypeAllPosts, ui->newSortButton); mStateHelper->addWidget(mTokenTypeAllPosts, ui->topSortButton); mStateHelper->addWidget(mTokenTypePosts, ui->hotSortButton); mStateHelper->addWidget(mTokenTypePosts, ui->newSortButton); mStateHelper->addWidget(mTokenTypePosts, ui->topSortButton); mStateHelper->addWidget(mTokenTypeGroupData, ui->submitPostButton); mStateHelper->addWidget(mTokenTypeGroupData, ui->subscribeToolButton); connect(ui->hotSortButton, SIGNAL(clicked()), this, SLOT(getRankings())); connect(ui->newSortButton, SIGNAL(clicked()), this, SLOT(getRankings())); connect(ui->topSortButton, SIGNAL(clicked()), this, SLOT(getRankings())); connect(ui->nextButton, SIGNAL(clicked()), this, SLOT(showNext())); connect(ui->prevButton, SIGNAL(clicked()), this, SLOT(showPrev())); connect(ui->subscribeToolButton, SIGNAL(subscribe(bool)), this, SLOT(subscribeGroup(bool))); // default sort method. mSortMethod = RsPosted::HotRankType; mLastSortMethod = RsPosted::TopRankType; // to be different. mPostIndex = 0; mPostShow = POSTED_DEFAULT_LISTING_LENGTH; mTokenTypeVote = nextTokenType(); ui->hotSortButton->setChecked(true); /* fill in the available OwnIds for signing */ ui->idChooser->loadIds(IDCHOOSER_ID_REQUIRED, RsGxsId()); connect(ui->submitPostButton, SIGNAL(clicked()), this, SLOT(newPost())); /* load settings */ processSettings(true); /* Initialize GUI */ setGroupId(postedId); }
int ImageWidget::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QWidget::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: showNext(); break; case 1: showPrev(); break; case 2: showFScrn(); break; case 3: slideshow(); break; case 4: toolhide(); break; } _id -= 5; } return _id; }
pcbShower::pcbShower(QWidget *parent) : QDialog(parent), ui(new Ui::pcbShower) { qDebug()<<"begining of pcbShower constructor"; ui->setupUi(this); quitButton = ui->quitButton; nextPCB = ui->nextButton; prevPCB = ui->prevButton; nameText = ui->nameText; classText = ui->classText; stateText = ui->stateText; priorityText = ui->priorityText; CPUPercentageLabel = ui->CPUPercentageLabel; remainingLabel = ui->remainingLabel; arrivalLabel = ui->arrivalLabel; currentNode = NULL; connect(quitButton,SIGNAL(clicked()),this,SLOT(doThingsOnHide())); connect(nextPCB,SIGNAL(clicked()),this,SLOT(showNext())); connect(prevPCB,SIGNAL(clicked()),this,SLOT(showPrev())); qDebug()<<"end of pcbShower constructor"; }
void ImagePreview::on_fileBack_button_clicked() { emit showPrev(); }