keepassx:keepassx.git
5 years agoBump version to 2.0 alpha 1. 2.0-alpha1
Felix Geyer [Wed, 2 May 2012 21:06:37 +0000 (23:06 +0200)]
Bump version to 2.0 alpha 1.

5 years agoFix GPL version number in the about dialog.
Felix Geyer [Wed, 2 May 2012 20:43:24 +0000 (22:43 +0200)]
Fix GPL version number in the about dialog.

5 years agoSet proper window title for DatabaseOpenDialog.
Felix Geyer [Wed, 2 May 2012 20:43:00 +0000 (22:43 +0200)]
Set proper window title for DatabaseOpenDialog.

5 years agoCoding style fixes.
Felix Geyer [Wed, 2 May 2012 15:04:03 +0000 (17:04 +0200)]
Coding style fixes.

5 years agoMove recycle bin checkbox to the left side.
Felix Geyer [Wed, 2 May 2012 14:34:06 +0000 (16:34 +0200)]
Move recycle bin checkbox to the left side.

5 years agoSet default name for root group when creating new database.
Florian Geyer [Wed, 2 May 2012 14:22:52 +0000 (16:22 +0200)]
Set default name for root group when creating new database.

5 years agoAdd KeePassX icon to about dialog.
Felix Geyer [Wed, 2 May 2012 14:21:59 +0000 (16:21 +0200)]
Add KeePassX icon to about dialog.

5 years agoRemove status bar in main window.
Felix Geyer [Wed, 2 May 2012 13:37:37 +0000 (15:37 +0200)]
Remove status bar in main window.

5 years agoAdd about dialog.
Felix Geyer [Wed, 2 May 2012 13:37:21 +0000 (15:37 +0200)]
Add about dialog.

5 years agoSync expanded state to the view for new groups.
Felix Geyer [Wed, 2 May 2012 13:36:27 +0000 (15:36 +0200)]
Sync expanded state to the view for new groups.

5 years agoTurn attachmentsView into a QListView with wrapping turned on.
Felix Geyer [Wed, 2 May 2012 09:15:50 +0000 (11:15 +0200)]
Turn attachmentsView into a QListView with wrapping turned on.

5 years agoImplement saving, adding and removing attachments.
Felix Geyer [Wed, 2 May 2012 09:11:28 +0000 (11:11 +0200)]
Implement saving, adding and removing attachments.

5 years agoAdd Tools::readAllFromDevice().
Felix Geyer [Wed, 2 May 2012 09:06:24 +0000 (11:06 +0200)]
Add Tools::readAllFromDevice().

Make KeePass2XmlReader::readCompressedBinary() use the new function.

5 years agoTurn EntryAttachmentsModel into a QAbstractListModel.
Felix Geyer [Wed, 2 May 2012 08:30:30 +0000 (10:30 +0200)]
Turn EntryAttachmentsModel into a QAbstractListModel.

5 years agoClear attributes edit if there are no attributes.
Florian Geyer [Mon, 30 Apr 2012 16:22:02 +0000 (18:22 +0200)]
Clear attributes edit if there are no attributes.

5 years agoFix missing connect of collapsed signal.
Florian Geyer [Sat, 28 Apr 2012 20:50:30 +0000 (22:50 +0200)]
Fix missing connect of collapsed signal.

5 years agoFix check if file can be opened read only.
Florian Geyer [Sat, 28 Apr 2012 17:35:52 +0000 (19:35 +0200)]
Fix check if file can be opened read only.

5 years agoFix command line argument parsing.
Florian Geyer [Sat, 28 Apr 2012 17:30:35 +0000 (19:30 +0200)]
Fix command line argument parsing.

5 years agoShow entry title/group name in delete dialog.
Florian Geyer [Sat, 28 Apr 2012 10:38:39 +0000 (12:38 +0200)]
Show entry title/group name in delete dialog.

5 years agoSelect newly created groups and expand parent.
Florian Geyer [Fri, 27 Apr 2012 16:45:26 +0000 (18:45 +0200)]
Select newly created groups and expand parent.

5 years agoFix missing connect of expanded signal.
Florian Geyer [Fri, 27 Apr 2012 16:42:24 +0000 (18:42 +0200)]
Fix missing connect of expanded signal.

5 years agoCoding style fixes.
Felix Geyer [Sat, 28 Apr 2012 19:42:23 +0000 (21:42 +0200)]
Coding style fixes.

