diff options
author | saturneric <[email protected]> | 2024-01-01 09:15:25 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-01-01 09:15:25 +0000 |
commit | 1cdba285be9bebd9b793fc6ae0369d201a0e713b (patch) | |
tree | 6f38e86b19044ba9ecbe9a520e150dd49cb992a8 /ui/FilePage.ui | |
parent | feat: fully test basical operations of archive and file (diff) | |
download | GpgFrontend-1cdba285be9bebd9b793fc6ae0369d201a0e713b.tar.gz GpgFrontend-1cdba285be9bebd9b793fc6ae0369d201a0e713b.zip |
feat: improve file browser's functions and tidy up codes
Diffstat (limited to 'ui/FilePage.ui')
-rw-r--r-- | ui/FilePage.ui | 126 |
1 files changed, 51 insertions, 75 deletions
diff --git a/ui/FilePage.ui b/ui/FilePage.ui index 184e6120..c42afb81 100644 --- a/ui/FilePage.ui +++ b/ui/FilePage.ui @@ -6,8 +6,8 @@ <rect> <x>0</x> <y>0</y> - <width>798</width> - <height>476</height> + <width>858</width> + <height>64</height> </rect> </property> <property name="sizePolicy"> @@ -52,12 +52,27 @@ <enum>QLayout::SetMaximumSize</enum> </property> <item> - <layout class="QHBoxLayout" name="horizontalLayout_2" stretch="0,0,0,0"> + <layout class="QHBoxLayout" name="horizontalLayout_2" stretch="0,0,0,0,0"> + <property name="spacing"> + <number>0</number> + </property> <property name="sizeConstraint"> <enum>QLayout::SetDefaultConstraint</enum> </property> + <property name="leftMargin"> + <number>5</number> + </property> + <property name="rightMargin"> + <number>5</number> + </property> <item> <widget class="QLineEdit" name="pathEdit"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> <property name="tabletTracking"> <bool>false</bool> </property> @@ -70,7 +85,33 @@ </widget> </item> <item> + <widget class="QPushButton" name="newDirButton"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string/> + </property> + <property name="icon"> + <iconset resource="../gpgfrontend.qrc"> + <normaloff>:/new_directory.png</normaloff>:/new_directory.png</iconset> + </property> + <property name="flat"> + <bool>true</bool> + </property> + </widget> + </item> + <item> <widget class="QPushButton" name="refreshButton"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> <property name="text"> <string/> </property> @@ -85,6 +126,12 @@ </item> <item> <widget class="QPushButton" name="upPathButton"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> <property name="text"> <string/> </property> @@ -126,84 +173,13 @@ </layout> </item> <item> - <widget class="QTreeView" name="fileTreeView"> - <property name="contextMenuPolicy"> - <enum>Qt::CustomContextMenu</enum> - </property> - <property name="acceptDrops"> - <bool>true</bool> - </property> - <property name="autoFillBackground"> - <bool>false</bool> - </property> - <property name="dragDropMode"> - <enum>QAbstractItemView::InternalMove</enum> - </property> - <property name="uniformRowHeights"> - <bool>true</bool> - </property> - <property name="sortingEnabled"> - <bool>true</bool> - </property> - <property name="animated"> - <bool>true</bool> - </property> - <attribute name="headerCascadingSectionResizes"> - <bool>true</bool> - </attribute> - <attribute name="headerShowSortIndicator" stdset="0"> - <bool>true</bool> - </attribute> - </widget> + <layout class="QVBoxLayout" name="trewViewLayout"/> </item> </layout> </item> </layout> </item> </layout> - <action name="actionOpenFile"> - <property name="text"> - <string>OpenFile</string> - </property> - </action> - <action name="actionRenameFile"> - <property name="text"> - <string>RenameFile</string> - </property> - </action> - <action name="actionDeleteFile"> - <property name="text"> - <string>DeleteFile</string> - </property> - </action> - <action name="actionCalculateHash"> - <property name="text"> - <string>CalculateHash</string> - </property> - </action> - <action name="actionMakeDirectory"> - <property name="text"> - <string>MakeDirectory</string> - </property> - </action> - <action name="actionCreateEmptyFile"> - <property name="text"> - <string>CreateEmptyFile</string> - </property> - </action> - <action name="actionCompressFiles"> - <property name="text"> - <string>CompressFiles</string> - </property> - </action> - <action name="actionOpenWithSystemDefaultApplication"> - <property name="text"> - <string>OpenWithSystemDefaultApplication</string> - </property> - <property name="toolTip"> - <string>OpenWithSystemDefaultApplication</string> - </property> - </action> </widget> <resources> <include location="../gpgfrontend.qrc"/> |