prepared PwDatabase for custom icons git-svn-id: https://svn.code.sf.net/p/keepassx/code/trunk@65 b624d157-de02-0410-bad0-e51aec6abb33master
parent
3c7d617599
commit
1c513d8f3c
@ -0,0 +1,26 @@ |
||||
--------------- |
||||
0.2.1 |
||||
--------------- |
||||
|
||||
--------------- |
||||
0.2.0 |
||||
--------------- |
||||
-ported whole application from Qt3 to Qt4 |
||||
(better performance, less memory usage, ready for KDE4) |
||||
-improved Mac OS X support |
||||
-added Drag&Drop support |
||||
-multiple seclection mode for entries |
||||
-improved loading performance for large databases |
||||
-faster in-memory encryption |
||||
-search field in toolbar now works |
||||
-mainwindow size, splitter position and column sizes are restored at start-up |
||||
-added option for alternating row colors |
||||
-improved key/password dialog |
||||
-removed language dialog - program now uses system's default language |
||||
-loading translation files for Qt (e.g. file dialogs) |
||||
-added text export function |
||||
-added option "Never" for expire dates. |
||||
-fixed problem with hex. key files |
||||
-fixed problem with damaged file attachments after various entry operations |
||||
-fixed segmentation fault when using new icons with higher index |
||||
-fixed error when saving empty databases |
@ -0,0 +1,55 @@ |
||||
Name: keepass |
||||
Summary: KeePassX Cross Platform Password Manager |
||||
Version: 0.2.0 |
||||
Release: 1 |
||||
License: GPL |
||||
Group: Security |
||||
Source: keepass-0.2.0.tar.gz |
||||
|
||||
|
||||
BuildRoot: /home/tarek/Desktop/KeePassX-RPM-Build |
||||
Packager: Tarek Saidi |
||||
Distribution: KeePassX |
||||
Prefix: /usr/local |
||||
Url: http://keepass.berlios.de |
||||
|
||||
Vendor: Tarek Saidi |
||||
|
||||
|
||||
%description |
||||
KeePassX is a free/open-source password manager or safe which helps you to manage your passwords in a secure way. You can put all your passwords in one database, which is locked with one master key or a key-disk. So you only have to remember one single master password or insert the key-disk to unlock the whole database. The databases are encrypted using the best and most secure encryption algorithms currently known (AES and Twofish). |
||||
|
||||
%prep |
||||
rm -rf $RPM_BUILD_ROOT |
||||
mkdir $RPM_BUILD_ROOT |
||||
|
||||
%setup -q |
||||
|
||||
%build |
||||
qmake PREFIX=$RPM_BUILD_ROOT%{prefix} |
||||
make |
||||
|
||||
%install |
||||
make install |
||||
|
||||
cd $RPM_BUILD_ROOT |
||||
|
||||
find . -type d -fprint $RPM_BUILD_DIR/file.list.%{name}.dirs |
||||
find . -type f -fprint $RPM_BUILD_DIR/file.list.%{name}.files.tmp |
||||
sed '/\/man\//s/$/.gz/g' $RPM_BUILD_DIR/file.list.%{name}.files.tmp > $RPM_BUILD_DIR/file.list.%{name}.files |
||||
find . -type l -fprint $RPM_BUILD_DIR/file.list.%{name}.libs |
||||
sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' $RPM_BUILD_DIR/file.list.%{name}.dirs > $RPM_BUILD_DIR/file.list.%{name} |
||||
sed 's,^\.,\%attr(-\,root\,root) ,' $RPM_BUILD_DIR/file.list.%{name}.files >> $RPM_BUILD_DIR/file.list.%{name} |
||||
sed 's,^\.,\%attr(-\,root\,root) ,' $RPM_BUILD_DIR/file.list.%{name}.libs >> $RPM_BUILD_DIR/file.list.%{name} |
||||
|
||||
%clean |
||||
rm -rf $RPM_BUILD_ROOT |
||||
rm -rf $RPM_BUILD_DIR/file.list.%{name} |
||||
rm -rf $RPM_BUILD_DIR/file.list.%{name}.libs |
||||
rm -rf $RPM_BUILD_DIR/file.list.%{name}.files |
||||
rm -rf $RPM_BUILD_DIR/file.list.%{name}.files.tmp |
||||
rm -rf $RPM_BUILD_DIR/file.list.%{name}.dirs |
||||
|
||||
%files -f ../file.list.%{name} |
||||
|
||||
%defattr(-,root,root,0755) |
@ -0,0 +1,30 @@ |
||||
/***************************************************************************
|
||||
* Copyright (C) 2005-2006 by Tarek Saidi * |
||||
* tarek.saidi@arcor.de * |
||||
* * |
||||
* This program is free software; you can redistribute it and/or modify * |
||||
* it under the terms of the GNU General Public License as published by * |
||||
* the Free Software Foundation; either version 2 of the License, or * |
||||
* (at your option) any later version. * |
||||
* * |
||||
* This program is distributed in the hope that it will be useful, * |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of * |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
||||
* GNU General Public License for more details. * |
||||
* * |
||||
* You should have received a copy of the GNU General Public License * |
||||
* along with this program; if not, write to the * |
||||
* Free Software Foundation, Inc., * |
||||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * |
||||
***************************************************************************/ |
||||
|
||||
#include "SelectIconDlg.h" |
||||
|
||||
|
||||
CSelectIconDlg::CSelectIconDlg(Database* database,QWidget* parent,const char* name, bool modal, Qt::WFlags fl):QDialog(parent,name,modal,fl){ |
||||
setupUi(this); |
||||
db=database; |
||||
for(int i=0; i<NUM_CLIENT_ICONS; i++){ |
||||
List->addItem(new QListWidgetItem(QIcon(EntryIcons[i]),QString::number(i))); |
||||
} |
||||
} |
@ -0,0 +1,40 @@ |
||||
/***************************************************************************
|
||||
* Copyright (C) 2005-2006 by Tarek Saidi * |
||||
* tarek.saidi@arcor.de * |
||||
* * |
||||
* This program is free software; you can redistribute it and/or modify * |
||||
* it under the terms of the GNU General Public License as published by * |
||||
* the Free Software Foundation; either version 2 of the License, or * |
||||
* (at your option) any later version. * |
||||
* * |
||||
* This program is distributed in the hope that it will be useful, * |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of * |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
||||
* GNU General Public License for more details. * |
||||
* * |
||||
* You should have received a copy of the GNU General Public License * |
||||
* along with this program; if not, write to the * |
||||
* Free Software Foundation, Inc., * |
||||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * |
||||
***************************************************************************/ |
||||
|
||||
#ifndef _SELECT_ICON_DLG_ |
||||
#define _SELECT_ICON_DLG_ |
||||
|
||||
#include "main.h" |
||||
#include "Database.h" |
||||
#include "ui_SelectIconDlg.h" |
||||
|
||||
class CSelectIconDlg:public QDialog, public Ui_SelectIconDlg{ |
||||
Q_OBJECT |
||||
public: |
||||
CSelectIconDlg(Database* db,QWidget* parent = 0, const char* name = 0, bool modal = false, Qt::WFlags fl = 0); |
||||
|
||||
private: |
||||
Database* db; |
||||
|
||||
|
||||
}; |
||||
|
||||
|
||||
#endif |
@ -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>&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&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>&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&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> |
||||
|
@ -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> |
Reference in new issue