5 years agoFix the vertial size policy of the edit entry widget.
Felix Geyer [Sat, 28 Apr 2012 19:30:11 +0000 (21:30 +0200)]
Fix the vertial size policy of the edit entry widget.

5 years agoSupport editing attribute values in a separate text edit.
Felix Geyer [Sat, 28 Apr 2012 17:11:15 +0000 (19:11 +0200)]
Support editing attribute values in a separate text edit.

5 years agoFix bug that EntryAttributesModel isn't updated on reset.
Felix Geyer [Sat, 28 Apr 2012 14:50:51 +0000 (16:50 +0200)]
Fix bug that EntryAttributesModel isn't updated on reset.

5 years agoTurn EntryAttributesModel into a QAbstractListModel.
Felix Geyer [Sat, 28 Apr 2012 14:50:17 +0000 (16:50 +0200)]
Turn EntryAttributesModel into a QAbstractListModel.

5 years agoMake EntryAttributesModel editable.
Felix Geyer [Fri, 27 Apr 2012 10:35:13 +0000 (12:35 +0200)]
Make EntryAttributesModel editable.

5 years agoAdd EntryAttributes::rename().
Felix Geyer [Fri, 27 Apr 2012 10:34:15 +0000 (12:34 +0200)]
Add EntryAttributes::rename().

5 years agoCopy custom icons when moved to another database.
Felix Geyer [Fri, 27 Apr 2012 09:22:02 +0000 (11:22 +0200)]
Copy custom icons when moved to another database.

Closes #9

5 years agoSupport setting a new parent group with an empty db.
Felix Geyer [Fri, 27 Apr 2012 08:50:32 +0000 (10:50 +0200)]
Support setting a new parent group with an empty db.

5 years agoImprove TestGui::testEditEntry().
Felix Geyer [Thu, 26 Apr 2012 15:52:02 +0000 (17:52 +0200)]
Improve TestGui::testEditEntry().

Simulate mouse click on the actual edit action widget.
Make sure that the edit entry widget is active after triggering the entry edit.

5 years agoSupport moving entries with drag and drop.
Felix Geyer [Thu, 26 Apr 2012 14:35:13 +0000 (16:35 +0200)]
Support moving entries with drag and drop.

5 years agoMark library include dirs as SYSTEM.
Felix Geyer [Thu, 26 Apr 2012 10:18:38 +0000 (12:18 +0200)]
Mark library include dirs as SYSTEM.

Compilers will suppress warnings from files in those directories.

5 years agoFix some pedantic compiler warnings.
Felix Geyer [Thu, 26 Apr 2012 09:59:53 +0000 (11:59 +0200)]
Fix some pedantic compiler warnings.

5 years agoCoding style fixes.
Felix Geyer [Wed, 25 Apr 2012 18:22:55 +0000 (20:22 +0200)]
Coding style fixes.

5 years agoDocument CMAKE_BUILD_TYPE parameter.
Felix Geyer [Wed, 25 Apr 2012 18:22:44 +0000 (20:22 +0200)]
Document CMAKE_BUILD_TYPE parameter.

5 years agoAdd enum to describe current mode of database widget.
Florian Geyer [Tue, 24 Apr 2012 23:32:05 +0000 (01:32 +0200)]
Add enum to describe current mode of database widget.

5 years agoExtend group test.
Florian Geyer [Wed, 25 Apr 2012 08:17:24 +0000 (10:17 +0200)]
Extend group test.

5 years agoMinor improvements in CompositeKey and TestKeys.
Felix Geyer [Wed, 25 Apr 2012 16:35:30 +0000 (18:35 +0200)]
Minor improvements in CompositeKey and TestKeys.

5 years agoDefine QT_NO_DEBUG when no cmake build type has been set.
Felix Geyer [Wed, 25 Apr 2012 14:50:39 +0000 (16:50 +0200)]
Define QT_NO_DEBUG when no cmake build type has been set.

5 years agoChange Q_ASSERT() to QVERIFY() in modeltest.
Felix Geyer [Wed, 25 Apr 2012 08:45:36 +0000 (10:45 +0200)]
Change Q_ASSERT() to QVERIFY() in modeltest.

5 years agoUpdate copyright information.
Felix Geyer [Tue, 24 Apr 2012 22:41:30 +0000 (00:41 +0200)]
Update copyright information.

