[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: visibility?
From:       Rik Hemsley <rik () kde ! org>
Date:       2000-03-08 9:41:18
[Download RAW message or body]

#if Espen Sand
> btw2: Would not be an advantage to launch the app, make it visible 
> and only then start the scanning of Mail directory? I would try with a 
> oneShotTimer and in the slot (which is activated with a zero delay)
> do something like:
> 
> slotStartupLoadMail()
> {
>   while( isVisible() == false ) // Perhaps with a timeout
>   {
>      processOneEvent();
>   }
>   startupLoadMail();
> }
> 
> but perhaps something similar is planned or already done?

Here's the relevant part of Empath's main.cpp

-----------------------------------------------------
// Create the kernel.
Empath::start();

// Create the user interface.
EmpathUI::instance();

// Initialise the kernel.
empath->init();

// Enter the event loop.
int retval = app.exec();
  
// Clean up.
empath->shutdown();
-----------------------------------------------------

When the UI is created, it just sits and does nothing. Then
when Empath's init() method is called, the mailboxes are
looked at and the on-screen folder list is told to update, etc.

This means your UI comes up as fast as possible.

Rik

-- 
Stay mobile.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic