add lock window function, and did some improvements for the whole structure
This commit is contained in:
		@@ -1,5 +1,10 @@
 | 
			
		||||
{
 | 
			
		||||
    "account": {
 | 
			
		||||
        "Fan": "Ka2trNyfHPci26UGt3bVyvFjNuUoW9/0QcBVOR79KIw="
 | 
			
		||||
    }
 | 
			
		||||
    "username": "admin",
 | 
			
		||||
    "login_password": "MkzWVYJoL5o2wDJOsExlS+qCElrJj+P6Rxiy89XwP7I=",
 | 
			
		||||
    "unlock_password": "MkzWVYJoL5o2wDJOsExlS+qCElrJj+P6Rxiy89XwP7I=",
 | 
			
		||||
    "code_dict": [4, 11, 4, 31, 22, 12, 19, 23, 7, 16, 7, 23, 1, 8, 7, 18, 27, 32, 28, 25, 7, 32, 9, 15, 2, 32, 0, 12, 26, 15, 14, 17],
 | 
			
		||||
    "minimum_password_length": 8,
 | 
			
		||||
    "maximum_db_number": 10,
 | 
			
		||||
    "api_ali": "",
 | 
			
		||||
    "api_wechat": ""
 | 
			
		||||
}
 | 
			
		||||
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							@@ -1,19 +1,19 @@
 | 
			
		||||
<?xml version="1.0" encoding="UTF-8"?>
 | 
			
		||||
<ui version="4.0">
 | 
			
		||||
 <class>MainWindow</class>
 | 
			
		||||
 <widget class="QMainWindow" name="MainWindow">
 | 
			
		||||
 <class>App</class>
 | 
			
		||||
 <widget class="QMainWindow" name="App">
 | 
			
		||||
  <property name="geometry">
 | 
			
		||||
   <rect>
 | 
			
		||||
    <x>0</x>
 | 
			
		||||
    <y>0</y>
 | 
			
		||||
    <width>1100</width>
 | 
			
		||||
    <height>550</height>
 | 
			
		||||
    <width>769</width>
 | 
			
		||||
    <height>356</height>
 | 
			
		||||
   </rect>
 | 
			
		||||
  </property>
 | 
			
		||||
  <property name="minimumSize">
 | 
			
		||||
   <size>
 | 
			
		||||
    <width>1100</width>
 | 
			
		||||
    <height>550</height>
 | 
			
		||||
    <width>0</width>
 | 
			
		||||
    <height>0</height>
 | 
			
		||||
   </size>
 | 
			
		||||
  </property>
 | 
			
		||||
  <property name="font">
 | 
			
		||||
