ExportImageDialog::ExportImageDialog(const QString &url, const QSize &size, ImageExporter *imgExporter) : QDialog((QWidget*) KStars::Instance()), m_KStars(KStars::Instance()), m_Url(url), m_Size(size) { #ifdef Q_OS_OSX setWindowFlags(Qt::Tool| Qt::WindowStaysOnTopHint); #endif m_DialogUI = new ExportImageDialogUI(this); QVBoxLayout *mainLayout = new QVBoxLayout; mainLayout->addWidget(m_DialogUI); setLayout(mainLayout); QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok|QDialogButtonBox::Cancel); mainLayout->addWidget(buttonBox); connect(buttonBox, SIGNAL(accepted()), this, SLOT(accept())); connect(buttonBox, SIGNAL(rejected()), this, SLOT(reject())); connect(buttonBox, SIGNAL(accepted()), this, SLOT(exportImage())); connect(buttonBox, SIGNAL(rejected()), this, SLOT(close())); QPushButton *previewB = new QPushButton(i18n("Preview image")); buttonBox->addButton(previewB, QDialogButtonBox::ActionRole); connect(previewB, SIGNAL(clicked()), this, SLOT(previewImage())); connect(m_DialogUI->addLegendCheckBox, SIGNAL(toggled(bool)), this, SLOT(switchLegendEnabled(bool))); connect(m_DialogUI->addLegendCheckBox, SIGNAL(toggled(bool)), previewB, SLOT(setEnabled(bool))); m_ImageExporter = ( ( imgExporter ) ? imgExporter : new ImageExporter( this ) ); setWindowTitle(i18n("Export sky image")); setupWidgets(); }
PlayFileInfoEditDialog::PlayFileInfoEditDialog(const TimeIntevalValidator &validator, const QTime& defaultStartTime, QWidget *parent): QDialog(parent), ui(new Ui::PlayFileInfoEditDialog), m_Validator(validator), m_IsTimeValid(false), m_IsFilePathValid(false) { ui->setupUi(this); setupWidgets(); setModal(true); setWindowTitle(tr("请选择要播放的文件跟播放的起始与截止时间")); ui->m_StartTimeEdit->setTime(defaultStartTime); ui->m_StartTimeEdit->setTime(defaultStartTime); connect(ui->m_PlayFileNameEdit, SIGNAL(textChanged(QString)), this, SLOT(onPlayFileChanged(QString))); connect(ui->m_SelectPlayFileButton, SIGNAL(clicked()), this, SLOT(onSelectPlayFileClicked())); connect(ui->m_SelectSubFileButton, SIGNAL(clicked()), this, SLOT(onSelectSubFileClicked())); connect(ui->m_StartTimeEdit, SIGNAL(timeChanged(QTime)), this, SLOT(onTimeEditChange())); connect(ui->m_EndTimeEdit, SIGNAL(timeChanged(QTime)), this, SLOT(onTimeEditChange())); }
EditorConfigDialog::EditorConfigDialog(QWidget* parent) : QDialog(parent, Qt::MSWindowsFixedSizeDialogHint) { setupWidgets(); setWindowFlags(windowFlags() & (~Qt::WindowContextHelpButtonHint)); setWindowTitle(tr("Configure Editor")); }
ThymioVPLStandalone::ThymioVPLStandalone(QVector<QTranslator*> translators, const QString& commandLineTarget, bool useAnyTarget, bool debugLog, bool execFeedback): VariableListener(new TargetVariablesModel(this)), // create target target(new DashelTarget(translators, commandLineTarget)), // options useAnyTarget(useAnyTarget), debugLog(debugLog), execFeedback(execFeedback), // setup initial values id(0), vpl(0), allocatedVariablesCount(0), getDescriptionTimer(0) { subscribeToVariableOfInterest(ASEBA_PID_VAR_NAME); // create gui setupWidgets(); setupConnections(); // when everything is ready, get description target->broadcastGetDescription(); // resize if not android #ifndef ANDROID resize(1000,700); #endif // ANDROID }
BushuViewWidget::BushuViewWidget( QWidget *parent, const char *name ) : CharDictViewBase( parent, name ) { setupWidgets(); readDict(); readConfig(); }
/*! */ pUsbControlTab::pUsbControlTab(bool timeoutWidgets) : pQtCustomTab("USB management") { m_groupBoxGridLayout->setColumnMinimumWidth(0, 250); m_groupBoxGridLayout->setColumnMinimumWidth(2, 30); setupWidgets(timeoutWidgets); freezeSize(xpolgui::kTabGroupBoxWidth); }
PWizFovShUI::PWizFovShUI(PrintingWizard *wizard, QWidget *parent) : QFrame(parent), m_ParentWizard(wizard) { setupUi(this); setupWidgets(); setupConnections(); }
FileTransferLogDialog::FileTransferLogDialog(ChildWindowBase *parent) : ChildWindowBase(parent), ui(new Ui::FileTransferLogDialog) { qDebug()<<"begin FileTransferLogDialog"; ui->setupUi(this); setupWidgets(); setupSignals(); }
/** * Constructor. Creates the fault code list, creates widgets, and sets them * appropriately. */ FaultCodeDialog::FaultCodeDialog(QString title, c14cux_faultcodes faults): m_rows(8) { qRegisterMetaType<c14cux_faultcodes>("c14cux_faultcodes"); this->setWindowTitle(title); populateFaultList(); setupWidgets(); lightLEDs(faults); }
ClientNetworkStatusDialog::ClientNetworkStatusDialog(boost::shared_ptr<SingleClient>client, QWidget *parent): QDialog(parent), ui(new Ui::ClientNetworkStatusDialog), m_Client(client) { ui->setupUi(this); setupWidgets(); setupSignals(); }
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) { setupMenus(); setupWidgets(); setSizePolicy(QSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed)); setWindowTitle(tr("Puzzle")); }
//------------------------------------------------------------------------------------- QConfirmDialog::QConfirmDialog( const QString &msg, const QString &confname, QWidget *parent ) : QDialog( parent ), m_confname( confname ) { QSettings settings; bool isShowOnStartup = settings.value( m_confname, true ).toBool(); if( isShowOnStartup ) setupWidgets( msg ); }
UnicodeViewWidget::UnicodeViewWidget( QWidget *parent ) : CharDictViewBase( parent ) { uBlockMap.clear(); setupWidgets(); readConfig(); }
WaveEditorWidget::WaveEditorWidget(QWidget* parent) : DataListItem(parent) { setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Maximum); m_vwi = NULL; m_flags = (WaveEditorFlag) 0xff; setupWidgets(); }
NetworkStatusStatement::NetworkStatusStatement(ChildWindowBase *parent) : ChildWindowBase(parent), ui(new Ui::NetworkStatusStatement) { ui->setupUi(this); // setupModel(); setupWidgets(); setupSignals(); setWindowTitle(tr("客户端网络报表")); }
PrintingWizard::PrintingWizard(QWidget *parent) : QDialog(parent), m_KStars(KStars::Instance()), m_FinderChart(0), m_SkyObject(0), m_FovType(FT_UNDEFINED), m_FovImageSize(QSize(500, 500)), m_ShBeginObject(0), m_PointingShBegin(false), m_SwitchColors(false), m_RecapturingFov(false), m_RecaptureIdx(-1) { m_Printer = new QPrinter(QPrinter::ScreenResolution); setupWidgets(); }
InitialConfigDialog::InitialConfigDialog(QWidget* parent) : QDialog(parent) { FNTRACE("", "InitialConfigDialog", "InitialConfigDialog", QString("parent %1 0").arg(parent?"!=":"==")); setupWidgets(); setWindowFlags(windowFlags() & (~Qt::WindowContextHelpButtonHint)); setWindowTitle(tr("Setup Loader")); }
CMainWindow::CMainWindow(bool animate) { reloadStyle(); setAttribute(Qt::WA_DeleteOnClose); setupWidgets(); if (animate) startingAnimation(); else skipStartingAnimation(); }
/* ********************************************************************* */ void LogBookConfigDialog::createDialogContent() { ui->setupUi(dialog); connect(ui->closeStelWindow, SIGNAL(clicked()), this, SLOT(close())); setupWidgets(); setupListViews(); //Initialize the style updateStyle(); }
ExportImageDialog::ExportImageDialog(const QString &url, const QSize &size) : KDialog((QWidget*) KStars::Instance()), m_KStars(KStars::Instance()), m_Url(url), m_Size(size) { m_DialogUI = new ExportImageDialogUI(this); setMainWidget(m_DialogUI); setWindowTitle(i18n("Export sky image")); setupWidgets(); setupConnections(); }
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) { setupMenus(); setupWidgets(); model = new PiecesModel(this); piecesList->setModel(model); setSizePolicy(QSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed)); setWindowTitle(tr("Puzzle")); }
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) { createActions(); createMenus(); createStatusBar(); createWidgets(); setupWidgets(); startErrorProcess(); startServers(); }
/** * Constructor. Receives a pointer to the QStyle of the parent form. */ AboutBox::AboutBox(QStyle *parentStyle, QString title, c14cux_version cuxVersion, QWidget *parent) : QDialog(parent), m_urlString(QString("https://github.com/colinbourassa/rovergauge")), m_urlLibString(QString("https://github.com/colinbourassa/libcomm14cux")), m_aboutString(QString("A graphical interface to the 14CUX engine management system.")) { this->setWindowTitle(title); m_ver.major = cuxVersion.major; m_ver.minor = cuxVersion.minor; m_ver.patch = cuxVersion.patch; m_style = parentStyle; setupWidgets(); }
SendFileProgressWidget::SendFileProgressWidget(boost::shared_ptr<SingleClient>client, FileTransfer* fileTransfer, QWidget *parent) :QWidget(parent), ui(new Ui::SendFileProgressWidget), m_Client(client), m_FileTransfer(fileTransfer), m_SendFile(fileTransfer->getFilePath()), m_LastSendedSize(0), m_ElapsedTime(0) { ui->setupUi(this); setupWidgets(); setupSignals(); }
MainWindow::MainWindow() : ui(new Ui::MainWindow) { ui->setupUi(this); //QDir::setCurrent(QApplication::applicationDirPath()); sketchWidgetCreated = false; singleMesh = true; foliage = true; renderWithTexture = true; lastGeneratedFile = ""; optionD = 2; optionB = 500; optionP = -1; textureIndex = 1; storeRoot = 1; subdivs = 0; connectActions(); createActions(); createToolBars(); setupWidgets(); this->releaseKeyboard(); setWindowTitle(tr("YggdrasilTreeDraw")); setLineMode(); brushSize->setCurrentIndex(2); acceptedImageFormats.append("*.jpg"); acceptedImageFormats.append("*.png"); acceptedImageFormats.append("*.pgm"); acceptedImageFormats.append("*.raw"); // QDir directory("./Resources/Textures/"); // QStringList textureList = directory.entryList(acceptedImageFormats); leafWindow = new LeafWindow(); foliageParameters = new FoliageParameters(); connect(foliageParameters,SIGNAL(foliageChanged()),this,SLOT(foliageChanged())); displayWidget->setBarkTexture("./Resources/Textures/bark.jpg"); displayWidget->setLeafTexture("./Resources/Generated_Leaves/Leaf_Textures/default/default_top.png"); //displayWidget->setLeafTexture("./Resources/Generated_Leaves/Leaf_Textures/default/alphaTest.png"); synthDialog = new TextureSynthesisDialog(); }
void SpeedTrainingMode::switchToMode() { setupTrainingWidgets(); m_ui->letter->show(); m_ui->changeSequence->show(); //m_ui->forModes->show(); m_ui->helpBar->setText("<font color=\"green\">Type the letter you hear ASAP. The keying will get faster.</font>"); m_ui->play->show(); m_ui->WPM->show(); setupSequences(); setupWidgets(m_trainingSequence, true, "S\np\ne\ne\nd\n \nR\na\nt\ni\nn\ng"); updateGraphs(); }
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) { dbDialog = new DbDialog(this); dbWizard = new NewDbWizard(this); pluginDialog = new PluginDialog(this); setupUi(this); lastPath = QDir::homePath(); setupWidgets(); LogDialog::instance()->append(tr("Starting DbMaster")); setupConnections(); }
KGrSLDialog::KGrSLDialog (int action, int requestedLevel, int gameIndex, QList<KGrGameData *> & gameList, const QString & pSystemDir, const QString & pUserDir, QWidget * parent) : KDialog (parent), slAction (action), myGameList (gameList), defaultGame (gameIndex), defaultLevel (requestedLevel), systemDir (pSystemDir), userDir (pUserDir), slParent (parent) { setupWidgets(); }
LogViewer::LogViewer(Kcm *p) : KDialog(p) , kcm(p) , headerSizesSet(false) { setupWidgets(); setupActions(); refresh(); // Can't restore QHeaderView in constructor, so use a timer - and restore after eventloop starts. QTimer::singleShot(0, this, SLOT(restoreState())); KConfigGroup grp(KGlobal::config(), CFG_GROUP); QSize sz=grp.readEntry(CFG_SIZE, QSize(800, 400)); if(sz.isValid()) resize(sz); }
UimPrefDialog::UimPrefDialog( QWidget *parent ) : QDialog( parent ), m_isValueChanged( false ) { uim_counted_init(); if (uim_custom_enable()) { checkDotUimFile(); setupWidgets(); } else { #if defined(ENABLE_DEBUG) qDebug("uim_custom_enable() failed."); #endif uim_counted_quit(); QApplication::exit( -1 ); } setWindowTitle( "uim-pref-qt4" ); }