亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? commands.cpp

?? Qt/Embedded是一個多平臺的C++圖形用戶界面應用程序框架
?? CPP
?? 第 1 頁 / 共 3 頁
字號:
    bool specialFile = FALSE;    if ( !fileext.IsEmpty() && fileext[0] == 'c' ) {	fileToMoc = filepath + filename + ".moc";	mocfile = filepath + filename + ".moc";	specialFile = TRUE;    } else {	fileToMoc = filepath + file;	mocfile = filepath + "moc_"+ filename + ".cpp";    }    // Add the files to the project    if ( pProject->AddFile( CComBSTR(fileToMoc), CComVariant(VARIANT_TRUE) ) == S_OK )        m_pApplication->PrintToOutputWindow( CComBSTR("\t\tadded "+file) );    if ( pProject->AddFile( CComBSTR(mocfile), CComVariant(VARIANT_TRUE) ) == S_OK )	m_pApplication->PrintToOutputWindow( CComBSTR("\t\tadded "+mocfile) );    // Get the list of configurations in the active project    CComQIPtr<IConfigurations, &IID_IConfigurations> pConfigs;    if ( getConfigurations( pProject, pConfigs ) != S_OK ) {	m_pApplication->PrintToOutputWindow( CComBSTR("FAILED TO ADD MOC!") );	return;    }    if ( !fileext.IsEmpty() && fileext[0] == 'c' ) {	fileToMoc = filepath + filename + ".moc";	mocfile = "$(InputDir)\\$(InputName).moc";	specialFile = TRUE;    } else {	fileToMoc = filepath + file;	mocfile = "$(InputDir)\\moc_$(InputName).cpp";    }    // Add the moc step to the file    long cCount;    VERIFY_OK( pConfigs->get_Count(&cCount));    for (long c = 0; c < cCount; c++ ) {	CComVariant Varc = c+1;	CComPtr<IConfiguration> pConfig;	VERIFY_OK(pConfigs->Item(Varc, &pConfig));	VERIFY_OK(pConfig->AddCustomBuildStepToFile(CComBSTR(fileToMoc), CComBSTR(moccommand+"$(InputDir)\\$(InputName)."+fileext+" -o "+mocfile), 					  CComBSTR(mocfile), CComBSTR("Moc'ing $(InputName)."+fileext+" ..."), 					  CComVariant(VARIANT_FALSE)));	m_pApplication->PrintToOutputWindow( CComBSTR("\t\tadded MOC preprocessor") );    }    // CANTDO: add dependency to .moc-file    if ( specialFile ) {//	    VERIFY_OK(pConfig->AddFileDependency( CComBSTR(mocfile), CComBSTR(filepath+file)));    }}void CCommands::addUIC( CComQIPtr<IBuildProject, &IID_IBuildProject> pProject, CString file ){    CString fileext;    CString filename;    CString filepath;    splitFileName( file, filepath, filename, fileext );    const CString uiFile(filepath + file);    const CString impFile(filepath + filename + ".cpp");    const CString decFile(filepath + filename + ".h");    const CString incFile( filename+".h" );    const CString mocFile(filepath + "moc_" + filename + ".cpp");    const CString uiccommand("%qtdir%\\bin\\uic.exe ");    const CString moccommand("%qtdir%\\bin\\moc.exe ");    // Add the file and the all output to the project    if ( pProject->AddFile( CComBSTR(uiFile), CComVariant(VARIANT_TRUE) ) == S_OK )	m_pApplication->PrintToOutputWindow( CComBSTR("\t\tadded "+uiFile) );    if ( pProject->AddFile( CComBSTR(impFile), CComVariant(VARIANT_TRUE) ) == S_OK )	m_pApplication->PrintToOutputWindow( CComBSTR("\t\tadded "+impFile) );    if (pProject->AddFile( CComBSTR(decFile), CComVariant(VARIANT_TRUE) ) == S_OK )	m_pApplication->PrintToOutputWindow( CComBSTR("\t\tadded "+decFile) );    if (pProject->AddFile( CComBSTR(mocFile), CComVariant(VARIANT_TRUE) ) == S_OK )	m_pApplication->PrintToOutputWindow( CComBSTR("\t\tadded "+mocFile) );    // Get the list of configurations in the active project    CComQIPtr<IConfigurations, &IID_IConfigurations> pConfigs;    if ( getConfigurations( pProject, pConfigs ) != S_OK ) {	m_pApplication->PrintToOutputWindow( CComBSTR("FAILED TO ADD UIC!") );    }    // Add the uic step to the file    long cCount;    VERIFY_OK( pConfigs->get_Count(&cCount));    for (long c = 0; c < cCount; c++ ) {	CComVariant Varc = c+1;	CComPtr<IConfiguration> pConfig;	VERIFY_OK(pConfigs->Item(Varc, &pConfig));	CComBSTR command = uiccommand+"$(InputPath) -o $(InputDir)\\$(InputName).h\n" +			   uiccommand+"$(InputPath) -i $(InputDir)\\$(InputName).h -o $(InputDir)\\$(InputName).cpp\n" + 			   moccommand+"$(InputDir)\\$(InputName).h -o $(InputDir)\\moc_$(InputName).cpp";	CComBSTR output = "$(InputDir)\\$(InputName).h\n$(InputDir)\\$(InputName).cpp\n$(InputDir)\\moc_$(InputName).cpp";	VERIFY_OK(pConfig->AddCustomBuildStepToFile(CComBSTR(uiFile), command, output, CComBSTR("Uic'ing $(InputName).ui ..."), 	    CComVariant(VARIANT_FALSE)));	m_pApplication->PrintToOutputWindow( CComBSTR("\t\tadded UIC preprocessor step") );    }}CString CCommands::replaceTemplateStrings( const CString& t, const CString& classheader, 					   const CString& classname, const CString& instance, 					   const CString& instcall, const CString& projekt,					   const CString& runapp){    CString r = t;    r.Replace( "$QMSDEVCLASSHEADER", classheader );    r.Replace( "$QMSDEVCLASSNAME", classname );    r.Replace( "$QMSDEVINSTANCE", instance );    r.Replace( "$QMSDEVINSTCALL", instcall );    r.Replace( "$QMSDEVPROJECTNAME", projekt );    r.Replace( "$QMSDEVRUNAPP", runapp );    return r;}void CCommands::runDesigner( const CString &file ){    CString path;    CString command;    path = getenv("QTDIR");    if ( path.IsEmpty() ) {	// Get the designer location from the registry	CRegKey key;	char* value = new char[256];	unsigned long length;	if (key.Open(HKEY_CURRENT_USER, "Software\\Trolltech\\Qt\\Qt GUI Designer") == ERROR_SUCCESS) {	    length = 255;	    key.QueryValue( value, "PathToExe", &length );	    path = value;	    length = 255;	    key.QueryValue( value, "NameOfExe", &length );	    command = value;	    key.Close();	} else {	    ::MessageBox(NULL, "Can't locate Qt GUI Designer", 			       "Error", MB_OK | MB_ICONINFORMATION);	    return;	}	delete[] value;    } else {	command = "designer.exe";	path+="\\bin";    }    // Run the designer with options -client and "file"    if ( spawnl(_P_NOWAIT, path+"\\"+command, command, "-client", file, 0 ) == -1 ) {	VERIFY_OK(m_pApplication->EnableModeless(VARIANT_FALSE));	::MessageBox(NULL, "Failed to run Qt GUI Designer: "+command, 			   "Start Designer", MB_OK | MB_ICONINFORMATION);	VERIFY_OK(m_pApplication->EnableModeless(VARIANT_TRUE));    } else {	m_pApplication->PrintToOutputWindow( CComBSTR("Qt Designer started...") );    }}/////////////////////////////////////////////////////////////////////////////// Ccommands-MethodenSTDMETHODIMP CCommands::QMsDevStartDesigner() {    AFX_MANAGE_STATE(AfxGetStaticModuleState());    CString file;    CString filepath;    CString filename;    CString fileext;    // Get the active file    file = getActiveFileName();    splitFileName( file, filepath, filename, fileext );    // Check if we can use the file    if ( file.IsEmpty() || fileext != "ui" )	file = "NewDialog.ui";    runDesigner( filepath + file );    return S_OK;}STDMETHODIMP CCommands::QMsDevUseQt(){    AFX_MANAGE_STATE(AfxGetStaticModuleState());    m_pApplication->PrintToOutputWindow( CComBSTR("Adding Qt support to project") );    // Check for active Project    CComQIPtr<IBuildProject, &IID_IBuildProject> pProject;    if ( getActiveProject( pProject ) != S_OK )	return S_FALSE;    VERIFY_OK(m_pApplication->EnableModeless(VARIANT_FALSE));    int result = ::MessageBox(NULL, "Do you want to use Qt in a shared library?", "Question", MB_YESNOCANCEL | MB_ICONQUESTION );    VERIFY_OK(m_pApplication->EnableModeless(VARIANT_TRUE));    if ( result == IDCANCEL )	return S_OK;    // TODO:Get the highest qt library version in $(QTDIR)\lib    // Get the list of configurations in the active project    CComQIPtr<IConfigurations, &IID_IConfigurations> pConfigs;    if ( getConfigurations( pProject, pConfigs ) != S_OK )	return S_FALSE;    // Add the specific settings to compiler and linker        long cCount;    VERIFY_OK( pConfigs->get_Count(&cCount));    for (long c = 0; c < cCount; c++ ) {	CComVariant Varc = c+1;	CComPtr<IConfiguration> pConfig;	VERIFY_OK(pConfigs->Item(Varc, &pConfig));	if ( result == IDYES )	    addSharedSettings( pConfig );	else	    addStaticSettings( pConfig );    }    return S_OK;    m_pApplication->PrintToOutputWindow( CComBSTR("Finished!\n") );}STDMETHODIMP CCommands::QMsDevAddMOCStep(){    AFX_MANAGE_STATE(AfxGetStaticModuleState());    VERIFY_OK(m_pApplication->EnableModeless(VARIANT_FALSE));    // Check for active Project    CComQIPtr<IBuildProject, &IID_IBuildProject> pProject;    if ( getActiveProject( pProject ) != S_OK ) {	VERIFY_OK(m_pApplication->EnableModeless(VARIANT_FALSE));	::MessageBox(NULL, "Can't find an active project!", "QMsDev", MB_OK | MB_ICONINFORMATION );	VERIFY_OK(m_pApplication->EnableModeless(VARIANT_TRUE));	return S_FALSE;    }    CString file;    CString fileext;    CString filename;    CString filepath;    file = getActiveFileName();    if ( file.IsEmpty() ) {	CFileDialog fd( TRUE, NULL, NULL, OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, 	    "Header files (*.h; *.hxx; *.hpp)|*.h; *.hxx; *.hpp|"	    "Implementation files (*.c; *.cpp; *.cxx)|*.c; *.cpp; *.cxx|"	    "C++ files (*.h; *.hxx; *.hpp; *.c; *.cpp; *.cxx)|*.h; *.hxx; *.hpp; *.c; *.cpp; *.cxx|"	    "All Files (*.*)|*.*||", NULL);	int result = fd.DoModal();        	if ( result == IDCANCEL ) {	    VERIFY_OK(m_pApplication->EnableModeless(VARIANT_TRUE));	    return S_OK;	}	file = fd.GetPathName();    }    splitFileName( file, filepath, filename, fileext );    m_pApplication->PrintToOutputWindow( CComBSTR("Add MOC buildstep for "+file+"...") );    addMOC( pProject, filepath+file );    m_pApplication->PrintToOutputWindow( CComBSTR("Finished!\n") );        VERIFY_OK(m_pApplication->EnableModeless(VARIANT_TRUE));    return S_OK;}STDMETHODIMP CCommands::QMsDevAddUICStep(){    AFX_MANAGE_STATE(AfxGetStaticModuleState());    VERIFY_OK(m_pApplication->EnableModeless(VARIANT_FALSE));    CString file;    CString fileext;    CString filename;    CString filepath;    // Check for active Project    CComQIPtr<IBuildProject, &IID_IBuildProject> pProject;    if ( getActiveProject( pProject ) != S_OK ) {	VERIFY_OK(m_pApplication->EnableModeless(VARIANT_FALSE));	::MessageBox(NULL, "Can't find an active project!", "QMsDev", MB_OK | MB_ICONINFORMATION );	VERIFY_OK(m_pApplication->EnableModeless(VARIANT_TRUE));	return S_FALSE;    }    file = getActiveFileName();    splitFileName( file, filepath, filename, fileext );    if ( file.IsEmpty() || fileext != "ui" ) {	CFileDialog fd( TRUE, NULL, NULL, OFN_HIDEREADONLY, 	    "User Interface File (*.ui)|*.ui|"	    "All Files (*.*)|*.*||", NULL);	int result = fd.DoModal();	if ( result == IDCANCEL ) {	    VERIFY_OK(m_pApplication->EnableModeless(VARIANT_TRUE));	    return S_OK;	}	file = fd.GetPathName();	splitFileName( file, filepath, filename, fileext );    }    m_pApplication->PrintToOutputWindow( CComBSTR("Add UIC buildstep for "+file+"...") );    addUIC( pProject, filepath + file );    m_pApplication->PrintToOutputWindow( CComBSTR("Finished!\n") );        VERIFY_OK(m_pApplication->EnableModeless(VARIANT_TRUE));    return S_OK;}STDMETHODIMP CCommands::QMsDevGenerateQtProject(){    AFX_MANAGE_STATE(AfxGetStaticModuleState());    VERIFY_OK(m_pApplication->EnableModeless(VARIANT_FALSE));    CString file;    CString filepath;    CString filename;    CString fileext;    CFileDialog fd( TRUE, NULL, NULL, OFN_HIDEREADONLY, 	"Qt Project (*.pro)|*.pro|"	"All Files (*.*)|*.*||", NULL);    int result = fd.DoModal();

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产sm精品调教视频网站| 高清成人在线观看| 一区二区三区小说| 免费视频最近日韩| 国产二区国产一区在线观看| av日韩在线网站| 成人少妇影院yyyy| 成人午夜电影网站| 欧美日本一道本| 久久久99精品免费观看不卡| 亚洲精品菠萝久久久久久久| 久久国产精品无码网站| 伊人色综合久久天天人手人婷| 综合久久国产九一剧情麻豆| 奇米色777欧美一区二区| 成人白浆超碰人人人人| 日韩午夜电影在线观看| 欧美大白屁股肥臀xxxxxx| 中文字幕中文字幕一区| 久久精品免费观看| 精品视频一区 二区 三区| 欧美午夜不卡视频| 中文字幕国产一区| 一区二区三区在线播| 婷婷激情综合网| av一区二区三区在线| 欧美精品一区二区三区久久久 | 欧美精品一区二区在线播放 | 日韩欧美一区二区三区在线| 欧美成人一区二区| 亚洲高清视频的网址| 热久久久久久久| 欧美性猛片xxxx免费看久爱| 国产精品久久久久影院老司| 奇米777欧美一区二区| 91国产福利在线| 日韩午夜在线影院| 中文字幕欧美区| 亚洲午夜一区二区三区| 91天堂素人约啪| 日韩欧美精品在线| 首页国产欧美日韩丝袜| 国产乱人伦精品一区二区在线观看| 欧美精品三级日韩久久| 久久久久久97三级| 亚洲图片自拍偷拍| 国产精品综合av一区二区国产馆| www.欧美日韩| 中文字幕在线不卡视频| 日韩在线a电影| 欧美精品日韩一区| 中文字幕一区二区三区在线播放| 日韩在线播放一区二区| 欧美日韩国产首页在线观看| 久久久影视传媒| 国产成人免费在线观看不卡| 久久久www成人免费无遮挡大片| 午夜精品福利视频网站| 国产美女精品人人做人人爽| 久久精品人人爽人人爽| 成人免费视频免费观看| 亚洲色图欧洲色图| 91性感美女视频| 一区二区三区在线免费视频| 欧美日韩一区二区三区视频| 中文字幕一区av| 久久不见久久见免费视频1| 日韩免费电影网站| 国产精品自拍av| 成人欧美一区二区三区视频网页| 色www精品视频在线观看| 亚洲午夜视频在线| 日韩一区二区免费高清| 国产专区欧美精品| 日本一区二区免费在线观看视频 | 亚洲日本在线视频观看| 激情五月激情综合网| 日本一区二区综合亚洲| 国产一区二区视频在线| 中文无字幕一区二区三区| 色综合激情久久| 婷婷成人激情在线网| 久久久久亚洲蜜桃| 在线观看网站黄不卡| 亚洲天堂av老司机| 欧美丰满嫩嫩电影| 亚洲高清免费观看高清完整版在线观看| 99在线精品视频| 中文字幕在线观看不卡视频| 欧美日本免费一区二区三区| 亚洲激情图片一区| 精品欧美一区二区久久| 99视频一区二区三区| 青青草一区二区三区| 国产精品动漫网站| 一本色道久久综合狠狠躁的推荐| 日韩中文欧美在线| 亚洲图片激情小说| 久久你懂得1024| 欧美日韩一级二级三级| 大胆欧美人体老妇| 美日韩一级片在线观看| 精品卡一卡二卡三卡四在线| 精品一区二区影视| 亚洲夂夂婷婷色拍ww47| 欧美肥妇free| 在线精品视频小说1| 国产毛片精品一区| 国产精品久久久久国产精品日日| 欧美一级高清片在线观看| 久草在线在线精品观看| 亚洲国产精品久久久久秋霞影院| 色婷婷久久久综合中文字幕 | 成人h动漫精品一区二| 蜜臀av亚洲一区中文字幕| 亚洲激情图片小说视频| 欧美日本国产视频| 99re成人精品视频| 国产凹凸在线观看一区二区| 久久精品国产秦先生| 国产精品久久免费看| 久久亚洲综合色一区二区三区| 欧美久久高跟鞋激| 色94色欧美sute亚洲线路二| 成人av午夜电影| 韩国在线一区二区| 日本不卡免费在线视频| 国产欧美在线观看一区| 一本久道久久综合中文字幕| 成人av网在线| 国产91精品在线观看| 国产精品 欧美精品| 国产伦精品一区二区三区视频青涩| 视频一区中文字幕| 亚洲国产精品视频| 久久久亚洲精品一区二区三区| 欧美一区二区三区四区五区| 欧美日韩高清在线| 国产传媒久久文化传媒| 国产一区二区久久| 国产美女主播视频一区| 国产一区二区精品久久99| 黄一区二区三区| 亚洲高清视频在线| 国产精品美女视频| 欧美一级高清片在线观看| 不卡影院免费观看| 91色九色蝌蚪| 欧洲精品一区二区| 国产aⅴ综合色| 不卡的av电影| 91福利精品第一导航| 国产不卡视频一区二区三区| 国产成人精品免费网站| 成人免费黄色在线| 99精品1区2区| 国产老女人精品毛片久久| 国产精品一区二区久久不卡 | 天天av天天翘天天综合网| 性感美女久久精品| 午夜精品久久久久影视| 亚洲欧洲日韩女同| www激情久久| 综合精品久久久| 午夜精品久久久久久久久久久| 日本vs亚洲vs韩国一区三区 | 亚洲一区二区三区不卡国产欧美| 夜夜精品浪潮av一区二区三区| 亚洲精品写真福利| 日韩精品乱码免费| 国产一区二区女| 国产在线视频一区二区| 成人黄色国产精品网站大全在线免费观看| 久久精品国产99| 成人爱爱电影网址| 欧美午夜一区二区三区免费大片| 91免费看`日韩一区二区| 成人国产精品免费网站| 欧美狂野另类xxxxoooo| 久久精品一区二区三区不卡| 亚洲精品欧美在线| 久久国产福利国产秒拍| av中文字幕亚洲| 99v久久综合狠狠综合久久| 99精品久久免费看蜜臀剧情介绍| 成人免费观看男女羞羞视频| gogogo免费视频观看亚洲一| 成人国产精品免费| 97se亚洲国产综合自在线不卡| 日韩亚洲欧美在线| 欧美一级黄色录像| 亚洲精品一区二区精华| 久久综合999| 亚洲国产成人高清精品| 国产成人精品亚洲日本在线桃色| 欧美日韩精品福利| 亚洲欧洲制服丝袜| 午夜欧美视频在线观看| 精品制服美女久久| 99精品热视频|