Facebook integration: improve dialog layout

I'm not very good with these layouts, but this seems much more informative
and easier to use.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2014-12-29 11:58:38 -08:00
parent cab320201b
commit dd51b434e6

View file

@ -6,94 +6,145 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>400</width> <width>475</width>
<height>300</height> <height>416</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
<string>Dialog</string> <string>Dialog</string>
</property> </property>
<layout class="QGridLayout" name="gridLayout"> <widget class="QDialogButtonBox" name="buttonBox">
<item row="2" column="0"> <property name="geometry">
<widget class="QLineEdit" name="album"/> <rect>
</item> <x>290</x>
<item row="1" column="0"> <y>380</y>
<widget class="QLabel" name="label_2"> <width>166</width>
<property name="text"> <height>22</height>
<string>Folder</string> </rect>
</property> </property>
</widget> <property name="orientation">
</item> <enum>Qt::Horizontal</enum>
<item row="1" column="1" rowspan="9"> </property>
<widget class="QPlainTextEdit" name="text"/> <property name="standardButtons">
</item> <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
<item row="5" column="0"> </property>
<widget class="QCheckBox" name="duration"> </widget>
<property name="text"> <widget class="QWidget" name="layoutWidget">
<string>Duration</string> <property name="geometry">
</property> <rect>
</widget> <x>10</x>
</item> <y>15</y>
<item row="6" column="0"> <width>451</width>
<widget class="QCheckBox" name="Location"> <height>361</height>
<property name="text"> </rect>
<string>Location</string> </property>
</property> <layout class="QGridLayout" name="gridLayout" rowstretch="0,1,0,0,0,0,0,0,0,0,0">
</widget> <property name="leftMargin">
</item> <number>1</number>
<item row="7" column="0"> </property>
<widget class="QCheckBox" name="Divemaster"> <property name="topMargin">
<property name="text"> <number>1</number>
<string>Divemaster</string> </property>
</property> <property name="rightMargin">
</widget> <number>1</number>
</item> </property>
<item row="8" column="0"> <property name="bottomMargin">
<widget class="QCheckBox" name="Buddy"> <number>1</number>
<property name="text"> </property>
<string>Buddy</string> <item row="1" column="0" colspan="2">
</property> <widget class="QLabel" name="label_4">
</widget> <property name="text">
</item> <string>The text to the right will be posted as the description with your profile picture to Facebook. The album name is required (the profile picture will be posted to that album).</string>
<item row="4" column="0"> </property>
<widget class="QCheckBox" name="date"> <property name="alignment">
<property name="text"> <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
<string>Date and time</string> </property>
</property> <property name="wordWrap">
</widget> <bool>true</bool>
</item> </property>
<item row="9" column="0"> </widget>
<widget class="QCheckBox" name="Notes"> </item>
<property name="text"> <item row="2" column="0">
<string>Notes</string> <widget class="QLabel" name="label_2">
</property> <property name="text">
</widget> <string>Album</string>
</item> </property>
<item row="0" column="0" colspan="2"> </widget>
<widget class="QLabel" name="label"> </item>
<property name="text"> <item row="3" column="0">
<string>Preview Message</string> <widget class="QLineEdit" name="album">
</property> <property name="toolTip">
</widget> <string>The profile picture will be posted in this album (required)</string>
</item> </property>
<item row="10" column="0" colspan="2"> </widget>
<widget class="QDialogButtonBox" name="buttonBox"> </item>
<property name="orientation"> <item row="4" column="0">
<enum>Qt::Horizontal</enum> <widget class="QLabel" name="label_3">
</property> <property name="text">
<property name="standardButtons"> <string>Include</string>
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set> </property>
</property> </widget>
</widget> </item>
</item> <item row="5" column="0">
<item row="3" column="0"> <widget class="QCheckBox" name="date">
<widget class="QLabel" name="label_3"> <property name="text">
<property name="text"> <string>Date and time</string>
<string>Include</string> </property>
</property> </widget>
</widget> </item>
</item> <item row="6" column="0">
</layout> <widget class="QCheckBox" name="duration">
<property name="text">
<string>Duration</string>
</property>
</widget>
</item>
<item row="7" column="0">
<widget class="QCheckBox" name="Location">
<property name="text">
<string>Location</string>
</property>
</widget>
</item>
<item row="8" column="0">
<widget class="QCheckBox" name="Divemaster">
<property name="text">
<string>Divemaster</string>
</property>
</widget>
</item>
<item row="9" column="0">
<widget class="QCheckBox" name="Buddy">
<property name="text">
<string>Buddy</string>
</property>
</widget>
</item>
<item row="10" column="0">
<widget class="QCheckBox" name="Notes">
<property name="text">
<string>Notes</string>
</property>
</widget>
</item>
<item row="0" column="0" colspan="2">
<widget class="QLabel" name="label">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Facebook post preview</string>
</property>
</widget>
</item>
<item row="2" column="1" rowspan="9">
<widget class="QPlainTextEdit" name="text"/>
</item>
</layout>
</widget>
</widget> </widget>
<resources/> <resources/>
<connections> <connections>