OrderedGoodsDialogView::OrderedGoodsDialogView(QWidget *parent, OrderedGoodsDialogController *controller) : ReportDialogView(parent) { this->controller = controller; this->setWindowTitle("Zamówione towary"); this->addComponents(); connect(buttonBox, SIGNAL(accepted()), controller, SLOT(saveReport())); connect(buttonBox, SIGNAL(rejected()), this, SLOT(reject())); }
QFFitResultsEvaluationEditorBase::QFFitResultsEvaluationEditorBase(QString iniPrefix, QFPluginServices* services, QFEvaluationPropertyEditor* propEditor, QWidget* parent) : QFEvaluationEditor(services, propEditor, parent) { m_iniPrefix=iniPrefix; m_currentFPSSaveDir=ProgramOptions::getInstance()->getHomeQFDirectory(); m_currentSaveDirectory=""; actSaveReport=new QFActionWithNoMenuRole(QIcon(":/lib/savereport.png"), tr("Save Report"), this); connect(actSaveReport, SIGNAL(triggered()), this, SLOT(saveReport())); actPrintReport=new QFActionWithNoMenuRole(QIcon(":/lib/printreport.png"), tr("Print Report"), this); connect(actPrintReport, SIGNAL(triggered()), this, SLOT(printReport())); }
void OOoReportBuilder::parse(bool show) { if (!m_isLoaded) { return; } parseDocument(); saveContent(); saveReport(); if (show) showReport(); }
TopGoodsDialogView::TopGoodsDialogView(QWidget *parent, TopGoodsDialogController *controller) : ReportDialogView(parent) { this->controller = controller; this->setWindowTitle("Najlepiej sprzedające się towary"); this->addComponents(); connect(buttonBox, SIGNAL(accepted()), controller, SLOT(saveReport())); connect(buttonBox, SIGNAL(rejected()), this, SLOT(reject())); connect(spinBoxListLimit, SIGNAL(valueChanged(int)), controller, SLOT(setListLimitFilter(int))); connect(dateEditFrom, SIGNAL(dateChanged(QDate)), controller, SLOT(setDateFromFilter(QDate))); connect(dateEditTo, SIGNAL(dateChanged(QDate)), controller, SLOT(setDateToFilter(QDate))); }
void pawsWritingWindow::HandleMessage( MsgEntry* me ) { psWriteBookMessage mesg(me); if (mesg.messagetype == mesg.RESPONSE) { slotID = mesg.slotID; containerID = mesg.containerID; //if I wasn't retarded I"d just keep mesg around instead if (mesg.success) { name->SetText(mesg.title); lefttext->SetText(mesg.content); Show(); } else { //this is bogus of course name->SetText(mesg.title); lefttext->SetText(mesg.content); Show(); } } else if (mesg.messagetype == mesg.SAVERESPONSE) { csString saveReportStr; uint32_t msgType; if (mesg.success) { saveReportStr.Format("You have written in \"%s\"", mesg.title.GetDataSafe()); msgType = MSG_INFO; Hide(); PawsManager::GetSingleton().SetCurrentFocusedWidget( NULL ); } else { // currently, only fails here if text is too long for the database saveReportStr.Format("You failed to write in \"%s\". It is too long.", mesg.title.GetDataSafe()); msgType = MSG_ERROR; } psSystemMessage saveReport(0, msgType, saveReportStr); saveReport.FireEvent(); } }
{ KConfigGroup kcg(KSharedConfig::openConfig(), "applyProgressDialog"); kcg.writeEntry("Geometry", saveGeometry()); delete m_Report; } void ApplyProgressDialog::setupConnections() { connect(&operationRunner(), SIGNAL(progressSub(int)), &dialogWidget().progressSub(), SLOT(setValue(int))); connect(&operationRunner(), SIGNAL(finished()), SLOT(onAllOpsFinished())); connect(&operationRunner(), SIGNAL(cancelled()), SLOT(onAllOpsCancelled())); connect(&operationRunner(), SIGNAL(error()), SLOT(onAllOpsError())); connect(&operationRunner(), SIGNAL(opStarted(int, Operation*)), SLOT(onOpStarted(int, Operation*))); connect(&operationRunner(), SIGNAL(opFinished(int, Operation*)), SLOT(onOpFinished(int, Operation*))); connect(&timer(), SIGNAL(timeout()), SLOT(onSecondElapsed())); connect(&detailsWidget().buttonSave(), SIGNAL(clicked()), SLOT(saveReport())); connect(&detailsWidget().buttonBrowser(), SIGNAL(clicked()), SLOT(browserReport())); connect(dialogButtonBox, SIGNAL(accepted()), this, SLOT(accept())); connect(dialogButtonBox, SIGNAL(rejected()), this, SLOT(reject())); connect(detailsButton, SIGNAL(clicked()), this, SLOT(toggleDetails())); } /** Shows the dialog */ void ApplyProgressDialog::show() { setStatus(i18nc("@info:progress", "Setting up...")); resetReport(); dialogWidget().progressTotal().setRange(0, operationRunner().numJobs()); dialogWidget().progressTotal().setValue(0);