├── .gitattributes ├── .gitignore ├── License ├── README.md ├── Test ├── LOGO128X128.ico ├── ReadMe.txt ├── Test.aps ├── Test.cpp ├── Test.rc ├── Test.vcxproj ├── Test.vcxproj.filters ├── Test.vcxproj.user ├── resource.h ├── resource1.h ├── stdafx.cpp ├── stdafx.h └── targetver.h ├── include ├── buildcfg │ ├── VersionNo.rc2 │ ├── buildcfg.h │ ├── buildcfg_template.h │ └── version.ini └── manifest │ ├── debug │ ├── crt.xml │ ├── crt_wndxpstyle.xml │ └── mfc.xml │ ├── novirtualized.xml │ ├── release │ ├── crt.xml │ ├── crt_wndxpstyle.xml │ ├── mfc.xml │ ├── nocrt.xml │ └── wndxpstyle.xml │ ├── rt_manif.xml │ ├── uac_admin.xml │ ├── uac_highest.xml │ ├── uac_invoker.xml │ └── xpschemas.xml ├── lomox.sln ├── lomox ├── LomoX.pro ├── Microsoft.VC120.CRT.manifest ├── changelog.txt ├── implement │ ├── lxhttp.cpp │ └── lxresources.cpp ├── include │ ├── lxHttp.h │ └── lxresources.h ├── lomox.cpp ├── lomox.h ├── lomox.ico ├── lomox.lib ├── lomox.pri ├── lomox.sln ├── lomox.suo ├── lomox.vcproj ├── lomox.vcproj.pc-PC.Administrator.user ├── lomox.vcxproj ├── lomox.vcxproj.filters ├── lomox.vcxproj.user ├── lomox_global.h ├── lxapi │ ├── Lx_api.cpp │ └── Lx_api.hpp ├── lxbasewin.cpp ├── lxbasewin.h ├── lxcoreapplication.cpp ├── lxcoreapplication.h ├── lxcoreprivate.cpp ├── lxcoreprivate.h ├── lxdefinename.h ├── lxdialogoperate.cpp ├── lxdialogoperate.h ├── lxdialogs.cpp ├── lxdialogs.h ├── lxdir.cpp ├── lxdir.h ├── lxdownloadmanager.cpp ├── lxdownloadmanager.h ├── lxfile.cpp ├── lxfile.h ├── lxinternalplugins.h ├── lxlibmanager.cpp ├── lxlibmanager.h ├── lxlibrary.cpp ├── lxlibrary.h ├── lxlinker.cpp ├── lxlinker.h ├── lxlocaltool.h ├── lxmainwin.cpp ├── lxmainwin.h ├── lxmqapp.cpp ├── lxmqapp.h ├── lxnetworkcookie.cpp ├── lxnetworkcookie.h ├── lxoperate.cpp ├── lxoperate.h ├── lxoption.cpp ├── lxoption.h ├── lxpluginbase.h ├── lxsqldatabase.cpp ├── lxsqldatabase.h ├── lxsqlquery.cpp ├── lxsqlquery.h ├── lxsystemtray.cpp ├── lxsystemtray.h ├── lxwebkitplugininterface.h ├── lxwebpage.cpp ├── lxwebpage.h ├── lxwebpluginfactory.cpp ├── lxwebpluginfactory.h ├── lxwindows.cpp ├── lxwindows.h ├── resource.aps ├── resource.h ├── resource.rc ├── stdafx.cpp ├── stdafx.h └── tool │ ├── XUnzip.cpp │ ├── XUnzip.h │ ├── check.h │ ├── jsonhelper.h │ ├── jsonhelper.h.bak │ ├── jsonresult.h │ ├── jsonresult.h.bak │ └── utillites.h ├── lomox_all.pro ├── lomoxadmin ├── LomoxAdmin.cpp ├── LomoxAdmin.h ├── LomoxAdmin.rc ├── Resource.h ├── lomoxadmin.vcproj ├── lomoxadmin.vcxproj ├── lomoxadmin.vcxproj.filters ├── lomoxwin32.ico ├── stdafx.cpp └── stdafx.h ├── lomoxdynamiclink ├── Debug │ ├── BuildLog.htm │ ├── lomoxdynamiclink.exe.intermediate.manifest │ ├── mt.dep │ └── vc90.pdb ├── Release │ ├── BuildLog.htm │ ├── lomoxdynamiclink.exe.intermediate.manifest │ ├── mt.dep │ └── vc90.pdb ├── logo.ico ├── lomoxdynamiclink.vcproj ├── lomoxdynamiclink.vcproj.pc-PC.Administrator.user ├── lomoxdynamiclink.vcxproj ├── lomoxdynamiclink.vcxproj.filters ├── lxdylink.cpp ├── lxdylink.h ├── lxdylink.rc └── main.cpp ├── lomoxtest ├── GeneratedFiles │ ├── qrc_lomoxtest.cpp │ └── ui_lomoxtest.h ├── LomoTest.rc ├── LomoxTest.pro ├── ReadMe.txt ├── logo.ico ├── lomoxstaticlink.rc ├── lomoxtest.cpp ├── lomoxtest.pri ├── lomoxtest.qrc ├── lomoxtest.ui ├── lomoxtest.vcproj ├── lomoxtest.vcproj.pc-PC.Administrator.user ├── lomoxtest.vcxproj ├── lomoxtest.vcxproj.filters ├── lomoxtest.vcxproj.user ├── main.cpp ├── resource.aps ├── resource.h ├── resource.rc ├── stdafx.cpp ├── stdafx.h └── targetver.h ├── lomoxwin32 ├── ReadMe.txt ├── Resource.h ├── lomoxwin32.cpp ├── lomoxwin32.h ├── lomoxwin32.ico ├── lomoxwin32.rc ├── lomoxwin32.vcproj ├── small.ico ├── stdafx.cpp ├── stdafx.h └── targetver.h ├── lxWebEditPlugin ├── GeneratedFiles │ ├── Debug │ │ └── moc_lxwebeditplugin.cpp │ └── Release │ │ └── moc_lxwebeditplugin.cpp ├── lxWebEditPlugin.vcproj ├── lxWebEditPlugin.vcproj.pc-PC.Administrator.user ├── lxWebEditPlugin.vcxproj ├── lxWebEditPlugin.vcxproj.filters ├── lxWebEditPlugin.vcxproj.user ├── lxwebeditplugin.cpp ├── lxwebeditplugin.h ├── lxwebeditplugin_global.h └── lxwebkitplugininterface.h ├── tool ├── CopyTmpl.bat ├── Hello_App_Resource_Tmpl │ ├── Resources │ │ ├── ajaxtest.html │ │ ├── close.ico │ │ ├── cookie.html │ │ ├── css │ │ │ ├── buttons.css │ │ │ ├── font-awesome-403 │ │ │ │ ├── font-awesome.min.css │ │ │ │ └── fonts │ │ │ │ │ ├── FontAwesome.otf │ │ │ │ │ ├── fontawesome-webfont.eot │ │ │ │ │ ├── fontawesome-webfont.svg │ │ │ │ │ ├── fontawesome-webfont.ttf │ │ │ │ │ └── fontawesome-webfont.woff │ │ │ └── global.css │ │ ├── db.php │ │ ├── db_exam.html │ │ ├── dbconfig.php │ │ ├── file.html │ │ ├── file_cache.php │ │ ├── header.html │ │ ├── hide.ico │ │ ├── index.bak.html │ │ ├── index.html │ │ ├── index.php │ │ ├── jquery-1.4.min.js │ │ ├── js │ │ │ ├── 3rd │ │ │ │ ├── jquery-1.10.2.min.js │ │ │ │ └── lazyload.js │ │ │ ├── LxExt-1.0.min.js │ │ │ ├── global.js │ │ │ ├── jquery-1.6.2.js │ │ │ ├── lx.js │ │ │ ├── page.js │ │ │ └── stdlib │ │ │ │ ├── LxExt-1.0.dev.js │ │ │ │ ├── LxExt-1.0.min.js │ │ │ │ └── jquery-1.6.4.js │ │ ├── loading.gif │ │ ├── main.bak.lx │ │ ├── max.ico │ │ ├── mini.ico │ │ ├── mydb.sql │ │ ├── normal.ico │ │ ├── page │ │ │ ├── entity │ │ │ │ ├── Entities.js │ │ │ │ ├── entity.data.js │ │ │ │ └── index.html │ │ │ ├── image-sprites │ │ │ │ ├── blank.gif │ │ │ │ ├── icons.png │ │ │ │ └── index.html │ │ │ └── scrollbar-style │ │ │ │ ├── index.html │ │ │ │ ├── jquery-1.7.2.min.js │ │ │ │ ├── jquery.miniColors.css │ │ │ │ ├── jquery.miniColors.js │ │ │ │ ├── scrollbar.js │ │ │ │ ├── style.css │ │ │ │ └── themes.js │ │ ├── read.txt │ │ ├── s.png │ │ ├── session.html │ │ ├── tab.css │ │ ├── tab.js │ │ └── test.html │ └── config.ini └── Resources │ ├── QtCore4.dll │ ├── QtGui4.dll │ ├── QtSvg4.dll │ ├── QtXml4.dll │ ├── build_lx.bat │ ├── css │ └── main.css │ ├── images │ ├── btn_answer_hover.png │ ├── btn_answer_normal.png │ ├── btn_answer_press.png │ ├── btn_close_hover.png │ ├── btn_close_normal.png │ ├── btn_close_press.png │ ├── btn_hang_up_hover.png │ ├── btn_hang_up_normal.png │ ├── btn_hang_up_press.png │ ├── btn_play_hover.png │ ├── btn_play_normal.png │ ├── btn_play_press.png │ ├── btn_stop_hover.png │ ├── btn_stop_normal.png │ ├── btn_stop_press.png │ ├── btn_to_up_hover.png │ ├── btn_to_up_normal.png │ ├── btn_to_up_press.png │ ├── btn_voice_hover.png │ ├── btn_voice_normal.png │ ├── btn_voice_press.png │ ├── close_hover.png │ ├── close_normal.png │ ├── close_press.png │ ├── icon_book_hover.png │ ├── icon_book_normal.png │ ├── icon_book_press.png │ ├── icon_home_hover.png │ ├── icon_home_normal.png │ ├── icon_home_press.png │ ├── icon_message_hover.png │ ├── icon_message_normal.png │ ├── icon_message_press.png │ ├── icon_news_hover.png │ ├── icon_news_normal.png │ ├── icon_news_press.png │ ├── icon_phone_hover.png │ ├── icon_phone_normal.png │ ├── icon_phone_press.png │ ├── icon_ring_hover.png │ ├── icon_ring_normal.png │ ├── icon_ring_press.png │ ├── icon_setting_hover.png │ ├── icon_setting_normal.png │ ├── icon_setting_press.png │ ├── min_hover.png │ ├── min_normal.png │ ├── min_press.png │ ├── scollBar_hover.png │ ├── scollBar_normal.png │ ├── scollBar_press.png │ ├── up_hover.png │ ├── up_normal.png │ └── up_press.png │ ├── js │ ├── main.js │ └── stdlib │ │ ├── LxExt-1.0.dev.js │ │ ├── LxExt-1.0.min.js │ │ └── jquery-1.6.4.js │ ├── main.html │ ├── main.lx │ ├── main_res.qrc │ ├── plugin.html │ ├── qmakewrapper1.dll │ ├── qrceditor.exe │ ├── qtappwrapper.exe │ └── rcc.exe └── 删除编译垃圾文件.bat /.gitattributes: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Set default behavior to automatically normalize line endings. 3 | ############################################################################### 4 | * text=auto 5 | 6 | ############################################################################### 7 | # Set default behavior for command prompt diff. 8 | # 9 | # This is need for earlier builds of msysgit that does not have it on by 10 | # default for csharp files. 11 | # Note: This is only used by command line 12 | ############################################################################### 13 | #*.cs diff=csharp 14 | 15 | ############################################################################### 16 | # Set the merge driver for project and solution files 17 | # 18 | # Merging from the command prompt will add diff markers to the files if there 19 | # are conflicts (Merging from VS is not affected by the settings below, in VS 20 | # the diff markers are never inserted). Diff markers may cause the following 21 | # file extensions to fail to load in VS. An alternative would be to treat 22 | # these files as binary and thus will always conflict and require user 23 | # intervention with every merge. To do so, just uncomment the entries below 24 | ############################################################################### 25 | #*.sln merge=binary 26 | #*.csproj merge=binary 27 | #*.vbproj merge=binary 28 | #*.vcxproj merge=binary 29 | #*.vcproj merge=binary 30 | #*.dbproj merge=binary 31 | #*.fsproj merge=binary 32 | #*.lsproj merge=binary 33 | #*.wixproj merge=binary 34 | #*.modelproj merge=binary 35 | #*.sqlproj merge=binary 36 | #*.wwaproj merge=binary 37 | 38 | ############################################################################### 39 | # behavior for image files 40 | # 41 | # image files are treated as binary by default. 42 | ############################################################################### 43 | #*.jpg binary 44 | #*.png binary 45 | #*.gif binary 46 | 47 | ############################################################################### 48 | # diff behavior for common document formats 49 | # 50 | # Convert binary document formats to text before diffing them. This feature 51 | # is only available from the command line. Turn it on by uncommenting the 52 | # entries below. 53 | ############################################################################### 54 | #*.doc diff=astextplain 55 | #*.DOC diff=astextplain 56 | #*.docx diff=astextplain 57 | #*.DOCX diff=astextplain 58 | #*.dot diff=astextplain 59 | #*.DOT diff=astextplain 60 | #*.pdf diff=astextplain 61 | #*.PDF diff=astextplain 62 | #*.rtf diff=astextplain 63 | #*.RTF diff=astextplain 64 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | 4 | # User-specific files 5 | *.suo 6 | *.user 7 | *.sln.docstates 8 | 9 | # Build results 10 | 11 | [Dd]ebug/ 12 | [Rr]elease/ 13 | x64/ 14 | build/ 15 | [Bb]in/ 16 | [Oo]bj/ 17 | 18 | # Enable "build/" folder in the NuGet Packages folder since NuGet packages use it for MSBuild targets 19 | !packages/*/build/ 20 | 21 | # MSTest test Results 22 | [Tt]est[Rr]esult*/ 23 | [Bb]uild[Ll]og.* 24 | 25 | *_i.c 26 | *_p.c 27 | *.ilk 28 | *.meta 29 | *.obj 30 | *.pch 31 | *.pdb 32 | *.pgc 33 | *.pgd 34 | *.rsp 35 | *.sbr 36 | *.tlb 37 | *.tli 38 | *.tlh 39 | *.tmp 40 | *.tmp_proj 41 | *.log 42 | *.vspscc 43 | *.vssscc 44 | .builds 45 | *.pidb 46 | *.log 47 | *.scc 48 | 49 | # Visual C++ cache files 50 | ipch/ 51 | *.aps 52 | *.ncb 53 | *.opensdf 54 | *.sdf 55 | *.cachefile 56 | 57 | # Visual Studio profiler 58 | *.psess 59 | *.vsp 60 | *.vspx 61 | 62 | # Guidance Automation Toolkit 63 | *.gpState 64 | 65 | # ReSharper is a .NET coding add-in 66 | _ReSharper*/ 67 | *.[Rr]e[Ss]harper 68 | 69 | # TeamCity is a build add-in 70 | _TeamCity* 71 | 72 | # DotCover is a Code Coverage Tool 73 | *.dotCover 74 | 75 | # NCrunch 76 | *.ncrunch* 77 | .*crunch*.local.xml 78 | 79 | # Installshield output folder 80 | [Ee]xpress/ 81 | 82 | # DocProject is a documentation generator add-in 83 | DocProject/buildhelp/ 84 | DocProject/Help/*.HxT 85 | DocProject/Help/*.HxC 86 | DocProject/Help/*.hhc 87 | DocProject/Help/*.hhk 88 | DocProject/Help/*.hhp 89 | DocProject/Help/Html2 90 | DocProject/Help/html 91 | 92 | # Click-Once directory 93 | publish/ 94 | 95 | # Publish Web Output 96 | *.Publish.xml 97 | 98 | # NuGet Packages Directory 99 | ## TODO: If you have NuGet Package Restore enabled, uncomment the next line 100 | #packages/ 101 | 102 | # Windows Azure Build Output 103 | csx 104 | *.build.csdef 105 | 106 | # Windows Store app package directory 107 | AppPackages/ 108 | 109 | # Others 110 | sql/ 111 | *.Cache 112 | ClientBin/ 113 | [Ss]tyle[Cc]op.* 114 | ~$* 115 | *~ 116 | *.dbmdl 117 | *.[Pp]ublish.xml 118 | *.pfx 119 | *.publishsettings 120 | 121 | # RIA/Silverlight projects 122 | Generated_Code/ 123 | 124 | # Backup & report files from converting an old project file to a newer 125 | # Visual Studio version. Backup files are not needed, because we have git ;-) 126 | _UpgradeReport_Files/ 127 | Backup*/ 128 | UpgradeLog*.XML 129 | UpgradeLog*.htm 130 | 131 | # SQL Server files 132 | App_Data/*.mdf 133 | App_Data/*.ldf 134 | 135 | 136 | #LightSwitch generated files 137 | GeneratedArtifacts/ 138 | _Pvt_Extensions/ 139 | ModelManifest.xml 140 | 141 | # ========================= 142 | # Windows detritus 143 | # ========================= 144 | 145 | # Windows image file caches 146 | Thumbs.db 147 | ehthumbs.db 148 | 149 | # Folder config file 150 | Desktop.ini 151 | 152 | # Recycle Bin used on file shares 153 | $RECYCLE.BIN/ 154 | 155 | # Mac desktop service store files 156 | .DS_Store 157 | 158 | 159 | #忽略Mac版自动创建的Build目录 160 | build-LomoX-Desktop_Qt_5_5_1_clang_64bit-Debug 161 | build-LomoX-Desktop_Qt_5_5_1_clang_64bit-Release 162 | build-LomoxTest-Desktop_Qt_5_5_1_clang_64bit-Debug 163 | build-LomoxTest-Desktop_Qt_5_5_1_clang_64bit-Release 164 | 165 | 166 | 167 | -------------------------------------------------------------------------------- /License: -------------------------------------------------------------------------------- 1 | License:MIT 2 | 3 | Copyright (C) lomox代码提交者 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 6 | 7 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 10 | -------------------------------------------------------------------------------- /Test/LOGO128X128.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/Test/LOGO128X128.ico -------------------------------------------------------------------------------- /Test/ReadMe.txt: -------------------------------------------------------------------------------- 1 | ======================================================================== 2 | 控制台应用程序:Test 项目概述 3 | ======================================================================== 4 | 5 | 应用程序向导已为您创建了此 Test 应用程序。 6 | 7 | 本文件概要介绍组成 Test 应用程序的每个文件的内容。 8 | 9 | 10 | Test.vcxproj 11 | 这是使用应用程序向导生成的 VC++ 项目的主项目文件,其中包含生成该文件的 Visual C++ 的版本信息,以及有关使用应用程序向导选择的平台、配置和项目功能的信息。 12 | 13 | Test.vcxproj.filters 14 | 这是使用“应用程序向导”生成的 VC++ 项目筛选器文件。它包含有关项目文件与筛选器之间的关联信息。在 IDE 中,通过这种关联,在特定节点下以分组形式显示具有相似扩展名的文件。例如,“.cpp”文件与“源文件”筛选器关联。 15 | 16 | Test.cpp 17 | 这是主应用程序源文件。 18 | 19 | ///////////////////////////////////////////////////////////////////////////// 20 | 其他标准文件: 21 | 22 | StdAfx.h, StdAfx.cpp 23 | 这些文件用于生成名为 Test.pch 的预编译头 (PCH) 文件和名为 StdAfx.obj 的预编译类型文件。 24 | 25 | ///////////////////////////////////////////////////////////////////////////// 26 | 其他注释: 27 | 28 | 应用程序向导使用“TODO:”注释来指示应添加或自定义的源代码部分。 29 | 30 | ///////////////////////////////////////////////////////////////////////////// 31 | -------------------------------------------------------------------------------- /Test/Test.aps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/Test/Test.aps -------------------------------------------------------------------------------- /Test/Test.cpp: -------------------------------------------------------------------------------- 1 | // Test.cpp : 定义控制台应用程序的入口点。 2 | // 3 | 4 | #include "stdafx.h" 5 | 6 | #include "../lomox/lxapi/Lx_api.hpp" 7 | #pragma comment(linker, "/subsystem:windows /entry:wmainCRTStartup") //关闭console 8 | int _tmain(int argc, char* argv[]) 9 | { 10 | LomoxAppRun(argc, argv); 11 | return 0; 12 | } 13 | 14 | -------------------------------------------------------------------------------- /Test/Test.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/Test/Test.rc -------------------------------------------------------------------------------- /Test/Test.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 头文件 23 | 24 | 25 | 头文件 26 | 27 | 28 | 头文件 29 | 30 | 31 | 头文件 32 | 33 | 34 | 35 | 36 | 源文件 37 | 38 | 39 | 源文件 40 | 41 | 42 | 43 | 44 | 资源文件 45 | 46 | 47 | 48 | 49 | 资源文件 50 | 51 | 52 | -------------------------------------------------------------------------------- /Test/Test.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /Test/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Visual C++ 生成的包含文件。 3 | // 供 Test.rc 使用 4 | // 5 | #define IDI_ICON1 101 6 | 7 | // Next default values for new objects 8 | // 9 | #ifdef APSTUDIO_INVOKED 10 | #ifndef APSTUDIO_READONLY_SYMBOLS 11 | #define _APS_NEXT_RESOURCE_VALUE 102 12 | #define _APS_NEXT_COMMAND_VALUE 40001 13 | #define _APS_NEXT_CONTROL_VALUE 1001 14 | #define _APS_NEXT_SYMED_VALUE 101 15 | #endif 16 | #endif 17 | -------------------------------------------------------------------------------- /Test/resource1.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Visual C++ 生成的包含文件。 3 | // 供 Test.rc 使用 4 | // 5 | #define IDI_ICON1 101 6 | 7 | // Next default values for new objects 8 | // 9 | #ifdef APSTUDIO_INVOKED 10 | #ifndef APSTUDIO_READONLY_SYMBOLS 11 | #define _APS_NEXT_RESOURCE_VALUE 102 12 | #define _APS_NEXT_COMMAND_VALUE 40001 13 | #define _APS_NEXT_CONTROL_VALUE 1001 14 | #define _APS_NEXT_SYMED_VALUE 101 15 | #endif 16 | #endif 17 | -------------------------------------------------------------------------------- /Test/stdafx.cpp: -------------------------------------------------------------------------------- 1 | // stdafx.cpp : 只包括标准包含文件的源文件 2 | // Test.pch 将作为预编译头 3 | // stdafx.obj 将包含预编译类型信息 4 | 5 | #include "stdafx.h" 6 | 7 | // TODO: 在 STDAFX.H 中 8 | // 引用任何所需的附加头文件,而不是在此文件中引用 9 | -------------------------------------------------------------------------------- /Test/stdafx.h: -------------------------------------------------------------------------------- 1 | // stdafx.h : 标准系统包含文件的包含文件, 2 | // 或是经常使用但不常更改的 3 | // 特定于项目的包含文件 4 | // 5 | 6 | #pragma once 7 | 8 | #include "targetver.h" 9 | 10 | #include 11 | #include 12 | 13 | 14 | 15 | // TODO: 在此处引用程序需要的其他头文件 16 | -------------------------------------------------------------------------------- /Test/targetver.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | // 包括 SDKDDKVer.h 将定义可用的最高版本的 Windows 平台。 4 | 5 | // 如果要为以前的 Windows 平台生成应用程序,请包括 WinSDKVer.h,并将 6 | // WIN32_WINNT 宏设置为要支持的平台,然后再包括 SDKDDKVer.h。 7 | 8 | #include 9 | -------------------------------------------------------------------------------- /include/buildcfg/VersionNo.rc2: -------------------------------------------------------------------------------- 1 | #ifndef VER_H 2 | #define VOS_NT_WINDOWS32 0x00040004L 3 | #define VFT_DLL 0x00000002L 4 | #define VS_VERSION_INFO 1 5 | #endif 6 | #ifndef VI_VERSION_PVERSION 7 | #define VI_VERSION_PVERSION "www.lomox.org\0" 8 | #endif 9 | 10 | #include "buildcfg.h" 11 | 12 | VS_VERSION_INFO VERSIONINFO 13 | FILEVERSION VI_VERSION 14 | PRODUCTVERSION VI_VERSION 15 | FILEFLAGSMASK 0x3fL 16 | #ifdef _DEBUG 17 | FILEFLAGS VS_FF_DEBUG 18 | #else 19 | FILEFLAGS 0x0L 20 | #endif 21 | FILEOS VOS_NT_WINDOWS32 22 | FILETYPE VFT_DLL 23 | FILESUBTYPE 0x0L 24 | BEGIN 25 | BLOCK "StringFileInfo" 26 | BEGIN 27 | BLOCK "000004B0" 28 | BEGIN 29 | VALUE "CompanyName", "lomox.org" 30 | VALUE "LegalCopyright", "(C)lomox.org All Rights Reserved." 31 | VALUE "ProductName", VI_VERSION_PVERSION 32 | VALUE "ProductVersion", VI_VERSION_STR 33 | VALUE "FileDescription", VI_FILEDESCRIPTION 34 | VALUE "FileVersion", VI_VERSION_STR 35 | VALUE "InternalName", VI_INTERNALNAME 36 | VALUE "OriginalFilename", VI_ORIGINALFILENAME 37 | END 38 | END 39 | BLOCK "VarFileInfo" 40 | BEGIN 41 | VALUE "Translation", 0x0000, 1200 42 | END 43 | END 44 | -------------------------------------------------------------------------------- /include/buildcfg/buildcfg.h: -------------------------------------------------------------------------------- 1 | #ifndef __BUILDCFG__ 2 | #define __BUILDCFG__ 3 | 4 | 5 | #define VI_VERSION 1,0,0,1006 6 | #define VI_VERSION_STR "1,0,0,1006\0" 7 | 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /include/buildcfg/buildcfg_template.h: -------------------------------------------------------------------------------- 1 | #ifndef __BUILDCFG__ 2 | #define __BUILDCFG__ 3 | 4 | 5 | #define VI_VERSION %version% 6 | #define VI_VERSION_STR "%version%\0" 7 | 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /include/buildcfg/version.ini: -------------------------------------------------------------------------------- 1 | [version] 2 | main = 1 3 | major = 0 4 | minor = 0 5 | build = 1006 6 | 7 | -------------------------------------------------------------------------------- /include/manifest/debug/crt.xml: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /include/manifest/debug/crt_wndxpstyle.xml: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /include/manifest/debug/mfc.xml: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /include/manifest/novirtualized.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /include/manifest/release/crt.xml: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /include/manifest/release/crt_wndxpstyle.xml: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /include/manifest/release/mfc.xml: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /include/manifest/release/nocrt.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /include/manifest/release/wndxpstyle.xml: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /include/manifest/rt_manif.xml: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 8 | Fix Setting 9 | 10 | 11 | 18 | 19 | 20 | 21 | 22 | 23 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /include/manifest/uac_admin.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /include/manifest/uac_highest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /include/manifest/uac_invoker.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /include/manifest/xpschemas.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /lomox/LomoX.pro: -------------------------------------------------------------------------------- 1 | # ---------------------------------------------------- 2 | # This file is generated by the Qt Visual Studio Add-in. 3 | # ------------------------------------------------------ 4 | 5 | TEMPLATE = lib 6 | TARGET = lomox 7 | Release:DESTDIR = ../Release 8 | Debug:DESTDIR = ../Debug 9 | QT += core sql network xml script webkit widgets webkitwidgets printsupport 10 | CONFIG += debug 11 | 12 | macx:QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.10.5 13 | macx:QMAKE_MAC_SDK=macosx10.11 14 | 15 | DEFINES += QT_LARGEFILE_SUPPORT QT_XML_LIB QT_SQL_LIB QT_NETWORK_LIB QT_WEBKIT_LIB QT_PHONON_LIB LOMOX_LIB 16 | Release:INCLUDEPATH += ./GeneratedFiles/Release 17 | Debug:INCLUDEPATH += ./GeneratedFiles/Debug 18 | INCLUDEPATH += ./GeneratedFiles \ 19 | . \ 20 | ./include \ 21 | ./implement 22 | DEPENDPATH += . 23 | Release:MOC_DIR += ./GeneratedFiles/Release 24 | Debug:MOC_DIR += ./GeneratedFiles/Debug 25 | Release:OBJECTS_DIR += Release 26 | Debug:OBJECTS_DIR += Debug 27 | UI_DIR += ./GeneratedFiles 28 | RCC_DIR += ./GeneratedFiles 29 | include(lomox.pri) 30 | 31 | mac { 32 | target.path = /usr/lib 33 | INSTALLS += target 34 | } 35 | unix { 36 | target.path = /usr/lib 37 | INSTALLS += target 38 | } 39 | -------------------------------------------------------------------------------- /lomox/Microsoft.VC120.CRT.manifest: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /lomox/changelog.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/lomox/changelog.txt -------------------------------------------------------------------------------- /lomox/implement/lxhttp.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/lomox/implement/lxhttp.cpp -------------------------------------------------------------------------------- /lomox/implement/lxresources.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/lomox/implement/lxresources.cpp -------------------------------------------------------------------------------- /lomox/include/lxHttp.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/lomox/include/lxHttp.h -------------------------------------------------------------------------------- /lomox/include/lxresources.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/lomox/include/lxresources.h -------------------------------------------------------------------------------- /lomox/lomox.cpp: -------------------------------------------------------------------------------- 1 | #include "lomox.h" 2 | 3 | lomox::lomox() 4 | { 5 | } 6 | 7 | lomox::~lomox() 8 | { 9 | 10 | } 11 | -------------------------------------------------------------------------------- /lomox/lomox.h: -------------------------------------------------------------------------------- 1 | #ifndef LOMOX_H 2 | #define LOMOX_H 3 | 4 | #include "lomox_global.h" 5 | 6 | class LOMOX_EXPORT lomox 7 | { 8 | public: 9 | lomox(); 10 | ~lomox(); 11 | 12 | private: 13 | 14 | }; 15 | 16 | #endif // LOMOX_H 17 | -------------------------------------------------------------------------------- /lomox/lomox.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/lomox/lomox.ico -------------------------------------------------------------------------------- /lomox/lomox.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/lomox/lomox.lib -------------------------------------------------------------------------------- /lomox/lomox.pri: -------------------------------------------------------------------------------- 1 | # ---------------------------------------------------- 2 | # This file is generated by the Qt Visual Studio Add-in. 3 | # ------------------------------------------------------ 4 | 5 | # This is a reminder that you are using a generated .pro file. 6 | # Remove it when you are finished editing this file. 7 | message("You are running qmake on a generated .pro file. This may not work!") 8 | 9 | 10 | HEADERS += ./resource.h \ 11 | ./stdafx.h \ 12 | ./lxbasewin.h \ 13 | ./lxcoreprivate.h \ 14 | ./lxwebpage.h \ 15 | ./lxwebpluginfactory.h \ 16 | ./lxcoreapplication.h \ 17 | ./lxdialogoperate.h \ 18 | ./lxdialogs.h \ 19 | ./lxdir.h \ 20 | ./lxfile.h \ 21 | ./lxlibmanager.h \ 22 | ./lxlibrary.h \ 23 | ./lxwebkitplugininterface.h \ 24 | ./lomox.h \ 25 | ./lomox_global.h \ 26 | ./lxdefinename.h \ 27 | ./lxlocaltool.h \ 28 | ./lxoperate.h \ 29 | ./lxsqldatabase.h \ 30 | ./lxsqlquery.h \ 31 | ./lxsystemtray.h \ 32 | ./lxnetworkcookie.h \ 33 | ./lxdownloadmanager.h \ 34 | ./lxmainwin.h \ 35 | ./lxinternalplugins.h \ 36 | ./lxpluginbase.h \ 37 | ./tool/check.h \ 38 | ./lxoption.h \ 39 | ./tool/utillites.h \ 40 | ./include/lxHttp.h \ 41 | ./include/lxresources.h \ 42 | ./lxapi/Lx_api.hpp 43 | SOURCES += ./stdafx.cpp \ 44 | ./lxbasewin.cpp \ 45 | ./lxcoreprivate.cpp \ 46 | ./lxwebpage.cpp \ 47 | ./lxwebpluginfactory.cpp \ 48 | ./lxcoreapplication.cpp \ 49 | ./lxdialogoperate.cpp \ 50 | ./lxdialogs.cpp \ 51 | ./lxdir.cpp \ 52 | ./lxfile.cpp \ 53 | ./lxlibmanager.cpp \ 54 | ./lxlibrary.cpp \ 55 | ./lomox.cpp \ 56 | ./lxoperate.cpp \ 57 | ./lxsqldatabase.cpp \ 58 | ./lxsqlquery.cpp \ 59 | ./lxsystemtray.cpp \ 60 | ./lxnetworkcookie.cpp \ 61 | ./lxdownloadmanager.cpp \ 62 | ./lxmainwin.cpp \ 63 | ./lxoption.cpp \ 64 | ./implement/lxhttp.cpp \ 65 | ./implement/lxresources.cpp \ 66 | ./lxapi/Lx_api.cpp 67 | -------------------------------------------------------------------------------- /lomox/lomox.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 10.00 3 | # Visual Studio 2008 4 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "lomox", "lomox.vcproj", "{171675CF-ACEE-4FD1-B40F-83167571C17D}" 5 | EndProject 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "lomoxstaticlink", "..\lomoxtest\lomoxtest.vcproj", "{F0FD002C-15E6-4D85-A8CB-7A8D87338533}" 7 | EndProject 8 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "lxWebEditPlugin", "..\lxWebEditPlugin\lxWebEditPlugin.vcproj", "{B0B697FC-773F-4462-A6C9-46C2AF2598E5}" 9 | EndProject 10 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "lomoxdynamiclink", "..\lomoxdynamiclink\lomoxdynamiclink.vcproj", "{A3DFF089-A677-4C66-8546-9B33B57C5977}" 11 | EndProject 12 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "LomoxAdmin", "..\lomoxadmin\lomoxadmin.vcproj", "{7328148C-2D69-4DE6-B5F3-263F149BA6D3}" 13 | EndProject 14 | Global 15 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 16 | Debug|Win32 = Debug|Win32 17 | Release|Win32 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 20 | {171675CF-ACEE-4FD1-B40F-83167571C17D}.Debug|Win32.ActiveCfg = Debug|Win32 21 | {171675CF-ACEE-4FD1-B40F-83167571C17D}.Debug|Win32.Build.0 = Debug|Win32 22 | {171675CF-ACEE-4FD1-B40F-83167571C17D}.Release|Win32.ActiveCfg = Release|Win32 23 | {171675CF-ACEE-4FD1-B40F-83167571C17D}.Release|Win32.Build.0 = Release|Win32 24 | {F0FD002C-15E6-4D85-A8CB-7A8D87338533}.Debug|Win32.ActiveCfg = Debug|Win32 25 | {F0FD002C-15E6-4D85-A8CB-7A8D87338533}.Debug|Win32.Build.0 = Debug|Win32 26 | {F0FD002C-15E6-4D85-A8CB-7A8D87338533}.Release|Win32.ActiveCfg = Release|Win32 27 | {F0FD002C-15E6-4D85-A8CB-7A8D87338533}.Release|Win32.Build.0 = Release|Win32 28 | {B0B697FC-773F-4462-A6C9-46C2AF2598E5}.Debug|Win32.ActiveCfg = Debug|Win32 29 | {B0B697FC-773F-4462-A6C9-46C2AF2598E5}.Debug|Win32.Build.0 = Debug|Win32 30 | {B0B697FC-773F-4462-A6C9-46C2AF2598E5}.Release|Win32.ActiveCfg = Release|Win32 31 | {B0B697FC-773F-4462-A6C9-46C2AF2598E5}.Release|Win32.Build.0 = Release|Win32 32 | {A3DFF089-A677-4C66-8546-9B33B57C5977}.Debug|Win32.ActiveCfg = Debug|Win32 33 | {A3DFF089-A677-4C66-8546-9B33B57C5977}.Debug|Win32.Build.0 = Debug|Win32 34 | {A3DFF089-A677-4C66-8546-9B33B57C5977}.Release|Win32.ActiveCfg = Release|Win32 35 | {A3DFF089-A677-4C66-8546-9B33B57C5977}.Release|Win32.Build.0 = Release|Win32 36 | {7328148C-2D69-4DE6-B5F3-263F149BA6D3}.Debug|Win32.ActiveCfg = Debug|Win32 37 | {7328148C-2D69-4DE6-B5F3-263F149BA6D3}.Debug|Win32.Build.0 = Debug|Win32 38 | {7328148C-2D69-4DE6-B5F3-263F149BA6D3}.Release|Win32.ActiveCfg = Release|Win32 39 | {7328148C-2D69-4DE6-B5F3-263F149BA6D3}.Release|Win32.Build.0 = Release|Win32 40 | EndGlobalSection 41 | GlobalSection(SolutionProperties) = preSolution 42 | HideSolutionNode = FALSE 43 | EndGlobalSection 44 | GlobalSection(ExtensibilityGlobals) = postSolution 45 | QtVersion = 4.8.2 46 | EndGlobalSection 47 | EndGlobal 48 | -------------------------------------------------------------------------------- /lomox/lomox.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/lomox/lomox.suo -------------------------------------------------------------------------------- /lomox/lomox.vcproj.pc-PC.Administrator.user: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 11 | 35 | 36 | 39 | 63 | 64 | 65 | 66 | -------------------------------------------------------------------------------- /lomox/lomox.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | PATH=$(QTDIR)\bin%3b$(PATH) 5 | D:\Qt\Qt5.5.1\5.5\msvc2013 6 | WindowsLocalDebugger 7 | 8 | 9 | PATH=D:\Qt\Qt5.5.1\5.5\msvc2013\bin%3b$(PATH) 10 | C:\Qt\Qt5.5.1\5.5\msvc2013_64\ 11 | 12 | 13 | PATH=$(QTDIR)\bin%3bC:\Qt\Qt5.5.1\5.5\msvc2013_64\\bin%3b$(PATH) 14 | D:\Qt\Qt5.5.1\5.5\msvc2013 15 | 16 | 17 | PATH=D:\Qt\Qt5.5.1\5.5\msvc2013\bin%3b$(PATH) 18 | C:\Qt\Qt5.5.1\5.5\msvc2013_64\ 19 | WindowsLocalDebugger 20 | 21 | -------------------------------------------------------------------------------- /lomox/lomox_global.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * 版权所有(C) 1988-2011 All Rights Reserved. 3 | * 4 | * 文件名称 : basewin.h 5 | * 作 者 : 蔡东赟 (mailto:caidongyun19@qq.com) 6 | * 创建日期 : 2011/11/3 7 | * 功能描述 : 8 | * 备 注 : 9 | ********************************************************************************/ 10 | #ifndef LOMOX_GLOBAL_H 11 | #define LOMOX_GLOBAL_H 12 | 13 | #include 14 | 15 | #ifndef LOMOX_EXPORT 16 | #ifdef LOMOX_LIB 17 | # define LOMOX_EXPORT Q_DECL_EXPORT 18 | #else 19 | # define LOMOX_EXPORT Q_DECL_IMPORT 20 | #endif 21 | #endif 22 | 23 | #include "stdafx.h" 24 | #include 25 | //#include //5.0被替换 26 | #include 27 | #include 28 | #include 29 | #include 30 | #include 31 | #include 32 | #include 33 | #include 34 | #include 35 | #include 36 | 37 | #include "tool/check.h" 38 | #include "tool/utillites.h" 39 | #include "lxlocaltool.h" 40 | #include "lxdefinename.h" 41 | #include "lxnetworkcookie.h" 42 | 43 | 44 | 45 | #define nullptr 0 46 | #define LOMOX_VERSION "0.1.0" 47 | 48 | #include "lxoperate.h" 49 | 50 | /*#include "lxdialogoperate.h"*/ 51 | #ifndef lxCoreApp 52 | #define lxCoreApp static_cast(LxCoreApplicationPrivate::instance()) 53 | #endif 54 | 55 | #endif // LOMOX_GLOBAL_H 56 | 57 | 58 | 59 | -------------------------------------------------------------------------------- /lomox/lxapi/Lx_api.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/lomox/lxapi/Lx_api.cpp -------------------------------------------------------------------------------- /lomox/lxapi/Lx_api.hpp: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * 版权所有(C) 1988-2012 All Rights Reserved. 3 | * 4 | * 文件名称 : Lx_api.h 5 | * 作 者 : 詹晨辉 (mailto:zch.fly@gmail.com) 6 | * 创建日期 : 2012/12/21 7 | * 功能描述 : 8 | * 备 注 : 9 | ********************************************************************************/ 10 | #ifndef LOMOX_API_H 11 | #define LOMOX_API_H 12 | 13 | #ifdef WIN32 14 | #ifndef LOMOX_EXPORT 15 | #ifdef LOMOX_LIB 16 | #define LOMOX_EXPORT __declspec(dllexport) 17 | #else 18 | #define LOMOX_EXPORT __declspec(dllimport) 19 | #endif 20 | #endif 21 | #else 22 | #include 23 | #ifndef LOMOX_EXPORT 24 | #ifdef LOMOX_LIB 25 | # define LOMOX_EXPORT Q_DECL_EXPORT 26 | #else 27 | # define LOMOX_EXPORT Q_DECL_IMPORT 28 | #endif 29 | #endif 30 | #endif 31 | 32 | 33 | 34 | 35 | #ifdef __cplusplus 36 | extern "C" { 37 | #endif 38 | LOMOX_EXPORT void LomoxAppRun(int argc, char *argv[]); 39 | #ifdef __cplusplus 40 | }; 41 | #endif // __cplusplus 42 | 43 | #endif 44 | -------------------------------------------------------------------------------- /lomox/lxbasewin.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * 版权所有(C) 1988-2011 All Rights Reserved. 3 | * 4 | * 文件名称 : basewin.h 5 | * 作 者 : 蔡东赟 (mailto:caidongyun19@qq.com) 6 | * 创建日期 : 2011/11/3 7 | * 功能描述 : 8 | * 备 注 : 9 | ********************************************************************************/ 10 | #ifndef __BASEWIN_H__ 11 | #define __BASEWIN_H__ 12 | 13 | #include "lomox_global.h" 14 | #include "stdafx.h" 15 | #include 16 | class LxOperate; 17 | class LxWebPluginFactory; 18 | 19 | typedef QVector JsApiObjectContainer; 20 | 21 | class LOMOX_EXPORT LxBaseWin : public QWebView 22 | { 23 | Q_OBJECT 24 | 25 | public: 26 | explicit LxBaseWin(QWidget *parent = 0); 27 | virtual ~LxBaseWin(); 28 | 29 | public: 30 | void triggerPageAction(QWebPage::WebAction action, bool checked = false); 31 | 32 | private: 33 | bool _initWidget(); 34 | 35 | public slots: 36 | void linkClickedAction(const QUrl& url); 37 | 38 | protected: 39 | 40 | void showEvent(QShowEvent *e); 41 | bool event(QEvent* e); 42 | 43 | private: 44 | JsApiObjectContainer m_vecApiObjectContain; 45 | QString m_strApiName; 46 | QPointer m_ptrPage; 47 | QPointer m_ptrPlugin; 48 | bool m_bLoadHrefInCurrent; 49 | }; 50 | #endif // end of __BASEWIN_H__ 51 | -------------------------------------------------------------------------------- /lomox/lxcoreapplication.cpp: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * 版权所(C) 2011-2012 caidongyun All Rights Reserved. 3 | * 4 | * 文件名称 : lxcoreapplication.cpp 5 | * 作 者 : 蔡东赟 (mailto:caidongyun19@qq.com) 6 | * 创建日期 : 2012/2/6 7 | * 功能描述 : 8 | * 备 注 : 9 | ********************************************************************************/ 10 | 11 | #include "lomox_global.h" 12 | #include "lxcoreapplication.h" 13 | //#include 14 | #include "lxHttp.h" 15 | #include "lxresources.h" 16 | 17 | LxCoreApplication::LxCoreApplication( QObject* object, QWebView* pWebView, QString strApiName /*= QString(LOMOX_API_COREAPP)*/ ) 18 | :LxOperate(object, pWebView, strApiName) 19 | { 20 | m_pLibMgr = new LxLibManager(this); 21 | m_pLibMgr->initialize(m_ptrWebView); 22 | 23 | m_pFile = new LxFile(this); 24 | 25 | m_pDir = new LxDir(this); 26 | 27 | 28 | } 29 | 30 | LxCoreApplication::~LxCoreApplication() 31 | { 32 | 33 | } 34 | 35 | QObject* LxCoreApplication::getDialogs() const 36 | { 37 | return lxCoreApp->getDialogs(); 38 | } 39 | 40 | QObject* LxCoreApplication::getFile() const 41 | { 42 | if(m_pFile) 43 | return m_pFile; 44 | else 45 | return nullptr; 46 | } 47 | 48 | QObject *LxCoreApplication::getDir() const 49 | { 50 | if(m_pDir) 51 | return m_pDir; 52 | else 53 | return nullptr; 54 | } 55 | 56 | QObject* LxCoreApplication::getLib()const 57 | { 58 | if(m_pLibMgr) 59 | return m_pLibMgr; 60 | else 61 | return nullptr; 62 | } 63 | 64 | QVariant LxCoreApplication::getVersion() const 65 | { 66 | return QString(LOMOX_VERSION); 67 | } 68 | 69 | QVariant LxCoreApplication::getAppPath() const 70 | { 71 | return QCoreApplication::applicationDirPath(); 72 | } 73 | 74 | QVariant LxCoreApplication::getArguments() const 75 | { 76 | return QVariant(qApp->arguments()); 77 | } 78 | 79 | /******************************************************************************* 80 | * 函数名称 : LxCoreApplication::clearMemoryCaches 81 | * 功能描述 : 清理内存 82 | * 返 回 值 : bool 83 | * 备  注 : 蔡东赟[2012/6/12] 84 | *******************************************************************************/ 85 | void LxCoreApplication::clearMemoryCaches() 86 | { 87 | QWebSettings::clearMemoryCaches(); 88 | } 89 | 90 | QObject* LxCoreApplication::getHttpTool() 91 | { 92 | m_pHttp = new LxHttp(this); 93 | return m_pHttp; 94 | } 95 | 96 | QObject* LxCoreApplication::getResources() 97 | { 98 | m_pResource = new LxResources(this); 99 | return m_pResource; 100 | } 101 | 102 | int LxCoreApplication::execute( QVariant varProgram, QVariant varArguments ) 103 | { 104 | if (varProgram.isNull() || !varProgram.isValid()) 105 | return 0; 106 | 107 | if (varArguments.isNull()) 108 | { 109 | return QProcess::execute(varProgram.toString()); 110 | } 111 | 112 | if (varArguments.type() == QVariant::String) 113 | { 114 | QStringList arg; 115 | arg.append(varArguments.toString()); 116 | return QProcess::execute(varProgram.toString()); 117 | } 118 | if (varArguments == QVariant::StringList) 119 | { 120 | return QProcess::execute(varProgram.toString(), varArguments.toStringList()); 121 | } 122 | return 0; 123 | } 124 | 125 | // QVariant LxCoreApplication::exec( QString strProgram, QString strArguments ) 126 | // { 127 | // QProcess* proc = new QProcess(this); 128 | // proc->start(strProgram, strArguments); 129 | // 130 | // 131 | // return 1; 132 | // } 133 | -------------------------------------------------------------------------------- /lomox/lxcoreapplication.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * 版权所有(C) 2011-2012 caidongyun All Rights Reserved. 3 | * 4 | * 文件名称 : lxcoreapplication.h 5 | * 作 者 : 蔡东赟 6 | * 创建日期 : 2012/2/6 7 | * 功能描述 : 8 | 9 | add resources 陈湘跃 (mailto:291307963@qq.com) 10 | 11 | * 备 注 : 12 | ********************************************************************************/ 13 | #ifndef __LXCOREAPPLICATION_H__ 14 | #define __LXCOREAPPLICATION_H__ 15 | 16 | #include "lomox_global.h" 17 | #include "stdafx.h" 18 | #include 19 | #include 20 | 21 | #include "lxbasewin.h" 22 | #include "lxdialogs.h" 23 | #include "lxcoreprivate.h" 24 | #include "lxlibmanager.h" 25 | #include "lxfile.h" 26 | #include "lxdir.h" 27 | 28 | class LxOperate; 29 | class LxDialogs; 30 | class LxCoreApplicationPrivate; 31 | class LxFile; 32 | class LxDir; 33 | class LxLibManager; 34 | 35 | typedef QVector LxWinContainer; 36 | 37 | class LOMOX_EXPORT LxCoreApplication : public LxOperate 38 | { 39 | Q_OBJECT 40 | 41 | Q_PROPERTY (QObject* libs READ getLib) 42 | Q_PROPERTY (QObject* dialogs READ getDialogs) 43 | Q_PROPERTY(QObject* file READ getFile) 44 | Q_PROPERTY(QObject* dir READ getDir) 45 | Q_PROPERTY(QVariant appPath READ getAppPath) 46 | Q_PROPERTY(QVariant args READ getArguments) 47 | Q_PROPERTY(QVariant version READ getVersion) 48 | 49 | Q_PROPERTY(QObject* net READ getHttpTool) 50 | 51 | Q_PROPERTY(QObject* res READ getResources) 52 | 53 | public: 54 | explicit LxCoreApplication(QObject* object, QWebView* pWebView, QString strApiName = QString(LOMOX_API_COREAPP)); 55 | virtual ~LxCoreApplication(); 56 | 57 | private slots: 58 | QObject* getDialogs() const; 59 | QObject* getLib()const; 60 | QObject* getFile()const; 61 | QObject* getDir()const; 62 | QVariant getArguments() const; 63 | QVariant getVersion() const; 64 | QVariant getAppPath() const; 65 | void clearMemoryCaches(); 66 | 67 | QObject* getHttpTool(); 68 | 69 | QObject* getResources(); 70 | 71 | public slots: 72 | int execute(QVariant varProgram, QVariant varArguments); 73 | /* QVariant exec(QString varProgram, QString varArguments);*/ 74 | 75 | public: 76 | LxBaseWin* getMainDialog(); 77 | 78 | private: 79 | QString m_strApiName; 80 | QPointer m_ptrCurrentView;//LOMOX全局 关联到的page 81 | QPointer m_ptrCurrentWebPage;//LOMOX全局 关联到的page 82 | QPointer m_pLibMgr; 83 | QPointer m_pFile; 84 | QPointer m_pDir; 85 | QPointer m_pHttp; 86 | QPointer m_pResource; 87 | 88 | QMap > m_mapNameToObject; 89 | }; 90 | #endif // end of __LXCOREAPPLICATION_H__ 91 | -------------------------------------------------------------------------------- /lomox/lxcoreprivate.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * 版权所有(C) 2011-2012www.LomoX.hk All Rights Follow Lomox licence. 3 | * 4 | * 文件名称 : lxcoreprivate.h 5 | * 作 者 : 蔡东赟 (mailto:caidongyun19@qq.com) 6 | * 创建日期 : 2012/2/20 7 | * 功能描述 : 8 | * 备 注 : 9 | * 修 改 :詹晨辉(KeoJam)(mailto:zch.fly@gmail.com) 10 | ********************************************************************************/ 11 | #ifndef __LXCOREPRIVATE_H__ 12 | #define __LXCOREPRIVATE_H__ 13 | 14 | #include 15 | 16 | #include "lxbasewin.h" 17 | #include "lxoperate.h" 18 | #include "lxdialogs.h" 19 | #include "lxcoreapplication.h" 20 | #include "lxlibmanager.h" 21 | #include "lxoption.h" 22 | #include "lxmainwin.h" 23 | 24 | class LxCoreApplication; 25 | class LxDialogs; 26 | 27 | class LxCoreApplicationPrivate; 28 | 29 | static LxCoreApplicationPrivate* g_AppSelft = nullptr; 30 | 31 | class LxMainWindow; 32 | 33 | class LxDownloadManager; 34 | 35 | class LOMOX_EXPORT LxCoreApplicationPrivate : public QObject 36 | { 37 | Q_OBJECT 38 | private: 39 | LxCoreApplicationPrivate() 40 | :m_pMainWin(nullptr), 41 | m_pDialogs(nullptr), 42 | m_pOption(nullptr), 43 | m_pdownloadmanager(nullptr) 44 | { 45 | } 46 | 47 | public: 48 | virtual ~LxCoreApplicationPrivate(); 49 | 50 | void runLomoxApp(int argc, char *argv[]); 51 | 52 | void quit(); 53 | 54 | LxMainWindow* getMainWin(); 55 | 56 | LxDialogs* getDialogs(); 57 | 58 | LxDownloadManager *getDownloadManager(); 59 | 60 | void showMainDialog( QUrl URL /*= ""*/ ); 61 | 62 | LxOption* getOption(); 63 | 64 | void setMainDialogTitle( QString &strTitle ); 65 | 66 | public: 67 | static LxCoreApplicationPrivate* instance() 68 | { 69 | if (!g_AppSelft) 70 | { 71 | g_AppSelft = new LxCoreApplicationPrivate(); 72 | } 73 | return g_AppSelft; 74 | } 75 | 76 | 77 | 78 | // private: 79 | // QString 80 | protected: 81 | LxMainWindow* m_pMainWin; 82 | LxDialogs* m_pDialogs; 83 | LxDialogBase* m_pDialog; 84 | LxOption* m_pOption; 85 | LxDownloadManager *m_pdownloadmanager; //下载器 86 | }; 87 | 88 | 89 | 90 | 91 | 92 | /*#ifndef lxCoreApp*/ 93 | 94 | /*#endif*/ 95 | 96 | #endif // end of __LXCOREPRIVATE_H__ 97 | -------------------------------------------------------------------------------- /lomox/lxdefinename.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * 版权所有(C) 2011-2011 LomoX. caidongyun All Rights Reserved. 3 | * 4 | * 文件名称 : definename.h 5 | * 作 者 : 蔡东赟 (mailto:caidongyun19@qq.com) 6 | * 创建日期 : 2011/12/31 7 | * 功能描述 : 8 | * 备 注 : 9 | ********************************************************************************/ 10 | #ifndef __DEFINENAME_H__ 11 | #define __DEFINENAME_H__ 12 | 13 | #define LOMOX_API_COREAPP "LomoX" 14 | #define LOMOX_API_DIALOG "LxDialog" 15 | 16 | #endif // end of __DEFINENAME_H__ 17 | -------------------------------------------------------------------------------- /lomox/lxdialogoperate.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * 版权所有(C) 2011-2012www.LomoX.hk All Rights Follow Lomox licence. 3 | * 4 | * 文件名称 : lxdialogoperate.h 5 | * 作 者 : 蔡东赟 (mailto:caidongyun19@qq.com) 6 | * 创建日期 : 2011/12/4 7 | * 功能描述 : 8 | * 备 注 : 9 | ********************************************************************************/ 10 | #ifndef __DIALOGBASE_H__ 11 | #define __DIALOGBASE_H__ 12 | 13 | #include "lomox_global.h" 14 | #include "stdafx.h" 15 | 16 | 17 | class LOMOX_EXPORT LxDialogBase : public LxOperate 18 | { 19 | Q_OBJECT 20 | public: 21 | explicit LxDialogBase(QObject* object, QWebView* pWebView, QString strApiName,bool bshowloading = false, 22 | int gifW = 0,int gifH = 0); 23 | virtual ~LxDialogBase(); 24 | 25 | public slots: 26 | virtual void move(); 27 | virtual void move(int x, int y); 28 | virtual void showMinimized(); 29 | virtual void showMaximized(); 30 | virtual void close(); 31 | virtual void showNormal(); 32 | 33 | virtual bool isMinimized(); 34 | virtual bool isMaximized(); 35 | virtual bool isFullScreen(); 36 | 37 | virtual int minimumWidth(); 38 | virtual int minimumHeight(); 39 | virtual int maximumWidth(); 40 | virtual int maximumHeight(); 41 | virtual void setMinimumSize(int minw, int minh); 42 | virtual void setMaximumSize(int maxw, int maxh); 43 | virtual void setMinimumWidth(int minw); 44 | virtual void setMinimumHeight(int minh); 45 | virtual void setMaximumWidth(int maxw); 46 | virtual void setMaximumHeight(int maxh); 47 | 48 | virtual void show(); 49 | virtual void setDialogWH(QVariant Weight, QVariant Hight); 50 | virtual void reload(); 51 | virtual void openUrl(QVariant url); 52 | virtual int getTopLeftX(); 53 | virtual int getTopLeftY(); 54 | 55 | virtual void setUrl(QString strUrl); 56 | virtual void setVisible(bool visible); 57 | virtual void setHidden(bool hidden); 58 | 59 | virtual void printPreview(); 60 | 61 | virtual QVariant eval( QVariant code); 62 | virtual QVariant toHTML(); 63 | virtual void setHTML( QVariant code); 64 | virtual QObject* getCoreDialog(); 65 | 66 | virtual void setTitle(QString strTitle); 67 | private slots: 68 | void downloadRequested(const QNetworkRequest &request); 69 | void loadStarted(){}; 70 | void loadProgress(int progress){}; 71 | void loadFinished(bool); 72 | private: 73 | QUrl m_url; 74 | QWebFrame* m_mainFrame; 75 | QLabel* m_label; 76 | bool m_showloading; 77 | int m_lablW; 78 | int m_lablH; 79 | double m_nWidth; 80 | double m_nHeight; 81 | QMovie* m_movie; 82 | QBoxLayout *m_layout; 83 | }; 84 | 85 | 86 | #endif // end of __DIALOGBASE_H__ 87 | 88 | 89 | -------------------------------------------------------------------------------- /lomox/lxdialogs.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * 版权所有(C) 2011-2012 caidongyun All Rights Reserved. 3 | * 4 | * 文件名称 : lxwindows.h 5 | * 作 者 : 蔡东赟 (mailto:caidongyun19@qq.com) 6 | * 创建日期 : 2012/2/6 7 | * 功能描述 : 8 | * 备 注 : 9 | ********************************************************************************/ 10 | #ifndef __LXDIALOGS_H__ 11 | #define __LXDIALOGS_H__ 12 | 13 | #include "lxdialogoperate.h" 14 | #include "lxbasewin.h" 15 | #include "lxcoreapplication.h" 16 | #include "lxmainwin.h" 17 | class LxMainWindow; 18 | 19 | 20 | class LxCoreApplication; 21 | 22 | 23 | class LOMOX_EXPORT LxDialogs : public QObject 24 | { 25 | Q_OBJECT 26 | public: 27 | LxDialogs(QObject* parent = 0); 28 | virtual ~LxDialogs(); 29 | 30 | public slots: 31 | //virtual QObject* item(QVariant varIndex); 32 | virtual void append(QString key,LxDialogBase* pLxDialog); 33 | virtual QObject* get(QString varKey); 34 | virtual QVariant count(); 35 | virtual QObject* add( QString key,QString url ); 36 | virtual QVariant remove( QString key); 37 | virtual void closeAll(); 38 | private: 39 | QMap m_mapDialogs; 40 | QPointer m_ptrMainWin; 41 | }; 42 | #endif // end of __LXWINDOWS_H__ 43 | -------------------------------------------------------------------------------- /lomox/lxdir.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/lomox/lxdir.cpp -------------------------------------------------------------------------------- /lomox/lxdir.h: -------------------------------------------------------------------------------- 1 | #ifndef LXDIR_H 2 | #define LXDIR_H 3 | 4 | #include "lomox_global.h" 5 | #include "lxoperate.h" 6 | #include 7 | 8 | class LxDir : public LxOperate 9 | { 10 | Q_OBJECT 11 | public: 12 | explicit LxDir(QObject *parent = 0); 13 | 14 | signals: 15 | 16 | public slots: 17 | 18 | virtual QVariant exists(QVariant name,QString encode="UTF-8"); 19 | virtual QVariant mkdir(QVariant dirName,QString encode="UTF-8"); 20 | virtual QVariant mkpath(QVariant dirPath,QString encode="UTF-8"); 21 | virtual QVariant entryList(QVariant dirPath,QVariant nameFilters,QVariant filters=QDir::NoFilter,QVariant sort =QDir::NoSort,QString encode="UTF-8"); 22 | virtual QVariant getType(QVariant varPath, QString encode = "UTF-8"); 23 | }; 24 | 25 | #endif // LXDIR_H 26 | -------------------------------------------------------------------------------- /lomox/lxdownloadmanager.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * 版权所有(C) 2011-2015www.LomoX.hk All Rights Follow Lomox licence. 3 | * 4 | * 文件名称 : lxdownloadmanager.h 5 | * 作 者 : 詹晨辉 (mailto:zch.fly@gmail.com) 6 | * 创建日期 : 2015/04/20 7 | * 功能描述 : 8 | * 备 注 : 9 | ********************************************************************************/ 10 | #ifndef __LXDOWNLOADMANAGER_H__ 11 | #define __LXDOWNLOADMANAGER_H__ 12 | 13 | #include 14 | #include "lomox_global.h" 15 | 16 | class LxDialogBase; 17 | 18 | class LOMOX_EXPORT LxDownloadItem : public QObject 19 | { 20 | Q_OBJECT 21 | 22 | public: 23 | LxDownloadItem(QNetworkReply *pReply, LxDialogBase* pLxDialogBase,QObject *parent); 24 | ~LxDownloadItem(); 25 | void startDownloading(QUrl url); 26 | private: 27 | QNetworkReply* m_pReply; 28 | LxDialogBase* m_pLxDialogBase; 29 | QFile m_file; 30 | private slots: 31 | void downloadReadyRead(); 32 | void downloadError(QNetworkReply::NetworkError); 33 | void downloadFinished(); 34 | void metaDataChanged(); 35 | }; 36 | 37 | class LOMOX_EXPORT LxDownloadManager : public QObject 38 | { 39 | Q_OBJECT 40 | 41 | public: 42 | LxDownloadManager(QObject *parent); 43 | ~LxDownloadManager(); 44 | static QNetworkAccessManager* getNetworkAccessManager() 45 | { 46 | return m_pNetworkAccessManager; 47 | } 48 | 49 | private: 50 | QList m_downloads; 51 | static QNetworkAccessManager* m_pNetworkAccessManager; 52 | public slots : 53 | void download(const QNetworkRequest &request, LxDialogBase* pdiaglogbase, bool requestFileName = false); 54 | inline void download(const QUrl &url, LxDialogBase* pdiaglogbase, bool requestFileName = false) 55 | { 56 | download(QNetworkRequest(url), pdiaglogbase, requestFileName); 57 | } 58 | }; 59 | 60 | #endif // LXDOWNLOADMANAGER_H 61 | -------------------------------------------------------------------------------- /lomox/lxfile.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * 版权所有(C) 2011-2012www.LomoX.hk All Rights Follow Lomox licence. 3 | * 4 | * 文件名称 : lxfile.h 5 | * 作 者 : 蔡东赟 (mailto:caidongyun19@qq.com) 6 | * 创建日期 : 2012/1/31 7 | * 功能描述 : 8 | * 备 注 : 9 | ********************************************************************************/ 10 | #ifndef __LXFILE_H__ 11 | #define __LXFILE_H__ 12 | 13 | #include "lomox_global.h" 14 | 15 | #include "lxoperate.h" 16 | #include 17 | 18 | class LOMOX_EXPORT LxFile : public LxOperate 19 | { 20 | Q_OBJECT 21 | public: 22 | LxFile(QObject* parent = nullptr); 23 | explicit LxFile(QObject* object, QWebView* pWebView, QString strApiName); 24 | virtual ~LxFile(); 25 | 26 | public slots: 27 | virtual QVariant readFileData(QVariant varFilename, QString readType = "binary"/*or txt*/, QString encode = "UTF-8"); 28 | virtual QVariant isExits(QVariant varFilename);// 29 | virtual QVariant remove(QVariant varFilename); 30 | virtual QVariant rename(QVariant varOldName, QVariant varNewName); 31 | virtual QVariant link(QVariant oldname, QVariant newName); 32 | virtual QVariant copy(QVariant varFileName, QVariant varNewName); 33 | virtual QVariant size(QVariant varFilename); 34 | virtual QVariant permissions(QVariant varFilename);// 35 | virtual QVariant write(QVariant varFilename,QVariant text,QString encode="UTF-8"); 36 | }; 37 | 38 | #endif // end of __LXFILE_H__ 39 | -------------------------------------------------------------------------------- /lomox/lxinternalplugins.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * 版权所有(C) 2010-2013 caidongyun. All Rights Reserved. 3 | * 4 | * 文件名称 : lxinternalplugins.h 5 | * 作 者 : 蔡东赟 (mailto:caidongyun19@qq.com) 6 | * 创建日期 : 2013/4/22 7 | * 功能描述 : 8 | * 备 注 : 9 | ********************************************************************************/ 10 | #ifndef __LXINTERNALPLUGINS_H__ 11 | #define __LXINTERNALPLUGINS_H__ 12 | 13 | #include "lxpluginbase.h" 14 | 15 | class LxPlugins : public QObject 16 | { 17 | public: 18 | LxPlugins(QObject* parent):QObject(parent){} 19 | virtual LxPlugins(){} 20 | 21 | 22 | private: 23 | //QMap 24 | }; 25 | 26 | 27 | 28 | 29 | class 30 | 31 | 32 | 33 | 34 | 35 | 36 | #endif // end of __LXINTERNALPLUGINS_H__ 37 | -------------------------------------------------------------------------------- /lomox/lxlibmanager.cpp: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * 版权所有(C) 2010-20122012 lomox.hk All Rights Reserved. 3 | * 4 | * 文件名称 : lxlibrary.cpp 5 | * 作 者 : colin3dmax 6 | * 创建日期 : before 2012/4/10 7 | * 功能描述 : 8 | * 备 注 : 9 | ********************************************************************************/ 10 | #include "lxlibmanager.h" 11 | 12 | LxLibManager::LxLibManager(QObject *parent) 13 | :QObject(parent) 14 | { 15 | 16 | } 17 | 18 | LxLibManager::~LxLibManager() 19 | { 20 | 21 | } 22 | 23 | void LxLibManager::initialize(QWebView *pWebView) 24 | { 25 | if(!m_pWebView){ 26 | m_pWebView = pWebView; 27 | qDebug("LxLibManager::initialize m_pWebView"); 28 | } 29 | } 30 | 31 | QVariant LxLibManager::count() 32 | { 33 | return m_mapLib.count(); 34 | } 35 | 36 | QObject *LxLibManager::add(QString dllKey, QString dllPath) 37 | { 38 | LxLibrary* lib=new LxLibrary(); 39 | lib->initialize(m_pWebView.data()); 40 | lib->load(dllPath); 41 | m_mapLib.insert(dllKey,lib); 42 | return lib; 43 | } 44 | 45 | QVariant LxLibManager::remove(QString dllKey) 46 | { 47 | if(m_mapLib.contains(dllKey)) 48 | { 49 | LxLibrary * lib = m_mapLib[dllKey]; 50 | lib->unload(); 51 | lib->deleteLater(); 52 | return QVariant(m_mapLib.remove(dllKey)>=1?true:false); 53 | } 54 | else 55 | { 56 | return QVariant(false); 57 | } 58 | } 59 | 60 | QObject *LxLibManager::get(QString dllKey) 61 | { 62 | return m_mapLib[dllKey]; 63 | } 64 | 65 | 66 | -------------------------------------------------------------------------------- /lomox/lxlibmanager.h: -------------------------------------------------------------------------------- 1 | #ifndef LXLIBMANAGER_H 2 | #define LXLIBMANAGER_H 3 | 4 | #include 5 | #include 6 | #include "lxlibrary.h" 7 | 8 | class LxLibManager : public QObject 9 | { 10 | Q_OBJECT 11 | public: 12 | explicit LxLibManager(QObject *parent = 0); 13 | virtual ~LxLibManager(); 14 | virtual void initialize(QWebView *pWebView); 15 | signals: 16 | 17 | public slots: 18 | virtual QVariant count(); 19 | virtual QObject* add( QString dllKey,QString dllPath ); 20 | virtual QVariant remove( QString dllKey ); 21 | virtual QObject* get(QString dllKey); 22 | private: 23 | QMap m_mapLib; 24 | QPointer m_pWebView; 25 | }; 26 | 27 | #endif // LXLIBMANAGER_H 28 | -------------------------------------------------------------------------------- /lomox/lxlibrary.cpp: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * 版权所有(C) 2010-20122012 lomox.hk All Rights Reserved. 3 | * 4 | * 文件名称 : lxlibrary.cpp 5 | * 作 者 : colin3dmax 6 | * 创建日期 : before 2012/4/10 7 | * 更新 :蔡东赟对编码格式进行整理 2012/4/10 8 | * 功能描述 : 9 | * 备 注 : 10 | ********************************************************************************/ 11 | #include "lomox_global.h" 12 | #include "lxlibrary.h" 13 | 14 | LxLibrary::LxLibrary(QObject *parent) 15 | :QObject(parent) 16 | { 17 | 18 | } 19 | 20 | LxLibrary::~LxLibrary() 21 | { 22 | } 23 | 24 | QVariant LxLibrary::load(QString dllPath ) 25 | { 26 | qDebug(dllPath.toLatin1().data()); 27 | if(m_pLib.isNull()) 28 | { 29 | m_pLib = new QLibrary(dllPath); 30 | if(m_pLib->load()) 31 | { 32 | qDebug("dll success"); 33 | return QVariant(true); 34 | }else 35 | { 36 | qDebug("dll erro 1"); 37 | return QVariant(false); 38 | } 39 | } 40 | else 41 | { 42 | qDebug("dll error 2"); 43 | return QVariant(false); 44 | } 45 | } 46 | 47 | QVariant LxLibrary::exec(QString functionName, QVariant param,QString encode) 48 | { 49 | qDebug("in exec now!"); 50 | if (m_webView.isNull())return nullptr; 51 | 52 | QTextCodec::codecForName(encode.toLocal8Bit().data()); 53 | //QTextCodec::setCodecForCStrings(QTextCodec::codecForName(encode.toLocal8Bit().data())); 54 | if((!m_pLib.isNull()) && m_pLib->isLoaded()) 55 | { 56 | qDebug("exec now!"); 57 | void * fun = (void *)m_pLib->resolve(functionName.toLocal8Bit().data()); 58 | if(!fun) 59 | return nullptr; 60 | 61 | char * result = ((char *(*)(char *))fun)(param.toString().toLocal8Bit().data()); 62 | qDebug(result); 63 | QString str(result); 64 | //借用Webkit 转换JSON格式 65 | QVariant myVal( m_webView->page()->mainFrame()->evaluateJavaScript( "("+str+")" )); 66 | if(myVal.isValid()) 67 | return myVal; 68 | return QVariant(str); 69 | } 70 | else 71 | { 72 | return nullptr; 73 | } 74 | } 75 | 76 | QVariant LxLibrary::unload() 77 | { 78 | //dll 必须做一次检查,否则会崩溃,建议做成成员变量,而不是 传出去的指针传回来 79 | if(!m_pLib.isNull())return QVariant(m_pLib->unload()); 80 | else return QVariant(false); 81 | } 82 | 83 | void LxLibrary::initialize( QWebView* pWebView /*= 0*/ ) 84 | { 85 | m_webView = pWebView; 86 | if(pWebView)qDebug("m_webView initialized! not null"); 87 | } 88 | 89 | -------------------------------------------------------------------------------- /lomox/lxlibrary.h: -------------------------------------------------------------------------------- 1 |  2 | 3 | #ifndef __LXLIBRARY_H__ 4 | #define __LXLIBRARY_H__ 5 | 6 | #include 7 | #include "lxbasewin.h" 8 | 9 | class LOMOX_EXPORT LxLibrary : public QObject 10 | { 11 | Q_OBJECT 12 | public: 13 | explicit LxLibrary(QObject *parent = 0); 14 | virtual ~LxLibrary(); 15 | 16 | void initialize(QWebView* pWebView = 0); 17 | 18 | public slots: 19 | virtual QVariant load(QString dllPath ); 20 | virtual QVariant exec(QString functionName,QVariant param,QString encode="UTF-8"); 21 | virtual QVariant unload(); 22 | 23 | private: 24 | QPointer m_webView; 25 | QPointer m_pLib; 26 | }; 27 | 28 | #endif //__LXLIBRARY_H__ 29 | -------------------------------------------------------------------------------- /lomox/lxlinker.cpp: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * 版权所有(C) 2011-2012www.LomoX.hk All Rights Follow Lomox licence. 3 | * 4 | * 文件名称 : lxlinker.cpp 5 | * 作 者 : 蔡东赟 (mailto:caidongyun19@qq.com) 6 | * 创建日期 : 2012/2/19 7 | * 功能描述 : 8 | * 备 注 : 9 | ********************************************************************************/ 10 | #include "lomox_global.h" 11 | #include "lxbasewin.h" 12 | #include "lxlinker.h" 13 | 14 | 15 | 16 | LxLinker::LxLinker( QObject* parent /*= 0*/ ) 17 | :QObject(parent) 18 | { 19 | 20 | } 21 | 22 | 23 | LxLinker::~LxLinker() 24 | { 25 | 26 | } 27 | 28 | 29 | bool LxLinker::setupJsApiObject() 30 | { 31 | Q_CHECK_PTR(m_ptrPage); 32 | return LM_UTILITYTOOL::setupApiObject(m_ptrPage, m_strApiName, m_ptrObj); 33 | } 34 | 35 | 36 | bool LxLinker::linkObject( LxBaseWin* pView, QString strApiName, QObject* pObj ) 37 | { 38 | LX_VERIFY_IN_2_POINTERS(pView, pObj); 39 | m_ptrObj = pObj; 40 | m_ptrWebview = pView; 41 | m_strApiName = strApiName; 42 | m_ptrPage = m_ptrWebview->page(); 43 | QWebFrame* pWebFrame = m_ptrPage->mainFrame(); 44 | if (pWebFrame) 45 | { 46 | bool bRes = m_ptrObj->connect(pWebFrame, SIGNAL(javaScriptWindowObjectCleared()), this, SLOT(setupJsApiObject())); 47 | return bRes; 48 | } 49 | return false; 50 | } 51 | -------------------------------------------------------------------------------- /lomox/lxlinker.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * 版权所有(C) 2011-2012www.LomoX.hk All Rights Follow Lomox licence. 3 | * 4 | * 文件名称 : lxlinker.h 5 | * 作 者 : 蔡东赟 (mailto:caidongyun19@qq.com) 6 | * 创建日期 : 2012/2/19 7 | * 功能描述 : 8 | * 备 注 : 9 | ********************************************************************************/ 10 | #ifndef __LXLINKER_H__ 11 | #define __LXLINKER_H__ 12 | 13 | class LxBaseWin; 14 | 15 | class LOMOX_EXPORT LxLinker : public QObject 16 | { 17 | public: 18 | LxLinker(QObject* parent = 0); 19 | virtual ~LxLinker(); 20 | 21 | public slots: 22 | virtual bool setupJsApiObject(); 23 | virtual bool linkObject(LxBaseWin* pView = 0, QString strApiName = QString(""), QObject* pObj = 0); 24 | 25 | private: 26 | QPointer m_ptrWebview; 27 | QPointer m_ptrPage; 28 | QPointer m_ptrObj; 29 | QString m_strApiName; 30 | }; 31 | 32 | 33 | #endif // end of __LXLINKER_H__ 34 | -------------------------------------------------------------------------------- /lomox/lxlocaltool.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * 版权所有(C) 2011-2011 LomoX. caidongyun All Rights Reserved. 3 | * 4 | * 文件名称 : localtool.h 5 | * 作 者 : 蔡东赟 (mailto:caidongyun19@qq.com) 6 | * 创建日期 : 2011/12/13 7 | * 功能描述 : 8 | * 备 注 : 9 | ********************************************************************************/ 10 | #ifndef __LOCALTOOL_H__ 11 | #define __LOCALTOOL_H__ 12 | 13 | #include "stdafx.h" 14 | #include 15 | namespace LX_UTILITYTOOL 16 | { 17 | inline bool setupApiObject(QWebPage* pWebPage, QString strApiName, QObject *object) 18 | { 19 | if (!pWebPage || !object) 20 | return false; 21 | QWebFrame *pFrame = pWebPage->mainFrame(); 22 | if (pFrame) 23 | { 24 | pFrame->addToJavaScriptWindowObject(strApiName, object); 25 | return true; 26 | } 27 | return false; 28 | } 29 | }; 30 | 31 | #endif // end of __LOCALTOOL_H__ 32 | 33 | 34 | -------------------------------------------------------------------------------- /lomox/lxmainwin.h: -------------------------------------------------------------------------------- 1 |  2 | 3 | /******************************************************************************* 4 | * 版权所有(C) 1988-2014 All Rights Reserved. 5 | * 6 | * 文件名称 : basewin.h 7 | * 作 者 : 蔡东赟 (mailto:caidongyun19@qq.com) 8 | * 创建日期 : 2011/11/3 9 | * 功能描述 : 10 | * 备 注 : 11 | ********************************************************************************/ 12 | 13 | #ifndef __LXMAINWIN_H__ 14 | #define __LXMAINWIN_H__ 15 | 16 | #include "lomox_global.h" 17 | 18 | #include "lxoption.h" 19 | #include "lxcoreapplication.h" 20 | #include "lxcoreprivate.h" 21 | #include 22 | 23 | 24 | class LOMOX_EXPORT LxMainWindow : public QWebView 25 | { 26 | Q_OBJECT 27 | public: 28 | explicit LxMainWindow(QWidget* prarent = 0); 29 | 30 | virtual ~LxMainWindow(); 31 | 32 | public: 33 | void triggerPageAction(QWebPage::WebAction action, bool checked /*= false*/); 34 | void showMax(); 35 | public slots: 36 | void linkClickedAction( const QUrl& url ); 37 | 38 | protected: 39 | void showEvent(QShowEvent *e); 40 | bool event(QEvent* e); 41 | 42 | private: 43 | bool _initWidget(); 44 | 45 | private: 46 | QString m_strApiName; 47 | QPointer m_ptrPage; 48 | QPointer m_ptrPlugin; 49 | bool m_bLoadHrefInCurrent; 50 | 51 | }; 52 | 53 | 54 | #endif 55 | -------------------------------------------------------------------------------- /lomox/lxmqapp.cpp: -------------------------------------------------------------------------------- 1 | #include "lxmqapp.h" 2 | 3 | #include 4 | #include 5 | #include 6 | #include 7 | #include 8 | 9 | #include "ZmqSocket.h" 10 | #include "ZmqMessage.h" 11 | 12 | LxMQApp::LxMQApp() 13 | { 14 | QTimer::singleShot(0, this, SLOT(start())); 15 | } 16 | 17 | void LxMQApp::start() 18 | { 19 | QStringList args = QCoreApplication::arguments(); 20 | if(args.size() < 3) 21 | { 22 | qWarning() << "Usage: " << args.front() << " client|server "; 23 | QCoreApplication::exit(); 24 | return; 25 | } 26 | 27 | m_byteKey = args.at(2).toLocal8Bit(); 28 | 29 | QTimer *ndyt = new QTimer(this); 30 | connect(ndyt, SIGNAL(timeout()), this, SLOT(ndy())); 31 | ndyt->setInterval(5000); 32 | ndyt->start(); 33 | 34 | if(args.at(1) == "client") 35 | { 36 | m_pSocket = new ZmqSocket(ZMQ_SUB, this); 37 | connect(m_pSocket, SIGNAL(readyRead()), this, SLOT(heard())); 38 | m_pSocket->subscribe(m_byteKey); 39 | m_pSocket->connectTo("tcp://127.0.0.1:3782"); 40 | } 41 | 42 | if(args.at(1) == "server") 43 | { 44 | m_pSocket = new ZmqSocket(ZMQ_PUB, this); 45 | m_pSocket->bind("tcp://127.0.0.1:3782"); 46 | QTimer *t = new QTimer(this); 47 | connect(t, SIGNAL(timeout()), this, SLOT(squawk())); 48 | t->setInterval(1000); 49 | t->start(); 50 | } 51 | } 52 | 53 | void LxMQApp::squawk() 54 | { 55 | QString s = QDateTime::currentDateTime().toString(); 56 | qDebug() << "Squawking " << s; 57 | m_pSocket->send(m_byteKey + s.toLocal8Bit()); 58 | } 59 | 60 | void LxMQApp::heard() 61 | { 62 | QList r = m_pSocket->recv(); 63 | for(QList::const_iterator i=r.constBegin(); i!=r.constEnd(); ++i) 64 | { 65 | qDebug() << "Received " << *i; 66 | } 67 | } 68 | 69 | void LxMQApp::ndy() 70 | { 71 | qDebug() << "Not dead yet"; 72 | } 73 | -------------------------------------------------------------------------------- /lomox/lxmqapp.h: -------------------------------------------------------------------------------- 1 | #ifndef APP_H 2 | #define APP_H 3 | 4 | #include 5 | 6 | class ZmqSocket; 7 | 8 | class LxMQApp : public QObject 9 | { 10 | Q_OBJECT 11 | public: 12 | LxMQApp(); 13 | 14 | protected slots: 15 | void start(); 16 | void squawk(); 17 | void heard(); 18 | void ndy(); 19 | 20 | private: 21 | ZmqSocket *m_pSocket; 22 | QByteArray m_byteKey; 23 | }; 24 | 25 | #endif // APP_H 26 | -------------------------------------------------------------------------------- /lomox/lxnetworkcookie.cpp: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * 版权所有(C) 3 | * 4 | * 文件名称 : networkcookie.cpp 5 | * 作 者 : 蔡东赟 (mailto:caidongyun19@qq.com) 6 | * 创建日期 : 2011-6-30 7 | * 功能描述 : 在程序结束的时候保存cookie在本地 8 | * 备 注 : 9 | ********************************************************************************/ 10 | #include "lomox_global.h" 11 | #include "lxnetworkcookie.h" 12 | 13 | LxNetWorkCookies::LxNetWorkCookies (QString path, QObject *parent) : QNetworkCookieJar(parent) 14 | { 15 | file=path; 16 | 17 | QFile cookieFile(this->file); 18 | if (cookieFile.exists() && cookieFile.open(QIODevice::ReadOnly) ) 19 | { 20 | QList list; 21 | QByteArray line; 22 | while(!(line = cookieFile.readLine()).isNull()) 23 | { 24 | list.append(QNetworkCookie::parseCookies(line )); 25 | } 26 | setAllCookies(list); 27 | cookieFile.close(); 28 | } 29 | else 30 | { 31 | 32 | } 33 | 34 | } 35 | 36 | LxNetWorkCookies::~LxNetWorkCookies () 37 | { 38 | // 析构时不需要读取Cookie再重新保存,先屏蔽析构时保存Cookie 39 | // SaveCookie(); 40 | } 41 | 42 | QList LxNetWorkCookies::cookiesForUrl ( const QUrl & url ) const 43 | { 44 | return QNetworkCookieJar::cookiesForUrl(url); 45 | } 46 | 47 | bool LxNetWorkCookies::setCookiesFromUrl ( const QList & cookieList, const QUrl & url ) 48 | { 49 | bool bOk = QNetworkCookieJar::setCookiesFromUrl(cookieList, url); 50 | QString strTest = url.toString(); 51 | 52 | SaveCookie(); 53 | return bOk;//只返回设置成功与否 保存失败不做处理 54 | } 55 | 56 | bool LxNetWorkCookies::SaveCookie() 57 | { 58 | QList cookieList; 59 | cookieList = allCookies(); 60 | 61 | QFile file(this->file); 62 | 63 | if (!file.open((QIODevice::ReadWrite | QIODevice::Text))) 64 | { 65 | qWarning() << "Impossible d'ouvrir "<< this->file << " pour y stocker les cookies !"; 66 | return false; 67 | } 68 | std::vector vecString; 69 | QTextStream readFile(&file); 70 | while (!readFile.atEnd()) 71 | { 72 | vecString.push_back(QString::fromUtf8(readFile.readLine().toUtf8())); 73 | } 74 | file.close(); 75 | 76 | for (int i = 0; i < cookieList.size(); i++) 77 | { 78 | bool bFind = false; 79 | QString strLine = cookieList.at(i).toRawForm(QNetworkCookie::Full); 80 | QString strLineHeader = strLine.left(strLine.indexOf(QString("="))); 81 | for (size_t j = 0; j < vecString.size(); j++) 82 | { 83 | QString strElement = vecString.at(j); 84 | QString strElementHeader = strElement.left(strElement.indexOf(QString("="))); 85 | if (strLineHeader == strElementHeader) 86 | { 87 | bFind = true; 88 | vecString[j] = strLine; 89 | break; 90 | } 91 | } 92 | if (!bFind) 93 | vecString.push_back(strLine); 94 | } 95 | 96 | 97 | if(!file.open(QIODevice::WriteOnly | QIODevice::Text)) 98 | { 99 | qWarning() << "Impossible d'ouvrir "<< this->file << " pour y stocker les cookies !"; 100 | return false; 101 | } 102 | 103 | QTextStream out(&file); 104 | 105 | for(size_t i = 0 ; i < vecString.size() ; i++) 106 | { 107 | QString line = vecString.at(i); 108 | out << line.toUtf8() << "\n"; 109 | } 110 | 111 | file.close(); 112 | return true; 113 | } -------------------------------------------------------------------------------- /lomox/lxnetworkcookie.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * 版权所有(C) 3 | * 4 | * 文件名称 : networkcookie.h 5 | * 作 者 : 蔡东赟 (mailto:caidongyun19@qq.com) 6 | * 创建日期 : 2011-6-30 7 | * 功能描述 : 8 | * 备 注 : 9 | ********************************************************************************/ 10 | #ifndef __NETWORKCOOKIE_H__ 11 | #define __NETWORKCOOKIE_H__ 12 | #include 13 | #include 14 | class LxNetWorkCookies : public QNetworkCookieJar 15 | { 16 | Q_OBJECT 17 | public: 18 | LxNetWorkCookies (QString path, QObject *parent = 0); 19 | ~LxNetWorkCookies (); 20 | QList cookiesForUrl ( const QUrl & url ) const;//返回指定url的cookie 21 | bool setCookiesFromUrl ( const QList & cookieList, const QUrl & url );// 写cookie的时候会调用到 22 | 23 | bool SaveCookie();//保存到自己指定的地方,未加密 24 | 25 | private: 26 | QString file; 27 | }; 28 | 29 | #endif // end of __NETWORKCOOKIE_H__ 30 | -------------------------------------------------------------------------------- /lomox/lxoperate.cpp: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * 版权所有(C) 2011-2011 LomoX. caidongyun All Rights Reserved. 3 | * 4 | * 文件名称 : operate.cpp 5 | * 作 者 : 蔡东赟 (mailto:caidongyun19@qq.com) 6 | * 创建日期 : 2011/12/14 7 | * 功能描述 : 8 | * 备 注 : 9 | ********************************************************************************/ 10 | #include "lomox_global.h" 11 | #include "lxoperate.h" 12 | 13 | LxOperate::LxOperate( QObject *parent /*= NULL*/, QWebView* pWebView /*= NULL*/, QString strApiName /*= QString("")*/ ) 14 | :QObject(parent) 15 | { 16 | m_strApiName = strApiName; 17 | if (pWebView) 18 | { 19 | m_ptrWebView = pWebView; 20 | m_ptrWebPage = pWebView->page(); 21 | QWebFrame* pWebFrame = m_ptrWebPage->mainFrame(); 22 | if (pWebFrame) 23 | connect(pWebFrame, SIGNAL(javaScriptWindowObjectCleared()), this, SLOT(setupJsAPIObject())); 24 | } 25 | } 26 | 27 | LxOperate::~LxOperate() 28 | { 29 | } 30 | 31 | bool LxOperate::setupJsAPIObject() 32 | { 33 | Q_CHECK_PTR(m_ptrWebPage); 34 | return LX_UTILITYTOOL::setupApiObject(m_ptrWebPage, m_strApiName, this); 35 | } 36 | -------------------------------------------------------------------------------- /lomox/lxoperate.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * 版权所有(C) 2011-2011 LomoX. caidongyun All Rights Reserved. 3 | * 4 | * 文件名称 : operate.h 5 | * 作 者 : 蔡东赟 (mailto:caidongyun19@qq.com) 6 | * 创建日期 : 2011/12/14 7 | * 功能描述 : 8 | * 备 注 : 9 | ********************************************************************************/ 10 | #ifndef __OPERATE_H__ 11 | #define __OPERATE_H__ 12 | 13 | #include "lomox_global.h" 14 | 15 | #include 16 | 17 | class LOMOX_EXPORT LxOperate : public QObject 18 | { 19 | Q_OBJECT 20 | public: 21 | LxOperate(QObject *parent = 0, QWebView* pWebView = 0, QString strApiName = ""); 22 | ~LxOperate(); 23 | 24 | public slots: 25 | bool setupJsAPIObject();//封闭js api的名称 强制在内部实现 26 | 27 | protected: 28 | QPointer m_ptrWebView; 29 | QPointer m_ptrWebPage; 30 | QString m_strApiName; 31 | }; 32 | 33 | #endif // end of __OPERATE_H__ 34 | -------------------------------------------------------------------------------- /lomox/lxoption.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * 版权所有(C) 2010-2013 lomox caidongyun. All Rights Reserved. 3 | * 4 | * 文件名称 : lxoption.h 5 | * 作 者 : 蔡东赟 (mailto:caidongyun19@qq.com) 6 | * 创建日期 : 2013/3/9 7 | * 功能描述 : 8 | * 备 注 : 9 | * 修 改 :詹晨辉(KeoJam)(mailto:zch.fly@gmail.com) 10 | ********************************************************************************/ 11 | #ifndef __LXOPTION_H__ 12 | #define __LXOPTION_H__ 13 | 14 | #include 15 | 16 | class LxOption : public QObject 17 | { 18 | Q_OBJECT 19 | public: 20 | LxOption(QObject* parent); 21 | virtual ~LxOption(); 22 | 23 | public slots: 24 | QString getStartResourceFileName(); 25 | QString getStartUrl(); 26 | QString getAppPath(); 27 | QObject* getCoreAppOption(); 28 | 29 | // int getMainWithFromCfg(); 30 | // int getMainHigthFromCfg(); 31 | QString getConfgPath(); 32 | 33 | QString getMainTitle(); 34 | 35 | bool getNeedShowMainNcFrame(); 36 | bool getNeedShowChildNcFrame(); 37 | 38 | bool getMainWindowStaysOnTopHint(); 39 | bool getChildWindowStaysOnTopHint(); 40 | 41 | bool getDialogsRelationShip(); 42 | 43 | bool getNeedSystemTray(); 44 | QString getSystemTrayIconName(); 45 | QString getCookieFilePath(); 46 | 47 | //href是否从本页加载刷新还是弹出新窗口 48 | bool getLoadHrefInCurrentMainDialog(); 49 | bool getLoadHrefInCurrentChildDialog(); 50 | 51 | bool getNeedShowLoadingGif(); 52 | int getLoadingGifWidth(); 53 | int getLoadingGifHeight(); 54 | 55 | private: 56 | bool getValueFromIni(QString strKey, bool &bValue); 57 | }; 58 | 59 | 60 | 61 | 62 | #endif // end of __LXOPTION_H__ 63 | -------------------------------------------------------------------------------- /lomox/lxpluginbase.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * 版权所有(C) 2010-2013 caidongyun. All Rights Reserved. 3 | * 4 | * 文件名称 : lxpluginbase.h 5 | * 作 者 : 蔡东赟 (mailto:caidongyun19@qq.com) 6 | * 创建日期 : 2013/4/23 7 | * 功能描述 : 8 | * 备 注 : 9 | ********************************************************************************/ 10 | #ifndef __LXPLUGINBASE_H__ 11 | #define __LXPLUGINBASE_H__ 12 | 13 | 14 | class LxPluginBase : public QObject 15 | { 16 | public: 17 | LxPluginBase(QObject* parent):QObject(parent){} 18 | virtual LxPluginBase(){} 19 | 20 | }; 21 | 22 | 23 | #endif // end of __LXPLUGINBASE_H__ 24 | -------------------------------------------------------------------------------- /lomox/lxsqldatabase.cpp: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * 版权所有(C) 2011-2012 caidongyun All Rights Reserved. 3 | * 4 | * 文件名称 : lxsqldatabase.cpp 5 | * 作 者 : 蔡东赟 (mailto:caidongyun19@qq.com) 6 | * 创建日期 : 2012/2/15 7 | * 功能描述 : 8 | * 备 注 : 9 | ********************************************************************************/ 10 | -------------------------------------------------------------------------------- /lomox/lxsqldatabase.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * 版权所有(C) 2011-2012 caidongyun All Rights Reserved. 3 | * 4 | * 文件名称 : lxsqldatabase.h 5 | * 作 者 : 蔡东赟 (mailto:caidongyun19@qq.com) 6 | * 创建日期 : 2012/2/15 7 | * 功能描述 : 8 | * 备 注 : 9 | ********************************************************************************/ 10 | #ifndef __LXSQLDATABASE_H__ 11 | #define __LXSQLDATABASE_H__ 12 | 13 | #endif // end of __LXSQLDATABASE_H__ 14 | -------------------------------------------------------------------------------- /lomox/lxsqlquery.cpp: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * 版权所有(C) 2011-2012 caidongyun All Rights Reserved. 3 | * 4 | * 文件名称 : lxsqlquery.cpp 5 | * 作 者 : 蔡东赟 (mailto:caidongyun19@qq.com) 6 | * 创建日期 : 2012/2/14 7 | * 功能描述 : 8 | * 备 注 : 9 | ********************************************************************************/ 10 | #include "lomox_global.h" 11 | #include 12 | #include 13 | #include 14 | #include "lxsqlquery.h" 15 | 16 | // 17 | // LxSqlQuery::LxSqlQuery( QObject* parent /*= 0*/, QSqlQuery sql ) 18 | // :QObject(parent) 19 | // { 20 | // m_pSqlquery = sql; 21 | // } 22 | 23 | LxSqlQuery::~LxSqlQuery() 24 | { 25 | 26 | } 27 | 28 | bool LxSqlQuery::exec( const QString& query ) 29 | { 30 | return m_sqlquery.exec(query); 31 | } 32 | 33 | QVariant LxSqlQuery::value( int i ) 34 | { 35 | return m_sqlquery.value(i); 36 | } 37 | 38 | bool LxSqlQuery::next() 39 | { 40 | return m_sqlquery.next(); 41 | } 42 | 43 | bool LxSqlQuery::previous() 44 | { 45 | return m_sqlquery.previous(); 46 | } 47 | 48 | LxSqlQuery::LxSqlQuery() 49 | { 50 | 51 | } 52 | -------------------------------------------------------------------------------- /lomox/lxsqlquery.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * 版权所有(C) 2011-2012 caidongyun All Rights Reserved. 3 | * 4 | * 文件名称 : lxsqlquery.h 5 | * 作 者 : 蔡东赟 (mailto:caidongyun19@qq.com) 6 | * 创建日期 : 2012/2/14 7 | * 功能描述 : 8 | * 备 注 : 9 | ********************************************************************************/ 10 | #ifndef __LXSQLQUERY_H__ 11 | #define __LXSQLQUERY_H__ 12 | 13 | class QSqlQuery; 14 | 15 | class LOMOX_EXPORT LxSqlQuery : public QObject 16 | { 17 | public: 18 | LxSqlQuery(); 19 | /* explicit LxSqlQuery(QObject* parent = 0, QSqlQuery& sql);*/ 20 | virtual ~LxSqlQuery(); 21 | 22 | public slots: 23 | bool exec(const QString& query); 24 | QVariant value(int i); 25 | bool next(); 26 | bool previous(); 27 | 28 | private: 29 | QSqlQuery m_sqlquery; 30 | }; 31 | #endif // end of __LXSQLQUERY_H__ 32 | -------------------------------------------------------------------------------- /lomox/lxsystemtray.cpp: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * 版权所有(C) 2011-2015www.LomoX.hk All Rights Follow Lomox licence. 3 | * 4 | * 文件名称 : lxsystemtray.cpp 5 | * 作 者 : 詹晨辉 (mailto:zch.fly@gmail.com) 6 | * 创建日期 : 2015/04/20 7 | * 功能描述 : 8 | * 备 注 : 9 | ********************************************************************************/ 10 | #include "lxsystemtray.h" 11 | 12 | LxSystemTray::LxSystemTray(QIcon icon, QString toolTipName, LxDialogBase* pLxDialogBase) 13 | { 14 | m_icon = icon; 15 | m_ptrLxDialogBase = pLxDialogBase; 16 | m_toolTipName = toolTipName; 17 | this->setParent((QWidget*)(pLxDialogBase->getCoreDialog())); 18 | __initSystemTray(); 19 | } 20 | 21 | LxSystemTray::~LxSystemTray() 22 | { 23 | 24 | } 25 | bool LxSystemTray::__initSystemTray() 26 | { 27 | setObjectName("LxSystemTray"); 28 | m_ptrTrayIcon = new QSystemTrayIcon(this); 29 | m_ptrTrayIcon->setIcon(m_icon); 30 | m_ptrTrayIcon->setToolTip(m_toolTipName); 31 | m_ptrTrayMenu = new QMenu((QWidget*)m_ptrLxDialogBase->getCoreDialog()); 32 | 33 | QAction *action = new QAction(QString::fromLocal8Bit("隐藏"), this); 34 | action->setIcon(QIcon(QCoreApplication::applicationDirPath()+"/Resources/hide.ico")); 35 | m_ptrTrayMenu->addAction(action); 36 | connect(action, SIGNAL(triggered()), m_ptrLxDialogBase, SLOT(showMinimized())); 37 | m_trayActions.insert(QString::fromLocal8Bit("隐藏"), action); 38 | 39 | action = new QAction(QString::fromLocal8Bit("最小化"), this); 40 | action->setIcon(QIcon(QCoreApplication::applicationDirPath() + "/Resources/mini.ico")); 41 | m_ptrTrayMenu->addAction(action); 42 | connect(action, SIGNAL(triggered()), m_ptrLxDialogBase, SLOT(showMinimized())); 43 | m_trayActions.insert(QString::fromLocal8Bit("最小化"), action); 44 | 45 | action = new QAction(QString::fromLocal8Bit("最大化"), this); 46 | action->setIcon(QIcon(QCoreApplication::applicationDirPath() + "/Resources/max.ico")); 47 | m_ptrTrayMenu->addAction(action); 48 | connect(action, SIGNAL(triggered()), m_ptrLxDialogBase, SLOT(showMaximized())); 49 | m_trayActions.insert(QString::fromLocal8Bit("最大化"), action); 50 | 51 | action = new QAction(QString::fromLocal8Bit("还原"), this); 52 | action->setIcon(QIcon(QCoreApplication::applicationDirPath() + "/Resources/normal.ico")); 53 | m_ptrTrayMenu->addAction(action); 54 | connect(action, SIGNAL(triggered()), m_ptrLxDialogBase, SLOT(showNormal())); 55 | m_trayActions.insert(QString::fromLocal8Bit("还原"), action); 56 | 57 | m_ptrTrayMenu->addSeparator(); 58 | action = new QAction(QString::fromLocal8Bit("退出"), this); 59 | action->setIcon(QIcon(QCoreApplication::applicationDirPath() + "/Resources/close.ico")); 60 | m_ptrTrayMenu->addAction(action); 61 | connect(action, SIGNAL(triggered()), m_ptrLxDialogBase, SLOT(close())); 62 | m_trayActions.insert(QString::fromLocal8Bit("退出"), action); 63 | 64 | m_ptrTrayIcon->setContextMenu(m_ptrTrayMenu); 65 | 66 | //图标点击事件 67 | connect(m_ptrTrayIcon, SIGNAL(activated(QSystemTrayIcon::ActivationReason)), this, SLOT(iconActivated(QSystemTrayIcon::ActivationReason))); 68 | 69 | m_ptrTrayIcon->show(); 70 | return true; 71 | } 72 | 73 | void LxSystemTray::iconActivated(QSystemTrayIcon::ActivationReason reason) 74 | { 75 | //触发后台图标执行相应事件 76 | switch (reason) 77 | { 78 | case QSystemTrayIcon::Trigger: 79 | m_ptrLxDialogBase->showNormal(); 80 | break; 81 | case QSystemTrayIcon::DoubleClick: 82 | m_ptrLxDialogBase->showNormal(); 83 | break; 84 | // case QSystemTrayIcon::MiddleClick: 85 | // showMessage("鼠标中键!"); 86 | // break; 87 | default: 88 | break; 89 | } 90 | } -------------------------------------------------------------------------------- /lomox/lxsystemtray.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * 版权所有(C) 2011-2015www.LomoX.hk All Rights Follow Lomox licence. 3 | * 4 | * 文件名称 : lxsystemtray.h 5 | * 作 者 : 詹晨辉 (mailto:zch.fly@gmail.com) 6 | * 创建日期 : 2015/04/20 7 | * 功能描述 : 8 | * 备 注 : 9 | ********************************************************************************/ 10 | #ifndef __LXSYSTEMTRAY_H__ 11 | #define __LXSYSTEMTRAY_H__ 12 | 13 | #include "lomox_global.h" 14 | #include "lxdialogoperate.h" 15 | #include 16 | 17 | class LxSystemTray : public QObject 18 | { 19 | Q_OBJECT 20 | 21 | public: 22 | LxSystemTray(QIcon icon, QString toolTipName = "", LxDialogBase* pLxDialogBase = NULL); 23 | ~LxSystemTray(); 24 | 25 | private: 26 | QPointer m_ptrTrayIcon; 27 | QPointer m_ptrLxDialogBase; 28 | QIcon m_icon; 29 | QString m_toolTipName; 30 | QPointer m_ptrTrayMenu; 31 | QMap m_trayActions; 32 | bool __initSystemTray(); 33 | public slots: 34 | void iconActivated(QSystemTrayIcon::ActivationReason reason); 35 | 36 | }; 37 | 38 | #endif // LXSYSTEMTRAYICON_H 39 | -------------------------------------------------------------------------------- /lomox/lxwebkitplugininterface.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * 版权所有(C) 2011-2011 LomoX. zch.fly All Rights Reserved. 3 | * 4 | * 文件名称 : lxWebKitPluginInteface.h 5 | * 作 者 : 詹晨辉 (mailto:zch.fly@gmail.com) 6 | * 创建日期 : 2012/09/17 7 | * 功能描述 : 8 | * 备 注 : 9 | ********************************************************************************/ 10 | #ifndef __LXWEBKITPLUGININTEFACE_H__ 11 | #define __LXWEBKITPLUGININTEFACE_H__ 12 | 13 | #include 14 | class LxWebKitPluginInterface 15 | { 16 | public: 17 | virtual ~LxWebKitPluginInterface(){}; 18 | virtual QList plugins()const =0; 19 | virtual QObject *create(const QString &mimeType, 20 | const QUrl &url, 21 | const QStringList &argumentNames, 22 | const QStringList &argumentValues) const =0; 23 | }; 24 | 25 | Q_DECLARE_INTERFACE(LxWebKitPluginInterface, "LomoXTeam/1.0") 26 | 27 | #endif // __LXWEBKITPLUGININTEFACE_H__ -------------------------------------------------------------------------------- /lomox/lxwebpage.cpp: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * 版权所有(C) 2011-2012 caidongyun All Rights Reserved. 3 | * 4 | * 文件名称 : lxwebpage.cpp 5 | * 作 者 : 蔡东赟 (mailto:caidongyun19@qq.com) 6 | * 创建日期 : 2012/2/13 7 | * 功能描述 : 8 | * 备 注 : 9 | ********************************************************************************/ 10 | #include "lomox_global.h" 11 | #include "lxwebpage.h" 12 | 13 | 14 | LxWebPage::LxWebPage(QObject *parent /*= 0*/) 15 | :QWebPage(parent) 16 | { 17 | setForwardUnsupportedContent(true); 18 | connect(this, SIGNAL(featurePermissionRequested(QWebFrame*, QWebPage::Feature)), this, SLOT(permissionRequested(QWebFrame*, QWebPage::Feature))); 19 | connect(this, SIGNAL(unsupportedContent(QNetworkReply*)), this, SLOT(handleUnsupportedContent(QNetworkReply*))); 20 | } 21 | 22 | LxWebPage::~LxWebPage() 23 | { 24 | 25 | } 26 | 27 | void LxWebPage::permissionRequested(QWebFrame* frame, QWebPage::Feature feature) 28 | { 29 | setFeaturePermission(frame, feature, PermissionGrantedByUser); 30 | } 31 | 32 | void LxWebPage::handleUnsupportedContent(QNetworkReply *reply) 33 | { 34 | if (!reply) { 35 | return; 36 | } 37 | 38 | const QUrl url = reply->url(); 39 | 40 | switch (reply->error()) { 41 | case QNetworkReply::NoError:{ 42 | if (0 == reply->header(QNetworkRequest::ContentTypeHeader).toString().toLower().indexOf("text")) 43 | { 44 | qDebug() << "QNetworkReply::NoError -- openwindow" <webview) 46 | } 47 | qDebug() << "QNetworkReply::NoError -- downlaod" << url; 48 | QNetworkRequest request(url); 49 | emit downloadRequested(request); 50 | return; 51 | } 52 | case QNetworkReply::ProtocolUnknownError:{ 53 | if (url.scheme() == QLatin1String("file")) { 54 | qDebug() << "QNetworkReply::ProtocolUnknownError -- openwindow" << url; 55 | emit linkClicked(url); 56 | return; 57 | } 58 | if (url.scheme() == QLatin1String("ftp")) { 59 | qDebug() << "QNetworkReply::ProtocolUnknownError -- downlaod" << url; 60 | QNetworkRequest request(url); 61 | emit downloadRequested(request); 62 | return; 63 | } 64 | qDebug() << "WebPage::UnsupportedContent" << url << "ProtocolUnknowError"; 65 | //desktopServicesOpen(url); 66 | return; 67 | } 68 | default: 69 | break; 70 | } 71 | 72 | qDebug() << "WebPage::UnsupportedContent error" << url << reply->errorString(); 73 | } 74 | 75 | bool LxWebPage::acceptNavigationRequest(QWebFrame *frame, const QNetworkRequest&request, NavigationType type) 76 | { 77 | //networkAccessManager()->setProperty("User-Agent", "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)"); 78 | //QNetworkReply *reply = networkAccessManager()->get(request); 79 | if (type == QWebPage::NavigationTypeLinkClicked){//如果是用户点击 80 | QString strUrl = request.url().toString(); 81 | qDebug() << "LinkClicked:" << strUrl; 82 | // if (frame != this->currentFrame() && (0 == reply->header(QNetworkRequest::ContentTypeHeader).toString().toLower().indexOf("text") 83 | // || reply->header(QNetworkRequest::ContentTypeHeader).toString() == "")) 84 | if (frame != this->currentFrame()) 85 | { 86 | qDebug() << "open new window:" << strUrl; 87 | emit linkClicked(strUrl); 88 | return false; 89 | } 90 | // if (0 == strUrl.indexOf(QString("file:///")) || 0 == reply->header(QNetworkRequest::ContentTypeHeader).toString().toLower().indexOf("text")) 91 | // { 92 | // emit linkClicked(strUrl);//发送打开新连接信号(发给webpage==>webview) 93 | // return false; 94 | // } 95 | } 96 | return QWebPage::acceptNavigationRequest(frame, request, type); 97 | } -------------------------------------------------------------------------------- /lomox/lxwebpage.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * 版权所有(C) 2011-2012 caidongyun All Rights Reserved. 3 | * 4 | * 文件名称 : lxWebPage.h 5 | * 作 者 : 蔡东赟 (mailto:caidongyun19@qq.com) 6 | * 创建日期 : 2012/2/13 7 | * 功能描述 : 8 | * 备 注 : 9 | ********************************************************************************/ 10 | #ifndef __LXWEBPAGE_H__ 11 | #define __LXWEBPAGE_H__ 12 | #include "lomox_global.h" 13 | 14 | class LxWebPage : public QWebPage 15 | { 16 | Q_OBJECT 17 | public: 18 | explicit LxWebPage(QObject *parent = 0); 19 | virtual ~LxWebPage(); 20 | protected: 21 | virtual bool acceptNavigationRequest(QWebFrame *frame, const QNetworkRequest &request, NavigationType type); 22 | private slots: 23 | void permissionRequested(QWebFrame* frame, QWebPage::Feature feature); 24 | void handleUnsupportedContent(QNetworkReply* reply); 25 | }; 26 | #endif // end of __LXWEBPAGE_H__ 27 | -------------------------------------------------------------------------------- /lomox/lxwebpluginfactory.cpp: -------------------------------------------------------------------------------- 1 |  2 | #include "lxwebpluginfactory.h" 3 | #include "lxwebkitplugininterface.h" 4 | #include "lxdir.h" 5 | 6 | LxWebPluginFactory::LxWebPluginFactory(QObject *parent):QWebPluginFactory() 7 | { 8 | qDebug()<<"debug : WebkitPluginFactory"; 9 | } 10 | 11 | LxWebPluginFactory::~LxWebPluginFactory() 12 | { 13 | } 14 | 15 | 16 | QList LxWebPluginFactory::plugins() const 17 | { 18 | QStringList strList = QCoreApplication::libraryPaths(); 19 | 20 | static bool isFirst = true; 21 | static QList plugins; 22 | if(!isFirst) 23 | return plugins; 24 | 25 | isFirst = false; 26 | plugins.clear(); 27 | 28 | for (int i = 0; i < strList.size(); ++i) 29 | getPluginsFromPath(strList.at(i), plugins); 30 | 31 | if(plugins.isEmpty()) 32 | qDebug()<<"no plugins is loaded!"; 33 | 34 | return plugins; 35 | } 36 | // void LxWebPluginFactory::refreshPlugins() 37 | // { 38 | // Reload(); 39 | // } 40 | 41 | QObject * LxWebPluginFactory::create(const QString &mimeType, 42 | const QUrl &url, 43 | const QStringList &argumentNames, 44 | const QStringList &argumentValues) const 45 | { 46 | for(int i=0; icreate( mimeType, url, argumentNames, argumentValues); 54 | } 55 | } 56 | } 57 | return NULL; //如果没有,直接返回NULL,webkit会进行处理的 58 | } 59 | 60 | void LxWebPluginFactory::getPluginsFromPath( QString strPath, QList &plugins ) const 61 | { 62 | QDir dir(strPath); 63 | QStringList filters; 64 | QString abspath = dir.absolutePath(); 65 | qDebug()< (obj); 87 | if(nullptr == interface) 88 | { 89 | qDebug()<<"ignore error when loading plugin" ; 90 | continue; 91 | } 92 | qDebug()<<"load plugins: "<plugins().at(0).name; 93 | plugins.append(interface->plugins()); 94 | m_pluginslist.append(interface->plugins()); 95 | m_interfaces.append(interface); 96 | } 97 | } 98 | 99 | -------------------------------------------------------------------------------- /lomox/lxwebpluginfactory.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * 版权所有(C) 2011-2011 LomoX. zch.fly All Rights Reserved. 3 | * 4 | * 文件名称 : lxwebpluginfactory.h 5 | * 作 者 : 詹晨辉 (mailto:zch.fly@gmail.com) 6 | * 创建日期 : 2012/09/17 7 | * 功能描述 : 8 | * 备 注 : 9 | ********************************************************************************/ 10 | #ifndef __LXWEBPLUGINFACTORY_H__ 11 | #define __LXWEBPLUGINFACTORY_H__ 12 | #include 13 | 14 | class LxWebKitPluginInterface; 15 | 16 | class LxWebPluginFactory: public QWebPluginFactory 17 | { 18 | Q_OBJECT 19 | public: 20 | LxWebPluginFactory(QObject *parent = 0); 21 | ~LxWebPluginFactory(); 22 | 23 | QList plugins()const; 24 | 25 | void getPluginsFromPath( QString strPath, QList &plugins ) const; 26 | //void refreshPlugins(); 27 | 28 | QObject *create(const QString &mimeType, 29 | const QUrl &url, 30 | const QStringList &argumentNames, 31 | const QStringList &argumentValues) const ; 32 | 33 | bool extension(QWebPluginFactory::Extension extension, 34 | const QWebPluginFactory::ExtensionOption *option = 0, 35 | QWebPluginFactory::ExtensionReturn *output = 0){return true;}; 36 | 37 | bool supportsExtension(QWebPluginFactory::Extension extension) const{return true;}; 38 | private: 39 | // 用于将载入的插件记录下来 40 | mutable QList< QList > m_pluginslist; 41 | mutable QList m_interfaces; 42 | }; 43 | 44 | 45 | 46 | #endif //__LXWEBPLUGINFACTORY_H__ 47 | -------------------------------------------------------------------------------- /lomox/lxwindows.cpp: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * 版权所有(C) 2011-2012 LomoX. All Rights Follow Lomox1 licence. 3 | * 4 | * 文件名称 : lxwindows.cpp 5 | * 作 者 : 蔡东赟 (mailto:caidongyun19@qq.com) 6 | * 创建日期 : 2012/2/6 7 | * 功能描述 : 8 | * 备 注 : 9 | ********************************************************************************/ 10 | #include "lomox_global.h" 11 | #include "lxwindows.h" 12 | 13 | 14 | LxWindows::LxWindows( LxCoreApplication* lxApp, ) 15 | { 16 | 17 | } 18 | 19 | LxWindows::~LxWindows() 20 | { 21 | 22 | } 23 | 24 | QObject* LxWindows::item( QVariant varIndex ) 25 | { 26 | 27 | } 28 | 29 | QVariant LxWindows::count() 30 | { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /lomox/lxwindows.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * 版权所有(C) 2011-2012 LomoX. All Rights Follow Lomox1 licence. 3 | * 4 | * 文件名称 : lxwindows.h 5 | * 作 者 : 蔡东赟 (mailto:caidongyun19@qq.com) 6 | * 创建日期 : 2012/2/6 7 | * 功能描述 : 8 | * 备 注 : 9 | ********************************************************************************/ 10 | #ifndef __LXWINDOWS_H__ 11 | #define __LXWINDOWS_H__ 12 | 13 | class LOMOX_EXPORT LxWindows : public QObject 14 | { 15 | Q_OBJECT 16 | public: 17 | LxWindows(LxCoreApplication* lxApp, ); 18 | virtual ~LxWindows(); 19 | 20 | public slots: 21 | virtual QObject* item(QVariant varIndex); 22 | virtual QVariant count(); 23 | 24 | private: 25 | QPointer m_ptrLxApp; 26 | }; 27 | #endif // end of __LXWINDOWS_H__ 28 | -------------------------------------------------------------------------------- /lomox/resource.aps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/lomox/resource.aps -------------------------------------------------------------------------------- /lomox/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Visual C++ generated include file. 3 | // Used by resource.rc 4 | 5 | // Next default values for new objects 6 | // 7 | #ifdef APSTUDIO_INVOKED 8 | #ifndef APSTUDIO_READONLY_SYMBOLS 9 | #define _APS_NEXT_RESOURCE_VALUE 101 10 | #define _APS_NEXT_COMMAND_VALUE 40001 11 | #define _APS_NEXT_CONTROL_VALUE 1001 12 | #define _APS_NEXT_SYMED_VALUE 101 13 | #endif 14 | #endif 15 | -------------------------------------------------------------------------------- /lomox/resource.rc: -------------------------------------------------------------------------------- 1 | // Microsoft Visual C++ generated resource script. 2 | // 3 | #include "resource.h" 4 | 5 | #define APSTUDIO_READONLY_SYMBOLS 6 | ///////////////////////////////////////////////////////////////////////////// 7 | // 8 | // Generated from the TEXTINCLUDE 2 resource. 9 | // 10 | #include "afxres.h" 11 | 12 | ///////////////////////////////////////////////////////////////////////////// 13 | #undef APSTUDIO_READONLY_SYMBOLS 14 | 15 | ///////////////////////////////////////////////////////////////////////////// 16 | // Chinese (P.R.C.) resources 17 | 18 | #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_CHS) 19 | #ifdef _WIN32 20 | LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED 21 | #pragma code_page(936) 22 | #endif //_WIN32 23 | 24 | #ifdef APSTUDIO_INVOKED 25 | ///////////////////////////////////////////////////////////////////////////// 26 | // 27 | // TEXTINCLUDE 28 | // 29 | 30 | 1 TEXTINCLUDE 31 | BEGIN 32 | "resource.h\0" 33 | END 34 | 35 | 2 TEXTINCLUDE 36 | BEGIN 37 | "#include ""afxres.h""\r\n" 38 | "\0" 39 | END 40 | 41 | 3 TEXTINCLUDE 42 | BEGIN 43 | "\r\n" 44 | "\0" 45 | END 46 | 47 | #endif // APSTUDIO_INVOKED 48 | 49 | 50 | ///////////////////////////////////////////////////////////////////////////// 51 | // 52 | // Version 53 | // 54 | 55 | VS_VERSION_INFO VERSIONINFO 56 | FILEVERSION 0,7,0,4 57 | PRODUCTVERSION 0,7,0,4 58 | FILEFLAGSMASK 0x17L 59 | #ifdef _DEBUG 60 | FILEFLAGS 0x1L 61 | #else 62 | FILEFLAGS 0x0L 63 | #endif 64 | FILEOS 0x4L 65 | FILETYPE 0x2L 66 | FILESUBTYPE 0x0L 67 | BEGIN 68 | BLOCK "StringFileInfo" 69 | BEGIN 70 | BLOCK "080404b0" 71 | BEGIN 72 | VALUE "CompanyName", "www.lomox.org" 73 | VALUE "FileDescription", "lomox Dynamic Link Library" 74 | VALUE "FileVersion", "0, 7, 0, 4" 75 | VALUE "InternalName", "lomox" 76 | VALUE "LegalCopyright", "Copyright (C) 2012 www.lomox.org" 77 | VALUE "OriginalFilename", "lomox.dll" 78 | VALUE "ProductName", "lomox Dynamic Link Library" 79 | VALUE "ProductVersion", "0, 7, 0, 4" 80 | END 81 | END 82 | BLOCK "VarFileInfo" 83 | BEGIN 84 | VALUE "Translation", 0x804, 1200 85 | END 86 | END 87 | 88 | #endif // Chinese (P.R.C.) resources 89 | ///////////////////////////////////////////////////////////////////////////// 90 | 91 | 92 | 93 | #ifndef APSTUDIO_INVOKED 94 | ///////////////////////////////////////////////////////////////////////////// 95 | // 96 | // Generated from the TEXTINCLUDE 3 resource. 97 | // 98 | 99 | 100 | ///////////////////////////////////////////////////////////////////////////// 101 | #endif // not APSTUDIO_INVOKED 102 | 103 | -------------------------------------------------------------------------------- /lomox/stdafx.cpp: -------------------------------------------------------------------------------- 1 | #include "stdafx.h" -------------------------------------------------------------------------------- /lomox/stdafx.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #ifdef Q_OS_WIN32 4 | #include 5 | #include 6 | #include 7 | #endif 8 | #include 9 | #include 10 | using namespace std; 11 | 12 | #include 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /lomox/tool/check.h: -------------------------------------------------------------------------------- 1 |  2 | /* 3 | MARK:2011-6-13 蔡东赟 迁移改造 4 | */ 5 | // -------------------------------------------------------------------------- // 6 | 7 | #pragma once 8 | 9 | 10 | //check error 11 | #include 12 | #ifndef ASSERT 13 | #define ASSERT(e) assert(e) 14 | #endif 15 | 16 | // -------------------------------------------------------------------------- // 17 | 18 | // 定义统一出口名称 19 | #define LX_EXIT LX_EXIT_HERE 20 | 21 | // -------------------------------------------------------------------------- // 22 | // LX_CHECK 23 | // -------------------------------------------------------------------------- // 24 | 25 | // 当条件为假时跳转: 26 | #define LX_CHECK_BOOLEX(result, expr) \ 27 | if (!(result)) \ 28 | { \ 29 | expr; \ 30 | goto LX_EXIT; \ 31 | } 32 | 33 | #define LX_CHECK_BOOL(result) LX_CHECK_BOOLEX(result, 0) 34 | #define LX_CHECK(hr) LX_CHECK_BOOL(SUCCEEDED(hr)) 35 | 36 | 37 | #define LX_CHECK_BOOLEX1(result, expr) \ 38 | if (!(result)) \ 39 | { \ 40 | expr; \ 41 | goto LX_EXIT; \ 42 | } 43 | 44 | #define LX_CHECK_BOOL1(result) LX_CHECK_BOOLEX1(result, 0) 45 | #define LX_CHECK1(hr) LX_CHECK_BOOL1(SUCCEEDED(hr)) 46 | 47 | #define RETURN return 48 | 49 | // -------------------------------------------------------------------------- // 50 | // [obsolete] 51 | // LX_CHECK宏使用在菜单状态查询不合适,如果没有成功得到一个合法的返回值 52 | #define LX_VALID_HR(hr) {if(FAILED(hr)) return hr;} 53 | 54 | // 检查输入指针,如果为空返回 E_INVALIDARG 55 | #define LX_VERIFY_IN_POINTER(p) if (p == NULL) { /*ASSERT(false);*/ return false; } 56 | #define LX_VERIFY_IN_2_POINTERS(p1, p2) if (p1 == NULL || p2 == NULL) {/* ASSERT(false);*/ return false; } 57 | #define LX_VERIFY_IN_3_POINTERS(p1, p2, p3) if (p1 == NULL || p2 == NULL || p3 == NULL) { /*ASSERT(false); */return false; } 58 | #define LX_VERIFY_IN_4_POINTERS(p1, p2, p3, p4) if (p1 == NULL || p2 == NULL || p3 == NULL || p4 == NULL) { /*ASSERT(false);*/ return false; } 59 | 60 | 61 | #define VERIFY_IN_POINTER(p) if (p == NULL) { Q_ASSERT(false);return ; } 62 | #define VERIFY_IN_2_POINTERS(p1, p2) if (p1 == NULL || p2 == NULL) {Q_ASSERT(false); return ; } 63 | #define VERIFY_IN_3_POINTERS(p1, p2, p3) if (p1 == NULL || p2 == NULL || p3 == NULL) { Q_ASSERT(false);return ; } 64 | #define VERIFY_IN_4_POINTERS(p1, p2, p3, p4) if (p1 == NULL || p2 == NULL || p3 == NULL || p4 == NULL) { Q_ASSERT(false); return ; } 65 | 66 | #define G_OK QVariant(true) 67 | #define G_FAILE QVariant(false) 68 | #define HrToVarResult(x) (SUCCEEDED(x) ? G_OK : G_FAILE) 69 | -------------------------------------------------------------------------------- /lomox/tool/jsonhelper.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * 版权所有(C) 1988-2012 All Rights Reserved. 3 | * 4 | * 文件名称 : jsonhelper.h 5 | * 作 者 : 蔡东赟 (mailto:caidongyun19@qq.com) 6 | * 创建日期 : 2011-7-6 7 | * 功能描述 : 包含QVariantMap 表示一条json 8 | QVariantList 表示多条json 9 | 10 | KJsonHelper 拼接一个json串 11 | KJsArrayHelper 拼接一个数组 12 | * 备 注 : 13 | ********************************************************************************/ 14 | #ifndef __JSONHELPER_H__ 15 | #define __JSONHELPER_H__ 16 | 17 | class KJsonHelper 18 | { 19 | public: 20 | KJsonHelper(){}; 21 | ~KJsonHelper(){}; 22 | 23 | public: 24 | bool Add(QString strName, QVariant varValue); 25 | QVariant GetResultJsonVariant();//一个则返回一个var 26 | 27 | private: 28 | QVariantMap m_varMap; 29 | }; 30 | 31 | inline bool KJsonHelper::Add(QString strName, QVariant varValue) 32 | { 33 | if (strName.isEmpty() || varValue.isNull() || !varValue.isValid()) 34 | return false; 35 | m_varMap.insert(strName, varValue); 36 | return true;//暂时这样吧 37 | } 38 | 39 | inline QVariant KJsonHelper::GetResultJsonVariant() 40 | { 41 | return m_varMap; 42 | } 43 | 44 | class KJsArrayHelper 45 | { 46 | public: 47 | KJsArrayHelper(){}; 48 | ~KJsArrayHelper(){}; 49 | 50 | public: 51 | bool Add(QVariant varValue); 52 | QVariant GetResultJsonVariant();//超过两个返回数组,一个则返回一个即使第一个varmap的 variant内部自己判断 53 | 54 | private: 55 | QVariantList m_varList; 56 | }; 57 | 58 | inline bool KJsArrayHelper::Add(QVariant varValue) 59 | { 60 | if (varValue.isNull() || !varValue.isValid()) 61 | return false; 62 | m_varList.append(varValue); 63 | return true; 64 | } 65 | 66 | inline QVariant KJsArrayHelper::GetResultJsonVariant() 67 | { 68 | return QVariant(m_varList); 69 | } 70 | 71 | #endif // end of __JSONHELPER_H__ 72 | -------------------------------------------------------------------------------- /lomox/tool/jsonhelper.h.bak: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * 版权所有(C) 1988-2011 All Rights Reserved. 3 | * 4 | * 文件名称 : jsonhelper.h 5 | * 作 者 : 蔡东赟 (mailto:caidongyun19@qq.com) 6 | * 创建日期 : 2011-7-6 7 | * 功能描述 : 包含QVariantMap 表示一条json 8 | QVariantList 表示多条json 9 | 10 | KJsonHelper 拼接一个json串 11 | KJsArrayHelper 拼接一个数组 12 | * 备 注 : 13 | ********************************************************************************/ 14 | #ifndef __JSONHELPER_H__ 15 | #define __JSONHELPER_H__ 16 | 17 | class KJsonHelper 18 | { 19 | public: 20 | KJsonHelper(){}; 21 | ~KJsonHelper(){}; 22 | 23 | public: 24 | bool Add(QString strName, QVariant varValue); 25 | QVariant GetResultJsonVariant();//一个则返回一个var 26 | 27 | private: 28 | QVariantMap m_varMap; 29 | }; 30 | 31 | inline bool KJsonHelper::Add(QString strName, QVariant varValue) 32 | { 33 | if (strName.isEmpty() || varValue.isNull() || !varValue.isValid()) 34 | return false; 35 | m_varMap.insert(strName, varValue); 36 | return true;//暂时这样吧 37 | } 38 | 39 | inline QVariant KJsonHelper::GetResultJsonVariant() 40 | { 41 | return m_varMap; 42 | } 43 | 44 | class KJsArrayHelper 45 | { 46 | public: 47 | KJsArrayHelper(){}; 48 | ~KJsArrayHelper(){}; 49 | 50 | public: 51 | bool Add(QVariant varValue); 52 | QVariant GetResultJsonVariant();//超过两个返回数组,一个则返回一个即使第一个varmap的 variant内部自己判断 53 | 54 | private: 55 | QVariantList m_varList; 56 | }; 57 | 58 | inline bool KJsArrayHelper::Add(QVariant varValue) 59 | { 60 | if (varValue.isNull() || !varValue.isValid()) 61 | return false; 62 | m_varList.append(varValue); 63 | return true; 64 | } 65 | 66 | inline QVariant KJsArrayHelper::GetResultJsonVariant() 67 | { 68 | return QVariant(m_varList); 69 | } 70 | 71 | #endif // end of __JSONHELPER_H__ 72 | -------------------------------------------------------------------------------- /lomox/tool/jsonresult.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * 版权所有(C) 1988-2012 All Rights Reserved. 3 | * 4 | * 文件名称 : jsonresult.h 5 | * 作 者 : 蔡东赟 (mailto:caidongyun19@qq.com) 6 | * 创建日期 : 2011-7-11 7 | * 功能描述 : 8 | * 备 注 : 9 | ********************************************************************************/ 10 | #ifndef __JSONRESULT_H__ 11 | #define __JSONRESULT_H__ 12 | 13 | #include "jsonhelper.h" 14 | #include "include/errordefine.h" 15 | 16 | 17 | class KJsonResult 18 | { 19 | public: 20 | KJsonResult(){}; 21 | ~KJsonResult(){}; 22 | 23 | public: 24 | static QVariant CreateJsonResultByNRESULT(NRESULT nr) 25 | { 26 | if (ISNOK(nr)) 27 | { 28 | //true 29 | return CreateJsonResult(true, QString::fromWCharArray(MSGSTRLIST[nr])); 30 | } 31 | else 32 | { 33 | return CreateJsonResult(false, QString::fromWCharArray(MSGSTRLIST[nr])); 34 | } 35 | } 36 | 37 | static QVariant CreateJsonResult(bool bResult, QString strMsg) 38 | { 39 | KJsonHelper Json; 40 | Json.Add(QString("result"), QVariant(bResult)); 41 | Json.Add(QString("msg"), QVariant(strMsg)); 42 | return Json.GetResultJsonVariant(); 43 | } 44 | 45 | static QVariant CreateJsonResultByBOOL(bool bOk) 46 | { 47 | if (bOk) 48 | { 49 | return CreateJsonResult(true, QString("")); 50 | } 51 | else 52 | { 53 | return CreateJsonResult(false, QString("")); 54 | } 55 | } 56 | }; 57 | 58 | #define JSonResult(x) KJsonResult::CreateJsonResultByNRESULT(x); 59 | #define JSonBoolResult(x) KJsonResult::CreateJsonResultByBOOL(x); 60 | 61 | /* 62 | {Result:bool; Msg: string ; Type : int; Data:[{}{}{}{}]}; 63 | */ 64 | 65 | class KJsonPro 66 | { 67 | public: 68 | KJsonPro(){}; 69 | ~KJsonPro(){}; 70 | public: 71 | static QVariant CreateJsonProResult(bool result, QString msg, QVariant data, int type = 0) 72 | { 73 | KJsonHelper Json; 74 | Json.Add(QString("result"), QVariant(result)); 75 | Json.Add(QString("msg"), QVariant(msg)); 76 | Json.Add(QString("type"), QVariant(type)); 77 | Json.Add(QString("data"), QVariant(data)); 78 | return Json.GetResultJsonVariant(); 79 | } 80 | }; 81 | 82 | #define JsonProResult(x,y,z,m) KJsonPro::CreateJsonProResult(x,y,z,m) 83 | #define JsonProResultData(x) JsonProResult(true, QString(""),x,0) 84 | #define JsonProResultBool(x) JsonProResult(x, QString(""), QVariant(),0) 85 | #define JsonProResultBoolMsg(x,y) JsonProResult(x, y, QVariant(),0) 86 | #define JsonProResultBoolData(x,y) JsonProResult(x, QString(""), y, 0) 87 | 88 | #define Ret_Param_Failed JsonProResultBoolMsg(false, QString::fromWCharArray(MSGSTRLIST[MSG_PARAMS_ERROR])) 89 | 90 | #define Check_Ret_Msg(x) if (!x)\ 91 | return Ret_Param_Failed; 92 | 93 | #define Check_JPro_Ret(X) if (false == X) \ 94 | return JsonProResultBool(false); 95 | 96 | #endif // end of __JSONRESULT_H__ 97 | -------------------------------------------------------------------------------- /lomox/tool/jsonresult.h.bak: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * 版权所有(C) 1988-2011 All Rights Reserved. 3 | * 4 | * 文件名称 : jsonresult.h 5 | * 作 者 : 蔡东赟 (mailto:caidongyun19@qq.com) 6 | * 创建日期 : 2011-7-11 7 | * 功能描述 : 8 | * 备 注 : 9 | ********************************************************************************/ 10 | #ifndef __JSONRESULT_H__ 11 | #define __JSONRESULT_H__ 12 | 13 | #include "jsonhelper.h" 14 | #include "include/errordefine.h" 15 | 16 | 17 | class KJsonResult 18 | { 19 | public: 20 | KJsonResult(){}; 21 | ~KJsonResult(){}; 22 | 23 | public: 24 | static QVariant CreateJsonResultByNRESULT(NRESULT nr) 25 | { 26 | if (ISNOK(nr)) 27 | { 28 | //true 29 | return CreateJsonResult(true, QString::fromWCharArray(MSGSTRLIST[nr])); 30 | } 31 | else 32 | { 33 | return CreateJsonResult(false, QString::fromWCharArray(MSGSTRLIST[nr])); 34 | } 35 | } 36 | 37 | static QVariant CreateJsonResult(bool bResult, QString strMsg) 38 | { 39 | KJsonHelper Json; 40 | Json.Add(QString("result"), QVariant(bResult)); 41 | Json.Add(QString("msg"), QVariant(strMsg)); 42 | return Json.GetResultJsonVariant(); 43 | } 44 | 45 | static QVariant CreateJsonResultByBOOL(bool bOk) 46 | { 47 | if (bOk) 48 | { 49 | return CreateJsonResult(true, QString("")); 50 | } 51 | else 52 | { 53 | return CreateJsonResult(false, QString("")); 54 | } 55 | } 56 | }; 57 | 58 | #define JSonResult(x) KJsonResult::CreateJsonResultByNRESULT(x); 59 | #define JSonBoolResult(x) KJsonResult::CreateJsonResultByBOOL(x); 60 | 61 | /* 62 | {Result:bool; Msg: string ; Type : int; Data:[{}{}{}{}]}; 63 | */ 64 | 65 | class KJsonPro 66 | { 67 | public: 68 | KJsonPro(){}; 69 | ~KJsonPro(){}; 70 | public: 71 | static QVariant CreateJsonProResult(bool result, QString msg, QVariant data, int type = 0) 72 | { 73 | KJsonHelper Json; 74 | Json.Add(QString("result"), QVariant(result)); 75 | Json.Add(QString("msg"), QVariant(msg)); 76 | Json.Add(QString("type"), QVariant(type)); 77 | Json.Add(QString("data"), QVariant(data)); 78 | return Json.GetResultJsonVariant(); 79 | } 80 | }; 81 | 82 | #define JsonProResult(x,y,z,m) KJsonPro::CreateJsonProResult(x,y,z,m) 83 | #define JsonProResultData(x) JsonProResult(true, QString(""),x,0) 84 | #define JsonProResultBool(x) JsonProResult(x, QString(""), QVariant(),0) 85 | #define JsonProResultBoolMsg(x,y) JsonProResult(x, y, QVariant(),0) 86 | #define JsonProResultBoolData(x,y) JsonProResult(x, QString(""), y, 0) 87 | 88 | #define Ret_Param_Failed JsonProResultBoolMsg(false, QString::fromWCharArray(MSGSTRLIST[MSG_PARAMS_ERROR])) 89 | 90 | #define Check_Ret_Msg(x) if (!x)\ 91 | return Ret_Param_Failed; 92 | 93 | #define Check_JPro_Ret(X) if (false == X) \ 94 | return JsonProResultBool(false); 95 | 96 | #endif // end of __JSONRESULT_H__ 97 | -------------------------------------------------------------------------------- /lomox/tool/utillites.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * 版权所有(C) 1988-2011 All Rights Reserved. 3 | * 4 | * 文件名称 : utillites.h 5 | * 作 者 : 蔡东赟 (mailto:caidongyun19@qq.com) 6 | * 创建日期 : 2011/11/4 7 | * 功能描述 : 8 | * 备 注 : 9 | ********************************************************************************/ 10 | #include "time.h" 11 | 12 | // inline void ForceCreateDir(std::string strPath) 13 | // { 14 | // QDir dir(QString::fromLocal8Bit(strPath.c_str())); 15 | // dir.mkdir(QString::fromLocal8Bit(strPath.c_str())); 16 | // } 17 | 18 | //---------------------------------------------------------------------------------------------------- 19 | //写日志,写到%appdata%\目录下。 20 | //---------------------------------------------------------------------------------------------------- 21 | inline void LogEx(const char* MsgStr,const char *MsgStr2 = NULL,const char *MsgStr3 = NULL) 22 | { 23 | qDebug()< 7 | #include "../lomox/lxapi/Lx_api.hpp" 8 | 9 | 10 | int APIENTRY _tWinMain(HINSTANCE hInstance, 11 | HINSTANCE hPrevInstance, 12 | LPTSTR lpCmdLine, 13 | int nCmdShow) 14 | { 15 | LomoxAppRun(0, 0); 16 | return 0; 17 | } 18 | 19 | -------------------------------------------------------------------------------- /lomoxadmin/LomoxAdmin.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "resource.h" 4 | -------------------------------------------------------------------------------- /lomoxadmin/LomoxAdmin.rc: -------------------------------------------------------------------------------- 1 | //Microsoft Visual C++ generated resource script. 2 | // 3 | #include "resource.h" 4 | 5 | #define APSTUDIO_READONLY_SYMBOLS 6 | ///////////////////////////////////////////////////////////////////////////// 7 | // 8 | // Generated from the TEXTINCLUDE 2 resource. 9 | // 10 | 11 | #define APSTUDIO_HIDDEN_SYMBOLS 12 | #include "windows.h" 13 | #undef APSTUDIO_HIDDEN_SYMBOLS 14 | ///////////////////////////////////////////////////////////////////////////// 15 | #undef APSTUDIO_READONLY_SYMBOLS 16 | 17 | #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) 18 | LANGUAGE 9, 1 19 | #pragma code_page(936) 20 | 21 | 22 | #define VI_FILEDESCRIPTION "lomox.org" 23 | #define VI_INTERNALNAME "LomoxAdmin.exe" 24 | #define VI_ORIGINALFILENAME "LomoxAdmin.exe" 25 | #include "../include/buildcfg/VersionNo.rc2" 26 | 27 | 28 | 29 | ///////////////////////////////////////////////////////////////////////////// 30 | // 31 | // Icon 32 | // 33 | 34 | // Icon with lowest ID value placed first to ensure application icon 35 | // remains consistent on all systems. 36 | 37 | IDI_ICON1 ICON "lomoxwin32.ico" 38 | IDI_SMALL ICON "lomoxwin32.ico" 39 | #endif 40 | 41 | 42 | #ifndef APSTUDIO_INVOKED 43 | ///////////////////////////////////////////////////////////////////////////// 44 | // 45 | // Generated from the TEXTINCLUDE 3 resource. 46 | // 47 | 48 | ///////////////////////////////////////////////////////////////////////////// 49 | #endif // not APSTUDIO_INVOKED 50 | -------------------------------------------------------------------------------- /lomoxadmin/Resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Visual C++ generated include file. 3 | // Used by RemoteAdmin.rc 4 | // 5 | #define IDC_MYICON 2 6 | #define IDD_LOMOXWIN32_DIALOG 102 7 | #define IDS_APP_TITLE 103 8 | #define IDD_ABOUTBOX 103 9 | #define IDM_ABOUT 104 10 | #define IDM_EXIT 105 11 | #define IDI_LOMOXWIN32 107 12 | #define IDI_SMALL 108 13 | #define IDC_LOMOXWIN32 109 14 | #define IDR_MAINFRAME 128 15 | #define IDC_STATIC -1 16 | 17 | // Next default values for new objects 18 | // 19 | #ifdef APSTUDIO_INVOKED 20 | #ifndef APSTUDIO_READONLY_SYMBOLS 21 | #define _APS_NO_MFC 1 22 | #define _APS_NEXT_RESOURCE_VALUE 129 23 | #define _APS_NEXT_COMMAND_VALUE 32771 24 | #define _APS_NEXT_CONTROL_VALUE 1000 25 | #define _APS_NEXT_SYMED_VALUE 110 26 | #endif 27 | #endif 28 | -------------------------------------------------------------------------------- /lomoxadmin/lomoxadmin.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | Source Files 23 | 24 | 25 | 26 | 27 | Header Files 28 | 29 | 30 | Header Files 31 | 32 | 33 | Header Files 34 | 35 | 36 | 37 | 38 | Resource Files 39 | 40 | 41 | 42 | 43 | Resource Files 44 | 45 | 46 | -------------------------------------------------------------------------------- /lomoxadmin/lomoxwin32.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/lomoxadmin/lomoxwin32.ico -------------------------------------------------------------------------------- /lomoxadmin/stdafx.cpp: -------------------------------------------------------------------------------- 1 | // stdafx.cpp : source file that includes just the standard includes 2 | // lomoxwin32.pch will be the pre-compiled header 3 | // stdafx.obj will contain the pre-compiled type information 4 | 5 | #include "stdafx.h" 6 | 7 | // TODO: reference any additional headers you need in STDAFX.H 8 | // and not in this file 9 | -------------------------------------------------------------------------------- /lomoxadmin/stdafx.h: -------------------------------------------------------------------------------- 1 | // stdafx.h : include file for standard system include files, 2 | // or project specific include files that are used frequently, but 3 | // are changed infrequently 4 | // 5 | 6 | #pragma once 7 | 8 | 9 | #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers 10 | // Windows Header Files: 11 | #include 12 | 13 | // C RunTime Header Files 14 | #include 15 | #include 16 | #include 17 | #include 18 | 19 | // Preprocessor definitions 20 | #ifndef STRICT 21 | #define STRICT 22 | #endif 23 | 24 | 25 | // Change these values to use different versions 26 | #define WINVER 0x0500 27 | #define _WIN32_WINNT 0x0501 // Require Windows 2000 "500" or later 501xp 28 | #define _WIN32_IE 0x0501 // Require IE 5.01 or later (comes with Windows 2000 or later) 29 | #define _RICHEDIT_VER 0x0100 30 | 31 | // ATL related preprocessor definitions 32 | #if (_ATL_VER >= 0x0700) 33 | #define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // some CString constructors will be explicit 34 | #define _ATL_USE_CSTRING_FLOAT 35 | #define _ATL_USE_DDX_FLOAT 36 | #define _ATL_NO_OLD_NAMES 37 | #define _ATL_DISABLE_DEPRECATED 38 | #define _ATL_ALL_WARNINGS 39 | #define _ATL_NO_OLD_HEADERS_WIN64 40 | #endif 41 | 42 | // Includes 43 | #include 44 | #if (_ATL_VER >= 0x0700) 45 | #include 46 | #include 47 | #endif 48 | 49 | // WTL related preprocessor definitions 50 | #if (_ATL_VER >= 0x0700) 51 | #define _WTL_NO_WTYPES 52 | #define _WTL_NO_UNION_CLASSES 53 | #define _WTL_NO_CSTRING 54 | #endif 55 | 56 | #include 57 | 58 | #include 59 | 60 | 61 | // TODO: reference additional headers your program requires here 62 | -------------------------------------------------------------------------------- /lomoxdynamiclink/Debug/BuildLog.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/lomoxdynamiclink/Debug/BuildLog.htm -------------------------------------------------------------------------------- /lomoxdynamiclink/Debug/lomoxdynamiclink.exe.intermediate.manifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /lomoxdynamiclink/Debug/mt.dep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/lomoxdynamiclink/Debug/mt.dep -------------------------------------------------------------------------------- /lomoxdynamiclink/Debug/vc90.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/lomoxdynamiclink/Debug/vc90.pdb -------------------------------------------------------------------------------- /lomoxdynamiclink/Release/BuildLog.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/lomoxdynamiclink/Release/BuildLog.htm -------------------------------------------------------------------------------- /lomoxdynamiclink/Release/lomoxdynamiclink.exe.intermediate.manifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /lomoxdynamiclink/Release/mt.dep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/lomoxdynamiclink/Release/mt.dep -------------------------------------------------------------------------------- /lomoxdynamiclink/Release/vc90.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/lomoxdynamiclink/Release/vc90.pdb -------------------------------------------------------------------------------- /lomoxdynamiclink/logo.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/lomoxdynamiclink/logo.ico -------------------------------------------------------------------------------- /lomoxdynamiclink/lomoxdynamiclink.vcproj.pc-PC.Administrator.user: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 11 | 35 | 36 | 39 | 63 | 64 | 65 | 66 | -------------------------------------------------------------------------------- /lomoxdynamiclink/lomoxdynamiclink.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | Source Files 23 | 24 | 25 | 26 | 27 | Header Files 28 | 29 | 30 | -------------------------------------------------------------------------------- /lomoxdynamiclink/lxdylink.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/lomoxdynamiclink/lxdylink.cpp -------------------------------------------------------------------------------- /lomoxdynamiclink/lxdylink.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/lomoxdynamiclink/lxdylink.h -------------------------------------------------------------------------------- /lomoxdynamiclink/lxdylink.rc: -------------------------------------------------------------------------------- 1 | IDI_ICON1 ICON DISCARDABLE "logo.ico" -------------------------------------------------------------------------------- /lomoxdynamiclink/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/lomoxdynamiclink/main.cpp -------------------------------------------------------------------------------- /lomoxtest/GeneratedFiles/qrc_lomoxtest.cpp: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | ** Resource object code 3 | ** 4 | ** Created: Wed Dec 19 17:02:20 2012 5 | ** by: The Resource Compiler for Qt version 4.8.2 6 | ** 7 | ** WARNING! All changes made in this file will be lost! 8 | *****************************************************************************/ 9 | 10 | #include 11 | 12 | QT_BEGIN_NAMESPACE 13 | 14 | QT_END_NAMESPACE 15 | 16 | 17 | int QT_MANGLE_NAMESPACE(qInitResources_lomoxtest)() 18 | { 19 | return 1; 20 | } 21 | 22 | Q_CONSTRUCTOR_FUNCTION(QT_MANGLE_NAMESPACE(qInitResources_lomoxtest)) 23 | 24 | int QT_MANGLE_NAMESPACE(qCleanupResources_lomoxtest)() 25 | { 26 | return 1; 27 | } 28 | 29 | Q_DESTRUCTOR_FUNCTION(QT_MANGLE_NAMESPACE(qCleanupResources_lomoxtest)) 30 | 31 | -------------------------------------------------------------------------------- /lomoxtest/GeneratedFiles/ui_lomoxtest.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************** 2 | ** Form generated from reading UI file 'lomoxtest.ui' 3 | ** 4 | ** Created: Wed Dec 19 17:02:21 2012 5 | ** by: Qt User Interface Compiler version 4.8.2 6 | ** 7 | ** WARNING! All changes made in this file will be lost when recompiling UI file! 8 | ********************************************************************************/ 9 | 10 | #ifndef UI_LOMOXTEST_H 11 | #define UI_LOMOXTEST_H 12 | 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | #include 19 | #include 20 | #include 21 | #include 22 | #include 23 | 24 | QT_BEGIN_NAMESPACE 25 | 26 | class Ui_lomoxtestClass 27 | { 28 | public: 29 | QMenuBar *menuBar; 30 | QToolBar *mainToolBar; 31 | QWidget *centralWidget; 32 | QStatusBar *statusBar; 33 | 34 | void setupUi(QMainWindow *lomoxtestClass) 35 | { 36 | if (lomoxtestClass->objectName().isEmpty()) 37 | lomoxtestClass->setObjectName(QString::fromUtf8("lomoxtestClass")); 38 | lomoxtestClass->resize(600, 400); 39 | menuBar = new QMenuBar(lomoxtestClass); 40 | menuBar->setObjectName(QString::fromUtf8("menuBar")); 41 | lomoxtestClass->setMenuBar(menuBar); 42 | mainToolBar = new QToolBar(lomoxtestClass); 43 | mainToolBar->setObjectName(QString::fromUtf8("mainToolBar")); 44 | lomoxtestClass->addToolBar(mainToolBar); 45 | centralWidget = new QWidget(lomoxtestClass); 46 | centralWidget->setObjectName(QString::fromUtf8("centralWidget")); 47 | lomoxtestClass->setCentralWidget(centralWidget); 48 | statusBar = new QStatusBar(lomoxtestClass); 49 | statusBar->setObjectName(QString::fromUtf8("statusBar")); 50 | lomoxtestClass->setStatusBar(statusBar); 51 | 52 | retranslateUi(lomoxtestClass); 53 | 54 | QMetaObject::connectSlotsByName(lomoxtestClass); 55 | } // setupUi 56 | 57 | void retranslateUi(QMainWindow *lomoxtestClass) 58 | { 59 | lomoxtestClass->setWindowTitle(QApplication::translate("lomoxtestClass", "lomoxtest", 0, QApplication::UnicodeUTF8)); 60 | } // retranslateUi 61 | 62 | }; 63 | 64 | namespace Ui { 65 | class lomoxtestClass: public Ui_lomoxtestClass {}; 66 | } // namespace Ui 67 | 68 | QT_END_NAMESPACE 69 | 70 | #endif // UI_LOMOXTEST_H 71 | -------------------------------------------------------------------------------- /lomoxtest/LomoTest.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/lomoxtest/LomoTest.rc -------------------------------------------------------------------------------- /lomoxtest/LomoxTest.pro: -------------------------------------------------------------------------------- 1 | # ---------------------------------------------------- 2 | # This file is generated by the Qt Visual Studio Add-in. 3 | # ------------------------------------------------------ 4 | 5 | # This is a reminder that you are using a generated .pro file. 6 | # Remove it when you are finished editing this file. 7 | message("You are running qmake on a generated .pro file. This may not work!") 8 | 9 | 10 | TEMPLATE = app 11 | TARGET = lomoxtest 12 | QT += core gui network xml webkit widgets webkitwidgets 13 | DEFINES += QT_LARGEFILE_SUPPORT 14 | INCLUDEPATH += ./GeneratedFiles \ 15 | ./GeneratedFiles/Release \ 16 | . \ 17 | ./../lomox 18 | 19 | 20 | # Copies the given files to the destination directory 21 | defineTest(copyToDestdir) { 22 | files = $$1 23 | 24 | for(FILE, files) { 25 | DDIR = $$DESTDIR 26 | 27 | # Replace slashes in paths with backslashes for Windows 28 | win32:FILE ~= s,/,\\,g 29 | win32:DDIR ~= s,/,\\,g 30 | 31 | QMAKE_POST_LINK += $$QMAKE_COPY $$quote($$FILE) $$quote($$DDIR) $$escape_expand(\\n\\t) 32 | } 33 | 34 | export(QMAKE_POST_LINK) 35 | } 36 | 37 | 38 | 39 | mac{ 40 | CONFIG += app_bundle 41 | QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.10.5 42 | debug:LIBS += -L"./../build-LomoX-Desktop_Qt_5_5_1_clang_64bit-Debug" -llomox 43 | Release:LIBS += -L"./../build-LomoX-Desktop_Qt_5_5_1_clang_64bit-Release" -llomox 44 | Release:MOC_DIR += ./GeneratedFiles/Release 45 | Debug:MOC_DIR += ./GeneratedFiles/Debug 46 | Release:OBJECTS_DIR += Release 47 | Debug:OBJECTS_DIR += Debug 48 | UI_DIR += ./GeneratedFiles 49 | RCC_DIR += ./GeneratedFiles 50 | 51 | } 52 | win32{ 53 | 54 | DESTDIR = ../Release 55 | LIBS += -L"./../release" -llomox 56 | MOC_DIR += ./GeneratedFiles/release 57 | OBJECTS_DIR += release 58 | UI_DIR += ./GeneratedFiles 59 | RCC_DIR += ./GeneratedFiles 60 | } 61 | 62 | 63 | 64 | DEPENDPATH += . 65 | include(lomoxtest.pri) 66 | -------------------------------------------------------------------------------- /lomoxtest/ReadMe.txt: -------------------------------------------------------------------------------- 1 | ======================================================================== 2 | 控制台应用程序:lomoxtest 项目概述 3 | ======================================================================== 4 | 5 | 应用程序向导已为您创建了此 lomoxtest 应用程序。 6 | 7 | 本文件概要介绍组成 lomoxtest 应用程序的 8 | 的每个文件的内容。 9 | 10 | 11 | lomoxtest.vcproj 12 | 这是使用应用程序向导生成的 VC++ 项目的主项目文件, 13 | 其中包含生成该文件的 Visual C++ 的版本信息,以及有关使用应用程序向导选择的平台、配置和项目功能的信息。 14 | 15 | lomoxtest.cpp 16 | 这是主应用程序源文件。 17 | 18 | ///////////////////////////////////////////////////////////////////////////// 19 | 其他标准文件: 20 | 21 | StdAfx.h, StdAfx.cpp 22 | 这些文件用于生成名为 lomoxtest.pch 的预编译头 (PCH) 文件和名为 StdAfx.obj 的预编译类型文件。 23 | 24 | ///////////////////////////////////////////////////////////////////////////// 25 | 其他注释: 26 | 27 | 应用程序向导使用“TODO:”注释来指示应添加或自定义的源代码部分。 28 | 29 | ///////////////////////////////////////////////////////////////////////////// -------------------------------------------------------------------------------- /lomoxtest/logo.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/lomoxtest/logo.ico -------------------------------------------------------------------------------- /lomoxtest/lomoxstaticlink.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/lomoxtest/lomoxstaticlink.rc -------------------------------------------------------------------------------- /lomoxtest/lomoxtest.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/lomoxtest/lomoxtest.cpp -------------------------------------------------------------------------------- /lomoxtest/lomoxtest.pri: -------------------------------------------------------------------------------- 1 | # ---------------------------------------------------- 2 | # This file is generated by the Qt Visual Studio Add-in. 3 | # ------------------------------------------------------ 4 | 5 | HEADERS += ./resource.h 6 | SOURCES += ./main.cpp 7 | FORMS += ./lomoxtest.ui 8 | RESOURCES += ./lomoxtest.qrc 9 | -------------------------------------------------------------------------------- /lomoxtest/lomoxtest.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | ../tool/Hello_App_Resource_Tmpl/config.ini 4 | 5 | 6 | -------------------------------------------------------------------------------- /lomoxtest/lomoxtest.ui: -------------------------------------------------------------------------------- 1 | 2 | lomoxtestClass 3 | 4 | 5 | lomoxtestClass 6 | 7 | 8 | 9 | 0 10 | 0 11 | 600 12 | 400 13 | 14 | 15 | 16 | lomoxtest 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /lomoxtest/lomoxtest.vcproj.pc-PC.Administrator.user: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 11 | 35 | 36 | 39 | 63 | 64 | 65 | 66 | -------------------------------------------------------------------------------- /lomoxtest/lomoxtest.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav 15 | 16 | 17 | 18 | 19 | 源文件 20 | 21 | 22 | 源文件 23 | 24 | 25 | 26 | 27 | 头文件 28 | 29 | 30 | 头文件 31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /lomoxtest/lomoxtest.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /lomoxtest/main.cpp: -------------------------------------------------------------------------------- 1 | //#include //QT5.0已经替换成QtWidgets 2 | #include 3 | #include "../lomox/lxcoreprivate.h" 4 | 5 | int main(int argc, char *argv[]) 6 | { 7 | lxCoreApp->runLomoxApp(argc,argv); 8 | return 0; 9 | } 10 | -------------------------------------------------------------------------------- /lomoxtest/resource.aps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/lomoxtest/resource.aps -------------------------------------------------------------------------------- /lomoxtest/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Visual C++ generated include file. 3 | // Used by resource.rc 4 | // 5 | #define IDI_ICON1 103 6 | 7 | // Next default values for new objects 8 | // 9 | #ifdef APSTUDIO_INVOKED 10 | #ifndef APSTUDIO_READONLY_SYMBOLS 11 | #define _APS_NEXT_RESOURCE_VALUE 104 12 | #define _APS_NEXT_COMMAND_VALUE 40001 13 | #define _APS_NEXT_CONTROL_VALUE 1001 14 | #define _APS_NEXT_SYMED_VALUE 101 15 | #endif 16 | #endif 17 | -------------------------------------------------------------------------------- /lomoxtest/resource.rc: -------------------------------------------------------------------------------- 1 | // Microsoft Visual C++ generated resource script. 2 | // 3 | #include "resource.h" 4 | 5 | #define APSTUDIO_READONLY_SYMBOLS 6 | ///////////////////////////////////////////////////////////////////////////// 7 | // 8 | // Generated from the TEXTINCLUDE 2 resource. 9 | // 10 | #include "afxres.h" 11 | 12 | ///////////////////////////////////////////////////////////////////////////// 13 | #undef APSTUDIO_READONLY_SYMBOLS 14 | 15 | ///////////////////////////////////////////////////////////////////////////// 16 | // Chinese (P.R.C.) resources 17 | 18 | #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_CHS) 19 | #ifdef _WIN32 20 | LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED 21 | #pragma code_page(936) 22 | #endif //_WIN32 23 | 24 | #ifdef APSTUDIO_INVOKED 25 | ///////////////////////////////////////////////////////////////////////////// 26 | // 27 | // TEXTINCLUDE 28 | // 29 | 30 | 1 TEXTINCLUDE 31 | BEGIN 32 | "resource.h\0" 33 | END 34 | 35 | 2 TEXTINCLUDE 36 | BEGIN 37 | "#include ""afxres.h""\r\n" 38 | "\0" 39 | END 40 | 41 | 3 TEXTINCLUDE 42 | BEGIN 43 | "\r\n" 44 | "\0" 45 | END 46 | 47 | #endif // APSTUDIO_INVOKED 48 | 49 | 50 | ///////////////////////////////////////////////////////////////////////////// 51 | // 52 | // Version 53 | // 54 | 55 | VS_VERSION_INFO VERSIONINFO 56 | FILEVERSION 1,0,0,1 57 | PRODUCTVERSION 1,0,0,1 58 | FILEFLAGSMASK 0x17L 59 | #ifdef _DEBUG 60 | FILEFLAGS 0x1L 61 | #else 62 | FILEFLAGS 0x0L 63 | #endif 64 | FILEOS 0x4L 65 | FILETYPE 0x1L 66 | FILESUBTYPE 0x0L 67 | BEGIN 68 | BLOCK "StringFileInfo" 69 | BEGIN 70 | BLOCK "080404b0" 71 | BEGIN 72 | VALUE "CompanyName", "www.lomox.hk" 73 | VALUE "FileDescription", "lomox Application" 74 | VALUE "FileVersion", "1, 0, 0, 1" 75 | VALUE "InternalName", "lomoxtes" 76 | VALUE "LegalCopyright", "Copyright (C) www.LomoX.hk 2012" 77 | VALUE "OriginalFilename", "lomox.exe" 78 | VALUE "ProductName", "lomox Application" 79 | VALUE "ProductVersion", "1, 0, 0, 1" 80 | END 81 | END 82 | BLOCK "VarFileInfo" 83 | BEGIN 84 | VALUE "Translation", 0x804, 1200 85 | END 86 | END 87 | 88 | 89 | ///////////////////////////////////////////////////////////////////////////// 90 | // 91 | // Icon 92 | // 93 | 94 | // Icon with lowest ID value placed first to ensure application icon 95 | // remains consistent on all systems. 96 | IDI_ICON1 ICON "logo.ico" 97 | #endif // Chinese (P.R.C.) resources 98 | ///////////////////////////////////////////////////////////////////////////// 99 | 100 | 101 | 102 | #ifndef APSTUDIO_INVOKED 103 | ///////////////////////////////////////////////////////////////////////////// 104 | // 105 | // Generated from the TEXTINCLUDE 3 resource. 106 | // 107 | 108 | 109 | ///////////////////////////////////////////////////////////////////////////// 110 | #endif // not APSTUDIO_INVOKED 111 | 112 | -------------------------------------------------------------------------------- /lomoxtest/stdafx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/lomoxtest/stdafx.cpp -------------------------------------------------------------------------------- /lomoxtest/stdafx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/lomoxtest/stdafx.h -------------------------------------------------------------------------------- /lomoxtest/targetver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/lomoxtest/targetver.h -------------------------------------------------------------------------------- /lomoxwin32/ReadMe.txt: -------------------------------------------------------------------------------- 1 | ======================================================================== 2 | WIN32 APPLICATION : lomoxwin32 Project Overview 3 | ======================================================================== 4 | 5 | AppWizard has created this lomoxwin32 application for you. 6 | 7 | This file contains a summary of what you will find in each of the files that 8 | make up your lomoxwin32 application. 9 | 10 | 11 | lomoxwin32.vcproj 12 | This is the main project file for VC++ projects generated using an Application Wizard. 13 | It contains information about the version of Visual C++ that generated the file, and 14 | information about the platforms, configurations, and project features selected with the 15 | Application Wizard. 16 | 17 | lomoxwin32.cpp 18 | This is the main application source file. 19 | 20 | ///////////////////////////////////////////////////////////////////////////// 21 | AppWizard has created the following resources: 22 | 23 | lomoxwin32.rc 24 | This is a listing of all of the Microsoft Windows resources that the 25 | program uses. It includes the icons, bitmaps, and cursors that are stored 26 | in the RES subdirectory. This file can be directly edited in Microsoft 27 | Visual C++. 28 | 29 | Resource.h 30 | This is the standard header file, which defines new resource IDs. 31 | Microsoft Visual C++ reads and updates this file. 32 | 33 | lomoxwin32.ico 34 | This is an icon file, which is used as the application's icon (32x32). 35 | This icon is included by the main resource file lomoxwin32.rc. 36 | 37 | small.ico 38 | This is an icon file, which contains a smaller version (16x16) 39 | of the application's icon. This icon is included by the main resource 40 | file lomoxwin32.rc. 41 | 42 | ///////////////////////////////////////////////////////////////////////////// 43 | Other standard files: 44 | 45 | StdAfx.h, StdAfx.cpp 46 | These files are used to build a precompiled header (PCH) file 47 | named lomoxwin32.pch and a precompiled types file named StdAfx.obj. 48 | 49 | ///////////////////////////////////////////////////////////////////////////// 50 | Other notes: 51 | 52 | AppWizard uses "TODO:" comments to indicate parts of the source code you 53 | should add to or customize. 54 | 55 | ///////////////////////////////////////////////////////////////////////////// 56 | -------------------------------------------------------------------------------- /lomoxwin32/Resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Visual C++ generated include file. 3 | // Used by lomoxwin32.rc 4 | // 5 | 6 | #define IDS_APP_TITLE 103 7 | 8 | #define IDR_MAINFRAME 128 9 | #define IDD_LOMOXWIN32_DIALOG 102 10 | #define IDD_ABOUTBOX 103 11 | #define IDM_ABOUT 104 12 | #define IDM_EXIT 105 13 | #define IDI_LOMOXWIN32 107 14 | #define IDI_SMALL 108 15 | #define IDC_LOMOXWIN32 109 16 | #define IDC_MYICON 2 17 | #ifndef IDC_STATIC 18 | #define IDC_STATIC -1 19 | #endif 20 | // Next default values for new objects 21 | // 22 | #ifdef APSTUDIO_INVOKED 23 | #ifndef APSTUDIO_READONLY_SYMBOLS 24 | 25 | #define _APS_NO_MFC 130 26 | #define _APS_NEXT_RESOURCE_VALUE 129 27 | #define _APS_NEXT_COMMAND_VALUE 32771 28 | #define _APS_NEXT_CONTROL_VALUE 1000 29 | #define _APS_NEXT_SYMED_VALUE 110 30 | #endif 31 | #endif 32 | -------------------------------------------------------------------------------- /lomoxwin32/lomoxwin32.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "resource.h" 4 | -------------------------------------------------------------------------------- /lomoxwin32/lomoxwin32.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/lomoxwin32/lomoxwin32.ico -------------------------------------------------------------------------------- /lomoxwin32/small.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/lomoxwin32/small.ico -------------------------------------------------------------------------------- /lomoxwin32/stdafx.cpp: -------------------------------------------------------------------------------- 1 | // stdafx.cpp : source file that includes just the standard includes 2 | // lomoxwin32.pch will be the pre-compiled header 3 | // stdafx.obj will contain the pre-compiled type information 4 | 5 | #include "stdafx.h" 6 | 7 | // TODO: reference any additional headers you need in STDAFX.H 8 | // and not in this file 9 | -------------------------------------------------------------------------------- /lomoxwin32/stdafx.h: -------------------------------------------------------------------------------- 1 | // stdafx.h : include file for standard system include files, 2 | // or project specific include files that are used frequently, but 3 | // are changed infrequently 4 | // 5 | 6 | #pragma once 7 | 8 | #include "targetver.h" 9 | 10 | #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers 11 | // Windows Header Files: 12 | #include 13 | 14 | // C RunTime Header Files 15 | #include 16 | #include 17 | #include 18 | #include 19 | 20 | 21 | // TODO: reference additional headers your program requires here 22 | -------------------------------------------------------------------------------- /lomoxwin32/targetver.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | // The following macros define the minimum required platform. The minimum required platform 4 | // is the earliest version of Windows, Internet Explorer etc. that has the necessary features to run 5 | // your application. The macros work by enabling all features available on platform versions up to and 6 | // including the version specified. 7 | 8 | // Modify the following defines if you have to target a platform prior to the ones specified below. 9 | // Refer to MSDN for the latest info on corresponding values for different platforms. 10 | #ifndef WINVER // Specifies that the minimum required platform is Windows Vista. 11 | #define WINVER 0x0600 // Change this to the appropriate value to target other versions of Windows. 12 | #endif 13 | 14 | #ifndef _WIN32_WINNT // Specifies that the minimum required platform is Windows Vista. 15 | #define _WIN32_WINNT 0x0600 // Change this to the appropriate value to target other versions of Windows. 16 | #endif 17 | 18 | #ifndef _WIN32_WINDOWS // Specifies that the minimum required platform is Windows 98. 19 | #define _WIN32_WINDOWS 0x0410 // Change this to the appropriate value to target Windows Me or later. 20 | #endif 21 | 22 | #ifndef _WIN32_IE // Specifies that the minimum required platform is Internet Explorer 7.0. 23 | #define _WIN32_IE 0x0700 // Change this to the appropriate value to target other versions of IE. 24 | #endif 25 | -------------------------------------------------------------------------------- /lxWebEditPlugin/lxWebEditPlugin.vcproj.pc-PC.Administrator.user: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 11 | 35 | 36 | 39 | 63 | 64 | 65 | 66 | -------------------------------------------------------------------------------- /lxWebEditPlugin/lxWebEditPlugin.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;cxx;c;def 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h 11 | 12 | 13 | {99349809-55BA-4b9d-BF79-8FDBB0286EB3} 14 | ui 15 | 16 | 17 | {D9D6E242-F8AF-46E4-B9FD-80ECBC20BA3E} 18 | qrc;* 19 | false 20 | 21 | 22 | {71ED8ED8-ACB9-4CE9-BBE1-E00B30144E11} 23 | moc;h;cpp 24 | False 25 | 26 | 27 | {62eb3cc9-8782-45f6-b1fa-6c952a5a5b1c} 28 | cpp;moc 29 | False 30 | 31 | 32 | {e6b8b91b-fdbd-4e37-8014-0a7ae4f10883} 33 | cpp;moc 34 | False 35 | 36 | 37 | 38 | 39 | Source Files 40 | 41 | 42 | Generated Files\Release 43 | 44 | 45 | 46 | 47 | Header Files 48 | 49 | 50 | Header Files 51 | 52 | 53 | -------------------------------------------------------------------------------- /lxWebEditPlugin/lxWebEditPlugin.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | PATH="$(QTDIR)\bin%3b$(PATH) 5 | C:\Qt\Qt5.5.1_win32\5.5\msvc2013 6 | 7 | 8 | PATH=$(QTDIR)\bin%3bC:\Qt\Qt5.5.1\5.5\msvc2013_64\\bin%3b$(PATH) 9 | C:\Qt\Qt5.5.1\5.5\msvc2013_64\ 10 | 11 | 12 | PATH="$(QTDIR)\bin%3b$(PATH) 13 | C:\Qt\Qt5.5.1_win32\5.5\msvc2013 14 | 15 | 16 | PATH=$(QTDIR)\bin%3bC:\Qt\Qt5.5.1\5.5\msvc2013_64\\bin%3b$(PATH) 17 | C:\Qt\Qt5.5.1\5.5\msvc2013_64\ 18 | 19 | -------------------------------------------------------------------------------- /lxWebEditPlugin/lxwebeditplugin.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/lxWebEditPlugin/lxwebeditplugin.cpp -------------------------------------------------------------------------------- /lxWebEditPlugin/lxwebeditplugin.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/lxWebEditPlugin/lxwebeditplugin.h -------------------------------------------------------------------------------- /lxWebEditPlugin/lxwebeditplugin_global.h: -------------------------------------------------------------------------------- 1 | #ifndef LXWEBEDITPLUGIN_GLOBAL_H 2 | #define LXWEBEDITPLUGIN_GLOBAL_H 3 | 4 | #include 5 | 6 | #ifdef LXWEBEDITPLUGIN_LIB 7 | # define LXWEBEDITPLUGIN_EXPORT Q_DECL_EXPORT 8 | #else 9 | # define LXWEBEDITPLUGIN_EXPORT Q_DECL_IMPORT 10 | #endif 11 | 12 | #endif // LXWEBEDITPLUGIN_GLOBAL_H 13 | -------------------------------------------------------------------------------- /lxWebEditPlugin/lxwebkitplugininterface.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/lxWebEditPlugin/lxwebkitplugininterface.h -------------------------------------------------------------------------------- /tool/CopyTmpl.bat: -------------------------------------------------------------------------------- 1 | #通用的资源拷贝处理脚本 by Colin3dmax 2 | #功能:CopyTmpl.bat src dest 3 | #把src目录内的文件 拷贝到 dest目录中 4 | #内部采用rsync方式运行,避免每次的重复拷贝 -------------------------------------------------------------------------------- /tool/Hello_App_Resource_Tmpl/Resources/ajaxtest.html: -------------------------------------------------------------------------------- 1 |
Ajax Done
-------------------------------------------------------------------------------- /tool/Hello_App_Resource_Tmpl/Resources/close.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Hello_App_Resource_Tmpl/Resources/close.ico -------------------------------------------------------------------------------- /tool/Hello_App_Resource_Tmpl/Resources/cookie.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |

