ede/evoke/Splash.h

56 lines
1.2 KiB
C
Raw Normal View History

2007-07-30 17:25:13 +04:00
/*
* $Id$
*
* Evoke, head honcho of everything
* Part of Equinox Desktop Environment (EDE).
* Copyright (c) 2000-2007 EDE Authors.
*
* This program is licensed under terms of the
* GNU General Public License version 2 or newer.
* See COPYING for details.
*/
#ifndef __SPLASH_H__
#define __SPLASH_H__
#include <FL/Fl_Double_Window.h>
#include <FL/Fl_Box.h>
#include "EvokeService.h"
class Splash : public Fl_Double_Window {
private:
2007-08-22 17:35:41 +04:00
ClientList* clist;
2007-07-30 17:25:13 +04:00
const edelib::String* bkg;
const edelib::String* sound;
2007-07-30 17:25:13 +04:00
unsigned int counter;
bool no_splash;
bool dry_run;
ClientListIter clist_it;
Fl_Box* msgbox;
Fl_Box** icons;
public:
Splash(bool sp, bool dr);
~Splash();
/*
* NOTE: clients() and set_background() uses address of passed data,
* so make sure passed data does not destroys.
*/
2007-08-22 17:35:41 +04:00
void set_clients(ClientList* cl) { clist = cl; }
2007-07-30 17:25:13 +04:00
void set_background(const edelib::String* s) { bkg = s; }
void set_sound(const edelib::String* s) { sound = s; }
2007-07-30 17:25:13 +04:00
const ClientList* get_clients(void) const { return clist; }
bool next_client(void);
bool next_client_nosplash(void);
void run(void);
//virtual void show(void);
};
#endif