@@ -25,67 +25,203 @@
 | 
			
		||||
  <property name="windowTitle">
 | 
			
		||||
   <string>Toolbox</string>
 | 
			
		||||
  </property>
 | 
			
		||||
  <widget class="QWidget" name="centralwidget"/>
 | 
			
		||||
  <widget class="QMenuBar" name="menubar">
 | 
			
		||||
   <property name="geometry">
 | 
			
		||||
    <rect>
 | 
			
		||||
     <x>0</x>
 | 
			
		||||
     <y>0</y>
 | 
			
		||||
     <width>1100</width>
 | 
			
		||||
     <height>33</height>
 | 
			
		||||
    </rect>
 | 
			
		||||
   </property>
 | 
			
		||||
   <widget class="QMenu" name="menu">
 | 
			
		||||
    <property name="title">
 | 
			
		||||
     <string>文件</string>
 | 
			
		||||
    </property>
 | 
			
		||||
    <addaction name="action_4"/>
 | 
			
		||||
    <addaction name="action_3"/>
 | 
			
		||||
   </widget>
 | 
			
		||||
   <widget class="QMenu" name="menu_2">
 | 
			
		||||
    <property name="title">
 | 
			
		||||
     <string>帮助</string>
 | 
			
		||||
    </property>
 | 
			
		||||
    <addaction name="action_2"/>
 | 
			
		||||
   </widget>
 | 
			
		||||
   <widget class="QMenu" name="menu_3">
 | 
			
		||||
    <property name="title">
 | 
			
		||||
     <string>日志</string>
 | 
			
		||||
    </property>
 | 
			
		||||
   </widget>
 | 
			
		||||
   <addaction name="menu"/>
 | 
			
		||||
   <addaction name="menu_3"/>
 | 
			
		||||
   <addaction name="menu_2"/>
 | 
			
		||||
  <widget class="QWidget" name="centralwidget">
 | 
			
		||||
   <layout class="QVBoxLayout" name="verticalLayout">
 | 
			
		||||
    <item>
 | 
			
		||||
     <layout class="QHBoxLayout" name="horizontalLayout" stretch="1,5">
 | 
			
		||||
      <item>
 | 
			
		||||
       <widget class="QListWidget" name="lw_navigation">
 | 
			
		||||
        <item>
 | 
			
		||||
         <property name="text">
 | 
			
		||||
          <string>个人</string>
 | 
			
		||||
         </property>
 | 
			
		||||
        </item>
 | 
			
		||||
        <item>
 | 
			
		||||
         <property name="text">
 | 
			
		||||
          <string>实用</string>
 | 
			
		||||
         </property>
 | 
			
		||||
        </item>
 | 
			
		||||
        <item>
 | 
			
		||||
         <property name="text">
 | 
			
		||||
          <string>效率</string>
 | 
			
		||||
         </property>
 | 
			
		||||
        </item>
 | 
			
		||||
        <item>
 | 
			
		||||
         <property name="text">
 | 
			
		||||
          <string>开发</string>
 | 
			
		||||
         </property>
 | 
			
		||||
        </item>
 | 
			
		||||
        <item>
 | 
			
		||||
         <property name="text">
 | 
			
		||||
          <string>设计</string>
 | 
			
		||||
         </property>
 | 
			
		||||
        </item>
 | 
			
		||||
        <item>
 | 
			
		||||
         <property name="text">
 | 
			
		||||
          <string>工作</string>
 | 
			
		||||
         </property>
 | 
			
		||||
        </item>
 | 
			
		||||
       </widget>
 | 
			
		||||
      </item>
 | 
			
		||||
      <item>
 | 
			
		||||
       <widget class="QStackedWidget" name="sw_pages">
 | 
			
		||||
        <property name="currentIndex">
 | 
			
		||||
         <number>0</number>
 | 
			
		||||
        </property>
 | 
			
		||||
        <widget class="QWidget" name="page">
 | 
			
		||||
         <widget class="QLabel" name="label_3">
 | 
			
		||||
          <property name="geometry">
 | 
			
		||||
           <rect>
 | 
			
		||||
            <x>110</x>
 | 
			
		||||
            <y>70</y>
 | 
			
		||||
            <width>54</width>
 | 
			
		||||
            <height>16</height>
 | 
			
		||||
           </rect>
 | 
			
		||||
          </property>
 | 
			
		||||
          <property name="text">
 | 
			
		||||
           <string>1</string>
 | 
			
		||||
          </property>
 | 
			
		||||
         </widget>
 | 
			
		||||
        </widget>
 | 
			
		||||
        <widget class="QWidget" name="page_2">
 | 
			
		||||
         <widget class="QLabel" name="label_2">
 | 
			
		||||
          <property name="geometry">
 | 
			
		||||
           <rect>
 | 
			
		||||
            <x>100</x>
 | 
			
		||||
            <y>130</y>
 | 
			
		||||
            <width>54</width>
 | 
			
		||||
            <height>16</height>
 | 
			
		||||
           </rect>
 | 
			
		||||
          </property>
 | 
			
		||||
          <property name="text">
 | 
			
		||||
           <string>2</string>
 | 
			
		||||
          </property>
 | 
			
		||||
         </widget>
 | 
			
		||||
        </widget>
 | 
			
		||||
        <widget class="QWidget" name="page_3">
 | 
			
		||||
         <widget class="QLabel" name="label">
 | 
			
		||||
          <property name="geometry">
 | 
			
		||||
           <rect>
 | 
			
		||||
            <x>130</x>
 | 
			
		||||
            <y>70</y>
 | 
			
		||||
            <width>54</width>
 | 
			
		||||
            <height>16</height>
 | 
			
		||||
           </rect>
 | 
			
		||||
          </property>
 | 
			
		||||
          <property name="text">
 | 
			
		||||
           <string>3</string>
 | 
			
		||||
          </property>
 | 
			
		||||
         </widget>
 | 
			
		||||
        </widget>
 | 
			
		||||
       </widget>
 | 
			
		||||
      </item>
 | 
			
		||||
     </layout>
 | 
			
		||||
    </item>
 | 
			
		||||
   </layout>
 | 
			
		||||
  </widget>
 | 
			
		||||
  <widget class="QStatusBar" name="statusbar"/>
 | 
			
		||||
  <action name="actionExit">
 | 
			
		||||
  <widget class="QToolBar" name="toolBar">
 | 
			
		||||
   <property name="windowTitle">
 | 
			
		||||
    <string>toolBar</string>
 | 
			
		||||
   </property>
 | 
			
		||||
   <property name="movable">
 | 
			
		||||
    <bool>false</bool>
 | 
			
		||||
   </property>
 | 
			
		||||
   <attribute name="toolBarArea">
 | 
			
		||||
    <enum>TopToolBarArea</enum>
 | 
			
		||||
   </attribute>
 | 
			
		||||
   <attribute name="toolBarBreak">
 | 
			
		||||
    <bool>false</bool>
 | 
			
		||||
   </attribute>
 | 
			
		||||
   <addaction name="ac_homepage"/>
 | 
			
		||||
   <addaction name="ac_settings"/>
 | 
			
		||||
   <addaction name="ac_logs"/>
 | 
			
		||||
   <addaction name="ac_about"/>
 | 
			
		||||
   <addaction name="ac_caging"/>
 | 
			
		||||
   <addaction name="ac_quit"/>
 | 
			
		||||
  </widget>
 | 
			
		||||
  <action name="ac_homepage">
 | 
			
		||||
   <property name="text">
 | 
			
		||||
    <string>Exit</string>
 | 
			
		||||
    <string>主页</string>
 | 
			
		||||
   </property>
 | 
			
		||||
   <property name="toolTip">
 | 
			
		||||
    <string>Ctrl+Alt+H</string>
 | 
			
		||||
   </property>
 | 
			
		||||
   <property name="shortcut">
 | 
			
		||||
    <string>Ctrl+Alt+H</string>
 | 
			
		||||
   </property>
 | 
			
		||||
   <property name="menuRole">
 | 
			
		||||
    <enum>QAction::MenuRole::NoRole</enum>
 | 
			
		||||
   </property>
 | 
			
		||||
  </action>
 | 
			
		||||
  <action name="action">
 | 
			
		||||
  <action name="ac_settings">
 | 
			
		||||
   <property name="text">
 | 
			
		||||
    <string>设置</string>
 | 
			
		||||
   </property>
 | 
			
		||||
   <property name="toolTip">
 | 
			
		||||
    <string>Ctrl+Alt+S</string>
 | 
			
		||||
   </property>
 | 
			
		||||
   <property name="shortcut">
 | 
			
		||||
    <string>Ctrl+Alt+S</string>
 | 
			
		||||
   </property>
 | 
			
		||||
   <property name="menuRole">
 | 
			
		||||
    <enum>QAction::MenuRole::NoRole</enum>
 | 
			
		||||
   </property>
 | 
			
		||||
  </action>
 | 
			
		||||
  <action name="ac_logs">
 | 
			
		||||
   <property name="text">
 | 
			
		||||
    <string>日志</string>
 | 
			
		||||
   </property>
 | 
			
		||||
   <property name="toolTip">
 | 
			
		||||
    <string>Ctrl+Alt+L</string>
 | 
			
		||||
   </property>
 | 
			
		||||
   <property name="shortcut">
 | 
			
		||||
    <string>Ctrl+Alt+L</string>
 | 
			
		||||
   </property>
 | 
			
		||||
   <property name="menuRole">
 | 
			
		||||
    <enum>QAction::MenuRole::NoRole</enum>
 | 
			
		||||
   </property>
 | 
			
		||||
  </action>
 | 
			
		||||
  <action name="ac_about">
 | 
			
		||||
   <property name="text">
 | 
			
		||||
    <string>关于</string>
 | 
			
		||||
   </property>
 | 
			
		||||
  </action>
 | 
			
		||||
  <action name="actionExit_2">
 | 
			
		||||
   <property name="text">
 | 
			
		||||
    <string>Exit</string>
 | 
			
		||||
   <property name="toolTip">
 | 
			
		||||
    <string>Ctrl+Alt+A</string>
 | 
			
		||||
   </property>
 | 
			
		||||
   <property name="shortcut">
 | 
			
		||||
    <string>Ctrl+Alt+A</string>
 | 
			
		||||
   </property>
 | 
			
		||||
   <property name="menuRole">
 | 
			
		||||
    <enum>QAction::MenuRole::NoRole</enum>
 | 
			
		||||
   </property>
 | 
			
		||||
  </action>
 | 
			
		||||
  <action name="action_2">
 | 
			
		||||
   <property name="text">
 | 
			
		||||
    <string>关于</string>
 | 
			
		||||
   </property>
 | 
			
		||||
  </action>
 | 
			
		||||
  <action name="action_3">
 | 
			
		||||
  <action name="ac_quit">
 | 
			
		||||
   <property name="text">
 | 
			
		||||
    <string>退出</string>
 | 
			
		||||
   </property>
 | 
			
		||||
   <property name="toolTip">
 | 
			
		||||
    <string>Ctrl+Alt+Q</string>
 | 
			
		||||
   </property>
 | 
			
		||||
   <property name="shortcut">
 | 
			
		||||
    <string>Ctrl+Alt+Q</string>
 | 
			
		||||
   </property>
 | 
			
		||||
   <property name="menuRole">
 | 
			
		||||
    <enum>QAction::MenuRole::NoRole</enum>
 | 
			
		||||
   </property>
 | 
			
		||||
  </action>
 | 
			
		||||
  <action name="action_4">
 | 
			
		||||
  <action name="ac_caging">
 | 
			
		||||
   <property name="text">
 | 
			
		||||
    <string>设置</string>
 | 
			
		||||
    <string>锁定</string>
 | 
			
		||||
   </property>
 | 
			
		||||
   <property name="toolTip">
 | 
			
		||||
    <string>Ctrl+Alt+C</string>
 | 
			
		||||
   </property>
 | 
			
		||||
   <property name="shortcut">
 | 
			
		||||
    <string>Ctrl+Alt+C</string>
 | 
			
		||||
   </property>
 | 
			
		||||
   <property name="menuRole">
 | 
			
		||||
    <enum>QAction::MenuRole::NoRole</enum>
 | 
			
		||||
   </property>
 | 
			
		||||
  </action>
 | 
			
		||||
 </widget>
 | 
			
		||||
 
 | 
			
		||||
@@ -183,6 +183,9 @@
 | 
			
		||||
           <property name="text">
 | 
			
		||||
            <string>登录</string>
 | 
			
		||||
           </property>
 | 
			
		||||
           <property name="autoDefault">
 | 
			
		||||
            <bool>true</bool>
 | 
			
		||||
           </property>
 | 
			
		||||
          </widget>
 | 
			
		||||
         </item>
 | 
			
		||||
         <item>
 | 
			
		||||
@@ -197,6 +200,9 @@
 | 
			
		||||
           <property name="text">
 | 
			
		||||
            <string>取消</string>
 | 
			
		||||
           </property>
 | 
			
		||||
           <property name="autoDefault">
 | 
			
		||||
            <bool>true</bool>
 | 
			
		||||
           </property>
 | 
			
		||||
          </widget>
 | 
			
		||||
         </item>
 | 
			
		||||
        </layout>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user