5 years agoUpdate COPYING to the final debian copyright format.
Felix Geyer [Tue, 24 Apr 2012 22:36:40 +0000 (00:36 +0200)]
Update COPYING to the final debian copyright format.

5 years agoImplement default username.
Florian Geyer [Mon, 23 Apr 2012 18:10:07 +0000 (20:10 +0200)]
Implement default username.

5 years agoMake dialogy widget work with arbitrary buttons in button boxes.
Florian Geyer [Tue, 24 Apr 2012 19:56:00 +0000 (21:56 +0200)]
Make dialogy widget work with arbitrary buttons in button boxes.

5 years agoReset focus when opening database settings, edit entry and edit group widget.
Florian Geyer [Mon, 23 Apr 2012 21:19:29 +0000 (23:19 +0200)]
Reset focus when opening database settings, edit entry and edit group widget.

5 years agoEdit widgets inherit from DialogyWidget.
Florian Geyer [Tue, 24 Apr 2012 11:23:09 +0000 (13:23 +0200)]
Edit widgets inherit from DialogyWidget.

Closes #17

5 years agoAdd dialogy widget which implements default button behaviour.
Florian Geyer [Tue, 24 Apr 2012 09:09:40 +0000 (11:09 +0200)]
Add dialogy widget which implements default button behaviour.

5 years agoSupport moving groups with drag and drop.
Felix Geyer [Tue, 24 Apr 2012 22:22:55 +0000 (00:22 +0200)]
Support moving groups with drag and drop.

5 years agoAdd an assignment operator to Uuid and support serialization with QDataStream.
Felix Geyer [Tue, 24 Apr 2012 22:15:40 +0000 (00:15 +0200)]
Add an assignment operator to Uuid and support serialization with QDataStream.

5 years agoAdd a method to get databases by uuid.
Felix Geyer [Tue, 24 Apr 2012 22:12:23 +0000 (00:12 +0200)]
Add a method to get databases by uuid.

Each database gets a random uuid on construction which is not saved by
KeePass2XmlWriter and only valid until the database object is deleted.

5 years agoFix bug where index is wrong when a group is moved to the end from the same parent.
Felix Geyer [Tue, 24 Apr 2012 22:10:06 +0000 (00:10 +0200)]
Fix bug where index is wrong when a group is moved to the end from the same parent.

This triggered the bug:
group->setParent(group->parentGroup());

Then index was group->parentGroup()->children().size() instead of size()-1.

5 years agoAllow passing a filename and password on the command line.
Felix Geyer [Tue, 24 Apr 2012 09:47:16 +0000 (11:47 +0200)]
Allow passing a filename and password on the command line.

Passing passwords on the command line is not exactly best practice but will
greatly improve development productivity.

5 years agoMake DatabaseWidget ignore the size hint of non-active widgets.
Felix Geyer [Tue, 24 Apr 2012 08:51:22 +0000 (10:51 +0200)]
Make DatabaseWidget ignore the size hint of non-active widgets.

5 years agoCreate a history item when changing entries.
Felix Geyer [Mon, 23 Apr 2012 19:06:04 +0000 (21:06 +0200)]
Create a history item when changing entries.

Closes #15

5 years agoConstification and some style fixes.
Felix Geyer [Mon, 23 Apr 2012 17:44:43 +0000 (19:44 +0200)]
Constification and some style fixes.

5 years agoFocus the password line edit on switch to change master key widget.
Florian Geyer [Sun, 22 Apr 2012 22:18:10 +0000 (00:18 +0200)]
Focus the password line edit on switch to change master key widget.

5 years agoCoding style fixes.
Felix Geyer [Mon, 23 Apr 2012 15:02:09 +0000 (17:02 +0200)]
Coding style fixes.

5 years agoIntroduce Group::aboutToMove() and moved() signals.
Felix Geyer [Mon, 23 Apr 2012 14:57:08 +0000 (16:57 +0200)]
Introduce Group::aboutToMove() and moved() signals.

Emit them instead of remove/add when groups are moved within
a database.

5 years agoAdd support for building position-independent executables.
Felix Geyer [Mon, 23 Apr 2012 14:26:15 +0000 (16:26 +0200)]
Add support for building position-independent executables.

5 years agoMemory management fixes in tests.
Felix Geyer [Sun, 22 Apr 2012 21:09:52 +0000 (23:09 +0200)]
Memory management fixes in tests.

