• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ showStatus函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: connect

bool GenericTab::initBinder(MapperRuleBinder* mapperBinderPtr)
{
    // initialize rule binder and *connect* signals!! (on init())
    //m_mapperBinderPtr=new MapperRuleBinder(m_ruleCheckerPtr, mapper);
    mapperBinderPtr->init();

    //! This is are the signals of the rule binder we need to connect to:
    // addRecord, first stage record added and second stage record added (run and finish running post-triggers)
    // the pre triggers signals are connected in the binder classes; then we just need the stuff to show messages...

    // Default Rules
    connect(this, SIGNAL(addRecord()), mapperBinderPtr,
        SIGNAL(addRecord()));

    // Pre Submit Rules
    connect(this, SIGNAL(submit()), mapperBinderPtr,
        SIGNAL(submitRecord()));

    connect(mapperBinderPtr, SIGNAL(finishedPreSubmit(const bool)), this,
        SLOT(onPreSubmit(const bool)));

    // Messages
    connect(mapperBinderPtr, SIGNAL(showError(QString, const bool)), this,
    SIGNAL(showError(QString, const bool)));

    connect(mapperBinderPtr, SIGNAL(showStatus(QString)), this,
        SIGNAL(showStatus(QString)));

    return true;
}
开发者ID:doublebyte1,项目名称:app_solution,代码行数:30,代码来源:generictab.cpp


示例2: showStatus

bool ChartEditorWindow::loadChartTable(){
    bool ok;

    this->lvi.clear();
    this->lvi << chartTable.loadChartTableFromXML(chartTableXMLFile, &ok);

    // TODO: doesn't show layer if it doesn't have level 0

    if(!ok){
        showStatus("Error loading " + chartTableXMLFile);
        return false;
    }
    showStatus("Loaded " + chartTableXMLFile);
    m_ui->actionSave->setEnabled(true);
    m_ui->actionSaveAs->setEnabled(true);

    // update selection list
    layerSelectionVector.clear();
    QVectorIterator<LayerVisualInfo*> lviIt(lvi);
    while(lviIt.hasNext()){
        LayerVisualInfo * tmpLVI = lviIt.next();
        if(tmpLVI->getSimpLevel() == 0){
            LayerSelectionItem * selItem = new LayerSelectionItem(tmpLVI->getLayerId(), true);
            layerSelectionVector << selItem;
        }
    }

    showChartTable();
    showLayers();

    return true;
}
开发者ID:emoratac,项目名称:devel,代码行数:32,代码来源:charteditorwindow.cpp


示例3: PJ_UNUSED_ARG

void MainWin::on_call_state(pjsua_call_id call_id, pjsip_event *e)
{
    pjsua_call_info ci;

    PJ_UNUSED_ARG(e);

    pjsua_call_get_info(call_id, &ci);

    if (currentCall_ == -1 && ci.state < PJSIP_INV_STATE_DISCONNECTED &&
	ci.role == PJSIP_ROLE_UAC)
    {
	emit signalNewCall(call_id, false);
    }

    char status[80];
    if (ci.state == PJSIP_INV_STATE_DISCONNECTED) {
	snprintf(status, sizeof(status), "Call is %s (%s)",
	         ci.state_text.ptr,
	         ci.last_status_text.ptr);
	showStatus(status);
	emit signalCallReleased();
    } else {
	snprintf(status, sizeof(status), "Call is %s", pjsip_inv_state_name(ci.state));
	showStatus(status);
    }
}
开发者ID:avble,项目名称:natClientEx,代码行数:26,代码来源:vidgui.cpp


示例4: createSmileyMenu

