added icon selection dialog,

prepared PwDatabase for custom icons

git-svn-id: https://svn.code.sf.net/p/keepassx/code/trunk@65 b624d157-de02-0410-bad0-e51aec6abb33
This commit is contained in:
tariq
2006-03-30 21:11:56 +00:00
parent 3c7d617599
commit 1c513d8f3c
17 changed files with 515 additions and 177 deletions

View File

@@ -1,133 +1,151 @@
<ui version="4.0" stdsetdef="1" >
<author>Tarek Saidi</author>
<comment></comment>
<exportmacro></exportmacro>
<class>EditGroupDialog</class>
<widget class="QDialog" name="EditGroupDialog" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>302</width>
<height>105</height>
</rect>
</property>
<property name="minimumSize" >
<size>
<width>200</width>
<height>105</height>
</size>
</property>
<property name="maximumSize" >
<size>
<width>302</width>
<height>100</height>
</size>
</property>
<property name="windowTitle" >
<string>Group Properties</string>
</property>
<widget class="Line" name="line1" >
<property name="geometry" >
<rect>
<x>10</x>
<y>62</y>
<width>290</width>
<height>16</height>
</rect>
</property>
<property name="frameShape" >
<enum>QFrame::HLine</enum>
</property>
<property name="frameShadow" >
<enum>QFrame::Sunken</enum>
</property>
</widget>
<widget class="QLineEdit" name="EditTitle" >
<property name="geometry" >
<rect>
<x>70</x>
<y>10</y>
<width>230</width>
<height>21</height>
</rect>
</property>
</widget>
<widget class="QLabel" name="Label1" >
<property name="geometry" >
<rect>
<x>10</x>
<y>10</y>
<width>27</width>
<height>20</height>
</rect>
</property>
<property name="text" >
<string>Title:</string>
</property>
</widget>
<widget class="QLabel" name="Label2" >
<property name="geometry" >
<rect>
<x>10</x>
<y>40</y>
<width>43</width>
<height>20</height>
</rect>
</property>
<property name="text" >
<string>Icon:</string>
</property>
</widget>
<widget class="QComboBox" name="ComboIconPicker" >
<property name="geometry" >
<rect>
<x>70</x>
<y>40</y>
<width>50</width>
<height>21</height>
</rect>
</property>
</widget>
<widget class="QPushButton" name="ButtonCancel" >
<property name="geometry" >
<rect>
<x>226</x>
<y>80</y>
<width>70</width>
<height>20</height>
</rect>
</property>
<property name="text" >
<string>&amp;Cancel</string>
</property>
<property name="shortcut" >
<string>Alt+C</string>
</property>
</widget>
<widget class="QPushButton" name="ButtonOK" >
<property name="geometry" >
<rect>
<x>147</x>
<y>80</y>
<width>70</width>
<height>20</height>
</rect>
</property>
<property name="text" >
<string>O&amp;K</string>
</property>
<property name="shortcut" >
<string>Alt+K</string>
</property>
</widget>
<ui version="4.0" >
<author>Tarek Saidi</author>
<comment></comment>
<exportmacro></exportmacro>
<class>EditGroupDialog</class>
<widget class="QDialog" name="EditGroupDialog" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>302</width>
<height>105</height>
</rect>
</property>
<property name="minimumSize" >
<size>
<width>200</width>
<height>105</height>
</size>
</property>
<property name="maximumSize" >
<size>
<width>302</width>
<height>100</height>
</size>
</property>
<property name="windowTitle" >
<string>Group Properties</string>
</property>
<widget class="QLineEdit" name="EditTitle" >
<property name="geometry" >
<rect>
<x>70</x>
<y>10</y>
<width>230</width>
<height>21</height>
</rect>
</property>
</widget>
<layoutdefault spacing="6" margin="11" />
<pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
<tabstops>
<tabstop>EditTitle</tabstop>
<tabstop>ComboIconPicker</tabstop>
<tabstop>ButtonOK</tabstop>
<tabstop>ButtonCancel</tabstop>
</tabstops>
<widget class="QLabel" name="Label1" >
<property name="geometry" >
<rect>
<x>10</x>
<y>10</y>
<width>27</width>
<height>20</height>
</rect>
</property>
<property name="text" >
<string>Title:</string>
</property>
</widget>
<widget class="QLabel" name="Label2" >
<property name="geometry" >
<rect>
<x>10</x>
<y>40</y>
<width>43</width>
<height>20</height>
</rect>
</property>
<property name="text" >
<string>Icon:</string>
</property>
</widget>
<widget class="QComboBox" name="ComboIconPicker" >
<property name="geometry" >
<rect>
<x>70</x>
<y>40</y>
<width>50</width>
<height>21</height>
</rect>
</property>
</widget>
<widget class="QPushButton" name="ButtonCancel" >
<property name="geometry" >
<rect>
<x>227</x>
<y>77</y>
<width>70</width>
<height>24</height>
</rect>
</property>
<property name="text" >
<string>&amp;Cancel</string>
</property>
<property name="shortcut" >
<string>Alt+C</string>
</property>
</widget>
<widget class="Line" name="line1" >
<property name="geometry" >
<rect>
<x>10</x>
<y>62</y>
<width>290</width>
<height>16</height>
</rect>
</property>
<property name="frameShape" >
<enum>QFrame::HLine</enum>
</property>
<property name="frameShadow" >
<enum>QFrame::Sunken</enum>
</property>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
</widget>
<widget class="QPushButton" name="ButtonOK" >
<property name="geometry" >
<rect>
<x>147</x>
<y>77</y>
<width>70</width>
<height>24</height>
</rect>
</property>
<property name="text" >
<string>O&amp;K</string>
</property>
<property name="shortcut" >
<string>Alt+K</string>
</property>
</widget>
<widget class="QPushButton" name="Button_Icon" >
<property name="geometry" >
<rect>
<x>123</x>
<y>39</y>
<width>21</width>
<height>24</height>
</rect>
</property>
<property name="text" >
<string>></string>
</property>
</widget>
</widget>
<layoutdefault spacing="6" margin="11" />
<pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
<tabstops>
<tabstop>EditTitle</tabstop>
<tabstop>ComboIconPicker</tabstop>
<tabstop>ButtonOK</tabstop>
<tabstop>ButtonCancel</tabstop>
</tabstops>
<resources/>
<connections/>
</ui>