5 years agokdbx-extract: Print error message when opening the database failed.
Felix Geyer [Sun, 22 Apr 2012 20:33:41 +0000 (22:33 +0200)]
kdbx-extract: Print error message when opening the database failed.

5 years agoWrite history only for entries that are not history items.
Felix Geyer [Sun, 22 Apr 2012 20:33:14 +0000 (22:33 +0200)]
Write history only for entries that are not history items.

5 years agoFix memory leak in SymmetricCipherStream.
Felix Geyer [Sun, 22 Apr 2012 20:26:05 +0000 (22:26 +0200)]
Fix memory leak in SymmetricCipherStream.

5 years agoFocus the password line edit by default.
Felix Geyer [Sun, 22 Apr 2012 18:57:42 +0000 (20:57 +0200)]
Focus the password line edit by default.

5 years agoExtend deleted objects test.
Florian Geyer [Sun, 22 Apr 2012 09:39:54 +0000 (11:39 +0200)]
Extend deleted objects test.

5 years agoMake save order for deleted objects consistent.
Florian Geyer [Sun, 22 Apr 2012 07:52:12 +0000 (09:52 +0200)]
Make save order for deleted objects consistent.

5 years agoUse QHash for temporary entry/group containers.
Felix Geyer [Sun, 22 Apr 2012 10:29:18 +0000 (12:29 +0200)]
Use QHash for temporary entry/group containers.

Closes #11

5 years agoUpdate LocationChanged time when entries and groups are moved.
Felix Geyer [Sun, 22 Apr 2012 10:09:12 +0000 (12:09 +0200)]
Update LocationChanged time when entries and groups are moved.

Closes #3

5 years agoAdd missing check for group database.
Felix Geyer [Sat, 21 Apr 2012 22:58:35 +0000 (00:58 +0200)]
Add missing check for group database.

5 years agoBuild with -DQT_NO_CAST_TO_ASCII.
Felix Geyer [Sat, 21 Apr 2012 22:55:52 +0000 (00:55 +0200)]
Build with -DQT_NO_CAST_TO_ASCII.

5 years agoRemove some unnecessary initializations.
Felix Geyer [Sat, 21 Apr 2012 22:38:21 +0000 (00:38 +0200)]
Remove some unnecessary initializations.

5 years agoAdd convenience function Database::addDeletedObject(const Uuid&).
Felix Geyer [Sat, 21 Apr 2012 22:29:39 +0000 (00:29 +0200)]
Add convenience function Database::addDeletedObject(const Uuid&).

Drop Group::addDeletedObject() and make Entry call the Database function
instead.

5 years agoCoding style fixes.
Felix Geyer [Sat, 21 Apr 2012 22:29:16 +0000 (00:29 +0200)]
Coding style fixes.

5 years agoClean up deleted objects test (again).
Florian Geyer [Sat, 21 Apr 2012 21:43:56 +0000 (23:43 +0200)]
Clean up deleted objects test (again).

5 years agoClean up deleted objects test.
Florian Geyer [Sat, 21 Apr 2012 21:35:18 +0000 (23:35 +0200)]
Clean up deleted objects test.

5 years agoClean up group deletion.
Florian Geyer [Sat, 21 Apr 2012 21:31:37 +0000 (23:31 +0200)]
Clean up group deletion.

5 years agoAdd test for deleted objects.
Florian Geyer [Sat, 21 Apr 2012 21:17:26 +0000 (23:17 +0200)]
Add test for deleted objects.

5 years agoDisplay current tab name in window title.
Florian Geyer [Sat, 21 Apr 2012 20:02:12 +0000 (22:02 +0200)]
Display current tab name in window title.

5 years agoAsk before closing database when in edit mode.
Florian Geyer [Sat, 21 Apr 2012 18:36:26 +0000 (20:36 +0200)]
Ask before closing database when in edit mode.

Fixes #12

5 years agoAdd ability to delete groups via gui.
Florian Geyer [Sat, 21 Apr 2012 17:06:28 +0000 (19:06 +0200)]
Add ability to delete groups via gui.

5 years agoUse QPointer for Entry::m_lastTopVisibleEntry.
Felix Geyer [Sat, 21 Apr 2012 22:10:04 +0000 (00:10 +0200)]
Use QPointer for Entry::m_lastTopVisibleEntry.

Closes #14