void wavrChatWindow::init(User *pLocalUser, User *pRemoteUser, bool connected) {
    localId = pLocalUser->id;
    localName = pLocalUser->name;

    peerId = pRemoteUser->id;
    peerIds.insert(peerId, pRemoteUser->id);
    peerNames.insert(peerId, pRemoteUser->name);
    peerStatuses.insert(peerId, pRemoteUser->status);
    peerCaps.insert(peerId, pRemoteUser->caps);

    this->pLocalUser = pLocalUser;

    pMessageLog->localId = localId;
    pMessageLog->peerId = peerId;
    pMessageLog->peerName = pRemoteUser->name;

    //  get the avatar image for the users
    pMessageLog->participantAvatars.insert(localId, pLocalUser->avatarPath);
    pMessageLog->participantAvatars.insert(peerId, pRemoteUser->avatarPath);

    createSmileyMenu();
    createToolBar();

    bConnected = connected;
    if(!bConnected)
        showStatus(IT_Disconnected, true);

    int index = wavrHelper::statusIndexFromCode(pRemoteUser->status);
    if(index != -1) {
        setWindowIcon(QIcon(statusPic[index]));
        if(statusType[index] == StatusTypeOffline)
            showStatus(IT_Offline, true);
        else if(statusType[index] == StatusTypeAway)
            showStatus(IT_Away, true);
        else if(statusType[index] == StatusTypeBusy)
            showStatus(IT_Busy, true);
    }

    pSettings = new wavrSettings();
    showSmiley = pSettings->value(IDS_EMOTICON, IDS_EMOTICON_VAL).toBool();
    pMessageLog->showSmiley = showSmiley;
    pMessageLog->autoFile = pSettings->value(IDS_AUTOFILE, IDS_AUTOFILE_VAL).toBool();
    pMessageLog->messageTime = pSettings->value(IDS_MESSAGETIME, IDS_MESSAGETIME_VAL).toBool();
    pMessageLog->messageDate = pSettings->value(IDS_MESSAGEDATE, IDS_MESSAGEDATE_VAL).toBool();
    pMessageLog->allowLinks = pSettings->value(IDS_ALLOWLINKS, IDS_ALLOWLINKS_VAL).toBool();
    pMessageLog->pathToLink = pSettings->value(IDS_PATHTOLINK, IDS_PATHTOLINK_VAL).toBool();
    pMessageLog->trimMessage = pSettings->value(IDS_TRIMMESSAGE, IDS_TRIMMESSAGE_VAL).toBool();
    clearOnClose = pSettings->value(IDS_CLEARONCLOSE, IDS_CLEARONCLOSE_VAL).toBool();

    setUIText();

    ui.txtMessage->setFocus();

    QString themePath = pSettings->value(IDS_THEME, IDS_THEME_VAL).toString();
    pMessageLog->initMessageLog(themePath);
    if(!clearOnClose)
        pMessageLog->restoreMessageLog(QDir(StdLocation::cacheDir()).absoluteFilePath("msg_" + peerId + ".tmp"));
}
开发者ID:parikshitag,项目名称:wavr,代码行数:58,代码来源:chatwindow.cpp


示例5: showStatus

// mouseMove
//---------------------------------------------------------------------------
void VehicleSelectionView::mouseMove(const iXY &prevPos, const iXY &newPos)
{
    GameTemplateView::mouseMove(prevPos, newPos);

    if (highlightedButton >= 0) {
        showStatus(buttons[highlightedButton]->getToolTip());
    } else {
        showStatus("Select a unit for production");
    }

} // end VehicleSelectionView::mouseMove
开发者ID:BackupTheBerlios,项目名称:netpanzer-svn,代码行数:13,代码来源:VehicleSelectionView.cpp


示例6: QString

