您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ updateCaption函数代码示例

51自学网 2021-06-03 09:13:20
  C++
这篇教程C++ updateCaption函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中updateCaption函数的典型用法代码示例。如果您正苦于以下问题:C++ updateCaption函数的具体用法?C++ updateCaption怎么用?C++ updateCaption使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了updateCaption函数的23个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: addUserTag

	void EditorState::initState()	{		addUserTag("//n", "/n");		addUserTag("CurrentFileName", mFileName);		mMainPane = new MainPane();		mMessageBoxFadeControl = new MessageBoxFadeControl();		mSettingsWindow = new SettingsWindow();		mSettingsWindow->eventEndDialog = MyGUI::newDelegate(this, &EditorState::notifySettingsWindowEndDialog);		mOpenSaveFileDialog = new OpenSaveFileDialog();		mOpenSaveFileDialog->eventEndDialog = MyGUI::newDelegate(this, &EditorState::notifyEndDialog);		mOpenSaveFileDialog->setFileMask("*.xml");		mOpenSaveFileDialog->setCurrentFolder(RecentFilesManager::getInstance().getRecentFolder());		mOpenSaveFileDialog->setRecentFilders(RecentFilesManager::getInstance().getRecentFolders());		ActionManager::getInstance().eventChanges += MyGUI::newDelegate(this, &EditorState::notifyChanges);		updateCaption();		if (!Application::getInstance().getParams().empty())		{			mFileName = Application::getInstance().getParams().front();			addUserTag("CurrentFileName", mFileName);			load();			updateCaption();		}	}
开发者ID:siangzhang,项目名称:starworld,代码行数:30,


示例2: connect

//----------------------------------------------------------------------------// XmlConsole//----------------------------------------------------------------------------XmlConsole::XmlConsole(PsiAccount *_pa):QWidget(){	ui_.setupUi(this);	pa = _pa;	pa->dialogRegister(this);	connect(pa, SIGNAL(updatedAccount()), SLOT(updateCaption()));	connect(pa->client(), SIGNAL(xmlIncoming(const QString &)), SLOT(client_xmlIncoming(const QString &)));	connect(pa->client(), SIGNAL(xmlOutgoing(const QString &)), SLOT(client_xmlOutgoing(const QString &)));	connect(pa->psi(), SIGNAL(accountCountChanged()), this, SLOT(updateCaption()));	updateCaption();	prompt = 0;	ui_.te->setUndoRedoEnabled(false);	ui_.te->setReadOnly(true);	ui_.te->setAcceptRichText(false);	QTextFrameFormat f = ui_.te->document()->rootFrame()->frameFormat();	f.setBackground(QBrush(Qt::black));	ui_.te->document()->rootFrame()->setFrameFormat(f);	connect(ui_.pb_clear, SIGNAL(clicked()), SLOT(clear()));	connect(ui_.pb_input, SIGNAL(clicked()), SLOT(insertXml()));	connect(ui_.pb_close, SIGNAL(clicked()), SLOT(close()));	connect(ui_.pb_dumpRingbuf, SIGNAL(clicked()), SLOT(dumpRingbuf()));	connect(ui_.ck_enable, SIGNAL(clicked(bool)), ui_.gb_filter, SLOT(setEnabled(bool)));	resize(560,400);}
开发者ID:ChowZenki,项目名称:psi,代码行数:34,


示例3: addUserTag

	void EditorState::initState()	{		addUserTag("//n", "/n");		setFileName(mFileName);		mMainPaneControl = new MainPaneControl();		mSettingsWindow = new SettingsWindow();		mSettingsWindow->Initialise(SettingsManager::getInstance().getValue("EditorState/SettingsWindowLayout"));		mSettingsWindow->eventEndDialog.connect(this, &EditorState::notifySettingsWindowEndDialog);		mCodeGenerator = new CodeGenerator();		mCodeGenerator->eventEndDialog.connect(this, &EditorState::notifyEndDialogCodeGenerator);		mOpenSaveFileDialog = new OpenSaveFileDialog();		mOpenSaveFileDialog->Initialise(SettingsManager::getInstance().getValue("EditorState/OpenSaveFileDialogLayout"));		mOpenSaveFileDialog->setFileMask("*.layout");		mOpenSaveFileDialog->eventEndDialog.connect(this, &EditorState::notifyEndDialogOpenSaveFile);		mOpenSaveFileDialog->setCurrentFolder(RecentFilesManager::getInstance().getRecentFolder());		mOpenSaveFileDialog->setRecentFolders(RecentFilesManager::getInstance().getRecentFolders());		updateCaption();		if (!Application::getInstance().getParams().empty())		{			setFileName(Application::getInstance().getParams().front());			load();			updateCaption();		}		UndoManager::getInstance().eventChanges += MyGUI::newDelegate(this, &EditorState::notifyChanges);	}
