diff options
author | Klaas Freitag <freitag@owncloud.com> | 2015-01-21 17:03:01 +0300 |
---|---|---|
committer | Klaas Freitag <freitag@owncloud.com> | 2015-01-21 17:05:23 +0300 |
commit | 95f7e83c5c567030ddda1052db0332d970fb5dbc (patch) | |
tree | 32e12eebe97c8c375e70a20c6074ce21edbe142f /src/gui/sharedialog.ui | |
parent | d8b621d05fcaf35a9c7a763e7987991ea15f90d5 (diff) |
Sharedialog: Some more refinements after the merge of the branch.
- Some dialog changes: Made it less vertical space comsuming
- Some variable cleanups
- Allow to share files that are not within the synced dir by
copying them to the root of a sync dir first.
Diffstat (limited to 'src/gui/sharedialog.ui')
-rw-r--r-- | src/gui/sharedialog.ui | 337 |
1 files changed, 156 insertions, 181 deletions
diff --git a/src/gui/sharedialog.ui b/src/gui/sharedialog.ui index ef1628212..7c66f14cf 100644 --- a/src/gui/sharedialog.ui +++ b/src/gui/sharedialog.ui @@ -6,214 +6,189 @@ <rect> <x>0</x> <y>0</y> - <width>454</width> - <height>558</height> + <width>281</width> + <height>385</height> </rect> </property> <property name="windowTitle"> <string>Share NewDocument.odt</string> </property> - <layout class="QVBoxLayout" name="verticalLayout"> - <item> - <layout class="QVBoxLayout" name="verticalLayout_2"> - <property name="sizeConstraint"> - <enum>QLayout::SetFixedSize</enum> + <layout class="QGridLayout" name="gridLayout_3"> + <item row="0" column="0" colspan="2"> + <widget class="QGroupBox" name="groupBox"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> </property> - <item> - <widget class="QGroupBox" name="groupBox"> - <property name="title"> - <string>Share Info</string> - </property> - <layout class="QHBoxLayout" name="horizontalLayout_6"> - <item> - <layout class="QHBoxLayout" name="horizontalLayout_7"> - <item> - <widget class="QLabel" name="label_icon"> - <property name="text"> - <string>TextLabel</string> - </property> - </widget> - </item> - <item> - <layout class="QVBoxLayout" name="verticalLayout_3"> - <item> - <widget class="QLabel" name="label_name"> - <property name="font"> - <font> - <weight>75</weight> - <bold>true</bold> - </font> - </property> - <property name="text"> - <string>Name:</string> - </property> - </widget> - </item> - <item> - <widget class="QLineEdit" name="lineEdit_name"> - <property name="enabled"> - <bool>true</bool> - </property> - <property name="readOnly"> - <bool>true</bool> - </property> - </widget> - </item> - <item> - <widget class="QLabel" name="label_type"> - <property name="font"> - <font> - <weight>75</weight> - <bold>true</bold> - </font> - </property> - <property name="text"> - <string>Type:</string> - </property> - </widget> - </item> - <item> - <widget class="QLineEdit" name="lineEdit_type"> - <property name="readOnly"> - <bool>true</bool> - </property> - </widget> - </item> - <item> - <widget class="QLabel" name="label_localPath"> - <property name="font"> - <font> - <weight>75</weight> - <bold>true</bold> - </font> - </property> - <property name="text"> - <string>Local path:</string> - </property> - </widget> - </item> - <item> - <widget class="QLineEdit" name="lineEdit_localPath"> - <property name="enabled"> - <bool>true</bool> - </property> - <property name="readOnly"> - <bool>true</bool> - </property> - </widget> - </item> - <item> - <widget class="QLabel" name="label_sharePath"> - <property name="font"> - <font> - <weight>75</weight> - <bold>true</bold> - </font> - </property> - <property name="text"> - <string>OwnCloud Path:</string> - </property> - </widget> - </item> - <item> - <widget class="QLineEdit" name="lineEdit_sharePath"> - <property name="enabled"> - <bool>true</bool> - </property> - <property name="readOnly"> - <bool>true</bool> - </property> - </widget> - </item> - </layout> - </item> - </layout> + <property name="title"> + <string>Share Info</string> + </property> + <layout class="QGridLayout" name="gridLayout_2"> + <item row="0" column="0"> + <layout class="QGridLayout" name="gridLayout"> + <item row="0" column="0" rowspan="2"> + <widget class="QLabel" name="label_icon"> + <property name="text"> + <string>TextLabel</string> + </property> + </widget> + </item> + <item row="0" column="1"> + <widget class="QLabel" name="label_name"> + <property name="sizePolicy"> + <sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="font"> + <font> + <weight>75</weight> + <bold>true</bold> + </font> + </property> + <property name="text"> + <string>share label</string> + </property> + </widget> + </item> + <item row="0" column="2" rowspan="2"> + <widget class="QProgressIndicator" name="pi_share" native="true"/> + </item> + <item row="1" column="1"> + <widget class="QLabel" name="label_sharePath"> + <property name="sizePolicy"> + <sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="font"> + <font> + <weight>50</weight> + <bold>false</bold> + </font> + </property> + <property name="text"> + <string>OwnCloud Path:</string> + </property> + </widget> </item> </layout> - </widget> - </item> + </item> + </layout> + </widget> + </item> + <item row="1" column="0"> + <layout class="QHBoxLayout" name="horizontalLayout_shareLink"> <item> - <layout class="QHBoxLayout" name="horizontalLayout_shareLink"> - <item> - <widget class="QCheckBox" name="checkBox_shareLink"> - <property name="text"> - <string>Share link</string> - </property> - </widget> - </item> - </layout> + <widget class="QCheckBox" name="checkBox_shareLink"> + <property name="text"> + <string>Share link</string> + </property> + </widget> </item> - <item> - <widget class="QWidget" name="widget_shareLink" native="true"> - <layout class="QVBoxLayout" name="verticalLayout_6"> - <property name="margin"> - <number>0</number> + </layout> + </item> + <item row="2" column="0" colspan="2"> + <widget class="QWidget" name="widget_shareLink" native="true"> + <layout class="QVBoxLayout" name="verticalLayout_6"> + <property name="margin"> + <number>0</number> + </property> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_3"> + <property name="sizeConstraint"> + <enum>QLayout::SetDefaultConstraint</enum> </property> <item> - <layout class="QHBoxLayout" name="horizontalLayout_3"> - <property name="sizeConstraint"> - <enum>QLayout::SetDefaultConstraint</enum> + <widget class="QLineEdit" name="lineEdit_shareLink"> + <property name="readOnly"> + <bool>true</bool> </property> - <item> - <widget class="QLineEdit" name="lineEdit_shareLink"> - <property name="readOnly"> - <bool>true</bool> - </property> - </widget> - </item> - <item> - <widget class="QPushButton" name="pushButton_copy"> - <property name="text"> - <string/> - </property> - </widget> - </item> - </layout> + </widget> </item> <item> - <layout class="QHBoxLayout" name="horizontalLayout_password"> - <item> - <widget class="QCheckBox" name="checkBox_password"> - <property name="text"> - <string>Set password</string> - </property> - </widget> - </item> - </layout> + <widget class="QPushButton" name="pushButton_copy"> + <property name="text"> + <string/> + </property> + </widget> </item> + </layout> + </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_password"> <item> - <layout class="QHBoxLayout" name="horizontalLayout_14"> - <item> - <widget class="QLineEdit" name="lineEdit_password"> - <property name="echoMode"> - <enum>QLineEdit::Password</enum> - </property> - </widget> - </item> - </layout> + <widget class="QCheckBox" name="checkBox_password"> + <property name="text"> + <string>Set password</string> + </property> + </widget> </item> + </layout> + </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_14"> <item> - <layout class="QHBoxLayout" name="horizontalLayout_expire"> - <item> - <widget class="QCheckBox" name="checkBox_expire"> - <property name="text"> - <string>Set expiry date</string> - </property> - </widget> - </item> - </layout> + <widget class="QLineEdit" name="lineEdit_password"> + <property name="echoMode"> + <enum>QLineEdit::Password</enum> + </property> + </widget> </item> + </layout> + </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_expire"> <item> - <widget class="QCalendarWidget" name="calendar"/> + <widget class="QCheckBox" name="checkBox_expire"> + <property name="text"> + <string>Set expiry date</string> + </property> + </widget> </item> </layout> - </widget> - </item> - </layout> + </item> + <item> + <widget class="QCalendarWidget" name="calendar"/> + </item> + </layout> + </widget> + </item> + <item row="3" column="1"> + <spacer name="verticalSpacer"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>40</height> + </size> + </property> + </spacer> + </item> + <item row="4" column="0"> + <widget class="QLabel" name="errorLabel"> + <property name="text"> + <string>TextLabel</string> + </property> + </widget> </item> </layout> </widget> <layoutdefault spacing="6" margin="11"/> + <customwidgets> + <customwidget> + <class>QProgressIndicator</class> + <extends>QWidget</extends> + <header>QProgressIndicator.h</header> + <container>1</container> + </customwidget> + </customwidgets> <resources/> <connections/> </ui> |