void UploaderThread::run()
{
	if ( samba->connect( deviceKey ) != Samba::OK )
	{
		mainWindow->messageThreadSafe( QString( "Usb> Upload Failed - couldn't connect.") );
		mainWindow->messageThreadSafe( QString( "  ** Check USB cable is plugged in.") );
		mainWindow->messageThreadSafe( QString( "  ** Make sure you've erased the current program, reset the power, and try again.") );
		Samba::Status disconnectStatus;
		disconnectStatus = samba->disconnect( );
		return;
	}
	
	Samba::Status uploaderStatus = samba->flashUpload( bin_file );
	if ( uploaderStatus != Samba::OK )
  {
  	showStatus( QString( "Usb> Upload Failed." ), 2000 );
  	switch ( uploaderStatus )
  	{
  		case Samba::ERROR_INCORRECT_CHIP_INFO:
			mainWindow->messageThreadSafe( QString( 
				"Usb> Upload Failed - don't recognize the chip you're trying to program.") );
			  break;
  		case Samba::ERROR_COULDNT_FIND_FILE:
  		case Samba::ERROR_COULDNT_OPEN_FILE:
			mainWindow->messageThreadSafe( QString( 
				"Usb> Upload Failed - Couldn't find or open the specified .bin file.") );
			  break;
  		case Samba::ERROR_SENDING_FILE:
			mainWindow->messageThreadSafe( QString( 
				"Usb> Upload Failed - Couldn't complete download.") );
    		mainWindow->messageThreadSafe( QString( 
    			"  ** Noisy power supply?  Flakey USB connection?") );
			  break;
  		default:
			mainWindow->messageThreadSafe( QString( 
				"Usb> Upload Failed - Unknown Error - %d.").arg(uploaderStatus) );
    		mainWindow->messageThreadSafe( QString( 
    			"  ** Note error number and consult the support forums.") );
			  break;	
  	}
  }
	
	// set up samba to actually boot from this file
	if ( samba->bootFromFlash( ) != Samba::OK )
		mainWindow->messageThreadSafe( QString( "Usb> Could not switch to boot from flash.") );
		
	if ( samba->reset(  ) != Samba::OK )
		mainWindow->messageThreadSafe( QString( "Usb> Could not switch to boot from flash.") );
		
	showStatus( QString( "Upload complete." ), 2000 );
	progress( -1 );
	monitor->deviceRemoved( deviceKey );
}
开发者ID:sanjog47,项目名称:makecontroller,代码行数:53,代码来源:UploaderThread.cpp


示例7: showStatus

void ExcitationThread::run()
{
    emit showStatus("Generating excitation...");
    try {
        Excitation::generate( this->wrkDir, this->cfg);
        emit generated();
    } catch(QLE e) {
        emit showCritical(e.msg);
        emit showStatus("Excitation generating failed!", 2000);
        return;
    }
    emit showStatus("Excitation and inverse filter are generated!", 2000);
}
开发者ID:mincequi,项目名称:QLouder,代码行数:13,代码来源:ExcitationThread.cpp


示例8: tr

void ChartEditorWindow::saveAsChartTable(){
    bool ok;

    QString fileName = QFileDialog::getSaveFileName(this, tr("Save File"), chartTableXMLFile,
                                                    tr("XML files (*.xml);;Any file (*)"));
    if(!fileName.isEmpty()){
        chartTableXMLFile = fileName;
        ok = chartTable.saveChartTableToXML(this->lvi, chartTableXMLFile);
        if(ok)
            showStatus(tr("Saved ") + chartTableXMLFile);
        else
            showStatus(tr("Error saving ") + chartTableXMLFile);

    }
}
开发者ID:emoratac,项目名称:devel,代码行数:15,代码来源:charteditorwindow.cpp


示例9: switch