用COOKIE 记录 刷新次数 (每刷新一次,计数器+1,在客户端也正常,在后端处理的数据都有问题(执行多次),但最终输出到 浏览器的操作是正常的(所以用localstoragem貌似也OK))

6 | 7 | 8 |

计数器:

9 | 10 | 刷新 | 清零 11 | 12 | -------------------------------------------------------------------------------- /tool/Hello_App_Resource_Tmpl/Resources/css/font-awesome-403/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Hello_App_Resource_Tmpl/Resources/css/font-awesome-403/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /tool/Hello_App_Resource_Tmpl/Resources/css/font-awesome-403/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Hello_App_Resource_Tmpl/Resources/css/font-awesome-403/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /tool/Hello_App_Resource_Tmpl/Resources/css/font-awesome-403/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Hello_App_Resource_Tmpl/Resources/css/font-awesome-403/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /tool/Hello_App_Resource_Tmpl/Resources/css/font-awesome-403/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Hello_App_Resource_Tmpl/Resources/css/font-awesome-403/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /tool/Hello_App_Resource_Tmpl/Resources/db.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Hello_App_Resource_Tmpl/Resources/db.php -------------------------------------------------------------------------------- /tool/Hello_App_Resource_Tmpl/Resources/db_exam.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 14 | 15 | 16 | 17 | 18 | 19 |

