work again. We now keep a map of Folders to FolderTreeItems, the linear
search is just too painfull for something that is called this often.
svn path=/trunk/kdepim/; revision=344093
the folder name" one by not using QListViewItemIterator in a very hot code
path, because it seems to ensure sort order in the ctor and calls
paintCell() on all of the items.
I demand a cookie. Lutz gets a cookie as well, he helped me debug this.
svn path=/trunk/kdepim/; revision=341205
- jump to first new (old default)
- jump to first new or unread (old checkbox jump to unread)
- jump to last selected (new)
svn path=/trunk/kdepim/; revision=338393
rewriting some stuff.
It also fixes a bug that I noticed recently: when an imap folder is selected and you expand a different
imap folder the readerwin was cleared.
I will backport this in a minute.
CCMAIL: 85803-done@bugs.kde.org
svn path=/trunk/kdepim/; revision=336569
on the folder (not right after creating it), since before that it has no imapPath.
-> disable the action if imappath is empty.
svn path=/trunk/kdepim/; revision=321815
- Fix bug 76659: this changes the logic for imap folder selection.
First load all headers and then display them and do not mix and match.
- Fix some smaller bugs and crashes that I stumpled over.
CCMAIL: 76659-done@bugs.kde.org
svn path=/trunk/kdepim/; revision=321536
- don't allow to drop mails into a readonly folder
- use kapp->keyboardModifiers instead of XQueryPointer (more portable, less code needed)
- use e->accept(false) instead of e->ignore(). afaik ignore() does nothing...
- don't call acceptDrag(e) 3 times from contentsDragMoveEvent
svn path=/trunk/kdepim/; revision=319719
the renaming happens in the foldertree immediately, but is stored in the account
(with persistence in kconfig) and done on the server at the next sync.
If that fails, the server is renamed back locally.
svn path=/trunk/kdepim/; revision=319628
noop timer, which keeps the connection active by sending regular noops and
a real (and as of yet unused) idle timer, which can be used to disconnect
the slave if nothing (apart from noops) has been going on for a while.
Remove the mIdle bool which was used to differentiate those two uses in the
old timer and remove the two users of that bool, thereby fÑxing the recent
crashes in assignJobToSlave people have been seeing. Deselecting a folder
in the folder tree used to set the account to idle, the idle timer fires,
mIdle is true => disconnect => no slave => boom.
TODO: start the idle timer on connect and reset on all imapjobs, etc
svn path=/trunk/kdepim/; revision=318964
I created a new FolderStorage::listDirectory method to make it easier.
Add a Refresh folder list to the context menu of imap folders as the user
will probably not know how to refresh the listing (collapsing does the same).
This is needed together with the list-only-open-folders thing.
svn path=/trunk/kdepim/; revision=314858
mbox and maildir folders in the background.
This fixes compaction not happening in kontact at all, and not happening
either for cached imap folders in kmail. It also makes kmail exit faster.
svn path=/trunk/kdepim/; revision=314475
Change the KMFolderMgr::find methods a bit to actually find all folders.
Oh well, and assign ids to all folders.
svn path=/trunk/kdepim/; revision=313955
ConfigModule (from configuredialog.*) as the base class.
This will make it possible to add a 3rd optional tab for ACLs.
This could also allow implementing an Apply button, but for this the code
for save() (was: slotOk) must be ready to be called multiple times, which I
guess isn't the case when creating a new folder.
svn path=/trunk/kdepim/; revision=301784
This reduces the signal storms and cpu spikes as well as the flicker which
are especially noticable over slower links. Seems quite a bit smoother now
here.
svn path=/trunk/kdepim/; revision=298121
- add storage property "noChildren" (guess what it does)
- allow the creation of subfolders of system folders (except the outbox)
- the content of the belongs-to combox in the folderdialog looks like the foldertree
- get rid of old stuff in kmfoldertree
- kmfoldertree is the parent of kmfolderdialog
...and fix the mailinglist handling
CCMAIL: 11903-done@bugs.kde.org
CCMAIL: 37139-done@bugs.kde.org
svn path=/trunk/kdepim/; revision=295688
Implementing automagic mailing list handling: KMail can now detect whether
a folder stores a mailing list in which case it will try to determine its post,
subscribe, unsubscribe, archive and help addresses.
Aaron could you figure out where the kaction's invoking post,subscribe... could
be put?
CCMAIL: aseigo@kde.org
svn path=/trunk/kdepim/; revision=295216
test bed. After a short discussion with Marc on irc I've decided to call
the global class GlobalSettings, as we expect there to be at least
ComposerSettings and ReaderSettings in the not too distant future.
If no one yells, I'll be amusing myself by moving stuff over to the new
style section by section over the next few millenia. If anyone wants to
help please tell me, so we can coordinate.
svn path=/trunk/kdepim/; revision=289835
the base class method KFolderTree::contentsMouseReleaseEvent.
This is because KFolderTree::contentsMousePressEvent changes the
selectionMode of the listview to single, and KFolderTree assumes that
a complementary call to contentsMouseReleaseEvent is made to change
the selectionMode back to being extended.
This fixes the problem with Ctrl-Left/Right navigation of the foldertree
listview changing the selectedItem as well as the currentItem. The problem
being that after a folder was selected with the mouse the selection mode
was stuck in single mode.
svn path=/trunk/kdepim/; revision=283213
Don't try to decrypt anything while a popup menu is shown.
The real fix is making the decryption non-blocking. But that'll have to wait till after KDE 3.2.
CCMAIL: 56693-fixed@bugs.kde.org
svn path=/trunk/kdepim/; revision=270269
and bug 69230: different problems regarding searching / virtual folders
It's actually the same bug and it was introduced by a recent patch which was reviewed by two (!) persons. The next time you review something please actually test the patch and don't just say "Hmm, looks good.". Yes, I'm guilty of the same lazyness. Let's make sure it doesn't happen again.
CCMAIL: kmail@kde.org
CCMAIL: 69176-fixed@bugs.kde.org
CCMAIL: 69230-fixed@bugs.kde.org
svn path=/trunk/kdepim/; revision=270255