void KJavaApplet::stateChange( const int newStateInt ) {
    AppletState newState = (AppletState)newStateInt;
    bool ok = false;
    if (d->failed) {
        return;
    }
    switch ( newState ) {
        case CLASS_LOADED:
            ok = (d->state == UNKNOWN);
            break;
        case INSTANCIATED:
            if (ok) {
                showStatus(i18n("Initializing Applet \"%1\"...").arg(appletName()));
            }
            ok = (d->state == CLASS_LOADED);
            break;
        case INITIALIZED:
            ok = (d->state == INSTANCIATED);
            if (ok) { 
                showStatus(i18n("Starting Applet \"%1\"...").arg(appletName()));
                start();
            }
            break;
        case STARTED:
            ok = (d->state == INITIALIZED || d->state == STOPPED);
            if (ok) {    
                showStatus(i18n("Applet \"%1\" started").arg(appletName()));
            }
            break;
        case STOPPED:
            ok = (d->state == INITIALIZED || d->state == STARTED);
            if (ok) {    
                showStatus(i18n("Applet \"%1\" stopped").arg(appletName()));
            }
            break;
        case DESTROYED:
            ok = true;
            break;
        default:
            break;
    }
    if (ok) {
        d->state = newState;
    } else {
        kdError(6100) << "KJavaApplet::stateChange : don't want to switch from state "
            << d->state << " to " << newState << endl;
    } 
}
开发者ID:Fat-Zer,项目名称:tdelibs,代码行数:48,代码来源:kjavaapplet.cpp


示例10: showError

void FrmSampling::insertRow()
{
    if (!tSampLevels->insertRow(tSampLevels->rowCount()))
        emit showError(tr("Could not add a sampled level to the table!"));
    else 
        emit showStatus(tr("Sampled level successfully initialized!"));
}
开发者ID:doublebyte1,项目名称:medfisis,代码行数:7,代码来源:frmsampling.cpp


示例11: createToolBar

void lmcBroadcastWindow::init(bool connected) {
	createToolBar();

	setWindowIcon(QIcon(IDR_APPICON));
	ui.splitter->setStyleSheet("QSplitter::handle { image: url("IDR_HGRIP"); }");

	ui.tvUserList->setIconSize(QSize(16, 16));
    ui.tvUserList->header()->setSectionsMovable(false);
	ui.tvUserList->header()->setStretchLastSection(false);
    ui.tvUserList->header()->setSectionResizeMode(0, QHeaderView::Stretch);
	ui.tvUserList->setCheckable(true);

	//	load settings
	pSettings = new lmcSettings();
	restoreGeometry(pSettings->value(IDS_WINDOWBROADCAST).toByteArray());
	ui.splitter->restoreState(pSettings->value(IDS_SPLITTERBROADCAST).toByteArray());
	showSmiley = pSettings->value(IDS_EMOTICON, IDS_EMOTICON_VAL).toBool();
	sendKeyMod = pSettings->value(IDS_SENDKEYMOD, IDS_SENDKEYMOD_VAL).toBool();
	fontSizeVal = pSettings->value(IDS_FONTSIZE, IDS_FONTSIZE_VAL).toInt();
	pFontGroup->actions()[fontSizeVal]->setChecked(true);
	int viewType = pSettings->value(IDS_USERLISTVIEW, IDS_USERLISTVIEW_VAL).toInt();
	ui.tvUserList->setView((UserListView)viewType);

	//	show a message if not connected
	bConnected = connected;
	ui.btnSend->setEnabled(bConnected);
	if(!bConnected)
		showStatus(IT_Disconnected, true);

	setUIText();

	ui.txtMessage->setStyleSheet("QTextEdit { " + fontStyle[fontSizeVal] + " }");
	ui.txtMessage->setFocus();
}
开发者ID:Litew,项目名称:lanmsng,代码行数:34,代码来源:broadcastwindow.cpp


示例12: postMessage

void postMessage(const byte deviceIdx) {

	if (DEBUG_MEMORY) printMem("Post ");

	if (client_send.connect(vlosite, 80)) {
		if (DEBUG_WEB) dbg.println("NewC");

		int len = 0;
		printP(COMMAND_IO_SEND, TXTPOST);
		len = printResponse(COMMAND_IO_SEND, deviceIdx, true);
		client_send.println(len);
		if (DEBUG_WEB) dbg.println(len);
		client_send.println();
		if (DEBUG_WEB) dbg.println();
		printResponse(COMMAND_IO_SEND, deviceIdx, false);
		client_send.println();

		delay (3);
		while (client_send.available()) {
			char c = client_send.read();
			if (DEBUG_WEB) dbg.print(c);
		}

	} else {
		if (DEBUG_WEB) dbg.println("Fail");
		showStatus(NET_ERROR, 0);
		Reset_AVR();
	}

	delay(1);
	if (DEBUG_WEB) dbg.println("Disc");
	client_send.stop();
}
开发者ID:paulv888,项目名称:Arduino,代码行数:33,代码来源:Web.cpp