数据库写入测试 (有些php框架环境下有问题)

20 |

21 |
22 | 姓名:
23 | 性别:
24 | 25 |
26 | 27 |
28 | 29 | 写入的数据如下: 清空数据 30 | 31 | 32 | 33 | 34 |
35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /tool/Hello_App_Resource_Tmpl/Resources/dbconfig.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Hello_App_Resource_Tmpl/Resources/dbconfig.php -------------------------------------------------------------------------------- /tool/Hello_App_Resource_Tmpl/Resources/file.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 14 | 15 | 16 | 17 | 18 | 19 |

文件缓存写入测试

20 | 21 | 刷新 | 清空 22 | 23 |
24 | 25 | 写入的数据如下 26 | 27 | 28 | 29 | 30 |
31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /tool/Hello_App_Resource_Tmpl/Resources/file_cache.php: -------------------------------------------------------------------------------- 1 | '第1个元素!', 3 | 1 => '第2个元素!', 4 | ); -------------------------------------------------------------------------------- /tool/Hello_App_Resource_Tmpl/Resources/header.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tool/Hello_App_Resource_Tmpl/Resources/hide.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Hello_App_Resource_Tmpl/Resources/hide.ico -------------------------------------------------------------------------------- /tool/Hello_App_Resource_Tmpl/Resources/index.bak.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Hello_App_Resource_Tmpl/Resources/index.bak.html -------------------------------------------------------------------------------- /tool/Hello_App_Resource_Tmpl/Resources/index.php: -------------------------------------------------------------------------------- 1 | $row['name'] , 'sex'=>$row["sex"] ) ; 77 | } 78 | 79 | return $ret; 80 | } 81 | 82 | //session 83 | function sessiond( ){ 84 | if( $_GET['action'] =='clear' ){ 85 | $_SESSION['count'] =0; 86 | header( 'location:index.php?method=session' ); 87 | exit; 88 | } 89 | 90 | $count = (int)$_SESSION["count"]; 91 | 92 | if( !$count ){ 93 | $count = $_SESSION['count'] =0; 94 | } 95 | 96 | $count++; 97 | 98 | $_SESSION[ 'count' ] = $count; 99 | 100 | include 'session.html'; 101 | } 102 | 103 | //cookie 104 | function cookied( ){ 105 | if( $_GET['action'] =='clear' ){ 106 | setcookie( 'count' , 0 ); 107 | header( 'location:index.php?method=cookie' ); 108 | exit; 109 | } 110 | 111 | $count = (int)$_COOKIE["count"]; 112 | 113 | if( !$count ){ 114 | $count =0; 115 | setcookie( 'count' , 0); 116 | } 117 | 118 | $count++; 119 | 120 | setcookie( 'count' , $count ); 121 | 122 | include 'cookie.html'; 123 | 124 | } 125 | 126 | function filed( ){ 127 | if( $_GET['action'] =='clear' ){ 128 | file_put_contents( 'file_cache.php' , 'label').dblclick(_max); 36 | $("#lx-min").on('mouseup', function(){ 37 | LxExt.Dialog.showMinimized(); 38 | }); 39 | $("#lx-close").on('mouseup', function(){ 40 | LxExt.Dialog.closeWnd(); 41 | }); 42 | 43 | }); 44 | 45 | //Debug 设置 46 | if(WindowSettings.debug) { 47 | $(window).keydown(function(event) { 48 | // F5刷新界面 49 | if(event.keyCode == 116) { 50 | location.reload(); 51 | } 52 | }); 53 | } 54 | -------------------------------------------------------------------------------- /tool/Hello_App_Resource_Tmpl/Resources/js/page.js: -------------------------------------------------------------------------------- 1 | var Page = new function() { 2 | this.turn = function(from, to, url, method) { 3 | var turn = function(from, to, method) { 4 | if(method != 'back') { 5 | from.removeClass().addClass('content animated fadeOutLeft'); 6 | to.removeClass().addClass('content current animated fadeInRight'); 7 | } else { 8 | from.removeClass().addClass('content animated fadeOutRight'); 9 | to.removeClass().addClass('content current animated fadeInLeft').find('[autofocus]').focus(); 10 | } 11 | $('#lx-back').fadeIn(); 12 | $(to).trigger('ready'); 13 | } 14 | 15 | var f = $(from); 16 | var t = $(to); 17 | if(url == 'back') { 18 | method = url; 19 | } 20 | if(t.length == 0) { 21 | var t = $('
'); 22 | t.html(''); 23 | t.appendTo('#lx-body'); 24 | turn(f, t, method); 25 | } else { 26 | turn(f, t, method); 27 | } 28 | } 29 | } -------------------------------------------------------------------------------- /tool/Hello_App_Resource_Tmpl/Resources/js/stdlib/LxExt-1.0.min.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Hello_App_Resource_Tmpl/Resources/js/stdlib/LxExt-1.0.min.js -------------------------------------------------------------------------------- /tool/Hello_App_Resource_Tmpl/Resources/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Hello_App_Resource_Tmpl/Resources/loading.gif -------------------------------------------------------------------------------- /tool/Hello_App_Resource_Tmpl/Resources/main.bak.lx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Hello_App_Resource_Tmpl/Resources/main.bak.lx -------------------------------------------------------------------------------- /tool/Hello_App_Resource_Tmpl/Resources/max.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Hello_App_Resource_Tmpl/Resources/max.ico -------------------------------------------------------------------------------- /tool/Hello_App_Resource_Tmpl/Resources/mini.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Hello_App_Resource_Tmpl/Resources/mini.ico -------------------------------------------------------------------------------- /tool/Hello_App_Resource_Tmpl/Resources/mydb.sql: -------------------------------------------------------------------------------- 1 | -- phpMyAdmin SQL Dump 2 | -- version 4.0.4 3 | -- http://www.phpmyadmin.net 4 | -- 5 | -- 主机: localhost 6 | -- 生成日期: 2015 年 05 月 07 日 07:34 7 | -- 服务器版本: 5.6.12-log 8 | -- PHP 版本: 5.4.16 9 | 10 | SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; 11 | SET time_zone = "+00:00"; 12 | 13 | 14 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 15 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 16 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 17 | /*!40101 SET NAMES utf8 */; 18 | 19 | -- 20 | -- 数据库: `mydb` 21 | -- 22 | CREATE DATABASE IF NOT EXISTS `mydb` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci; 23 | USE `mydb`; 24 | 25 | -- -------------------------------------------------------- 26 | 27 | -- 28 | -- 表的结构 `member` 29 | -- 30 | 31 | CREATE TABLE IF NOT EXISTS `member` ( 32 | `id` int(11) NOT NULL AUTO_INCREMENT, 33 | `name` char(40) CHARACTER SET utf8 NOT NULL, 34 | `sex` char(10) CHARACTER SET utf8 NOT NULL, 35 | PRIMARY KEY (`id`) 36 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; 37 | 38 | 39 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 40 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 41 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 42 | -------------------------------------------------------------------------------- /tool/Hello_App_Resource_Tmpl/Resources/normal.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Hello_App_Resource_Tmpl/Resources/normal.ico -------------------------------------------------------------------------------- /tool/Hello_App_Resource_Tmpl/Resources/page/entity/Entities.js: -------------------------------------------------------------------------------- 1 | /* 2 | @author: remy sharp 3 | @info: http://leftlogic.com/entity-lookup/ 4 | @date: 2007-05-28 5 | @description: finds and returns entity charaters matching 'like' data 6 | @license: Creative Commons License - ShareAlike http://creativecommons.org/licenses/by-sa/3.0/ 7 | */ 8 | 9 | function Entities() { 10 | if ( window == this ) return new Entities(); 11 | var list = []; 12 | 13 | return { 14 | add: function(e, c, d, l) { 15 | if (!c) { 16 | l = e.like; 17 | d = e.description; 18 | c = e.code; 19 | e = e.entity; 20 | } 21 | if (typeof l == 'string') l = [l]; 22 | l.push(e); 23 | l.push(c.toString()); 24 | list.push({ entity: e, code: c, html: '&' + e + ';', description: d, like: l }); 25 | // this.length++; 26 | return this; 27 | }, 28 | dump: function() { 29 | var rlist = list.reverse(); 30 | var i = rlist.length; 31 | while (i--) { 32 | console.log('n("' + rlist[i].entity + '", ' + rlist[i].code + ', "' + rlist[i].description + '", ["' + rlist[i].like.join('", "') + '"]);'); 33 | } 34 | }, 35 | each: function(fn) { 36 | for (var i = 0; i < list.length; i++) { 37 | fn.call(list[i], i, !!(i == list.length-1)); 38 | } 39 | return this; 40 | }, 41 | find: function(s) { 42 | s = s.replace(/[&#;]/g, ''); 43 | var i = list.length; 44 | while (i--) { 45 | if (list[i].entity == s || list[i].code == s) { 46 | return list[i]; 47 | } 48 | } 49 | }, 50 | get: function(i) { 51 | return list[i]; 52 | }, 53 | length: function() { 54 | return list.length; 55 | }, 56 | like: function(s) { 57 | var found = Entities(); 58 | if (s.length == 0) return found; 59 | var flagged = {}; 60 | var i = list.length; 61 | var partial = function(s, l) { 62 | return s.length > 1 ? !!(l.substring(0, s.length) === s) : !!(s == l); 63 | }; 64 | var parts = s == ' ' ? [' '] : s.toLowerCase().split(' '); 65 | while (i--) { 66 | var j = list[i].like.length; 67 | while (j--) { 68 | var m = list[i].like[j].toLowerCase(); 69 | var k = parts.length; 70 | while (k--) { // tripple loop...::sigh:: 71 | if (partial(parts[k], m) && !flagged[list[i].code]) { 72 | found.add(list[i]); 73 | flagged[list[i].code] = true; 74 | } 75 | } 76 | } 77 | } 78 | found.reverse(); 79 | return found; 80 | }, 81 | list: function() { 82 | console.log(list); 83 | }, 84 | reverse: function() { 85 | list = list.reverse(); 86 | }, 87 | set: function(i, o) { 88 | list[i] = o; 89 | } 90 | }; 91 | } 92 | 93 | var e = new Entities(); 94 | var n = e.add; 95 | -------------------------------------------------------------------------------- /tool/Hello_App_Resource_Tmpl/Resources/page/image-sprites/blank.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Hello_App_Resource_Tmpl/Resources/page/image-sprites/blank.gif -------------------------------------------------------------------------------- /tool/Hello_App_Resource_Tmpl/Resources/page/image-sprites/icons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Hello_App_Resource_Tmpl/Resources/page/image-sprites/icons.png -------------------------------------------------------------------------------- /tool/Hello_App_Resource_Tmpl/Resources/page/scrollbar-style/jquery.miniColors.css: -------------------------------------------------------------------------------- 1 | INPUT.miniColors { 2 | margin-right: 4px; 3 | } 4 | 5 | .miniColors-selector { 6 | position: absolute; 7 | width: 175px; 8 | height: 150px; 9 | background: white; 10 | border: solid 1px #bababa; 11 | -moz-box-shadow: 0 0 6px rgba(0, 0, 0, .25); 12 | -webkit-box-shadow: 0 0 6px rgba(0, 0, 0, .25); 13 | box-shadow: 0 0 6px rgba(0, 0, 0, .25); 14 | -moz-border-radius: 5px; 15 | -webkit-border-radius: 5px; 16 | border-radius: 5px; 17 | padding: 5px; 18 | z-index: 999999; 19 | } 20 | 21 | .miniColors.opacity.miniColors-selector { 22 | width: 200px; 23 | } 24 | 25 | .miniColors-selector.black { 26 | background: black; 27 | border-color: black; 28 | } 29 | 30 | .miniColors-selector.gray { 31 | background: #DDD; 32 | border-color: #EEE; 33 | } 34 | 35 | .miniColors-colors { 36 | position: absolute; 37 | top: 5px; 38 | left: 5px; 39 | width: 150px; 40 | height: 150px; 41 | background: url(images/colors.png) -40px 0 no-repeat; 42 | cursor: crosshair; 43 | } 44 | 45 | .miniColors.opacity .miniColors-colors { 46 | left: 30px; 47 | } 48 | 49 | .miniColors-hues { 50 | position: absolute; 51 | top: 5px; 52 | left: 160px; 53 | width: 20px; 54 | height: 150px; 55 | background: url(images/colors.png) 0 0 no-repeat; 56 | cursor: crosshair; 57 | } 58 | 59 | .miniColors.opacity .miniColors-hues { 60 | left: 185px; 61 | } 62 | 63 | .miniColors-opacity { 64 | position: absolute; 65 | top: 5px; 66 | left: 5px; 67 | width: 20px; 68 | height: 150px; 69 | background: url(images/colors.png) -20px 0 no-repeat; 70 | cursor: crosshair; 71 | } 72 | 73 | .miniColors-colorPicker { 74 | position: absolute; 75 | width: 11px; 76 | height: 11px; 77 | border: 1px solid black; 78 | -moz-border-radius: 11px; 79 | -webkit-border-radius: 11px; 80 | border-radius: 11px; 81 | } 82 | .miniColors-colorPicker-inner { 83 | position: absolute; 84 | top: 0; 85 | left: 0; 86 | width: 7px; 87 | height: 7px; 88 | border: 2px solid white; 89 | -moz-border-radius: 9px; 90 | -webkit-border-radius: 9px; 91 | border-radius: 9px; 92 | } 93 | 94 | .miniColors-huePicker, 95 | .miniColors-opacityPicker { 96 | position: absolute; 97 | left: -2px; 98 | width: 22px; 99 | height: 2px; 100 | border: 1px solid black; 101 | background: white; 102 | margin-top: -1px; 103 | border-radius: 2px; 104 | } 105 | 106 | .miniColors-trigger, 107 | .miniColors-triggerWrap { 108 | width: 22px; 109 | height: 22px; 110 | display: inline-block; 111 | } 112 | 113 | .miniColors-triggerWrap { 114 | background: url(images/trigger.png) -22px 0 no-repeat; 115 | } 116 | 117 | .miniColors-triggerWrap.disabled { 118 | filter: alpha(opacity=50); 119 | opacity: .5; 120 | } 121 | 122 | .miniColors-trigger { 123 | vertical-align: middle; 124 | outline: none; 125 | background: url(images/trigger.png) 0 0 no-repeat; 126 | } 127 | 128 | .miniColors-triggerWrap.disabled .miniColors-trigger { 129 | cursor: default; 130 | } -------------------------------------------------------------------------------- /tool/Hello_App_Resource_Tmpl/Resources/page/scrollbar-style/style.css: -------------------------------------------------------------------------------- 1 | html, body { margin: 0; padding: 0; font-size: 12px; font-family: 'Microsoft YaHei' 'SimSun' 'Verdana'; } 2 | body { -webkit-user-select: none; } 3 | h2, h3 { margin: 0; padding: 0; font-size: 12px; font-weight: bold; line-height: 14px; } 4 | h3 { font-size: 10px; line-height: 20px; padding: 10px 0 0 0; } 5 | dl { margin: 0; padding: 0; list-style: none; } 6 | dt { clear: both; width: 120px; } 7 | dd { margin-left: 5px; } 8 | dt, dd { float: left; } 9 | 10 | #main { padding: 10px; } 11 | #options { float: left; width: 400px; } 12 | #options > div { clear: both; margin-bottom: 5px; } 13 | #result { float: left; width: 300px; } 14 | #css { -webkit-user-select: auto; word-wrap:break-word; } 15 | #demo { width: 280px; height: 180px; margin: auto; overflow: auto; } 16 | #demo-content { } 17 | #css-wrap { width: 280px; height: 300px; overflow: auto; } 18 | .boxshadow-options label, .boxshadow-options .slider { float: left; } 19 | .boxshadow-options label { padding-right: 3px; width: 100px; } 20 | .boxshadow-options input[type="range"] { width: 120px; } 21 | .cb { clear: both; font-size: 0; height: 1px; } 22 | 23 | .slider { position: relative; } 24 | .rangevalue { width: 30px; color: white; font-size: 10px; 25 | text-align: center; font-family: Arial, sans-serif; 26 | display: block; margin: 0 0 0 -15px; 27 | position: relative; left: 50%; 28 | padding: 2px 6px; border: 1px solid black; 29 | 30 | -webkit-box-shadow: inset 0px 1px 1px 0px rgba(255, 255, 255, 0.2), 0px 2px 4px 0px rgba(0,0,0,0.4); 31 | box-shadow: inset 0px 1px 1px 0px rgba(255, 255, 255, 0.2), 0px 2px 4px 0px rgba(0,0,0,0.4); 32 | background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#222931), color-stop(100%,#181D21)); 33 | 34 | -webkit-border-radius: 5px; 35 | opacity: 0; 36 | 37 | -webkit-transition: all 0.5s ease; 38 | top: -50px; 39 | } 40 | input[type="range"] { background-color: black; width: 200px; height: 2px; } 41 | input[type="range"]:hover ~ .rangevalue,input[type="range"]:active ~ .rangevalue { 42 | opacity: 1; 43 | top: -40px; 44 | } 45 | 46 | 47 | .color-picker, .miniColors-triggerWrap { float: left; margin: 0; } 48 | -------------------------------------------------------------------------------- /tool/Hello_App_Resource_Tmpl/Resources/read.txt: -------------------------------------------------------------------------------- 1 | #在 php环境下直接 运行 index.html文件(localhost/xxx/index.html) 2 | 3 | #如果要在数据库下测试,请在mysql下运行 mydb.sql 4 | 5 | #如果要在数据库下测试 请配制数据库 dbconfig.php的用户名、密码 6 | 7 | -------------------------------------------------------------------------------- /tool/Hello_App_Resource_Tmpl/Resources/s.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Hello_App_Resource_Tmpl/Resources/s.png -------------------------------------------------------------------------------- /tool/Hello_App_Resource_Tmpl/Resources/session.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |

