这篇教程C++ updateButtonState函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中updateButtonState函数的典型用法代码示例。如果您正苦于以下问题:C++ updateButtonState函数的具体用法?C++ updateButtonState怎么用?C++ updateButtonState使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了updateButtonState函数的22个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: updateButtonState void Button::baseUpdateEnable() { updateButtonState(); if (!getEnabled()) { mIsMouseFocus = false; } }
开发者ID:dayongxie,项目名称:MyGUI,代码行数:8,
示例2: updateButtonState void Button::setState(state s) { if (s == _state) return; //printf("set state: %d/n", (int)s); _state = s; updateButtonState(s); }
开发者ID:raymondlu,项目名称:oxygine-framework,代码行数:8,
示例3: updateButtonState void StrangeButton::baseUpdateEnable() { updateButtonState(); if (!mEnabled) { mIsMouseFocus = false; } }
开发者ID:sskoruppa,项目名称:Glove_Code,代码行数:8,
示例4: trvoid VAttachmentList::deleteSelectedItems(){ QVector<ConfirmItemInfo> items; const QList<QListWidgetItem *> selectedItems = m_attachmentList->selectedItems(); if (selectedItems.isEmpty()) { return; } for (auto const & item : selectedItems) { items.push_back(ConfirmItemInfo(item->text(), item->text(), "", NULL)); } QString text = tr("Are you sure to delete these attachments of note " "<span style=/"%1/">%2</span>?") .arg(g_config->c_dataTextStyle).arg(m_file->getName()); QString info = tr("Deleted files could be found in the recycle " "bin of this note.<br>" "Click /"Cancel/" to leave them untouched."); VConfirmDeletionDialog dialog(tr("Confirm Deleting Attachments"), text, info, items, false, false, false, g_mainWin); if (dialog.exec()) { items = dialog.getConfirmedItems(); QVector<QString> names; for (auto const & item : items) { names.push_back(item.m_name); } if (!m_file->deleteAttachments(names)) { VUtils::showMessage(QMessageBox::Warning, tr("Warning"), tr("Fail to delete attachments of note <span style=/"%1/">%2</span>.") .arg(g_config->c_dataTextStyle) .arg(m_file->getName()), tr("Please check the attachments folder and " "maintain the configuration file manually."), QMessageBox::Ok, QMessageBox::Ok, g_mainWin); } updateButtonState(); updateContent(); }}
开发者ID:getwindow,项目名称:vnote,代码行数:58,
示例5: updateDialoguevoid DialogueBoxWidget::showOptionDialogueBox(const NPCData::OptionDialogueNode& optionNode){ _dialoguePartIndex = 0; _currentDialogueNode = dynamic_cast<const NPCData::DialogueNode*>(&optionNode); // Update current dialogue index updateDialogue(0); updateButtonState();}
开发者ID:eerstar,项目名称:Coeus,代码行数:9,
示例6: updateButtonState void Button::onMouseButtonPressed(int _left, int _top, MouseButton _id) { if (_id == MouseButton::Left) { mIsMousePressed = true; updateButtonState(); } Base::onMouseButtonPressed(_left, _top, _id); }
开发者ID:venkatarajasekhar,项目名称:viper,代码行数:9,
示例7: updateButtonStatevoid Button::onLButtonUp(){ mouseDown_ = false; updateButtonState(); if (clickFunc_) { clickFunc_(this); }}
开发者ID:JianchengZh,项目名称:kasicass,代码行数:10,
示例8: updateButtonState void SharedStateButton::setStateSelected(bool _value) { Base::setStateSelected(_value); updateButtonState(); for (ButtonGroup::iterator it = mSharedWith.begin(); it != mSharedWith.end(); ++it) { (*it)->MyGUI::Button::setStateSelected(getStateSelected()); } }
开发者ID:OpenMW,项目名称:openmw,代码行数:10,
示例9: loadSettingsvoid FaceTrackNoIR::startTracker( ) { b->save(); loadSettings(); bindKeyboardShortcuts(); if (Libraries) delete Libraries; Libraries = new SelectedLibraries(this); if (!Libraries->correct) { QMessageBox::warning(this, "Something went wrong", "Tracking can't be initialized, probably protocol prerequisites missing", QMessageBox::Ok, QMessageBox::NoButton); stopTracker(); return; } #if defined(_WIN32) keybindingWorker = new KeybindingWorker(*this, keyCenter, keyToggle); keybindingWorker->start();#endif if (tracker) { tracker->wait(); delete tracker; } { QSettings settings("opentrack"); QString currentFile = settings.value ( "SettingsFile", QCoreApplication::applicationDirPath() + "/settings/default.ini" ).toString(); QSettings iniFile( currentFile, QSettings::IniFormat ); for (int i = 0; i < 6; i++) { axis(i).curve.loadSettings(iniFile); axis(i).curveAlt.loadSettings(iniFile); } } tracker = new Tracker ( this, s ); if (pTrackerDialog && Libraries->pTracker) { pTrackerDialog->registerTracker( Libraries->pTracker ); } if (pFilterDialog && Libraries->pFilter) pFilterDialog->registerFilter(Libraries->pFilter); tracker->start(); ui.video_frame->show(); timUpdateHeadPose.start(50); updateButtonState(true);}
开发者ID:chsims1,项目名称:opentrack,代码行数:55,
示例10: updateButtonStatevoid Wizard::setCurrentPage(int indx){ m_currentId = indx; m_pages[indx]->initializePage(); m_stack->setCurrentIndex(indx); m_title->setText(m_pages[indx]->title()); m_subTitle->setTitle(m_pages[indx]->subTitle()); updateButtonState();}
开发者ID:RPG-18,项目名称:WtComponents,代码行数:11,
示例11: btnvoid TabCombo::addChild(Handler<Element> const& h, std::string const& title){ //ボタンの作成 Handler<TabButton> const btn(new TabButton(log(), world(), top_)); btn->text(title); btn->setVertical( (this->buttonPosition_ == ButtonPosition::Left) || (this->buttonPosition_ == ButtonPosition::Right) ); btn->tab(self().cast<TabCombo>()); btn->element(h); //ボタンの登 C++ updateCallFrameAndPauseIfNeeded函数代码示例 C++ updateButton函数代码示例
|