示例13: performCommandLine

//==============================================================================
int performCommandLine (const String& commandLine)
{
    StringArray args;
    args.addTokens (commandLine, true);
    args.trim();

    String command (args[0]);

    try
    {
        if (matchArgument (command, "help"))                     { showHelp(); return 0; }
        if (matchArgument (command, "h"))                        { showHelp(); return 0; }
        if (matchArgument (command, "resave"))                   { resaveProject (args, false); return 0; }
        if (matchArgument (command, "resave-resources"))         { resaveProject (args, true); return 0; }
        if (matchArgument (command, "set-version"))              { setVersion (args); return 0; }
        if (matchArgument (command, "bump-version"))             { bumpVersion (args); return 0; }
        if (matchArgument (command, "git-tag-version"))          { gitTag (args); return 0; }
        if (matchArgument (command, "buildmodule"))              { buildModules (args, false); return 0; }
        if (matchArgument (command, "buildallmodules"))          { buildModules (args, true); return 0; }
        if (matchArgument (command, "status"))                   { showStatus (args); return 0; }
        if (matchArgument (command, "trim-whitespace"))          { cleanWhitespace (args, false); return 0; }
        if (matchArgument (command, "remove-tabs"))              { cleanWhitespace (args, true); return 0; }
        if (matchArgument (command, "tidy-divider-comments"))    { tidyDividerComments (args); return 0; }
        if (matchArgument (command, "fix-broken-include-paths")) { fixRelativeIncludePaths (args); return 0; }
    }
    catch (const CommandLineError& error)
    {
        std::cout << error.message << std::endl << std::endl;
        return 1;
    }

    return commandLineNotPerformed;
}
开发者ID:gmhendler,项目名称:PluginDev,代码行数:34,代码来源:jucer_CommandLine.cpp


示例14: setWindowTitle

void lmcChatRoomWindow::setUIText(void) {
	ui.retranslateUi(this);

	setWindowTitle(getWindowTitle());

	QTreeWidgetItem* pGroupItem = getGroupItem(&GroupId);
	pGroupItem->setText(0, tr("Participants"));

	userChatAction->setText(tr("&Conversation"));
	userFileAction->setText(tr("Send &File"));
	userInfoAction->setText(tr("Get &Information"));
	pbtnSmiley->setToolTip(tr("Insert Smiley"));
	pSaveAction->setText(tr("&Save As..."));
	pSaveAction->setToolTip(tr("Save this conversation"));
	pFontAction->setText(tr("Change Font..."));
	pFontAction->setToolTip(tr("Change message font"));
	pFontColorAction->setText(tr("Change Color..."));
	pFontColorAction->setToolTip(tr("Change message text color"));

	if(groupMode) {
		addContactAction->setText(tr("&Add Contacts..."));
		addContactAction->setToolTip(tr("Add people to this conversation"));
	}

	showStatus(IT_Ok, true);	//	this will force the info label to retranslate
}
开发者ID:sonic414,项目名称:lmc-clone,代码行数:26,代码来源:chatroomwindow.cpp


示例15: setMark