开发者ID:Anomalous-Software,项目名称:mygui,代码行数:33,


示例4: RKMDIWindow

RKCommandEditorWindow::RKCommandEditorWindow (QWidget *parent, bool use_r_highlighting) : RKMDIWindow (parent, RKMDIWindow::CommandEditorWindow) {	RK_TRACE (COMMANDEDITOR);	KLibFactory *factory = KLibLoader::self()->factory( "libkatepart" );	if (factory) {		// Create the part		m_doc = (Kate::Document *) factory->create( this, "katepart", "KParts::ReadWritePart" );		RK_ASSERT (m_doc);		m_view = (Kate::View *) m_doc->widget();	}	// strip down the khtmlpart's GUI. remove some stuff we definitely don't need.	RKCommonFunctions::removeContainers (m_doc, QStringList::split (',', "bookmarks,tools_spelling,tools_spelling_from_cursor,tools_spelling_selection,switch_to_cmd_line"), true);	RKCommonFunctions::moveContainer (m_doc, "Menu", "tools", "edit", true);	m_doc->insertChildClient (new RKCommandEditorWindowPart (m_view, this));	QHBoxLayout *pLayout = new QHBoxLayout( this, 0, -1, "layout");	pLayout->addWidget(m_view);	setIcon (SmallIcon ("source"));	connect (m_doc, SIGNAL (fileNameChanged ()), this, SLOT (updateCaption ()));	connect (m_doc, SIGNAL (modifiedChanged ()), this, SLOT (updateCaption ()));		// of course most of the time this causes a redundant call to updateCaption. Not if a modification is undone, however.	if (use_r_highlighting) setRHighlighting ();	updateCaption ();	// initialize}
开发者ID:svn2github,项目名称:rkward-svn-mirror,代码行数:28,


示例5: qDebug

void KviWindow::focusInEvent(QFocusEvent *){	if(m_pLastFocusedChild)	{		if(m_pLastFocusedChild->hasFocus() && m_pLastFocusedChild->isVisible())		{			// focus is still in this window.			// just make sure that we're the active one.			if(g_pActiveWindow != this)				g_pMainWindow->windowActivated(this);			return;		}	}	// focus doesn't seem to be in this window	if(!m_pFocusHandler)	{		// figure out a child to give focus to.		// we probably have no KviInput since it would have been grabbed anyway		if(m_pIrcView)			m_pFocusHandler = m_pIrcView;		else		{			for(auto & it : children())			{				QObject * pObj = it;				if(pObj->isWidgetType())				{					m_pFocusHandler = (QWidget *)pObj;					break;				}			}		}		if(m_pFocusHandler)			m_pFocusHandler->setFocus();		else		{			// else too bad :/			qDebug("No widget able to handle focus for window %s", objectName().toUtf8().data());			updateCaption(); // do it anyway			return;		}	}	else	{		m_pFocusHandler->setFocus();	}	// Setting the focus to the focus handler usually	// triggers our filter for the children's focusInEvent	// which in turn should invoke our filter and make this window the active one.	// So we should be already the active window at this point.	// If we're not, then fix this.	if(g_pActiveWindow != this)		g_pMainWindow->windowActivated(this);	updateCaption();}
开发者ID:Cizzle,项目名称:KVIrc,代码行数:60,


示例6: QTimer

Foo::Foo(){//! [0]    QTimer *timer = new QTimer(this);//! [0] //! [1]    connect(timer, SIGNAL(timeout()), this, SLOT(updateCaption()));//! [1] //! [2]    timer->start(1000);//! [2]//! [3]    QTimer::singleShot(200, this, SLOT(updateCaption()));//! [3]    {    // ZERO-CASE//! [4]    QTimer *timer = new QTimer(this);//! [4] //! [5]    connect(timer, SIGNAL(timeout()), this, SLOT(processOneThing()));//! [5] //! [6]    timer->start();//! [6]    }}
开发者ID:Andreas665,项目名称:qt,代码行数:25,


示例7: updatePreview

void KSnapshot::slotRegionGrabbed( const QPixmap &pix ){    if ( !pix.isNull() )    {        snapshot = pix;        updatePreview();        modified = true;        updateCaption();    }    if ( snapshot.isNull() )    {        mainWidget->ok_btn->setEnabled(false);        mainWidget->save_btn->setEnabled(false);    }    else    {        mainWidget->ok_btn->setEnabled(true);        mainWidget->save_btn->setEnabled(true);    }    if( mode() == KSnapshotObject::Region )    {        rgnGrab->deleteLater();    }    else if( mode() == KSnapshotObject::FreeRegion ) {        freeRgnGrab->deleteLater();    }    QApplication::restoreOverrideCursor();    show();}
开发者ID:Berrrry,项目名称:Qtqq,代码行数:32,


示例8: setFileName

	void EditorState::loadDropFile()	{		setFileName(mDropFileName);		load();		updateCaption();	}
开发者ID:Anomalous-Software,项目名称:mygui,代码行数:7,


示例9: TextureToolControl

	StateTextureControl::StateTextureControl(MyGUI::Widget* _parent) :		TextureToolControl(_parent),		mAreaSelectorControl(nullptr),		mGridStep(0)	{		mTypeName = MyGUI::utility::toString((size_t)this);		// сразу рисуем рамки для стейтов		std::vector<MyGUI::IntCoord> coords(8);		drawUnselectedStates(coords);		addSelectorControl(mAreaSelectorControl);		mAreaSelectorControl->eventChangePosition += MyGUI::newDelegate(this, &StateTextureControl::notifyChangePosition);		CommandManager::getInstance().registerCommand("Command_MoveLeft", MyGUI::newDelegate(this, &StateTextureControl::CommandMoveLeft));		CommandManager::getInstance().registerCommand("Command_MoveRight", MyGUI::newDelegate(this, &StateTextureControl::CommandMoveRight));		CommandManager::getInstance().registerCommand("Command_MoveTop", MyGUI::newDelegate(this, &StateTextureControl::CommandMoveTop));		CommandManager::getInstance().registerCommand("Command_MoveBottom", MyGUI::newDelegate(this, &StateTextureControl::CommandMoveBottom));		CommandManager::getInstance().registerCommand("Command_GridMoveLeft", MyGUI::newDelegate(this, &StateTextureControl::CommandGridMoveLeft));		CommandManager::getInstance().registerCommand("Command_GridMoveRight", MyGUI::newDelegate(this, &StateTextureControl::CommandGridMoveRight));		CommandManager::getInstance().registerCommand("Command_GridMoveTop", MyGUI::newDelegate(this, &StateTextureControl::CommandGridMoveTop));		CommandManager::getInstance().registerCommand("Command_GridMoveBottom", MyGUI::newDelegate(this, &StateTextureControl::CommandGridMoveBottom));		mGridStep = SettingsManager::getInstance().getSector("Settings")->getPropertyValue<int>("Grid");		SettingsManager::getInstance().eventSettingsChanged += MyGUI::newDelegate(this, &StateTextureControl::notifySettingsChanged);		initialiseAdvisor();		updateCaption();	}
开发者ID:alexis-,项目名称:iwe,代码行数:31,


示例10: updateCaption

void WbDlg::activated() {	if(pending_ > 0) {		pending_ = 0;		updateCaption();	}	doFlash(false);}
开发者ID:Masterblaster0815,项目名称:psi,代码行数:7,


示例11: showQes

void MainWindow::fileLoad(const std::vector<std::wstring>& paths){	bool ret=m_allList.loadFile(paths);	if(ret){		m_paths = paths;				//乱数
C++ updateChildList函数代码示例
C++ updateCallFrameAndPauseIfNeeded函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。