LogWindow::LogWindow(QWidget *theParent) : QMainWindow(theParent), ui(new Ui::LogWindow), m_log(NULL), m_maxEntries(NULL), m_logEntryBlockFormat(new QTextBlockFormat()), m_timeStampFormat(new QTextCharFormat()), m_debugMessageFormat(new QTextCharFormat()), m_notificationFormat(new QTextCharFormat()), m_warningFormat(new QTextCharFormat()), m_errorFormat(new QTextCharFormat()), m_moleQueueIdFormat(new QTextCharFormat()), m_messageFormat(new QTextCharFormat()) { createUi(); // Restore geometry QSettings settings; settings.beginGroup("logWindow"); restoreGeometry(settings.value("geometry").toByteArray()); restoreState(settings.value("windowState").toByteArray()); settings.endGroup(); setupFormats(); connect(Logger::getInstance(), SIGNAL(newLogEntry(MoleQueue::LogEntry)), this, SLOT(addLogEntry(MoleQueue::LogEntry))); initializeLogText(); }
MainWindow::MainWindow() { QString dataDir = QCoreApplication::applicationDirPath(); #ifdef Q_WS_MAC dataDir = dataDir.section('/', 0, -4); //dataDir = dataDir + "/Resources/data/"; dataDir = dataDir + "/data/"; #else dataDir = dataDir + "/data/"; #endif user_ = new User(); metro_ = new Metro(dataDir); game_ = new Game(dataDir); audio_ = new AudioBackend(); connect(audio_, SIGNAL(setAttempt(bool)), this, SLOT(setAttempt(bool))); exercise_ = NULL; createUi(); readSettings(); updateMain(NOTHING); }
WaitWidget::WaitWidget(const QString &message, QWidget *parent): QGraphicsView(parent), d(new WaitWidgetPrivate) { if ( !message.isEmpty() ) { d->m_message = QString("%1\r\n").arg(message); } createUi(); // Fondo transparente setStyleSheet("background: transparent"); // Se desactivan las barras setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff); setAttribute(Qt::WA_DeleteOnClose); setupScene(); setScene(&d->m_scene); d->m_shadow = new QGraphicsDropShadowEffect(this); d->m_shadow->setBlurRadius(5); d->m_shadow->setOffset(QPointF(3, 3)); setGraphicsEffect(d->m_shadow); setRenderHint(QPainter::Antialiasing, true); setFrameStyle(QFrame::NoFrame); }
GUI::FilterConfigurationBox::FilterConfigurationBox(QWidget* parent):QFrame(parent) { setSizePolicy(QSizePolicy::Expanding,QSizePolicy::Minimum); createUi(); connect(button_apply_,SIGNAL(clicked()),this,SLOT(applyFilter())); connect(button_reset_,SIGNAL(clicked()),this,SLOT(resetFilter())); }
DataExportDialog::DataExportDialog(QWidget *parent) : QDialog(parent) { setWindowTitle(tr("Export data")); setWindowIcon(IconUtil::getIcon("export")); createUi(); }
AboutWindow::AboutWindow(QWidget *parent, const bool debugCmd) : QMainWindow(parent), ui(new Ui::AboutWindow), debug(debugCmd) { ui->setupUi(this); createUi(); }
tab::tab(QWidget *parent, ConfigManager *configM, QAction *cloudAction, MyWebPage *page): QWidget(parent) { configLoader = configM; webPage = page; this->cloudAction = cloudAction; createUi(); createSettings(); createConnects(); }
TwitterApiSearchDialog::TwitterApiSearchDialog(TwitterApiAccount* theAccount, QWidget* parent) : KDialog(parent), d(new Private(theAccount)) { kDebug(); setWindowTitle(i18n("Search")); setAttribute(Qt::WA_DeleteOnClose); createUi(); d->searchQuery->setFocus(); connect(d->searchTypes, SIGNAL(currentIndexChanged(int)), SLOT(slotSearchTypeChanged(int)) ); }
Window_Control_t::Window_Control_t(QMainWindow *parent) : QMainWindow(parent), Window_Editor_Ptr(nullptr), Window_Video_Ptr(nullptr) { NextRecordId = 0; createUi(); createToolBar(); show(); //nahození za jízdy, čili za show funguje /*QPushButton *button = new QPushButton("Hello"); layout->addWidget(button);*/ }
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); this->BookDescription = NULL; this->NetworkScanner = NULL; _library = new library(this); _imagestore = new imagestore(this); createUi(); readConfig(); }
PostEntry::PostEntry(QWidget *parent) : QFrame(parent), d(new Private) { createUi(); //FIXME connect(d->wysiwygEditor->editor(), &ComposerEditorNG::ComposerEditor::textChanged, this, &PostEntry::textChanged); connect(d->htmlEditor->document(), &KTextEditor::Document::textChanged, this, &PostEntry::textChanged); layout()->addWidget(d->tabWidget); d->mTimer = new QTimer(this); d->mTimer->start(Settings::autosaveInterval() * MINUTE); connect(d->mTimer, &QTimer::timeout, this, &PostEntry::saveTemporary); d->progress = Q_NULLPTR; d->mCurrentPostBlogId = -1; d->mNumOfFilesToBeUploaded = 0; d->isPostContentModified = false; connect(this, &PostEntry::textChanged, this, &PostEntry::slotPostModified); }
GUI::AnalysisBox::AnalysisBox(QWidget* parent) : QFrame(parent) { createUi(); connectActions(); setContentsMargins(0,0,0,0); setFixedHeight(250); timer_updateLabels_.start(200); origVidPlayer_=std::make_unique<VideoPlayer>(); anaVidPlayer_=std::make_unique<VideoPlayer>(); graphPlayer_=std::make_unique<GraphPlayer>(); origVidPlayer_->addView(*origView_); anaVidPlayer_->addView(*anaView_); calculator_=std::make_unique<GraphCalculator>(); graphWidget_->setGraphCalculator(calculator_.get()); }
PostEntry::PostEntry( QWidget *parent ) : QFrame( parent ), d(new Private) { kDebug(); createUi(); connect( d->wysiwygEditor, SIGNAL(textChanged()), this, SIGNAL(textChanged()) ); connect( d->htmlEditor->document(), SIGNAL(textChanged(KTextEditor::Document*)), this, SIGNAL(textChanged()) ); layout()->addWidget( d->tabWidget ); d->mTimer = new QTimer(this); d->mTimer->start(Settings::autosaveInterval() * MINUTE); connect( d->mTimer, SIGNAL(timeout()), this, SLOT(saveTemporary()) ); d->progress = 0L; d->mCurrentPostBlogId = -1; d->mNumOfFilesToBeUploaded = 0; d->isPostContentModified = false; connect( this, SIGNAL(textChanged()), this, SLOT(slotPostModified()) ); }
GUI::YuvInfoDialog::YuvInfoDialog(QWidget* parent):QDialog(parent) { createUi(); connectActions(); }
GUI::FilterContainerTab::FilterContainerTab(QWidget* parent):QFrame(parent) { setSizePolicy(QSizePolicy::Expanding,QSizePolicy::Expanding); createUi(); }
GUI::YuvFileOpenDialog::YuvFileOpenDialog(QWidget* parent):QDialog(parent) { createUi(); connectActions(); }
GUI::PreviewControlPanel::PreviewControlPanel(QWidget* parent):QFrame(parent) { createUi(); connectActions(); updater_.start(500); }
void Reports::createReport() { m_wcHeaders = new WContainerWidget(this); switch(m_iReportType) { case Mutual: new WText(tr("reports.mutual.header"),m_wcHeaders); createUi(); break; case DeptStucture: new WText(tr("reports.deptstructure.header"),m_wcHeaders); //new WLabel("____________________________________________________________________________________", m_wcHeaders ); //printDiv = new WContainerWidget(this); break; case Orders: new WText(tr("reports.orders.header"),m_wcHeaders); //printDiv = new WContainerWidget(this); createUi(); break; case GoodsSales: new WText(tr("reports.goodssales.header"),m_wcHeaders); //printDiv = new WContainerWidget(this); createUi(); break; case OrderDetail: { char number[50]; if(dbo::ptr<db::OrdersHeader> ord = ((Portal *)WApplication::instance())->getSession()->getCurrentOrder()) { sprintf(number,"%010d",ord->orderId); }else if(dbo::ptr<db::OrdersHeader> ord = ((Portal *)WApplication::instance())->getSession()->setCurrentOrder()) { sprintf(number,"%010d",ord->orderId); }else{ sprintf(number,"%010d",0); } new WText(WString(tr("reports.orderdetails.header")).arg(number),m_wcHeaders); //printDiv = new WContainerWidget(this); break; } case OrderJournal: new WText(tr("reports.orderjournal.header"),m_wcHeaders); //printDiv = new WContainerWidget(this); createUi(); break; } //WContainerWidget *printDiv = 0; //printDiv = new WContainerWidget(m_wcHeaders); //printDiv->setMargin(-20,Top); //WResource *r = new PdfResource(this); // serializes to a PDF file. //a = new WAnchor(r, "PDF version", this); //a->setTarget(TargetNewWindow); //printDiv->setStyleClass("print"); m_printAnc = new WAnchor("#", tr("print"),m_wcHeaders); m_printAnc->setStyleClass("print"); //m_printAnc->setId("print"); m_printAnc->setImage(new WImage("/css/printer.jpg")); m_printAnc->setTarget(TargetNewWindow); m_reportContent = new WContainerWidget(this); prepareReport(); createFooter(); }