修改样式
@ -12,13 +12,14 @@ Item{
|
||||
property var dotSize: Qt.size(6,6)
|
||||
property bool showZero: false
|
||||
property int count: 0
|
||||
property color tcolor: Colors.white
|
||||
property color color: control.accentColor.defaultBrushFor(control.FluentUI.dark)
|
||||
implicitHeight: dot ? rect_dot.height : label_count.height
|
||||
implicitWidth: dot ? rect_dot.width : label_count.width
|
||||
Label {
|
||||
id: label_count
|
||||
font: Typography.caption
|
||||
color: Colors.white
|
||||
color: tcolor
|
||||
leftPadding: 2
|
||||
rightPadding: 2
|
||||
topPadding: 0
|
||||
|
@ -47,6 +47,7 @@ Item{
|
||||
property alias selectionModel: selected_items
|
||||
signal rowClicked(var model)
|
||||
signal rowRightClicked(var model)
|
||||
|
||||
property Component cellBackground: Component{
|
||||
Rectangle{
|
||||
color: {
|
||||
|
@ -165,6 +165,68 @@ set(RESOURCES_FILES
|
||||
res/image/icons/gc.png
|
||||
res/image/icons/mime.png
|
||||
res/image/antlogo.png
|
||||
res/image/components/rect.png
|
||||
res/image/components/down.png
|
||||
res/image/icons/point.png
|
||||
res/image/icons/circle.png
|
||||
res/image/icons/curve.png
|
||||
res/image/icons/ellipse.png
|
||||
res/image/icons/free_area.png
|
||||
res/image/icons/free_line.png
|
||||
res/image/icons/polygon.png
|
||||
res/image/icons/triangle.png
|
||||
res/image/icons/edit.png
|
||||
res/image/icons/delete.png
|
||||
res/image/components/edit.png
|
||||
res/image/img/map.png
|
||||
res/image/avatars/300-1.jpg
|
||||
res/image/img/lg.png
|
||||
res/image/components/home_black.png
|
||||
res/image/components/home_white.png
|
||||
res/image/components/folder_black.png
|
||||
res/image/components/folder_white.png
|
||||
res/image/components/tab_gf.png
|
||||
res/image/components/user_add.png
|
||||
res/image/components/plus.png
|
||||
res/image/components/ico_project.png
|
||||
res/image/components/ico_tp_car.png
|
||||
res/image/components/ico_tp_com.png
|
||||
res/image/components/ico_tp_ele.png
|
||||
res/image/components/ico_tp_h2.png
|
||||
res/image/img/style1.png
|
||||
res/image/img/add.png
|
||||
res/image/components/tb_menu.png
|
||||
res/image/components/ico_loc.png
|
||||
res/image/components/ico_line.png
|
||||
res/image/components/ico_area.png
|
||||
res/image/components/ico_plugin.png
|
||||
res/image/components/expand.png
|
||||
res/image/components/icon_tree_line.png
|
||||
res/image/components/ico_tree_area.png
|
||||
res/image/components/ico_tree_line.png
|
||||
res/image/components/ico_tree_car.png
|
||||
res/image/components/ico_tree_folder.png
|
||||
res/image/components/tree/ico_eye.png
|
||||
res/image/components/tree/ico_unlock.png
|
||||
res/image/components/map/ico_route.png
|
||||
res/image/components/map/nav_bike.png
|
||||
res/image/components/map/nav_car.png
|
||||
res/image/components/map/nav_truck.png
|
||||
res/image/components/map/nav_walk.png
|
||||
res/image/components/map/ico_exchange.png
|
||||
res/image/components/map/ico_plus.png
|
||||
res/image/components/map/ico_add_lay.png
|
||||
res/image/components/map/nav_start.png
|
||||
res/image/components/map/nav_stop.png
|
||||
res/image/components/map/nav_right.png
|
||||
res/image/components/map/nav_right_zhi.png
|
||||
res/image/components/map/nav_mid.png
|
||||
res/image/components/ico_lg.png
|
||||
res/image/components/ico_zs.png
|
||||
res/image/components/ico_cy.png
|
||||
res/image/components/ico_font.png
|
||||
res/image/components/map/ico_phone.png
|
||||
res/image/components/map/ico_nav.png
|
||||
Gallery_zh_CN.qm
|
||||
Gallery_en_US.qm
|
||||
)
|
||||
@ -253,6 +315,29 @@ qt_add_qml_module(${PROJECT_NAME}
|
||||
QML_FILES res/qml/component/MyTabButton.qml
|
||||
QML_FILES res/qml/component/MyTabBar.qml
|
||||
QML_FILES res/qml/component/base/IconDropdownButton.qml
|
||||
QML_FILES res/qml/component/base/BaseMenuItem.qml
|
||||
QML_FILES res/qml/dataconnect/DataConnect.qml
|
||||
QML_FILES res/qml/component/RightMainIntro.qml
|
||||
QML_FILES res/qml/component/base/MyTabButton.qml
|
||||
QML_FILES res/qml/component/base/MyDialogWindow.qml
|
||||
QML_FILES res/qml/component/base/MyContentDialog.qml
|
||||
QML_FILES res/qml/component/base/StyleButton.qml
|
||||
QML_FILES res/qml/component/base/ProjectList.qml
|
||||
QML_FILES res/qml/component/base/MyBreadcrumb.qml
|
||||
QML_FILES res/qml/component/base/MyTreeView.qml
|
||||
QML_FILES res/qml/component/SearchRoute.qml
|
||||
QML_FILES res/qml/component/base/MyImgButton.qml
|
||||
QML_FILES res/qml/component/nav/RouteResult.qml
|
||||
QML_FILES res/qml/component/nav/SearchInput.qml
|
||||
QML_FILES res/qml/component/RightCommon.qml
|
||||
QML_FILES res/qml/component/base/CommonTitle.qml
|
||||
QML_FILES res/qml/component/window/SearchNearWindow.qml
|
||||
QML_FILES res/qml/component/window/AddPointWindow.qml
|
||||
QML_FILES res/qml/component/base/AttachmenButton.qml
|
||||
QML_FILES res/qml/component/window/FontEditWindow.qml
|
||||
QML_FILES res/qml/component/window/EditIconWindow.qml
|
||||
QML_FILES res/qml/component/base/AnchorChoose.qml
|
||||
QML_FILES res/qml/component/base/IconRadioGroup.qml
|
||||
)
|
||||
|
||||
if (NOT CMAKE_SYSTEM_NAME STREQUAL "Emscripten")
|
||||
|
@ -127,50 +127,6 @@
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>LeftMainMenu</name>
|
||||
<message>
|
||||
<location filename="res/qml/component/LeftMainMenu.qml" line="125"/>
|
||||
<source>Key</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>LeftProjectMenu</name>
|
||||
<message>
|
||||
<location filename="res/qml/component/LeftProjectMenu.qml" line="176"/>
|
||||
<source>Key</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>LoginScreen</name>
|
||||
<message>
|
||||
<location filename="res/qml/screen/LoginScreen.qml" line="25"/>
|
||||
<source>Please enter the credentials:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/qml/screen/LoginScreen.qml" line="31"/>
|
||||
<source>Username</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/qml/screen/LoginScreen.qml" line="38"/>
|
||||
<source>Password</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/qml/screen/LoginScreen.qml" line="48"/>
|
||||
<source>Cancel</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/qml/screen/LoginScreen.qml" line="58"/>
|
||||
<source>Login</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>MainScreen</name>
|
||||
<message>
|
||||
@ -738,22 +694,22 @@
|
||||
<context>
|
||||
<name>MyAppBar</name>
|
||||
<message>
|
||||
<location filename="res/qml/component/MyAppBar.qml" line="213"/>
|
||||
<location filename="res/qml/component/MyAppBar.qml" line="304"/>
|
||||
<source>Minimized</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/qml/component/MyAppBar.qml" line="230"/>
|
||||
<location filename="res/qml/component/MyAppBar.qml" line="321"/>
|
||||
<source>Restore</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/qml/component/MyAppBar.qml" line="230"/>
|
||||
<location filename="res/qml/component/MyAppBar.qml" line="321"/>
|
||||
<source>Maximized</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/qml/component/MyAppBar.qml" line="260"/>
|
||||
<location filename="res/qml/component/MyAppBar.qml" line="351"/>
|
||||
<source>Close</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
@ -1069,7 +1025,7 @@
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/qml/page/T_FileTreeData.qml" line="125"/>
|
||||
<location filename="res/qml/page/T_FileTreeData.qml" line="190"/>
|
||||
<source>Key</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
@ -1964,57 +1920,57 @@
|
||||
<context>
|
||||
<name>ToolBar</name>
|
||||
<message>
|
||||
<location filename="res/qml/component/ToolBar.qml" line="20"/>
|
||||
<location filename="res/qml/component/ToolBar.qml" line="24"/>
|
||||
<source>File</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/qml/component/ToolBar.qml" line="21"/>
|
||||
<location filename="res/qml/component/ToolBar.qml" line="25"/>
|
||||
<source>New...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/qml/component/ToolBar.qml" line="22"/>
|
||||
<location filename="res/qml/component/ToolBar.qml" line="26"/>
|
||||
<source>Open...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/qml/component/ToolBar.qml" line="23"/>
|
||||
<location filename="res/qml/component/ToolBar.qml" line="27"/>
|
||||
<source>Save</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/qml/component/ToolBar.qml" line="26"/>
|
||||
<location filename="res/qml/component/ToolBar.qml" line="30"/>
|
||||
<source>Quit</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/qml/component/ToolBar.qml" line="29"/>
|
||||
<location filename="res/qml/component/ToolBar.qml" line="33"/>
|
||||
<source>Search</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/qml/component/ToolBar.qml" line="35"/>
|
||||
<location filename="res/qml/component/ToolBar.qml" line="39"/>
|
||||
<source>Disable</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/qml/component/ToolBar.qml" line="39"/>
|
||||
<location filename="res/qml/component/ToolBar.qml" line="43"/>
|
||||
<source>Check</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/qml/component/ToolBar.qml" line="42"/>
|
||||
<location filename="res/qml/component/ToolBar.qml" line="46"/>
|
||||
<source>Save As...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/qml/component/ToolBar.qml" line="43"/>
|
||||
<location filename="res/qml/component/ToolBar.qml" line="47"/>
|
||||
<source>Doc</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/qml/component/ToolBar.qml" line="44"/>
|
||||
<location filename="res/qml/component/ToolBar.qml" line="48"/>
|
||||
<source>PDF</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
|
@ -221,6 +221,17 @@
|
||||
<translation type="obsolete">一位热衷于烹饪实验的厨师。</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>IconDropdownButton</name>
|
||||
<message>
|
||||
<source>Quit</source>
|
||||
<translation type="obsolete">退出</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Search</source>
|
||||
<translation type="obsolete">搜索</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>LeftMainMenu</name>
|
||||
<message>
|
||||
@ -228,9 +239,8 @@
|
||||
<translation type="obsolete">文件树</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/qml/component/LeftMainMenu.qml" line="125"/>
|
||||
<source>Key</source>
|
||||
<translation type="unfinished">唯一值</translation>
|
||||
<translation type="obsolete">唯一值</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
@ -243,37 +253,31 @@
|
||||
<context>
|
||||
<name>LeftProjectMenu</name>
|
||||
<message>
|
||||
<location filename="res/qml/component/LeftProjectMenu.qml" line="176"/>
|
||||
<source>Key</source>
|
||||
<translation type="unfinished">唯一值</translation>
|
||||
<translation type="obsolete">唯一值</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>LoginScreen</name>
|
||||
<message>
|
||||
<location filename="res/qml/screen/LoginScreen.qml" line="25"/>
|
||||
<source>Please enter the credentials:</source>
|
||||
<translation type="unfinished">请输入凭据:</translation>
|
||||
<translation type="obsolete">请输入凭据:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/qml/screen/LoginScreen.qml" line="31"/>
|
||||
<source>Username</source>
|
||||
<translation type="unfinished">用户名</translation>
|
||||
<translation type="obsolete">用户名</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/qml/screen/LoginScreen.qml" line="38"/>
|
||||
<source>Password</source>
|
||||
<translation type="unfinished">密码</translation>
|
||||
<translation type="obsolete">密码</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/qml/screen/LoginScreen.qml" line="48"/>
|
||||
<source>Cancel</source>
|
||||
<translation type="unfinished">取消</translation>
|
||||
<translation type="obsolete">取消</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/qml/screen/LoginScreen.qml" line="58"/>
|
||||
<source>Login</source>
|
||||
<translation type="unfinished">登录</translation>
|
||||
<translation type="obsolete">登录</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
@ -1069,22 +1073,22 @@
|
||||
<context>
|
||||
<name>MyAppBar</name>
|
||||
<message>
|
||||
<location filename="res/qml/component/MyAppBar.qml" line="213"/>
|
||||
<location filename="res/qml/component/MyAppBar.qml" line="304"/>
|
||||
<source>Minimized</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/qml/component/MyAppBar.qml" line="230"/>
|
||||
<location filename="res/qml/component/MyAppBar.qml" line="321"/>
|
||||
<source>Restore</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/qml/component/MyAppBar.qml" line="230"/>
|
||||
<location filename="res/qml/component/MyAppBar.qml" line="321"/>
|
||||
<source>Maximized</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/qml/component/MyAppBar.qml" line="260"/>
|
||||
<location filename="res/qml/component/MyAppBar.qml" line="351"/>
|
||||
<source>Close</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
@ -1438,7 +1442,7 @@
|
||||
<translation type="unfinished">文件树</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/qml/page/T_FileTreeData.qml" line="125"/>
|
||||
<location filename="res/qml/page/T_FileTreeData.qml" line="190"/>
|
||||
<source>Key</source>
|
||||
<translation type="unfinished">唯一值</translation>
|
||||
</message>
|
||||
@ -2697,57 +2701,57 @@
|
||||
<context>
|
||||
<name>ToolBar</name>
|
||||
<message>
|
||||
<location filename="res/qml/component/ToolBar.qml" line="20"/>
|
||||
<location filename="res/qml/component/ToolBar.qml" line="24"/>
|
||||
<source>File</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/qml/component/ToolBar.qml" line="21"/>
|
||||
<location filename="res/qml/component/ToolBar.qml" line="25"/>
|
||||
<source>New...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/qml/component/ToolBar.qml" line="22"/>
|
||||
<location filename="res/qml/component/ToolBar.qml" line="26"/>
|
||||
<source>Open...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/qml/component/ToolBar.qml" line="23"/>
|
||||
<location filename="res/qml/component/ToolBar.qml" line="27"/>
|
||||
<source>Save</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/qml/component/ToolBar.qml" line="26"/>
|
||||
<location filename="res/qml/component/ToolBar.qml" line="30"/>
|
||||
<source>Quit</source>
|
||||
<translation type="unfinished">退出</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/qml/component/ToolBar.qml" line="29"/>
|
||||
<location filename="res/qml/component/ToolBar.qml" line="33"/>
|
||||
<source>Search</source>
|
||||
<translation type="unfinished">搜索</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/qml/component/ToolBar.qml" line="35"/>
|
||||
<location filename="res/qml/component/ToolBar.qml" line="39"/>
|
||||
<source>Disable</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/qml/component/ToolBar.qml" line="39"/>
|
||||
<location filename="res/qml/component/ToolBar.qml" line="43"/>
|
||||
<source>Check</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/qml/component/ToolBar.qml" line="42"/>
|
||||
<location filename="res/qml/component/ToolBar.qml" line="46"/>
|
||||
<source>Save As...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/qml/component/ToolBar.qml" line="43"/>
|
||||
<location filename="res/qml/component/ToolBar.qml" line="47"/>
|
||||
<source>Doc</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/qml/component/ToolBar.qml" line="44"/>
|
||||
<location filename="res/qml/component/ToolBar.qml" line="48"/>
|
||||
<source>PDF</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
|
BIN
Gallery/res/image/avatars/300-1.jpg
Normal file
After Width: | Height: | Size: 34 KiB |
BIN
Gallery/res/image/avatars/300-10.jpg
Normal file
After Width: | Height: | Size: 62 KiB |
BIN
Gallery/res/image/avatars/300-11.jpg
Normal file
After Width: | Height: | Size: 39 KiB |
BIN
Gallery/res/image/avatars/300-12.jpg
Normal file
After Width: | Height: | Size: 34 KiB |
BIN
Gallery/res/image/avatars/300-13.jpg
Normal file
After Width: | Height: | Size: 45 KiB |
BIN
Gallery/res/image/avatars/300-14.jpg
Normal file
After Width: | Height: | Size: 52 KiB |
BIN
Gallery/res/image/avatars/300-15.jpg
Normal file
After Width: | Height: | Size: 30 KiB |
BIN
Gallery/res/image/avatars/300-16.jpg
Normal file
After Width: | Height: | Size: 54 KiB |
BIN
Gallery/res/image/avatars/300-17.jpg
Normal file
After Width: | Height: | Size: 36 KiB |
BIN
Gallery/res/image/avatars/300-18.jpg
Normal file
After Width: | Height: | Size: 44 KiB |
BIN
Gallery/res/image/avatars/300-19.jpg
Normal file
After Width: | Height: | Size: 35 KiB |
BIN
Gallery/res/image/avatars/300-2.jpg
Normal file
After Width: | Height: | Size: 30 KiB |
BIN
Gallery/res/image/avatars/300-20.jpg
Normal file
After Width: | Height: | Size: 43 KiB |
BIN
Gallery/res/image/avatars/300-21.jpg
Normal file
After Width: | Height: | Size: 46 KiB |
BIN
Gallery/res/image/avatars/300-22.jpg
Normal file
After Width: | Height: | Size: 44 KiB |
BIN
Gallery/res/image/avatars/300-23.jpg
Normal file
After Width: | Height: | Size: 35 KiB |
BIN
Gallery/res/image/avatars/300-24.jpg
Normal file
After Width: | Height: | Size: 65 KiB |
BIN
Gallery/res/image/avatars/300-25.jpg
Normal file
After Width: | Height: | Size: 40 KiB |
BIN
Gallery/res/image/avatars/300-26.jpg
Normal file
After Width: | Height: | Size: 41 KiB |
BIN
Gallery/res/image/avatars/300-27.jpg
Normal file
After Width: | Height: | Size: 6.0 KiB |
BIN
Gallery/res/image/avatars/300-28.jpg
Normal file
After Width: | Height: | Size: 30 KiB |
BIN
Gallery/res/image/avatars/300-29.jpg
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
Gallery/res/image/avatars/300-3.jpg
Normal file
After Width: | Height: | Size: 40 KiB |
BIN
Gallery/res/image/avatars/300-30.jpg
Normal file
After Width: | Height: | Size: 26 KiB |
BIN
Gallery/res/image/avatars/300-4.jpg
Normal file
After Width: | Height: | Size: 40 KiB |
BIN
Gallery/res/image/avatars/300-5.jpg
Normal file
After Width: | Height: | Size: 34 KiB |
BIN
Gallery/res/image/avatars/300-6.jpg
Normal file
After Width: | Height: | Size: 30 KiB |
BIN
Gallery/res/image/avatars/300-7.jpg
Normal file
After Width: | Height: | Size: 47 KiB |
BIN
Gallery/res/image/avatars/300-8.jpg
Normal file
After Width: | Height: | Size: 36 KiB |
BIN
Gallery/res/image/avatars/300-9.jpg
Normal file
After Width: | Height: | Size: 57 KiB |
BIN
Gallery/res/image/avatars/blank.png
Normal file
After Width: | Height: | Size: 21 KiB |
BIN
Gallery/res/image/components/down.png
Normal file
After Width: | Height: | Size: 209 B |
BIN
Gallery/res/image/components/edit.png
Normal file
After Width: | Height: | Size: 45 KiB |
BIN
Gallery/res/image/components/expand.png
Normal file
After Width: | Height: | Size: 41 KiB |
BIN
Gallery/res/image/components/folder_black.png
Normal file
After Width: | Height: | Size: 239 B |
BIN
Gallery/res/image/components/folder_white.png
Normal file
After Width: | Height: | Size: 160 B |
BIN
Gallery/res/image/components/home_black.png
Normal file
After Width: | Height: | Size: 274 B |
BIN
Gallery/res/image/components/home_white.png
Normal file
After Width: | Height: | Size: 267 B |
BIN
Gallery/res/image/components/ico_area.png
Normal file
After Width: | Height: | Size: 275 B |
BIN
Gallery/res/image/components/ico_cy.png
Normal file
After Width: | Height: | Size: 434 B |
BIN
Gallery/res/image/components/ico_font.png
Normal file
After Width: | Height: | Size: 338 B |
BIN
Gallery/res/image/components/ico_lg.png
Normal file
After Width: | Height: | Size: 418 B |
BIN
Gallery/res/image/components/ico_line.png
Normal file
After Width: | Height: | Size: 269 B |
BIN
Gallery/res/image/components/ico_loc.png
Normal file
After Width: | Height: | Size: 43 KiB |
BIN
Gallery/res/image/components/ico_plugin.png
Normal file
After Width: | Height: | Size: 267 B |
BIN
Gallery/res/image/components/ico_project.png
Normal file
After Width: | Height: | Size: 452 B |
BIN
Gallery/res/image/components/ico_tp_car.png
Normal file
After Width: | Height: | Size: 388 B |
BIN
Gallery/res/image/components/ico_tp_com.png
Normal file
After Width: | Height: | Size: 369 B |
BIN
Gallery/res/image/components/ico_tp_ele.png
Normal file
After Width: | Height: | Size: 452 B |
BIN
Gallery/res/image/components/ico_tp_h2.png
Normal file
After Width: | Height: | Size: 408 B |
BIN
Gallery/res/image/components/ico_tree_area.png
Normal file
After Width: | Height: | Size: 207 B |
BIN
Gallery/res/image/components/ico_tree_car.png
Normal file
After Width: | Height: | Size: 230 B |
BIN
Gallery/res/image/components/ico_tree_folder.png
Normal file
After Width: | Height: | Size: 151 B |
BIN
Gallery/res/image/components/ico_tree_line.png
Normal file
After Width: | Height: | Size: 264 B |
BIN
Gallery/res/image/components/ico_zs.png
Normal file
After Width: | Height: | Size: 351 B |
BIN
Gallery/res/image/components/icon_tree_line.png
Normal file
After Width: | Height: | Size: 170 B |
BIN
Gallery/res/image/components/map/ico_add_lay.png
Normal file
After Width: | Height: | Size: 471 B |
BIN
Gallery/res/image/components/map/ico_exchange.png
Normal file
After Width: | Height: | Size: 260 B |
BIN
Gallery/res/image/components/map/ico_nav.png
Normal file
After Width: | Height: | Size: 431 B |
BIN
Gallery/res/image/components/map/ico_phone.png
Normal file
After Width: | Height: | Size: 185 B |
BIN
Gallery/res/image/components/map/ico_plus.png
Normal file
After Width: | Height: | Size: 422 B |
BIN
Gallery/res/image/components/map/ico_route.png
Normal file
After Width: | Height: | Size: 43 KiB |
BIN
Gallery/res/image/components/map/nav_bike.png
Normal file
After Width: | Height: | Size: 308 B |
BIN
Gallery/res/image/components/map/nav_car.png
Normal file
After Width: | Height: | Size: 43 KiB |
BIN
Gallery/res/image/components/map/nav_mid.png
Normal file
After Width: | Height: | Size: 832 B |
BIN
Gallery/res/image/components/map/nav_right.png
Normal file
After Width: | Height: | Size: 427 B |
BIN
Gallery/res/image/components/map/nav_right_zhi.png
Normal file
After Width: | Height: | Size: 403 B |
BIN
Gallery/res/image/components/map/nav_start.png
Normal file
After Width: | Height: | Size: 781 B |
BIN
Gallery/res/image/components/map/nav_stop.png
Normal file
After Width: | Height: | Size: 775 B |
BIN
Gallery/res/image/components/map/nav_truck.png
Normal file
After Width: | Height: | Size: 281 B |
BIN
Gallery/res/image/components/map/nav_walk.png
Normal file
After Width: | Height: | Size: 243 B |
BIN
Gallery/res/image/components/plus.png
Normal file
After Width: | Height: | Size: 275 B |
BIN
Gallery/res/image/components/rect.png
Normal file
After Width: | Height: | Size: 239 B |
BIN
Gallery/res/image/components/tab_gf.png
Normal file
After Width: | Height: | Size: 452 B |
BIN
Gallery/res/image/components/tb_menu.png
Normal file
After Width: | Height: | Size: 260 B |
BIN
Gallery/res/image/components/tree/ico_eye.png
Normal file
After Width: | Height: | Size: 43 KiB |
BIN
Gallery/res/image/components/tree/ico_unlock.png
Normal file
After Width: | Height: | Size: 43 KiB |
BIN
Gallery/res/image/components/user_add.png
Normal file
After Width: | Height: | Size: 321 B |
BIN
Gallery/res/image/icons/circle.png
Normal file
After Width: | Height: | Size: 44 KiB |
BIN
Gallery/res/image/icons/curve.png
Normal file
After Width: | Height: | Size: 44 KiB |
BIN
Gallery/res/image/icons/delete.png
Normal file
After Width: | Height: | Size: 377 B |
BIN
Gallery/res/image/icons/edit.png
Normal file
After Width: | Height: | Size: 455 B |
BIN
Gallery/res/image/icons/ellipse.png
Normal file
After Width: | Height: | Size: 43 KiB |
BIN
Gallery/res/image/icons/free_area.png
Normal file
After Width: | Height: | Size: 43 KiB |
BIN
Gallery/res/image/icons/free_line.png
Normal file
After Width: | Height: | Size: 43 KiB |
BIN
Gallery/res/image/icons/point.png
Normal file
After Width: | Height: | Size: 43 KiB |
BIN
Gallery/res/image/icons/polygon.png
Normal file
After Width: | Height: | Size: 43 KiB |
BIN
Gallery/res/image/icons/triangle.png
Normal file
After Width: | Height: | Size: 44 KiB |
BIN
Gallery/res/image/img/add.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
Gallery/res/image/img/lg.png
Normal file
After Width: | Height: | Size: 505 KiB |
BIN
Gallery/res/image/img/map.png
Normal file
After Width: | Height: | Size: 149 KiB |
BIN
Gallery/res/image/img/style1.png
Normal file
After Width: | Height: | Size: 13 KiB |
@ -40,6 +40,6 @@ Starter {
|
||||
"/page": R.resolvedUrl("res/qml/window/PageWindow.qml"),
|
||||
"/testDesign": R.resolvedUrl("res/qml/window/TestDesignWindow.qml")
|
||||
}
|
||||
WindowRouter.go("/")
|
||||
WindowRouter.go("/") // newFolder, searchNear
|
||||
}
|
||||
}
|
||||
|
100
Gallery/res/qml/DB/database.js
Normal file
@ -0,0 +1,100 @@
|
||||
var db;
|
||||
|
||||
function initDatabase() {
|
||||
db = LocalStorage.openDatabaseSync("AntSEV", "1.0", "基本数据看", 100000);
|
||||
try {
|
||||
db.transaction(function (tx) {
|
||||
tx.executeSql(`CREATE TABLE ProjectMenuTree (
|
||||
id TEXT PRIMARY KEY,
|
||||
pid TEXT, -- 父级ID,可以用于表示层级关系
|
||||
project_id TEXT NOT NULL, -- 项目ID,非空
|
||||
title TEXT NOT NULL, -- 标题,非空
|
||||
ico TEXT -- 图标,可以存储图标路径或名称
|
||||
);`);
|
||||
|
||||
tx.executeSql(`INSERT INTO ProjectMenuTree (id,pid,project_id,title,ico) VALUES
|
||||
('1','-1','1','节点1','ico_tree_folder.png'),
|
||||
('2','-1','1','节点2','ico_tree_folder.png'),
|
||||
('3','-1','1','节点3','ico_tree_folder.png'),
|
||||
('4','6','1','节点61','ico_tree_folder.png'),
|
||||
('5','-1','1','节点5','ico_tree_folder.png'),
|
||||
('6','7','1','节点6','ico_tree_line.png'),
|
||||
('7','3','1','节点节点节点节点613','ico_tree_car.png');`)
|
||||
})
|
||||
} catch (err) {
|
||||
// console.log("Error creating table in database: " + err)
|
||||
};
|
||||
}
|
||||
|
||||
function buildTree(data) {
|
||||
// 创建一个映射表,用于快速查找每个节点
|
||||
const map = new Map();
|
||||
data.forEach(item => {
|
||||
map.set(item.id, { id: item.id, title: item.title, ico: item.ico, items: [] }); // 初始化每个节点,并添加 children 属性
|
||||
});
|
||||
|
||||
// 构建树结构
|
||||
const tree = [];
|
||||
data.forEach(item => {
|
||||
if (item.pid !== "-1") { // 如果有父节点
|
||||
const parent = map.get(item.pid);
|
||||
if (parent) {
|
||||
parent.items.push(map.get(item.id)); // 将当前节点添加到父节点的 children 中
|
||||
}
|
||||
} else {
|
||||
tree.push(map.get(item.id)); // 如果没有父节点,则为根节点
|
||||
}
|
||||
});
|
||||
|
||||
return tree;
|
||||
}
|
||||
|
||||
function readMenuTree(project_id) {
|
||||
var res = []
|
||||
var datas = []
|
||||
if (!db) { return; }
|
||||
db.transaction(function (tx) {
|
||||
var result = tx.executeSql('select * from ProjectMenuTree where project_id=?', [project_id]);
|
||||
if (result.rows.length > 0) {
|
||||
res = result.rows
|
||||
for (let i = 0; i < res.length; i++) {
|
||||
let d = res.item(i)
|
||||
datas.push(d)
|
||||
}
|
||||
res = buildTree(datas)
|
||||
|
||||
} else {
|
||||
res = []
|
||||
}
|
||||
})
|
||||
console.log(JSON.stringify(res))
|
||||
return res
|
||||
}
|
||||
|
||||
function readData(name) {
|
||||
var res = "";
|
||||
if (!db) { return; }
|
||||
db.transaction(function (tx) {
|
||||
var result = tx.executeSql('select value from data where name=?', [name]);
|
||||
if (result.rows.length > 0) {
|
||||
res = result.rows.item(0).value;
|
||||
} else {
|
||||
res = "Unknown";
|
||||
}
|
||||
})
|
||||
return res
|
||||
}
|
||||
|
||||
function insertData(name, value) {
|
||||
var res = "";
|
||||
if (!db) { return; }
|
||||
db.transaction(function (tx) {
|
||||
var result = tx.executeSql('INSERT OR REPLACE INTO data VALUES (?,?);', [name, value]);
|
||||
if (result.rowsAffected > 0) {
|
||||
res = "OK";
|
||||
} else {
|
||||
res = "Error";
|
||||
}
|
||||
})
|
||||
return res
|
||||
}
|