147
src/forms/SelectIconDlg.ui Normal file
View File

@@ -0,0 +1,147 @@
<ui version="4.0" >
<author></author>
<comment></comment>
<exportmacro></exportmacro>
<class>SelectIconDlg</class>
<widget class="QDialog" name="SelectIconDlg" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>468</width>
<height>272</height>
</rect>
</property>
<property name="windowTitle" >
<string>Dialog</string>
</property>
<widget class="QListWidget" name="List" >
<property name="geometry" >
<rect>
<x>10</x>
<y>10</y>
<width>451</width>
<height>211</height>
</rect>
</property>
<property name="horizontalScrollBarPolicy" >
<enum>Qt::ScrollBarAlwaysOff</enum>
</property>
<property name="selectionMode" >
<enum>QAbstractItemView::ExtendedSelection</enum>
</property>
<property name="iconSize" >
<size>
<width>16</width>
<height>16</height>
</size>
</property>
<property name="textElideMode" >
<enum>Qt::ElideRight</enum>
</property>
<property name="movement" >
<enum>QListView::Static</enum>
</property>
<property name="flow" >
<enum>QListView::LeftToRight</enum>
</property>
<property name="gridSize" >
<size>
<width>32</width>
<height>44</height>
</size>
</property>
<property name="viewMode" >
<enum>QListView::IconMode</enum>
</property>
</widget>
<widget class="QWidget" name="layoutWidget" >
<property name="geometry" >
<rect>
<x>10</x>
<y>230</y>
<width>451</width>
<height>33</height>
</rect>
</property>
<layout class="QHBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QPushButton" name="pushButton" >
<property name="text" >
<string>Add Custom Icon...</string>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" >
<size>
<width>131</width>
<height>31</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="Button_Ok" >
<property name="text" >
<string>Pick</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="Button_Cancel" >
<property name="text" >
<string>Cancel</string>
</property>
</widget>
</item>
</layout>
</widget>
</widget>
<pixmapfunction></pixmapfunction>
<resources/>
<connections>
<connection>
<sender>Button_Ok</sender>
<signal>clicked()</signal>
<receiver>SelectIconDlg</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel" >
<x>278</x>
<y>253</y>
</hint>
<hint type="destinationlabel" >
<x>96</x>
<y>254</y>
</hint>
</hints>
</connection>
<connection>
<sender>Button_Cancel</sender>
<signal>clicked()</signal>
<receiver>SelectIconDlg</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel" >
<x>369</x>
<y>253</y>
</hint>
<hint type="destinationlabel" >
<x>179</x>
<y>282</y>
</hint>
</hints>
</connection>
</connections>
</ui>