这篇教程C++ writeText函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中writeText函数的典型用法代码示例。如果您正苦于以下问题:C++ writeText函数的具体用法?C++ writeText怎么用?C++ writeText使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了writeText函数的30个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: writeText// SLOTvoid debugDialog::gpsIsConnected_change(bool newState){ if(newState == true){ writeText(0, tr("Connected!") ); }else{ writeText(0, tr("Disconnected!") ); }}
开发者ID:ryandavid,项目名称:RTKdashboard,代码行数:8,
示例2: drawBackgroundvoid CommandDialog::draw (){ drawBackground (); drawBorder ("HERMIT Commands"); writeText (2, 2, "Select a command with the cursor and press Enter"); writeText (2, 3, "to activate it, or press Esc to cancel.");}
开发者ID:ancientlore,项目名称:hermit,代码行数:7,
示例3: writeTextCredits3static void writeTextCredits3 (){ writeText ( "Thanks to", PAL1, 2 ); writeText ( "Bruce Rodríguez @emigrantebruce", PAL2, 2 ); writeText ( "Eduardo Robsy @EduRobsy", PAL2, 2 ); writeText ( "Jon Cortazar @Jon_Cortazar ", PAL2, 4 );}
开发者ID:moon-watcher,项目名称:GrielsQuest,代码行数:7,
示例4: mainint main( int argc, char **argv ){ QApplication app( argc, argv ); TextDevice device; TextThread foo( "Foo" ), bar( "Bar" ); QObject::connect( &foo, SIGNAL(writeText(QString)), &device, SLOT(write(QString)) ); QObject::connect( &bar, SIGNAL(writeText(QString)), &device, SLOT(write(QString)) ); foo.start(); bar.start(); device.start(); QMessageBox::information( 0, "Threading", "Close me to stop!" ); foo.stop(); bar.stop(); device.stop(); foo.wait(); bar.wait(); device.wait(); return 0; }
开发者ID:KleineKarsten,项目名称:FoundationsOfQtDev,代码行数:26,
示例5: writeTextvoid TextManager::refreshCurrentLetter(char letter){ if(letter){ writeText(inputLin,inputCol,inputPool+inputPos,false);//erase inputPool[inputPos]=letter; writeText(inputLin,inputCol,inputPool+inputPos,true);//write }}
开发者ID:0724,项目名称:Arduino,代码行数:7,
示例6: brl_writeWindowstatic intbrl_writeWindow (BrailleDisplay *brl, const wchar_t *text) { static unsigned char previousContent[MAX_WINDOW_SIZE]; static int previousCursor = -1; char *previousLocale; if (!cellsHaveChanged(previousContent, brl->buffer, brl->textColumns*brl->textRows, NULL, NULL, NULL) && (brl->cursor == previousCursor)) { return 1; } previousCursor = brl->cursor; if (classificationLocale) { previousLocale = setlocale(LC_CTYPE, NULL); setlocale(LC_CTYPE, classificationLocale); } else { previousLocale = NULL; }#ifdef USE_CURSES clear();#else /* USE_CURSES */ addstr("/r/n");#endif /* USE_CURSES */ { int row; for (row=0; row<brl->textRows; row++) { writeText(&text[row*brl->textColumns], brl->textColumns); if (row < brl->textRows-1) addstr("/r/n"); } }#ifdef USE_CURSES if ((brl->cursor >= 0) && (brl->cursor < (brl->textColumns * brl->textRows))) move(brl->cursor/brl->textColumns, brl->cursor%brl->textColumns); else move(brl->textRows, 0); refresh();#else /* USE_CURSES */ if ((brl->textRows == 1) && (brl->cursor >= 0) && (brl->cursor < brl->textColumns)) { addch('/r'); writeText(text, brl->cursor); } else { addstr("/r/n"); }#endif /* USE_CURSES */ if (previousLocale) setlocale(LC_CTYPE, previousLocale); return 1;}
开发者ID:BaJIeK,项目名称:brltty,代码行数:53,
示例7: assertvoid ConsoleDialog::runStatement(){ assert(m_console != NULL); if (m_console) { char buffer[1000]; GetWindowTextA(::GetDlgItem(_hSelf, IDC_INPUT), buffer, 1000); historyAdd(buffer); writeText(m_prompt.size(), m_prompt.c_str()); writeText(strlen(buffer), buffer); writeText(1, "/n"); SetWindowTextA(::GetDlgItem(_hSelf, IDC_INPUT), ""); m_console->runStatement(buffer); }}
开发者ID:Alexsa,项目名称:PythonScript,代码行数:15,
示例8: writeTextvoid MainWindow::mkdirTemp(bool f){ writeText("Directorio temporal ../../temp", msg_notify); QString path = QDir::currentPath()+"/temp"; if(f){ if(!QDir(path).exists()) QDir().mkdir(path); writeText("^ [OK]", msg_info); }else{ if(QDir(path).exists()) QDir().rmdir(path); writeText("^ [NO]", msg_info); }}
开发者ID:dkmpos89,项目名称:softEMG-updater,代码行数:15,
示例9: writeTextCredits2static void writeTextCredits2 (){ writeText ( "Translators", PAL1, 2 ); writeText ( "Felipe Monge Corbalán @vakapp", PAL2, 2 ); // ENGLISH writeText ( "DaRkHoRaCe @oongamoonga", PAL2, 2 ); // ITALIAN writeText ( "KanedaFr @SpritesMind", PAL2, 2 ); // FRENCH writeText ( "Jordi Montornés Solé @jordimontornes", PAL2, 2 ); // CATAL C++ writeTo函数代码示例 C++ writeTag函数代码示例
|