// New current line
bool DebuggerManager::setActiveLine (const QString& file, int line )
{
  //Get local filename
  QString filename = file;

  // Remove old active line mark
  setMark(m_currentFile, m_currentLine, false, KTextEditor::MarkInterface::markType05);

  // Update vars with active line
  m_currentFile = filename;
  m_currentLine = line;

  // No new current position
  if(filename.isEmpty() || quantaApp->previewVisible())
    return true;

  // Find new position in editor
  if(ViewManager::ref()->isOpened(filename) || QExtFileInfo::exists(filename, true, 0L))
    quantaApp->gotoFileAndLine(filename, line, 0);
  else
  {
    showStatus(i18n("Unable to open file %1, check your basedirs and mappings.").arg(filename), true);
  }

  // Add new active line mark
  setMark(filename, line, true, KTextEditor::MarkInterface::markType05);
  return true;
}
开发者ID:serghei,项目名称:kde3-kdewebdev,代码行数:29,代码来源:debuggermanager.cpp


示例16: showStatus

void
MSWindowsClientTaskBarReceiver::onStatusChanged()
{
    if (IsWindowVisible(m_window)) {
        showStatus();
    }
}
开发者ID:amandamcg,项目名称:synergy,代码行数:7,代码来源:MSWindowsClientTaskBarReceiver.cpp


示例17: analogRead

void GeneratorWithPressureSensor::loop() {
	tps.update();
	led.update();

	tps.smooth(analogRead(pressurePin), &pressure, 4);
	tps.smooth(analogRead(cellTemperaturePin), &cellTemperature, 4);
	tps.smooth(analogRead(mosfetTemperaturePin), &mosfetTemperature, 4);
	tps.smooth(analogRead(ambientTemperaturePin), &ambientTemperature, 4);
	tempCurrent = analogRead(currentPin);
	if (tempCurrent > currentMinThreshold) {
		currentTPS.update();
		currentTPS.smooth(tempCurrent, &current, 4);
	}

	processReader();
	if (maxPressure < pressure)
		maxPressure = pressure;
	if (maxCurrent < current)
		maxCurrent = current;
	if (checkThresholdsExceeded()) {
		// turn off
		noTone(mosfetPin);
		led.playBlink(BLINK_FAST, 0);
		if (isPlaying) {
			isPlaying = false;
			showStatus(true);
		}
	}
}
开发者ID:slavianp,项目名称:improc,代码行数:29,代码来源:GeneratorWithPressureSensor.cpp


示例18: while

	void Driver::stop()
	{
		while (car_.speed() != 0)
			car_.brake();
		showStatus();

	}
开发者ID:ManaliAmin,项目名称:Object-Oriented-cpp,代码行数:7,代码来源:Driver.cpp


示例19: pjsua_acc_get_info

void MainWin::on_reg_state(pjsua_acc_id acc_id)
{
    pjsua_acc_info info;

    pjsua_acc_get_info(acc_id, &info);

    char reg_status[80];
    char status[120];

    if (!info.has_registration) {
	pj_ansi_snprintf(reg_status, sizeof(reg_status), "%.*s",
			 (int)info.status_text.slen,
			 info.status_text.ptr);

    } else {
	pj_ansi_snprintf(reg_status, sizeof(reg_status),
			 "%d/%.*s (expires=%d)",
			 info.status,
			 (int)info.status_text.slen,
			 info.status_text.ptr,
			 info.expires);

    }

    snprintf(status, sizeof(status),
	     "%.*s: %s\n",
	     (int)info.acc_uri.slen, info.acc_uri.ptr,
	     reg_status);
    showStatus(status);
}
开发者ID:avble,项目名称:natClientEx,代码行数:30,代码来源:vidgui.cpp


示例20: showStatus

void
CMSWindowsPortableTaskBarReceiver::onStatusChanged()
{
	if (IsWindowVisible(m_window)) {
		showStatus();
	}
}
开发者ID:BogdanLivadariu,项目名称:synergy,代码行数:7,代码来源:MSWindowsPortableTaskBarReceiver.cpp



注:本文中的showStatus函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ showTime函数代码示例发布时间:2022-05-30
下一篇:
C++ showSettings函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap