这篇教程C++ updateWidget函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中updateWidget函数的典型用法代码示例。如果您正苦于以下问题:C++ updateWidget函数的具体用法?C++ updateWidget怎么用?C++ updateWidget使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了updateWidget函数的23个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: mVpzLaunchSimulationBox::LaunchSimulationBox( const Glib::RefPtr < Gtk::Builder >& xml, const vpz::Vpz& vpz, vle::utils::Package& curr_pack) : mVpz(vpz), mDialog(0), mMono(0), mMulti(0), mNbProcess(0), mDistant(0), mPlay(0), mStop(0), mProgressBar(0), mCurrentTimeLabel(0),mState(Wait), mThread(0), mThreadRun(false), mCurrPackage(curr_pack){ xml->get_widget("DialogSimulation", mDialog); xml->get_widget("RadioSimuMono", mMono); xml->get_widget("RadioSimuMulti", mMulti); xml->get_widget("SpinSimuProcess", mNbProcess); xml->get_widget("RadioSimuDistant", mDistant); xml->get_widget("simuPlay", mPlay); xml->get_widget("simuStop", mStop); xml->get_widget("simuProgressBar", mProgressBar); xml->get_widget("simuCurrentTime", mCurrentTimeLabel); mConnectionPlayButton = mPlay->signal_clicked().connect( sigc::mem_fun(*this, &LaunchSimulationBox::onPlayButtonClicked)); mConnectionStopButton = mStop->signal_clicked().connect( sigc::mem_fun(*this, &LaunchSimulationBox::onStopButtonClicked)); mMono->set_active(true); mMulti->set_sensitive(false); mDistant->set_sensitive(false); updateWidget();}
开发者ID:Quentin-B,项目名称:SDQI_VLE,代码行数:29,
示例2: set_policyModuleWindow::ModuleWindow(Module* module, MainWindow* parent, Manager* manager){ m_pModule = module; m_pParent = parent; m_pManager = manager; /* Create a new scrolled window, with scrollbars only if needed */ set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_AUTOMATIC); add(m_TreeView); /* create tree store */ m_refTreeModel = Gtk::TreeStore::create(m_Columns); m_TreeView.set_model(m_refTreeModel); //Add the Model’s column to the View’s columns: Gtk::CellRendererText* cellText = Gtk::manage(new Gtk::CellRendererText()); Gtk::CellRendererPixbuf* cellPix = Gtk::manage(new Gtk::CellRendererPixbuf()); Gtk::TreeViewColumn* col = Gtk::manage(new Gtk::TreeViewColumn("Item")); col->pack_start(*cellPix, false); col->pack_start(*cellText, true); col->add_attribute(*cellText, "text", 1); col->add_attribute(*cellPix, "pixbuf", 0); m_TreeView.append_column(*col); m_TreeView.get_column(0)->set_resizable(true); m_TreeView.append_column("Value", m_Columns.m_col_value); m_TreeView.get_column(1)->set_resizable(true); updateWidget(); show_all_children();}
开发者ID:SibghatullahSheikh,项目名称:yarp,代码行数:32,
示例3: mapToScene void PianorollTrackView::onMouseReleaseSlot(QMouseEvent *event) { mouseStatus.endPosition = mapToScene(event->pos()); if (mouseStatus.mode == MouseStatus::LEFTBUTTON_MOVE_ITEM) { if (mouseStatus.isMouseMoved) { ItemSelectionManager *manager = controllerAdapter->getItemSelectionManager(); EditEventCommand command = manager->getEditEventCommand(trackIndex); controllerAdapter->execute(&command); } else { ItemSelectionManager *manager = controllerAdapter->getItemSelectionManager(); const VSQ_NS::Event *noteEventOnMouse = findNoteEventAt(event->pos()); if (noteEventOnMouse) { if ((event->modifiers() & Qt::ControlModifier) != Qt::ControlModifier) { manager->clear(); } if (mouseStatus.itemSelectionStatusAtFirst.isContains(noteEventOnMouse)) { manager->remove(noteEventOnMouse); } else { manager->add(noteEventOnMouse); } } } } else if (mouseStatus.mode == MouseStatus::LEFTBUTTON_ADD_ITEM) { if (0 < mouseStatus.addingNoteItem.getLength()) { std::vector<VSQ_NS::Event> eventList; eventList.push_back(mouseStatus.addingNoteItem); AddEventCommand command(trackIndex, eventList); controllerAdapter->execute(&command); } } mouseStatus.mode = MouseStatus::NONE; updateWidget(); }
开发者ID:cadencii,项目名称:cadencii-nt,代码行数:32,
示例4: stringvoid ResourceWindow::onRefresh(){ ErrorLogger* logger = ErrorLogger::Instance(); if(m_pManager->updateResource(m_pComputer->getName())) { YarpBroker broker; broker.init(); string strServer = m_pComputer->getName(); if(strServer[0] != '/') strServer = string("/") + strServer; // Processes list ProcessContainer processes; if(broker.getAllProcesses(strServer.c_str(), processes)) { m_pComputer->getProcesses().clear(); for(unsigned int i=0; i<processes.size(); i++) m_pComputer->getProcesses().push_back(processes[i]); } else logger->addError(broker.error()); updateWidget(); } m_pParent->reportErrors();}
开发者ID:paulfitz,项目名称:yarp,代码行数:27,
示例5: updateAllstatic void updateAll(EditorWidget *my_widget, QWidget *widget){ configure_note_colors(my_widget); updateWidget(my_widget, widget);#if 0 if(widget->objectName () == "view"){ widget->setStyleSheet(QString::fromUtf8("background-color: qlineargradient(spread:reflect, x1:0, y1:0, x2:0.38, y2:1, stop:0 rgba(111, 131, 111, 22), stop:1 rgba(255, 255, 255, 43));")); }#endif#if 0 widget->setStyleSheet(QString::fromUtf8("color: qlineargradient(spread:reflect, x1:0, y1:0, x2:0.38, y2:1, stop:0 rgba(0, 3, 0, 155), stop:1 rgba(5, 5, 5, 175));"));#endif const QList<QObject*> list = widget->children(); if(list.empty()==true) return; for (int i = 0; i < list.size(); ++i) { QWidget *widget = dynamic_cast<QWidget*>(list.at(i)); if(widget!=NULL) updateAll(my_widget,widget); }}
开发者ID:renno23,项目名称:radium,代码行数:25,
示例6: updateAllstatic void updateAll(EditorWidget *my_widget){ foreach (QWidget *widget, QApplication::allWidgets()) updateWidget(my_widget, widget); //updateAll(my_widget,application->mainWidget()); updateApplication(my_widget,application);}
开发者ID:erdoukki,项目名称:radium,代码行数:7,
示例7: updateWidgetvoid ColormapEditWidget::selectionChanged( int id ){ m_colormap = ColormapFunctions::get( id ); m_nameEdit->setText( m_colormap.getName() ); m_selected = id; updateWidget();}
开发者ID:dmastrovito,项目名称:braingl,代码行数:8,
示例8: findNoteEventAt void PianorollTrackView::handleMouseLeftButtonPressByEraser(QMouseEvent *event) { const VSQ_NS::Event *noteEventOnMouse = findNoteEventAt(event->pos()); controllerAdapter->removeEvent(trackIndex, noteEventOnMouse); if (!noteEventOnMouse) { initMouseStatus(MouseStatus::LEFTBUTTON_SELECT_ITEM, event, noteEventOnMouse); } updateWidget(); }
开发者ID:cadencii,项目名称:cadencii-nt,代码行数:8,
示例9: updateWidgetvoid LoginWidget::slotChangePWView(){ if(pwVisible){ pwVisible = FALSE; }else{ pwVisible = TRUE; } updateWidget();}
开发者ID:KhuramAli,项目名称:pcbsd,代码行数:8,
示例10: updateWidgetvoid LoginWidget::slotChangePWView(){ if(pwVisible){ pwVisible = false; }else{ pwVisible = true; } updateWidget();}
开发者ID:baitisj,项目名称:pcbsd,代码行数:8,
示例11: flush/// Ensure all pending events have been processed and update screen/// for the given widget./// /widget The widget needs to update./// /w The waveform used to update screen./// /whole Update whole screen or not./// /wait The synchronous way between ScreenProxy and server.void ScreenProxy::flush(const QWidget *widget, Waveform w, bool whole, ScreenCommand::WaitMode wait){ flush(); updateWidget(widget, w, whole, wait);}
开发者ID:qbikez,项目名称:booxsdk,代码行数:14,
示例12: QMenuQMenu *QMenuFilesRecentlyOpened::createWidget(QWidget *parent, const std::string &name){ menuRecentlyOpenedFiles = new QMenu(QString(name.c_str()), parent); menuRecentlyOpenedFiles->setTearOffEnabled(true); updateWidget(); return menuRecentlyOpenedFiles;}
开发者ID:FabienPean,项目名称:sofa,代码行数:8,
示例13: CVF_ASSERT//--------------------------------------------------------------------------------------------------/// //--------------------------------------------------------------------------------------------------QWidget* QSRPropGuiBindingBool::createWidget(){ CVF_ASSERT(m_widget == NULL); m_widget = new QCheckBox; updateWidget(CONFIG_AND_VALUE); connect(m_widget, SIGNAL(stateChanged(int)), SLOT(slotStateChanged())); return m_widget;}
开发者ID:JacobStoren,项目名称:ResInsight,代码行数:12,
示例14: legendWidgets/*! /brief Update the entries for an item /param itemInfo Info for an item /param data List of legend entry attributes for the item */void QwtLegend::updateLegend( const QVariant &itemInfo, const QList<QwtLegendData> &data ){ QList<QWidget *> widgetList = legendWidgets( itemInfo ); if ( widgetList.size() != data.size() ) { QLayout *contentsLayout = d_data->view->contentsWidget->layout(); while ( widgetList.size() > data.size() ) { QWidget *w = widgetList.takeLast(); contentsLayout->removeWidget( w ); // updates might be triggered by signals from the legend widget // itself. So we better don't delete it here. w->hide(); w->deleteLater(); } for ( int i = widgetList.size(); i < data.size(); i++ ) { QWidget *widget = createWidget( data[i] ); if ( contentsLayout ) contentsLayout->addWidget( widget ); if ( isVisible() ) { // QLayout does a delayed show, with the effect, that // the size hint will be wrong, when applications // call replot() right after changing the list // of plot items. So we better do the show now. widget->setVisible( true ); } widgetList += widget; } if ( widgetList.isEmpty() ) { d_data->itemMap.remove( itemInfo ); } else { d_data->itemMap.insert( itemInfo, widgetList ); } updateTabOrder(); } for ( int i = 0; i < data.size(); i++ ) updateWidget( widgetList[i], data[i] );}
开发者ID:151706061,项目名称:sofa,代码行数:63,
示例15: QDialogFlyEmDataQueryDialog::FlyEmDataQueryDialog(QWidget *parent) : QDialog(parent), ui(new Ui::FlyEmDataQueryDialog){ ui->setupUi(this); connect(ui->sourceComboBox, SIGNAL(currentIndexChanged(const QString&)), this, SLOT(updateWidget(const QString&))); updateWidget(ui->sourceComboBox->currentText());}
开发者ID:janelia-flyem,项目名称:NeuTu,代码行数:9,
示例16: updateWidgetvoid FilesystemWidget::pathChanged() { // Enable/disable go up button if (dir.absolutePath() == QDir::rootPath()) { goUpAction->setDisabled(true); // If we are on a Mac, we should allow hidden files - GH-40 // fsWidgetModel->setFilter(QDir::AllDirs|QDir::Files|QDir::NoDotAndDotDot|QDir::Hidden); } else { goUpAction->setEnabled(true); } updateWidget();}
开发者ID:esdrasbeleza,项目名称:audactile,代码行数:10,
示例17: foreachvoid ArchiveAccountOptionsWidget::apply(){ if (FSaveRequests.isEmpty()) { IArchiveStreamPrefs prefs = FArchiver->archivePrefs(FStreamJid); prefs.methodLocal = ui.cmbMethodLocal->itemData(ui.cmbMethodLocal->currentIndex()).toString(); prefs.methodAuto = ui.cmbMethodAuto->itemData(ui.cmbMethodAuto->currentIndex()).toString(); prefs.methodManual = ui.cmbMethodManual->itemData(ui.cmbMethodManual->currentIndex()).toString(); prefs.defaultPrefs.otr = ui.cmbModeOTR->itemData(ui.cmbModeOTR->currentIndex()).toString(); prefs.defaultPrefs.save = ui.cmbModeSave->itemData(ui.cmbModeSave->currentIndex()).toString(); prefs.defaultPrefs.expire = ui.cmbExpireTime->itemData(ui.cmbExpireTime->currentIndex()).toInt(); foreach(const Jid &itemJid, FTableItems.keys()) { QTableWidgetItem *jidItem = FTableItems.value(itemJid); prefs.itemPrefs[itemJid].save = ui.tbwItemPrefs->item(jidItem->row(),COL_SAVE)->data(Qt::UserRole).toString(); prefs.itemPrefs[itemJid].otr = ui.tbwItemPrefs->item(jidItem->row(),COL_OTR)->data(Qt::UserRole).toString(); prefs.itemPrefs[itemJid].expire = ui.tbwItemPrefs->item(jidItem->row(),COL_EXPIRE)->data(Qt::UserRole).toInt(); prefs.itemPrefs[itemJid].exactmatch = ui.tbwItemPrefs->item(jidItem->row(),COL_EXACT)->data(Qt::UserRole).toBool(); } foreach(const Jid &itemJid, prefs.itemPrefs.keys()) { if (!FTableItems.contains(itemJid)) { if (FArchiver->isSupported(FStreamJid,NS_ARCHIVE_PREF)) { QString requestId = FArchiver->removeArchiveItemPrefs(FStreamJid,itemJid); if (!requestId.isEmpty()) FSaveRequests.append(requestId); prefs.itemPrefs.remove(itemJid); } else { prefs.itemPrefs[itemJid].otr = QString::null; prefs.itemPrefs[itemJid].save = QString::null; } } } QString requestId = FArchiver->setArchivePrefs(FStreamJid,prefs); if (!requestId.isEmpty()) FSaveRequests.append(requestId); if (prefs.autoSave != ui.chbAutoSave->isChecked()) { requestId = FArchiver->setArchiveAutoSave(FStreamJid,ui.chbAutoSave->isChecked()); if (!requestId.isEmpty()) FSaveRequests.append(requestId); } FLastError = XmppError::null; updateWidget(); }
开发者ID:ChALkeR,项目名称:vacuum-im,代码行数:54,
示例18: documentvoid HTMLPlugInImageElement::updateWidgetIfNecessary(){ document()->updateStyleIfNeeded(); if (!needsWidgetUpdate() || useFallbackContent() || isImageType()) return; if (!renderEmbeddedObject() || renderEmbeddedObject()->pluginCrashedOrWasMissing()) return; updateWidget(CreateOnlyNonNetscapePlugins);}
开发者ID:sysrqb,项目名称:chromium-src,代码行数:12,
示例19: documentvoid HTMLPlugInImageElement::updateWidgetIfNecessary(){ document()->updateStyleIfNeeded(); if (!needsWidgetUpdate() || useFallbackContent() || isImageType()) return; if (!renderEmbeddedObject() || renderEmbeddedObject()->showsUnavailablePluginIndicator()) return; updateWidget(CreateOnlyNonNetscapePlugins);}
开发者ID:ragner,项目名称:webkit,代码行数:12,
示例20: updateWidgetvoid FileDialog::setFilter(const QString& filter) { StringList strs = StringUtil::tokenize(q2u(filter).c_str(), L'|'); m_filters.clear(); for (StringList::iterator it=strs.begin(); it!=strs.end(); ++it) { m_filters.push_back(u2q(*it)); } if (!m_filters.contains("*.*")) { m_filters.push_back("*.*"); } updateWidget();}
开发者ID:CharlieCraft,项目名称:axonengine,代码行数:13,
示例21: qDebugvoid LoginWidget::setCurrentUser(QString id){ if(idL.isEmpty()){ return; } int index = idL.indexOf(id); if(index == -1){ qDebug() << "LoginWidget: Item does not exist -" << id; }else{ listUsers->setCurrentIndex(index); listUserBig->setCurrentRow(index); updateWidget(); emit UserChanged(id); }}
开发者ID:baitisj,项目名称:pcbsd,代码行数:13,
示例22: onUrlLoadedvoid DataMediaWidget::onUrlLoaded(const QUrl &AUrl, const QByteArray &AData){ if (FUriIndex<FMedia.uris.count() && FMedia.uris.at(FUriIndex).url == AUrl) { const IDataMediaURI &uri = FMedia.uris.at(FUriIndex); if (!updateWidget(uri, AData)) { FUriIndex++; FLastError = XmppError(IERR_DATAFORMS_MEDIA_INVALID_FORMAT); loadUri(); } }}
开发者ID:Nikoli,项目名称:vacuum-im,代码行数:13,
示例23: QWidget/*! /brief Constructor * * set up the widget, start timer. */CallWidget::CallWidget(UserInfo *ui, const QString &channelme, const QString &status, uint ts, const QString &channelpeer, const QString & callerid, const QString &calleridname, QWidget *parent, const PhoneInfo *_pi) : QWidget(parent), m_square(16,16), m_parkedCall(false){ // qDebug() << Q_FUNC_INFO << channelme; m_ui = ui; pi = _pi; QGridLayout * gridlayout = new QGridLayout(this); m_channelme = channelme; m_channelpeer = channelpeer; gridlayout->setColumnStretch(3, 1); m_lbl_status = new QLabel(this); gridlayout->addWidget(m_lbl_status, 0, 0); m_lbl_time = new QLabel(this); m_lbl_time->setFont(QFont("", 8, QFont::Bold)); m_startTime = QDateTime::fromTime_t(ts); startTimer(1000); gridlayout->addWidget(m_lbl_time, 1, 0, 1, 3); m_lbl_direction = new QLabel(this); gridlayout->addWidget(m_lbl_direction, 0, 1); m_lbl_exten = new QLabel(this); m_lbl_exten->setFont(QFont("courier", 10, QFont::Light)); gridlayout->addWidget(m_lbl_exten, 0, 2); //updateWidget(status, ts, "cpeer", callerid, calleridname); updateWidget(status, ts, channelpeer, callerid, calleridname, pi); m_hangUpAction = new QAction(tr("&Hangup"), this); m_hangUpAction->setStatusTip(tr("Hang up/Close the channel")); connect(m_hangUpAction, SIGNAL(triggered()), this, SLOT(hangUp())); m_transferToNumberAction = new QAction(tr("&Transfer to number"), this); m_transferToNumberAction->setStatusTip(tr("Transfer the channel to the dialed number") ); connect(m_transferToNumberAction, SIGNAL(triggered()), this, SLOT(transferToNumber())); m_parkCall = new QAction(tr("&Park the call"), this); m_parkCall->setStatusTip(tr("Park this call") ); connect(m_parkCall, SIGNAL(triggered()), this, SLOT(parkCall()));}
开发者ID:Eyepea,项目名称:xivo-gallifrey,代码行数:54,
注:本文中的updateWidget函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 C++ updateWidgets函数代码示例 C++ updateVolume函数代码示例 |