5 years agoStore group references in Metadata as QPointer.
Felix Geyer [Sat, 21 Apr 2012 21:54:15 +0000 (23:54 +0200)]
Store group references in Metadata as QPointer.

QPointer sets itself to 0 when the referenced object has been deleted.

Refs #14

5 years agoSupport different C/C++ compiler.
Felix Geyer [Sat, 21 Apr 2012 17:47:39 +0000 (19:47 +0200)]
Support different C/C++ compiler.

For example gcc as the C compiler and clang for C++.

5 years agoDeclare the TypeInfo for some classes/structs.
Felix Geyer [Sat, 21 Apr 2012 16:39:09 +0000 (18:39 +0200)]
Declare the TypeInfo for some classes/structs.

Qt's container classes benefit from this information.

5 years agoClear keys in assignment operator of composite key.
Florian Geyer [Sat, 21 Apr 2012 16:09:14 +0000 (18:09 +0200)]
Clear keys in assignment operator of composite key.

Fixes corruption of key if master key and then transform rounds is changed.

5 years agoFix groupChanged signal not emitted in all cases.
Florian Geyer [Sat, 21 Apr 2012 10:15:21 +0000 (12:15 +0200)]
Fix groupChanged signal not emitted in all cases.

5 years agoHide the tar bar when only one database is opened.
Florian Geyer [Fri, 20 Apr 2012 09:29:31 +0000 (11:29 +0200)]
Hide the tar bar when only one database is opened.

Closes #10

5 years agoMake toggle password button in ChangeMasterKey widget work.
Florian Geyer [Thu, 19 Apr 2012 17:32:01 +0000 (19:32 +0200)]
Make toggle password button in ChangeMasterKey widget work.

5 years agoAdd more options to database settings widget.
Florian Geyer [Thu, 19 Apr 2012 16:10:53 +0000 (18:10 +0200)]
Add more options to database settings widget.

5 years agoSave reference to deleted entries in deletedObject list.
Florian Geyer [Thu, 19 Apr 2012 15:17:44 +0000 (17:17 +0200)]
Save reference to deleted entries in deletedObject list.

5 years agoAdd database settings widget and ability to change transform rounds count.
Florian Geyer [Thu, 19 Apr 2012 14:20:20 +0000 (16:20 +0200)]
Add database settings widget and ability to change transform rounds count.

5 years agoSupport KeePass format 3.00 (used by KeePass2 >= 2.15).
Felix Geyer [Sat, 21 Apr 2012 14:45:46 +0000 (16:45 +0200)]
Support KeePass format 3.00 (used by KeePass2 >= 2.15).

Closes #6

Attachments are now stored in a pool under Metadata instead of in entries.
The protected flag of attachments isn't supported anymore.
New metadata attributes: color, historyMaxItems and historyMaxSize.
Dropped metadata attribute: autoEnableVisualHiding.

5 years agoDelete entries for good if already in recycle bin
Florian Geyer [Wed, 18 Apr 2012 22:46:37 +0000 (00:46 +0200)]
Delete entries for good if already in recycle bin

5 years agoAdd hasChild function to check for a child in a QObject tree.
Florian Geyer [Wed, 18 Apr 2012 22:04:52 +0000 (00:04 +0200)]
Add hasChild function to check for a child in a QObject tree.

5 years agoMore coding style fixes.
Felix Geyer [Wed, 18 Apr 2012 22:25:57 +0000 (00:25 +0200)]
More coding style fixes.

5 years agoSet the group of the entry in Database::recycleEntry().
Felix Geyer [Wed, 18 Apr 2012 21:17:29 +0000 (23:17 +0200)]
Set the group of the entry in Database::recycleEntry().

Drop Metadata::addEntryToRecycleBin() and add a non-const
Metadata::recycleBin() getter instead.

5 years agoMove deleted entries to recycle bin if enabled.
Florian Geyer [Wed, 18 Apr 2012 19:59:00 +0000 (21:59 +0200)]
Move deleted entries to recycle bin if enabled.

5 years agoAdd ability to delete entries via gui.
Florian Geyer [Wed, 18 Apr 2012 18:08:54 +0000 (20:08 +0200)]
Add ability to delete entries via gui.

5 years agoFix some more lines that are too long.
Felix Geyer [Wed, 18 Apr 2012 21:05:31 +0000 (23:05 +0200)]
Fix some more lines that are too long.