本文整理汇总了C++中setButtonText函数的典型用法代码示例。如果您正苦于以下问题:C++ setButtonText函数的具体用法?C++ setButtonText怎么用?C++ setButtonText使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了setButtonText函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: i18n
void BatchProcessImagesDialog::slotProcessStart()
{
if (m_selectedImageFiles.isEmpty() == true)
return;
if (m_ui->m_removeOriginal->isChecked() == true)
{
if (KMessageBox::warningContinueCancel(this, i18n(
"All original image files will be removed from the source Album.\nDo you want to continue?"),
i18n("Delete Original Image Files"), KStandardGuiItem::cont(), KStandardGuiItem::cancel(),
"KIPIplugin-BatchProcessImages-AlwaysRemomveOriginalFiles") != KMessageBox::Continue)
return;
}
m_convertStatus = UNDER_PROCESS;
disconnect(this, SIGNAL(user1Clicked()),
this, SLOT(slotProcessStart()));
showButton(KDialog::Cancel, false);
setButtonText(User1, i18n("&Stop"));
connect(this, SIGNAL(user1Clicked()),
this, SLOT(slotProcessStop()));
enableWidgets(false);
m_ui->m_progress->setVisible(true);
m_ui->m_progress->progressScheduled(i18n("Batch Image Effects"), true, true);
m_ui->m_progress->progressThumbnailChanged(KIcon("kipi").pixmap(22, 22));
m_listFile2Process_iterator = new QTreeWidgetItemIterator(m_listFiles);
startProcess();
}
开发者ID:rickysarraf,项目名称:digikam,代码行数:33,代码来源:batchprocessimagesdialog.cpp
示例2: setButtons
DialDialog::DialDialog(QWidget *parent, std::string number)
:KDialog(parent) {
setButtons(Ok | Cancel);
setButtonText(Ok, i18n("Dial"));
connect(this, SIGNAL(okClicked()), this, SLOT(dialNumber()));
resize(300,100);
setCaption(i18n("Dial number"));
QWidget *widget = new QWidget();
ui = new Ui::DialDialog();
ui->setupUi(widget);
setMainWidget(widget);
ui->numberLine->setText(number.c_str());
QRegExp rx("[0-9\\*#]+");
QRegExpValidator *validator = new QRegExpValidator(rx, this);
ui->numberLine->setValidator(validator);
ui->numberLine->setFocus();
// populate msn combo box
std::vector<std::string> names = fritz::gConfig->getSipNames();
std::vector<std::string> msns = fritz::gConfig->getSipMsns();
ui->msnComboBox->addItem(i18n("Default"), "");
QString line("*111# - ");
line.append(i18n("Conventional telephone network"));
ui->msnComboBox->addItem(line, "*111#");
for (size_t i=0; i<names.size(); i++) {
std::stringstream prefix;
prefix << "*12" << (i+1) << "#";
std::stringstream line;
line << prefix.str() << " - " << names[i] << " (" << msns[i] << ")";
ui->msnComboBox->addItem(line.str().c_str(), prefix.str().c_str());
}
}
开发者ID:KDE,项目名称:kfritz,代码行数:32,代码来源:DialDialog.cpp
示例3: QWizard
ImporterWizard::ImporterWizard(ScenePtr scene, QWidget* parent)
: QWizard(parent),
m_first(true),
m_ui(new Ui::ImporterWizard),
m_scene(scene),
m_objects(0),
m_models(0),
m_animations(0),
m_cameras(0),
m_lights(0),
m_materials(0),
m_textures(0)
{
m_ui->setupUi(this);
setButtonText(NextButton, tr("Load file >"));
button(NextButton)->setDisabled(true);
setAttribute(Qt::WA_DeleteOnClose);
connect(m_ui->browse, SIGNAL(clicked()), this, SLOT(browse()));
connect(m_ui->filename, SIGNAL(textChanged(QString)), this, SLOT(fileChanged(QString)));
connect(this, SIGNAL(currentIdChanged(int)), SLOT(changed(int)));
connect(m_ui->manualDrag, SIGNAL(toggled(bool)), this, SLOT(manualDragToggled(bool)));
QSettings settings("Shaderkit", "Shaderkit");
m_ui->autoScale->setChecked(settings.value("import/auto_scale", true).toBool());
m_ui->manualDrag->setChecked(settings.value("import/manual_drag", false).toBool());
}
开发者ID:LBdN,项目名称:Shaderkit,代码行数:29,代码来源:importer_wizard.cpp
示例4: setPage
void SetupWizard::createPages()
{
setPage(PAGE_START, new OPStartPage(this));
setPage(PAGE_UPDATE, new AutoUpdatePage(this));
setPage(PAGE_CONTROLLER, new ControllerPage(this));
setPage(PAGE_VEHICLES, new VehiclePage(this));
setPage(PAGE_MULTI, new MultiPage(this));
setPage(PAGE_FIXEDWING, new FixedWingPage(this));
setPage(PAGE_AIRSPEED, new AirSpeedPage(this));
setPage(PAGE_GPS, new GpsPage(this));
setPage(PAGE_HELI, new HeliPage(this));
setPage(PAGE_SURFACE, new SurfacePage(this));
setPage(PAGE_INPUT, new InputPage(this));
setPage(PAGE_ESC, new EscPage(this));
setPage(PAGE_SERVO, new ServoPage(this));
setPage(PAGE_BIAS_CALIBRATION, new BiasCalibrationPage(this));
setPage(PAGE_ESC_CALIBRATION, new EscCalibrationPage(this));
setPage(PAGE_OUTPUT_CALIBRATION, new OutputCalibrationPage(this));
setPage(PAGE_SUMMARY, new SummaryPage(this));
setPage(PAGE_SAVE, new SavePage(this));
setPage(PAGE_NOTYETIMPLEMENTED, new NotYetImplementedPage(this));
setPage(PAGE_AIRFRAME_INITIAL_TUNING, new AirframeInitialTuningPage(this));
setPage(PAGE_END, new OPEndPage(this));
setStartId(PAGE_START);
connect(button(QWizard::CustomButton1), SIGNAL(clicked()), this, SLOT(customBackClicked()));
setButtonText(QWizard::CustomButton1, buttonText(QWizard::BackButton));
QList<QWizard::WizardButton> button_layout;
button_layout << QWizard::Stretch << QWizard::CustomButton1 << QWizard::NextButton << QWizard::CancelButton << QWizard::FinishButton;
setButtonLayout(button_layout);
connect(this, SIGNAL(currentIdChanged(int)), this, SLOT(pageChanged(int)));
}
开发者ID:Indianberries,项目名称:LibrePilot,代码行数:33,代码来源:setupwizard.cpp
示例5: QWizard
GeneratedObjectsWizard::GeneratedObjectsWizard(
GeneratedObjectsWizardPage * page, QWidget * parent):
QWizard(parent), page_(page) {
setWindowTitle(
tr("Generated") +" "+ page_->objectTypePlural() +
" | " + MAIN_WINDOW->windowTitle() );
page_->setTitle(tr("Random generated")+" "+
page_->objectTypePlural() );
page_->setSubTitle(
tr( "Change count of generated objects of some kinds and"
" confirm the settings. If there is not the object"
" you want, try load new object, but remember that"
" in this page are viewed only")+" "+
page_->objectTypePlural() +".");
setOptions( QWizard::NoBackButtonOnStartPage |
QWizard::HaveCustomButton1);
setButtonText(QWizard::CustomButton1, tr("Load new map object"));
connect(this, SIGNAL(customButtonClicked(int)),
this, SLOT(loadMapObject()) );
addPage(page);
connect(this, SIGNAL(accepted()),
page, SLOT(setCountInMap()) );
}
开发者ID:jirkadanek,项目名称:bombic2,代码行数:27,代码来源:generated_objects_wizard.cpp
示例6: KDialogBase
KOIncidenceEditor::KOIncidenceEditor(const QString &caption,
Calendar *calendar, QWidget *parent)
: KDialogBase(Tabbed, caption, Ok | Apply | Cancel | Default, Ok,
parent, 0, false, false),
mAttendeeEditor(0), mIsCounter(false)
{
// Set this to be the group leader for all subdialogs - this means
// modal subdialogs will only affect this dialog, not the other windows
setWFlags(getWFlags() | WGroupLeader);
mCalendar = calendar;
if(KOPrefs::instance()->mCompactDialogs)
{
showButton(Apply, false);
showButton(Default, false);
}
else
{
setButtonText(Default, i18n("&Templates..."));
}
connect(this, SIGNAL(defaultClicked()), SLOT(slotManageTemplates()));
connect(this, SIGNAL(finished()), SLOT(delayedDestruct()));
}
开发者ID:serghei,项目名称:kde3-kdepim,代码行数:25,代码来源:koincidenceeditor.cpp
示例7: setWindowTitle
void UIFirstRunWzd::retranslateUi()
{
/* Wizard title */
setWindowTitle(tr("First Run Wizard"));
setButtonText(QWizard::FinishButton, tr("Start"));
}
开发者ID:virendramishra,项目名称:VirtualBox4.1.18,代码行数:7,代码来源:UIFirstRunWzd.cpp
示例8: QWizardPage
OwncloudAdvancedSetupPage::OwncloudAdvancedSetupPage()
: QWizardPage(),
_ui(),
_checking(false),
_created(false),
_configExists(false),
_multipleFoldersExist(false),
_progressIndi(new QProgressIndicator (this)),
_oldLocalFolder(),
_remoteFolder()
{
_ui.setupUi(this);
Theme *theme = Theme::instance();
setTitle(WizardCommon::titleTemplate().arg(tr("Connect to %1").arg(theme->appNameGUI())));
setSubTitle(WizardCommon::subTitleTemplate().arg(tr("Setup local folder options")));
registerField( QLatin1String("OCSyncFromScratch"), _ui.cbSyncFromScratch);
_ui.resultLayout->addWidget( _progressIndi );
stopSpinner();
setupCustomization();
connect( _ui.pbSelectLocalFolder, SIGNAL(clicked()), SLOT(slotSelectFolder()));
setButtonText(QWizard::NextButton, tr("Connect..."));
}
开发者ID:cavassin,项目名称:mirall,代码行数:26,代码来源:owncloudadvancedsetuppage.cpp
示例9: qDebug
void ResultsPage::conversionFinished()
{
if (converter->isCancelled()) {
qDebug() << "Processing stopped.";
setTitle(tr("Processing Cancelled"));
setSubTitle(tr("Processing was cancelled at your request."));
progressBar->setValue(progressBar->minimum());
progressBar->setEnabled(false);
} else {
qDebug() << "Processing finished.";
setTitle(tr("Processing Finished"));
if ((converter->sessions.failed == 0) &&
(converter->sessions.processed == 0)) {
setSubTitle(tr("Found no new training sessions to process."));
} else {
setSubTitle(tr("Successfully processed %1 of %2 new training sessions.")
.arg(converter->sessions.processed)
.arg(converter->sessions.processed + converter->sessions.failed));
}
progressBar->setValue(progressBar->maximum());
qDebug() << tr("Skipped %1 training sessions processed previsouly.")
.arg(converter->sessions.skipped).toUtf8().constData();
qDebug() << tr("Wrote %1 of %2 files for %3 of %4 new training sessions.")
.arg(converter->files.written)
.arg(converter->files.written + converter->files.failed)
.arg(converter->sessions.processed)
.arg(converter->sessions.processed + converter->sessions.failed)
.toUtf8().constData();
}
setButtonText(QWizard::FinishButton, tr("Close"));
emit completeChanged();
}
开发者ID:wgreven,项目名称:bipolar,代码行数:32,代码来源:resultspage.cpp
示例10: setWindowTitle
void UICloneVMWizard::retranslateUi()
{
/* Assign wizard title: */
setWindowTitle(tr("Clone a virtual machine"));
setButtonText(QWizard::FinishButton, tr("Clone"));
}
开发者ID:virendramishra,项目名称:VirtualBox4.1.18,代码行数:7,代码来源:UICloneVMWizard.cpp
示例11: setButtonText
void KateMailDialog::slotShowButton()
{
if ( list->isVisible() ) {
setButtonText( User1, i18n("&Show All Documents >>") );
list->hide();
}
else {
list->show();
setButtonText( User1, i18n("&Hide Document List <<") );
lInfo->setText( i18n("Press <strong>Mail...</strong> to send selected documents") );
}
mw->setMinimumSize( TQSize( lInfo->sizeHint().width(), mw->sizeHint().height()) );
setMinimumSize( calculateSize( mw->minimumSize().width(), mw->sizeHint().height() ) );
resize( width(), minimumHeight() );
}
开发者ID:Fat-Zer,项目名称:tdebase,代码行数:16,代码来源:katemailfilesdialog.cpp
示例12: QWidget
CropOverlay::CropOverlay(QWidget *parent) : QWidget(parent),
viewer(parent),
startPos(QPoint(0,0)),
endPos(QPoint(0,0)),
imageArea(QRect(0,0,0,0)),
selectionRect(QRect(0,0,0,0)),
clear(true),
moving(false),
scale(1.0f),
handleSize(5),
drawBuffer(NULL),
dragMode(NO_DRAG)
{
font.setPixelSize(12);
fm = new QFontMetrics(font);
setButtonText("SELECT");
prepareDrawElements();
brushInactiveTint.setColor(QColor(0,10,0,210)); // transparent black
brushInactiveTint.setStyle(Qt::Dense4Pattern);
brushLightDark.setColor(QColor(110,110,110,210)); // transparent black
brushLightDark.setStyle(Qt::SolidPattern);
brushGray.setColor(QColor(140,140,150,255)); // gray
brushGray.setStyle(Qt::SolidPattern);
brushGreen.setColor(QColor(70,220,40,210)); // transparent green
brushGreen.setStyle(Qt::SolidPattern);
selectionOutlinePen.setColor(Qt::black);
selectionOutlinePen.setStyle(Qt::SolidLine);
this->setSizePolicy(QSizePolicy::Expanding,QSizePolicy::Expanding);
this->hide();
}
开发者ID:srrcboy,项目名称:qimgv,代码行数:31,代码来源:cropoverlay.cpp
示例13: QHBoxLayout
void inviwo::EventPropertyWidgetQt::generateWidget() {
QHBoxLayout* hLayout = new QHBoxLayout();
setSpacingAndMargins(hLayout);
label_ = new EditableLabelQt(this, eventproperty_);
button_ = new IvwPushButton(this);
connect(button_, SIGNAL(clicked()), this, SLOT(clickedSlot()));
hLayout->addWidget(label_);
{
QWidget* widget = new QWidget(this);
QSizePolicy sliderPol = widget->sizePolicy();
sliderPol.setHorizontalStretch(3);
widget->setSizePolicy(sliderPol);
QGridLayout* vLayout = new QGridLayout();
widget->setLayout(vLayout);
vLayout->setContentsMargins(0, 0, 0, 0);
vLayout->setSpacing(0);
vLayout->addWidget(button_);
hLayout->addWidget(widget);
}
setLayout(hLayout);
setButtonText();
}
开发者ID:ResearchDaniel,项目名称:inviwo,代码行数:28,代码来源:eventpropertywidgetqt.cpp
示例14: createConnection
/*
Start updating.
Implementation of VariableNameManager's virtual funtion to establish a connection to a PV as the variable name has changed.
This function may also be used to initiate updates when loaded as a plugin.
*/
void QEGenericButton::establishConnection( unsigned int variableIndex ) {
// Create a connection.
// If successfull, the QCaObject object that will supply data update signals will be returned
qcaobject::QCaObject* qca = createConnection( variableIndex );
// If a QCaObject object is now available to supply data update signals, connect it to the appropriate slots
if( qca ) {
// Get updates if subscribing and if this is the alternate read back, or if this is the primary readback and there is no alternate read back.
if( subscribe &&
(
( variableIndex == 1 /*1=Alternate readback variable*/ ) ||
( variableIndex == 0 /*0=Primary readback variable*/ && getSubstitutedVariableName(1/*1=Alternate readback variable*/ ).isEmpty() )
)
)
{
if( updateOption == UPDATE_TEXT || updateOption == UPDATE_TEXT_AND_ICON)
{
setButtonText( "" );
}
connectButtonDataChange( qca );
}
// Get conection status changes always (subscribing or not)
QObject::connect( qca, SIGNAL( stringConnectionChanged( QCaConnectionInfo&, const unsigned int& ) ),
getButtonQObject(), SLOT( connectionChanged( QCaConnectionInfo&, const unsigned int&) ) );
}
}
开发者ID:mvancompernolle,项目名称:ai_project,代码行数:33,代码来源:QEGenericButton.cpp
示例15: Button
ParameterButton::ParameterButton(var value, int buttonType, Font labelFont) :
Button("parameter"), isEnabled(true), type(buttonType),
valueString(value.toString()), font(labelFont)
{
setButtonText(valueString);
setRadioGroupId(1999);
setClickingTogglesState(true);
selectedGrad = ColourGradient(Colour(240,179,12),0.0,0.0,
Colour(207,160,33),0.0, 20.0f,
false);
selectedOverGrad = ColourGradient(Colour(209,162,33),0.0, 5.0f,
Colour(190,150,25),0.0, 0.0f,
false);
usedByNonActiveGrad = ColourGradient(Colour(200,100,0),0.0,0.0,
Colour(158,95,32),0.0, 20.0f,
false);
usedByNonActiveOverGrad = ColourGradient(Colour(158,95,32),0.0, 5.0f,
Colour(128,70,13),0.0, 0.0f,
false);
neutralGrad = ColourGradient(Colour(220,220,220),0.0,0.0,
Colour(170,170,170),0.0, 20.0f,
false);
neutralOverGrad = ColourGradient(Colour(180,180,180),0.0,5.0f,
Colour(150,150,150),0.0, 0.0,
false);
deactivatedGrad = ColourGradient(Colour(120, 120, 120), 0.0, 5.0f,
Colour(100, 100, 100), 0.0, 0.0,
false);
}
开发者ID:andrelockmann,项目名称:GUI,代码行数:33,代码来源:ParameterEditor.cpp
示例16: QWizardPage
PreviewPage::PreviewPage (QWidget *parent)
: QWizardPage (parent)
{
Ui_.setupUi (this);
setButtonText (QWizard::NextButton, tr ("Send request"));
}
开发者ID:ForNeVeR,项目名称:leechcraft,代码行数:7,代码来源:previewpage.cpp
示例17: setPage
void SetupWizard::createPages()
{
setPage(PAGE_START, new StartPage(this));
setPage(PAGE_UPDATE, new AutoUpdatePage(this));
setPage(PAGE_CONTROLLER, new ControllerPage(this));
setPage(PAGE_VEHICLES, new VehiclePage(this));
setPage(PAGE_MULTI, new MultiPage(this));
setPage(PAGE_FIXEDWING, new FixedWingPage(this));
setPage(PAGE_HELI, new HeliPage(this));
setPage(PAGE_SURFACE, new SurfacePage(this));
setPage(PAGE_INPUT, new InputPage(this));
setPage(PAGE_OUTPUT, new OutputPage(this));
setPage(PAGE_LEVELLING, new LevellingPage(this));
setPage(PAGE_CALIBRATION, new OutputCalibrationPage(this));
setPage(PAGE_SUMMARY, new SummaryPage(this));
setPage(PAGE_SAVE, new SavePage(this));
setPage(PAGE_REBOOT, new RebootPage(this));
setPage(PAGE_NOTYETIMPLEMENTED, new NotYetImplementedPage(this));
setPage(PAGE_END, new EndPage(this));
setStartId(PAGE_START);
connect(button(QWizard::CustomButton1), SIGNAL(clicked()), this, SLOT(customBackClicked()));
setButtonText(QWizard::CustomButton1, buttonText(QWizard::BackButton));
QList<QWizard::WizardButton> button_layout;
button_layout << QWizard::Stretch << QWizard::CustomButton1 << QWizard::NextButton << QWizard::CancelButton << QWizard::FinishButton;
setButtonLayout(button_layout);
connect(this, SIGNAL(currentIdChanged(int)), this, SLOT(pageChanged(int)));
}
开发者ID:Crash1,项目名称:TauLabs,代码行数:29,代码来源:setupwizard.cpp
示例18: setButtonText
void HyperlinkButton::refreshFromValueTree (const ValueTree& state, ComponentBuilder&)
{
ComponentBuilder::refreshBasicComponentProperties (*this, state);
setButtonText (state [Ids::text].toString());
setURL (URL (state [Ids::url].toString()));
}
开发者ID:pingdynasty,项目名称:BlipZones,代码行数:7,代码来源:juce_HyperlinkButton.cpp
示例19: switch
void UIWizard::retranslateUi()
{
/* Translate basic/expert button: */
switch (m_mode)
{
case WizardMode_Basic:
setButtonText(QWizard::CustomButton1, tr("&Expert Mode"));
button(QWizard::CustomButton1)->setToolTip(tr("Switch to <nobr><b>Expert Mode</b></nobr>, a one-page dialog for experienced users."));
break;
case WizardMode_Expert:
setButtonText(QWizard::CustomButton1, tr("&Guided Mode"));
button(QWizard::CustomButton1)->setToolTip(tr("Switch to <nobr><b>Guided Mode</b></nobr>, a step-by-step dialog with detailed explanations."));
break;
default: AssertMsgFailed(("Invalid mode: %d", m_mode)); break;
}
}
开发者ID:sobomax,项目名称:virtualbox_64bit_edd,代码行数:16,代码来源:UIWizard.cpp
示例20: KDialog
KPrHtmlExportDialog::KPrHtmlExportDialog(const QList<KoPAPageBase*> &slides, const QString &title, const QString &author, QWidget *parent)
: KDialog(parent)
, m_allSlides(slides)
, m_title(title)
{
QWidget *widget = new QWidget(this);
ui.setupUi(widget);
setMainWidget(widget);
setCaption( i18n("Html Export"));
setButtonText(Ok, i18n("Export"));
ui.klineedit_title->setText(m_title);
ui.klineedit_author->setText(author);
connect(ui.kpushbuttonBrowseTemplate, SIGNAL(clicked()), this, SLOT(browserAction()));
connect(&preview, SIGNAL(loadFinished(bool)), this, SLOT(renderPreview()));
connect(ui.klineedit_title, SIGNAL(editingFinished()), this, SLOT(generatePreview()));
connect(ui.klineedit_author, SIGNAL(editingFinished()), this, SLOT(generatePreview()));
connect(ui.kListBox_slides, SIGNAL(currentRowChanged(int)), this, SLOT(generatePreview(int)));
connect(ui.kcombobox, SIGNAL(currentIndexChanged(int)), this, SLOT(generatePreview()));
connect(ui.kPushButton_selectAll, SIGNAL(clicked()), this, SLOT(checkAllItems()));
connect(ui.kPushButton_deselectAll, SIGNAL(clicked()), this, SLOT(uncheckAllItems()));
connect(ui.toolButton_previous, SIGNAL(clicked()), this, SLOT(generatePrevious()));
connect(ui.toolButton_next, SIGNAL(clicked()), this, SLOT(generateNext()));
connect(ui.kPushButton_Favorite, SIGNAL(clicked()), this, SLOT(favoriteAction()));
connect(ui.kcombobox, SIGNAL(currentIndexChanged(int)), this, SLOT(updateFavoriteButton()));
this->updateFavoriteButton();
this->frameToRender = 0;
this->generateSlidesNames(slides);
this->loadTemplatesList();
this->generatePreview();
}
开发者ID:TheTypoMaster,项目名称:calligra,代码行数:33,代码来源:KPrHtmlExportDialog.cpp
注:本文中的setButtonText函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论