用SESSION 记录 刷新次数 (每刷新一次,计数器+1,在客户端会执行>=2次)

6 | 7 |

计数器:

8 | 9 | 刷新 | 清零 10 | 11 | -------------------------------------------------------------------------------- /tool/Hello_App_Resource_Tmpl/Resources/test.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tool/Hello_App_Resource_Tmpl/config.ini: -------------------------------------------------------------------------------- 1 | [cfg] 2 | url= 3 | title=Lomox 4 | mainframe=0 5 | maintop=0 6 | childframe=1 7 | childtop=0 8 | dialogsrelation=0 9 | systemtray=1 10 | trayicon=lomox.ico 11 | showloadinggif=1 12 | loadinggifwidth=60 13 | loadinggifheight=60 14 | 15 | [maindialog] 16 | hrefincurrent=0 17 | 18 | 19 | [childdialog] 20 | hrefincurrent=1 21 | -------------------------------------------------------------------------------- /tool/Resources/QtCore4.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/QtCore4.dll -------------------------------------------------------------------------------- /tool/Resources/QtGui4.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/QtGui4.dll -------------------------------------------------------------------------------- /tool/Resources/QtSvg4.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/QtSvg4.dll -------------------------------------------------------------------------------- /tool/Resources/QtXml4.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/QtXml4.dll -------------------------------------------------------------------------------- /tool/Resources/build_lx.bat: -------------------------------------------------------------------------------- 1 | rcc -binary main_res.qrc -o main.lx -------------------------------------------------------------------------------- /tool/Resources/images/btn_answer_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/images/btn_answer_hover.png -------------------------------------------------------------------------------- /tool/Resources/images/btn_answer_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/images/btn_answer_normal.png -------------------------------------------------------------------------------- /tool/Resources/images/btn_answer_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/images/btn_answer_press.png -------------------------------------------------------------------------------- /tool/Resources/images/btn_close_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/images/btn_close_hover.png -------------------------------------------------------------------------------- /tool/Resources/images/btn_close_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/images/btn_close_normal.png -------------------------------------------------------------------------------- /tool/Resources/images/btn_close_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/images/btn_close_press.png -------------------------------------------------------------------------------- /tool/Resources/images/btn_hang_up_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/images/btn_hang_up_hover.png -------------------------------------------------------------------------------- /tool/Resources/images/btn_hang_up_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/images/btn_hang_up_normal.png -------------------------------------------------------------------------------- /tool/Resources/images/btn_hang_up_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/images/btn_hang_up_press.png -------------------------------------------------------------------------------- /tool/Resources/images/btn_play_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/images/btn_play_hover.png -------------------------------------------------------------------------------- /tool/Resources/images/btn_play_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/images/btn_play_normal.png -------------------------------------------------------------------------------- /tool/Resources/images/btn_play_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/images/btn_play_press.png -------------------------------------------------------------------------------- /tool/Resources/images/btn_stop_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/images/btn_stop_hover.png -------------------------------------------------------------------------------- /tool/Resources/images/btn_stop_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/images/btn_stop_normal.png -------------------------------------------------------------------------------- /tool/Resources/images/btn_stop_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/images/btn_stop_press.png -------------------------------------------------------------------------------- /tool/Resources/images/btn_to_up_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/images/btn_to_up_hover.png -------------------------------------------------------------------------------- /tool/Resources/images/btn_to_up_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/images/btn_to_up_normal.png -------------------------------------------------------------------------------- /tool/Resources/images/btn_to_up_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/images/btn_to_up_press.png -------------------------------------------------------------------------------- /tool/Resources/images/btn_voice_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/images/btn_voice_hover.png -------------------------------------------------------------------------------- /tool/Resources/images/btn_voice_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/images/btn_voice_normal.png -------------------------------------------------------------------------------- /tool/Resources/images/btn_voice_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/images/btn_voice_press.png -------------------------------------------------------------------------------- /tool/Resources/images/close_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/images/close_hover.png -------------------------------------------------------------------------------- /tool/Resources/images/close_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/images/close_normal.png -------------------------------------------------------------------------------- /tool/Resources/images/close_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/images/close_press.png -------------------------------------------------------------------------------- /tool/Resources/images/icon_book_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/images/icon_book_hover.png -------------------------------------------------------------------------------- /tool/Resources/images/icon_book_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/images/icon_book_normal.png -------------------------------------------------------------------------------- /tool/Resources/images/icon_book_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/images/icon_book_press.png -------------------------------------------------------------------------------- /tool/Resources/images/icon_home_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/images/icon_home_hover.png -------------------------------------------------------------------------------- /tool/Resources/images/icon_home_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/images/icon_home_normal.png -------------------------------------------------------------------------------- /tool/Resources/images/icon_home_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/images/icon_home_press.png -------------------------------------------------------------------------------- /tool/Resources/images/icon_message_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/images/icon_message_hover.png -------------------------------------------------------------------------------- /tool/Resources/images/icon_message_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/images/icon_message_normal.png -------------------------------------------------------------------------------- /tool/Resources/images/icon_message_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/images/icon_message_press.png -------------------------------------------------------------------------------- /tool/Resources/images/icon_news_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/images/icon_news_hover.png -------------------------------------------------------------------------------- /tool/Resources/images/icon_news_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/images/icon_news_normal.png -------------------------------------------------------------------------------- /tool/Resources/images/icon_news_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/images/icon_news_press.png -------------------------------------------------------------------------------- /tool/Resources/images/icon_phone_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/images/icon_phone_hover.png -------------------------------------------------------------------------------- /tool/Resources/images/icon_phone_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/images/icon_phone_normal.png -------------------------------------------------------------------------------- /tool/Resources/images/icon_phone_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/images/icon_phone_press.png -------------------------------------------------------------------------------- /tool/Resources/images/icon_ring_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/images/icon_ring_hover.png -------------------------------------------------------------------------------- /tool/Resources/images/icon_ring_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/images/icon_ring_normal.png -------------------------------------------------------------------------------- /tool/Resources/images/icon_ring_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/images/icon_ring_press.png -------------------------------------------------------------------------------- /tool/Resources/images/icon_setting_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/images/icon_setting_hover.png -------------------------------------------------------------------------------- /tool/Resources/images/icon_setting_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/images/icon_setting_normal.png -------------------------------------------------------------------------------- /tool/Resources/images/icon_setting_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/images/icon_setting_press.png -------------------------------------------------------------------------------- /tool/Resources/images/min_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/images/min_hover.png -------------------------------------------------------------------------------- /tool/Resources/images/min_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/images/min_normal.png -------------------------------------------------------------------------------- /tool/Resources/images/min_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/images/min_press.png -------------------------------------------------------------------------------- /tool/Resources/images/scollBar_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/images/scollBar_hover.png -------------------------------------------------------------------------------- /tool/Resources/images/scollBar_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/images/scollBar_normal.png -------------------------------------------------------------------------------- /tool/Resources/images/scollBar_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/images/scollBar_press.png -------------------------------------------------------------------------------- /tool/Resources/images/up_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/images/up_hover.png -------------------------------------------------------------------------------- /tool/Resources/images/up_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/images/up_normal.png -------------------------------------------------------------------------------- /tool/Resources/images/up_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/images/up_press.png -------------------------------------------------------------------------------- /tool/Resources/js/main.js: -------------------------------------------------------------------------------- 1 | $(function(){ 2 | //添加窗口Resize 3 | LxExt.Dialog.setBorderDrag(true); 4 | LxExt.Dialog.borderDrag($("#MyBody"),$("#MyWindow"),5); 5 | //设置最小大小 6 | LxExt.Dialog.setMinimumSize(200,200); 7 | //窗口居中 8 | LxExt.Dialog.centerWnd(); 9 | //设置窗口的大小 10 | LxExt.Dialog.initWndWH(200,200); 11 | LxExt.Dialog.updateClientSize($("#MyBody"),30); 12 | //设置窗口标题栏目可移动 13 | LxExt.Dialog.dragRegion($(".DragTitileBar")); 14 | //添加 最小化,关闭事件 15 | $("#BtnMin").click(function(){ 16 | LxExt.Dialog.showFullScreen(); 17 | }); 18 | $("#BtnExit").click(function(){ 19 | LxExt.Dialog.closeWnd(); 20 | }); 21 | }); -------------------------------------------------------------------------------- /tool/Resources/js/stdlib/LxExt-1.0.dev.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/js/stdlib/LxExt-1.0.dev.js -------------------------------------------------------------------------------- /tool/Resources/js/stdlib/LxExt-1.0.min.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/js/stdlib/LxExt-1.0.min.js -------------------------------------------------------------------------------- /tool/Resources/main.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | lxlomoxPluginTest 6 | 7 | 8 | 9 | 10 | 27 | 28 | 29 | 30 |
31 |
lxlomoxPluginTest 32 |
33 |
34 | 35 | 36 |
37 | 38 |
39 | 40 |
41 |
42 | 43 | 44 | -------------------------------------------------------------------------------- /tool/Resources/main.lx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/main.lx -------------------------------------------------------------------------------- /tool/Resources/main_res.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | css/main.css 4 | images/btn_answer_hover.png 5 | images/btn_answer_normal.png 6 | images/btn_answer_press.png 7 | images/btn_close_hover.png 8 | images/btn_close_normal.png 9 | images/btn_close_press.png 10 | images/btn_hang_up_hover.png 11 | images/btn_hang_up_normal.png 12 | images/btn_hang_up_press.png 13 | images/btn_play_hover.png 14 | images/btn_play_normal.png 15 | images/btn_play_press.png 16 | images/btn_stop_hover.png 17 | images/btn_stop_normal.png 18 | images/btn_stop_press.png 19 | images/btn_to_up_hover.png 20 | images/btn_to_up_normal.png 21 | images/btn_to_up_press.png 22 | images/btn_voice_hover.png 23 | images/btn_voice_normal.png 24 | images/btn_voice_press.png 25 | images/close_hover.png 26 | images/close_normal.png 27 | images/close_press.png 28 | images/icon_book_hover.png 29 | images/icon_book_normal.png 30 | images/icon_book_press.png 31 | images/icon_home_hover.png 32 | images/icon_home_normal.png 33 | images/icon_home_press.png 34 | images/icon_message_hover.png 35 | images/icon_message_normal.png 36 | images/icon_message_press.png 37 | images/icon_news_hover.png 38 | images/icon_news_normal.png 39 | images/icon_news_press.png 40 | images/icon_phone_hover.png 41 | images/icon_phone_normal.png 42 | images/icon_phone_press.png 43 | images/icon_ring_hover.png 44 | images/icon_ring_normal.png 45 | images/icon_ring_press.png 46 | images/icon_setting_hover.png 47 | images/icon_setting_normal.png 48 | images/icon_setting_press.png 49 | images/min_hover.png 50 | images/min_normal.png 51 | images/min_press.png 52 | images/scollBar_hover.png 53 | images/scollBar_normal.png 54 | images/scollBar_press.png 55 | images/up_hover.png 56 | images/up_normal.png 57 | images/up_press.png 58 | js/stdlib/jquery-1.6.4.js 59 | js/stdlib/LxExt-1.0.dev.js 60 | js/stdlib/LxExt-1.0.min.js 61 | js/main.js 62 | main.html 63 | plugin.html 64 | rcc.exe 65 | 66 | 67 | -------------------------------------------------------------------------------- /tool/Resources/plugin.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | lxlomoxPluginTest 6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 |
14 |
15 |
16 | 17 |
18 |
19 | 20 | 23 | 24 | -------------------------------------------------------------------------------- /tool/Resources/qmakewrapper1.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/qmakewrapper1.dll -------------------------------------------------------------------------------- /tool/Resources/qrceditor.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/qrceditor.exe -------------------------------------------------------------------------------- /tool/Resources/qtappwrapper.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/qtappwrapper.exe -------------------------------------------------------------------------------- /tool/Resources/rcc.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caidongyun/lomox/166686a3f4556f47def753ed36d605a5901fdbfa/tool/Resources/rcc.exe -------------------------------------------------------------------------------- /删除编译垃圾文件.bat: -------------------------------------------------------------------------------- 1 | del *.obj /s 2 | del *.exp /s 3 | del *.idb /s 4 | del *.ilk /s 5 | del *.pch /s 6 | del *.trg /s 7 | del *.res /s 8 | del *.bsc /s 9 | del *.sbr /s 10 | del *.ncb /s 11 | pause 12 | --------------------------------------------------------------------------------