void MindMapWindow::createUI() { createCentralWidget(); createMenuBar(); createToolBar(); updateUIState(); }
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) { undoStack = new QUndoStack(this); createActions(); createMenus(); createToolBars(); createStatusBar(); createCentralWidget(); createDockWindows(); #ifndef QT_NO_DEBUG createUndoView(); #endif connect(pipelineWidget, SIGNAL(sourceCodeChanged(QString)), codeWidget, SLOT(setPlainText(QString))); connect(pipelineWidget, SIGNAL(outputPixmapChanged(QPixmap)), imageWidget, SLOT(updatePixmap(QPixmap))); setWindowTitle("Prototyping Toolkit for Image Processing"); loadImageFile(":/Images/lena.jpg"); resize(QGuiApplication::primaryScreen()->availableSize() * 3 / 5); }
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), mDialog(0), mWebView(0), mCurrentNoteIndex(0) { loadSettings(); checkExistenceTempImgDir(); setWindowTitle(tr("Zoth Reader")); setWindowIcon(QIcon(":/images/green_book_zoth.png")); createCentralWidget(); //showFullScreen(); showMaximized(); setContextMenuPolicy(Qt::NoContextMenu); mDialog = new SettingsDialog(); connect(&mEnExport, SIGNAL(exported()), SLOT(notesReloaded())); connect(&mEnExport, SIGNAL(exported()), SLOT(displayNotes())); connect(&mEnExport, SIGNAL(exported()), SLOT(refreshNavigationLabel())); connect(mDialog, SIGNAL(accepted()), SLOT(saveDialogSettings())); if(isFirstRun){ HelloDialog* helloDialog = new HelloDialog(this); QPalette palette; palette.setColor(QPalette::Window, QColor(mBgColor)); helloDialog->setPalette(palette); helloDialog->setBackgroundRole(QPalette::Window); helloDialog->activateWindow(); helloDialog->show(); connect(helloDialog, SIGNAL(tagAccepted(QString)), SLOT(setTagAndReload(QString))); }else{ reloadNotes(); } }
void MainWindow::initialize() { createCentralWidget(); createMenus(); createToolbar(); createStatusbar(); }
MainWindow::MainWindow(QWidget* parent) : QMainWindow(parent) { setMenuWidget(createMenuBar(this)); addDockWidget(Qt::TopDockWidgetArea, createDockWidget(this)); setCentralWidget(createCentralWidget(this)); createConnections(); }
void View::MainWindow::createWidgets() { createCentralWidget(); createActions(); createMenus(); createToolBar(); createStatusBar(); }
Viewer::Viewer() { setWindowTitle(tr("QImage Color Separations")); brightness = 255; createMenus(); setCentralWidget(createCentralWidget()); }
LoginSheet::LoginSheet() { fakeAuthenticationTimer.setSingleShot(true); fakeAuthenticationTimer.setInterval(2000); connect(&fakeAuthenticationTimer, SIGNAL(timeout()), SLOT(showLoginSuccessfulAndDismiss())); userNameTextEdit = 0; createCentralWidget(); createHeaderWidget(); connect(this, SIGNAL(appeared()), SLOT(setfocusOnUsernameTextEdit())); }
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) { QLOG_TRACE() << "MainWindow::MainWindow()"; editMode = false; playlist = nullptr; mediaPlayer = nullptr; createCentralWidget(); createActions(); createSideBar(); update(); }
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), simulationState(Stopped), iterations(0) { scene = new QGraphicsScene(this); scene->setItemIndexMethod(QGraphicsScene::NoIndex); createWidgets(); createProxyWidgets(); createLayout(); createCentralWidget(); createConnections(); startButton->setFocus(); setWindowTitle(QApplication::applicationName()); }
LogWindow::LogWindow(QWidget *parent) : QMainWindow(parent) { filenameLabel = new QLabel("Unsaved file", this); resultLabel = new QLabel("0", this); calculator = new CalculatorDialog(this); filename = ""; setWindowTitle("Log of calculation"); createActions(); createMenu(); createStatusBar(); createCentralWidget(); connectSignalsAndSlots(); }
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); this->setMinimumSize(MAINWINDOW_MIN_WIDTH, MAINWINDOW_MIN_HEIGHT); setWindowTitle(MAIN_TITLE); setWindowIcon(QIcon(":/images/images/main_icon.png")); createCentralWidget(); createActions(); createMenus(); createToolBar(); }
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) { findDialog = 0; readSettings(); createActions(); createMenus(); createToolBars(); createStatusBar(); createCentralWidget(); updateStatusBar(); setCurrentFile(""); setWindowIcon(QIcon::fromTheme("gnome-gnumeric")); }
void KatalogView::init(const QString& katName ) { m_katalogName = katName; initActions(); /////////////////////////////////////////////////////////////////// // set up a vertical layout box QWidget *w = new QWidget(this); QBoxLayout *box = new QVBoxLayout(w); // start to set up the listview createCentralWidget(box, w); KatalogListView *listview = getListView(); if( ! listview ) { // qDebug () << "ERROR: No listview created !!!" << endl; } else { m_filterHead = new FilterHeader(w, listview); box->insertWidget(0, m_filterHead); connect( listview, SIGNAL(currentItemChanged ( QTreeWidgetItem*, QTreeWidgetItem*)), this, SLOT(slTreeviewItemChanged( QTreeWidgetItem*, QTreeWidgetItem*)) ); connect( listview, SIGNAL(itemDoubleClicked(QTreeWidgetItem*,int)), this, SLOT(slEditTemplate())); connect( listview, SIGNAL(templateHoovered(CatalogTemplate*)), this, SLOT(slotShowTemplateDetails( CatalogTemplate*))); // Populate the context Menu (listview->contextMenu())->addAction( m_acEditItem ); (listview->contextMenu())->addAction( m_acNewItem ); (listview->contextMenu())->addAction( m_acDeleteItem ); (listview->contextMenu())->addSeparator(); (listview->contextMenu())->addAction( m_acAddChapter ); (listview->contextMenu())->addAction( m_acEditChapter ); (listview->contextMenu())->addAction( m_acRemChapter ); getKatalog( katName ); listview->addCatalogDisplay( katName ); } setCentralWidget(w); m_editListViewItem = 0; // qDebug () << "Getting katalog!" << katName << endl; setAutoSaveSettings( QString::fromLatin1( "CatalogWindow" ), true ); }
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) , showMessageTimout(3000) { createActions(); createMenus(); createToolBars(); createStatusBar(); createCentralWidget(); createDockWindows(); connect(pipelineWidget, SIGNAL(sourceCodeChanged(QString)), codeWidget, SLOT(setPlainText(QString))); connect(pipelineWidget, SIGNAL(outputPixmapChanged(QPixmap)), imageWidget, SLOT(updatePixmap(QPixmap))); setWindowTitle("Prototyping Toolkit for Image Processing"); loadImageFile(":/Images/lena.jpg"); resize(QGuiApplication::primaryScreen()->availableSize() * 3 / 5); }
MainWindow::MainWindow(char *urlx):iskeyboardshow(false) { setWindowFlags(Qt::WindowStaysOnTopHint); this->showFullScreen(); // this->setWindowFlags(Qt::WindowCloseButtonHint); // setWindowFlags(Qt::Tool | Qt::FramelessWindowHint); // 隐藏标题栏己周围框架 // this->setAttribute(Qt::WA_TranslucentBackground, true); // 设置背景透明(version >= QT4.5) // this->setAttribute(Qt::WA_NoSystemBackground, true); // this->setAttribute(Qt::WA_NoBackground, true); // QPalette pal = palette(); // pal.setColor(QPalette::Background, QColor(0x00,0x00,0x00,0x00)); // this->setPalette(pal); // QMessageBox::warning(NULL,"MainWindow",QString("%1").arg((this->centralWidget() == 0)?"nil":"have")); // qApp->setStyleSheet("QMainWindow {background-image: url(:/images/111.png);}"); frm = new QFrame(); keyboardfrm = new mainForm; webView = new WebView(frm); pbExit = new QPushButton(frm); pbInput = new QPushButton(frm); // pbInput->setCheckable(true); // keyboardfrm->setAttribute(Qt::WA_TranslucentBackground, false); //webView->load(QUrl("http://10.6.14.60:8080/hipicd/cube/index.html")); // webView->load(QUrl("http://www.baidu.com")); if(NULL != urlx) { QString urlstr(urlx); if (-1 != urlstr.indexOf(QRegExp("[Ff][Ii][Ll][Ee]"),0)) { qDebug() << "localfile: " << urlstr; webView->load(QUrl::fromLocalFile( urlstr)); } else if (-1 == urlstr.indexOf(QRegExp("[Hh][Tt][Tt][Pp]"),0)) { urlstr.prepend("http://"); } // QMessageBox::warning(NULL, "error", urlstr); webView->load(QUrl(urlstr)); } else { webView->load(QUrl("http://resource.hipidata.cn/web/s_index.html")); } webPage = webView->page(); // webHistory = webPage->history(); //webView->setD // urlAddr = new QLineEdit; // statusLabel = new QLabel; // progressBar = new QProgressBar; dockWidget = new QDockWidget(); dockWidget->setFocusPolicy(Qt::NoFocus); dockWidget->setFocusProxy(0); dockWidget->setAllowedAreas(Qt::BottomDockWidgetArea); dockWidget->setFeatures(QDockWidget::DockWidgetClosable); this->setCorner(Qt::BottomLeftCorner, Qt::BottomDockWidgetArea); // dockWidget->setFloating(true); //ldockWidget = new QDockWidget(); QFile file; file.setFileName(":/myjquery.js"); file.open(QIODevice::ReadOnly); this->jQuery = file.readAll(); file.close(); //QMessageBox::about(this,jQuery,this->jQuery); //webPage->currentFrame()->evaluateJavaScript(jQuery); // createActions(); //createMenus(); //createToolBars(); createCentralWidget(); // createStatusBar(); createKeyBoardDock(); // createHeader(); // createLeftDock(); setKeyBoardDockShow(false); webPage->setLinkDelegationPolicy(QWebPage::DelegateAllLinks); connect(dockWidget->toggleViewAction(), SIGNAL(toggled(bool)), this, SLOT(on_dockwidget_toggled(bool))); connect(pbInput, SIGNAL(clicked()), this, SLOT(on_pbInput_clicked())); connect(pbExit, SIGNAL(clicked()), this, SLOT(on_pbExit_clicked())); connect(webView, SIGNAL(linkClicked( const QUrl & )), this, SLOT(myOnLinkClicked( const QUrl & )) ); connect(webPage, SIGNAL(microFocusChanged()),this, SLOT(myContentChanged())); connect(webView, SIGNAL(titleChanged(QString)), this, SLOT(showTitle(const QString &))); // connect(urlAddr, SIGNAL(returnPressed()), this, SLOT(loadUrlAddr())); // connect(webView, SIGNAL(urlChanged(const QUrl &)), this, SLOT(displayUrlAddr(const QUrl &))); // connect(webView, SIGNAL(linkClicked( const QUrl & )), this, SLOT(setKeyBoardDockShow(true)) ); // connect(webView, SIGNAL(titleChanged(const QString &)), this, SLOT(showTitle(const QString &))); // connect(webView, SIGNAL(statusBarMessage(const QString &)),statusLabel, SLOT(setText(const QString &))); // connect(webView, SIGNAL(loadStarted()), this, SLOT(webLoadStarted())); // connect(webView, SIGNAL(loadProgress(int)), this, SLOT(webLoadProgress(int))); // connect(webView, SIGNAL(loadFinished(bool)), this, SLOT(webLoadFinished(bool))); // connect(webView, SIGNAL(loadFinished(bool)), this, SLOT(webPage->currentFrame()->evaluateJavaScript(jQuery))); }