Felix Geyer
5de62a5ef4
Add Group::resolveAutoTypeEnabled().
2014-04-26 18:30:22 +02:00
Felix Geyer
7893a2e84d
Rename Group::includeInSearch() to resolveSearchingEnabled().
...
Make it public and drop the resolveInherit parameter.
2014-04-26 18:27:52 +02:00
Felix Geyer
98c821df05
Add Group::exportToDb().
2013-11-22 13:36:46 +01:00
Felix Geyer
a992c76d6a
Allow passing entry cloning flags to Group::clone().
2013-11-22 13:34:34 +01:00
Felix Geyer
f2dfef8c41
Add flags to Entry::clone() for customized cloning.
2013-11-22 13:32:13 +01:00
Felix Geyer
cb804eb143
Document clone() methods.
2013-11-22 10:30:50 +01:00
Felix Geyer
1f47033835
Make sure icon() and iconPixmap() never crash.
2013-11-22 10:30:50 +01:00
Felix Geyer
5588792344
Make KeePass2XmlReader::parseGroup() safe against reordered xml elements.
2013-04-29 22:31:50 +02:00
Felix Geyer
5a96e19ce9
Copy custom icons when copying/moving entries/groups to another database.
2013-04-07 18:32:43 +02:00
Felix Geyer
bee570c3cf
Add Group::clone().
...
Move all the data we want to clone into a GroupData struct.
2013-04-04 21:48:55 +02:00
Felix Geyer
1c7e8f6921
Small optimizations.
2013-03-26 23:53:34 +01:00
Felix Geyer
c7593a3047
Stop suppressing signals in Group dtor.
...
That way we emit entry/group removed signals.
Move cleanupParent() call to the bottom so we
maintain the group tree structure for objects that
connect to those signals.
2013-03-24 14:00:23 +01:00
Felix Geyer
72d17c045f
Handle deleting groups more consistently.
...
Delete the entries and child groups in Group dtor
no what if the group has a database or not.
2013-03-24 14:00:23 +01:00
Felix Geyer
8fb2f9db7c
Move inline keyword to function definition.
2012-08-04 22:06:41 +02:00
Felix Geyer
e9a96ff80a
Mark m_pixmapCacheKey as mutable so we don't have to const_cast.
2012-07-25 12:18:16 +02:00
Felix Geyer
33b4cd8636
Don't add new entries to EntryModel when in search mode.
...
Only allow moving entries from one group to the other.
2012-07-21 22:21:49 +02:00
Florian Geyer
f6e1af30b3
Move recycle bin creation method to Group class.
2012-07-21 11:58:00 +02:00
Felix Geyer
0c1fecfb2b
const_cast "this" instead of the member variable.
2012-07-19 23:32:31 +02:00
Felix Geyer
308d3ad84b
Use constructor initialization lists where possible.
2012-07-19 19:42:14 +02:00
Felix Geyer
782223a643
Coding style fixes.
2012-07-01 21:58:45 +02:00
Felix Geyer
ee3bc89a54
Coding style fixes.
2012-06-30 00:22:07 +02:00
Felix Geyer
68155e8f89
Make use of Q_NULLPTR.
2012-06-29 14:15:16 +02:00
Florian Geyer
204822b66f
Improve auto save handling.
2012-06-24 19:30:30 +02:00
Florian Geyer
cf5f56af6f
Rename setting so it refers only to group expanded state changes.
2012-05-30 11:27:09 +02:00
Florian Geyer
5003499700
Add settings option if visual changes mark databases as modified.
2012-05-29 22:10:03 +02:00
Florian Geyer
d218924b4f
Add expiry option to group edit.
2012-05-18 10:52:05 +02:00
Felix Geyer
ce268260b1
Display expired entries and groups struck out.
2012-05-15 20:02:08 +02:00
Florian Geyer
621ec80bbe
Use static constants for default icon numbers.
2012-05-15 18:46:59 +02:00
Florian Geyer
6b6c109903
Add search.
...
Refs #24
2012-05-13 19:21:10 +02:00
Felix Geyer
af726d465d
Fix typo.
2012-05-13 13:33:55 +02:00
Florian Geyer
4807ec3368
Include groups in custom icon delete check.
...
Refs #22
2012-05-12 02:14:06 +02:00
Florian Geyer
e4b6289c0b
Prevent deletion of custom icon if it is still used by other entries.
...
Refs #22
2012-05-12 00:30:29 +02:00
Felix Geyer
587a647c11
New TODO comment style.
...
Qt Creator 2.5 is able to parse those.
2012-05-11 12:39:06 +02:00
Andreas Piesk
7568582b05
compile with QT < 4.7 (RHEL6 an clones)
2012-05-09 22:15:28 +02:00
Felix Geyer
739f4d97a6
Coding style fixes.
2012-05-02 17:04:03 +02:00
Felix Geyer
de4b90cdf1
Copy custom icons when moved to another database.
...
Closes #9
2012-04-27 11:22:02 +02:00
Felix Geyer
c36481edae
Support setting a new parent group with an empty db.
2012-04-27 10:50:32 +02:00
Felix Geyer
0d20955920
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.
2012-04-25 00:10:06 +02:00
Felix Geyer
bddc29101c
Introduce Group::aboutToMove() and moved() signals.
...
Emit them instead of remove/add when groups are moved within
a database.
2012-04-23 16:57:08 +02:00
Florian Geyer
222abe09d9
Make save order for deleted objects consistent.
2012-04-22 19:59:50 +02:00
Felix Geyer
ef26065a99
Update LocationChanged time when entries and groups are moved.
...
Closes #3
2012-04-22 12:10:21 +02:00
Felix Geyer
0bcce7ce7f
Remove some unnecessary initializations.
2012-04-22 00:38:21 +02:00
Felix Geyer
411617cc8b
Add convenience function Database::addDeletedObject(const Uuid&).
...
Drop Group::addDeletedObject() and make Entry call the Database function
instead.
2012-04-22 00:29:39 +02:00
Florian Geyer
5dc21a191b
Clean up group deletion.
2012-04-22 00:11:17 +02:00
Florian Geyer
8467e7756d
Add ability to delete groups via gui.
2012-04-22 00:11:17 +02:00
Felix Geyer
19bacd6737
Use QPointer for Entry::m_lastTopVisibleEntry.
...
Closes #14
2012-04-22 00:10:04 +02:00
Florian Geyer
258af265c7
Save reference to deleted entries in deletedObject list.
2012-04-21 17:28:44 +02:00
Felix Geyer
8acd6f74d8
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.
2012-04-21 16:45:46 +02:00
Felix Geyer
cfe5b48bfd
Handle Group::setIcon() manually instead of calling set().
...
That way we don't emit modified() in between setting the attributes.
2012-04-18 17:14:51 +02:00
Felix Geyer
ca5dd373ed
Only disconnect m_db when it exists.
...
Previously we disconnected everyone when m_db == 0.
2012-04-18 17:07:40 +02:00
Florian Geyer
84d9d2ec47
Update timeinfo of group only when properties of the group itself change.
2012-04-18 17:03:58 +02:00
Florian Geyer
34204f3281
Disconnect entry from database, when removed.
2012-04-18 17:03:58 +02:00
Florian Geyer
d85e5d7560
Update connection of modified signals of entries when a parent group changes database.
2012-04-18 17:03:58 +02:00
Florian Geyer
d73cbafb8e
Add slot to update the timeinfo of a group and connect it on modified signal.
...
Connect modified signal of entries directly to database, so timeinfo of group is not updated.
2012-04-18 17:03:58 +02:00
Florian Geyer
46bbabbe3c
Use UTC time spec.
2012-04-18 17:03:57 +02:00
Florian Geyer
674909f635
Add modified signals for entries.
2012-04-11 21:50:20 +02:00
Florian Geyer
8b62365f8e
Add modified signals for groups.
2012-04-11 21:50:20 +02:00
Felix Geyer
00aafa69f5
Store database icons as QImage instead of QIcon.
...
This has the advantage that they can be used without a running X server.
Add methods to retrieve QPixmaps that are converted from the stored QImages
and cached by QPixmapCache.
2012-01-01 21:52:54 +01:00
Felix Geyer
027362be76
Notify entry/group parent on deletion.
...
Also make the root group pseudo static, i.e. it shouldn't be changed
after the database has been fully constructed.
2011-07-09 21:54:01 +02:00
Felix Geyer
d4f02a78a7
Coding style fixes.
2011-07-08 14:51:14 +02:00
Felix Geyer
4dbdc4d847
Make some Group methods private.
2011-07-08 13:57:02 +02:00
Felix Geyer
a1bfb1f319
Initalize more member variables.
2011-07-07 12:52:30 +02:00
Felix Geyer
afb285a476
Use a special enum for inherit/enable/disable variables.
2011-07-07 12:45:14 +02:00
Felix Geyer
6d4561bc57
Initalize pointer in Group. *sigh*
2011-07-06 23:43:02 +02:00
Felix Geyer
5cb906c235
Properly initialize various attributes.
2011-06-29 16:47:05 +02:00
Felix Geyer
567dd92d4c
Add built-in icons.
2010-09-19 21:22:24 +02:00
Felix Geyer
82cb315977
Implement some const methods properly.
2010-08-25 14:00:46 +02:00
Felix Geyer
ef52e98ee6
Coding style++
2010-08-24 23:12:01 +02:00
Felix Geyer
e96c3bb011
Un-constify Entry* and Group* in various related signals and models/views.
2010-08-23 21:30:20 +02:00
Felix Geyer
82afd43f12
Support EnableAutoType and EnableSearching group properties.
2010-08-19 14:03:54 +02:00
Felix Geyer
2b939617bb
Implement XML Writer (maybe even works!)
2010-08-18 22:57:26 +02:00
Felix Geyer
8d623f37ca
Add EntryModel.
2010-08-18 16:22:48 +02:00
Felix Geyer
623b325fa1
Implement support for group tree changes in GroupModel.
2010-08-18 10:27:40 +02:00
Felix Geyer
e28ed4891b
Add signal for changes in Group.
2010-08-15 15:03:47 +02:00
Felix Geyer
072a8ccf1b
Add GroupModel and corresponding unit test.
2010-08-15 12:31:48 +02:00
Felix Geyer
01694c3271
Implement Entry::image().
2010-08-14 12:24:35 +02:00
Felix Geyer
bd1ea05017
Fix parser and add unit tests.
2010-08-13 18:08:06 +02:00
Felix Geyer
dae532d659
More work on the parser and Entry/Group data structures.
2010-08-12 21:38:59 +02:00
Felix Geyer
3e3c23e4ad
Initial import.
2010-08-07 15:10:44 +02:00