2007-08-28 19:54:52 +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 __AUTOSTART_H__
|
|
|
|
#define __AUTOSTART_H__
|
|
|
|
|
|
|
|
#include <FL/Fl_Window.h>
|
|
|
|
#include <FL/Fl_Box.h>
|
|
|
|
#include <FL/Fl_Check_Browser.h>
|
|
|
|
#include <FL/Fl_Button.h>
|
|
|
|
|
|
|
|
#include <edelib/String.h>
|
|
|
|
|
|
|
|
struct AstartItem {
|
|
|
|
edelib::String name;
|
|
|
|
edelib::String exec;
|
|
|
|
};
|
|
|
|
|
|
|
|
class AstartDialog : public Fl_Window {
|
|
|
|
private:
|
|
|
|
unsigned int curr;
|
|
|
|
unsigned int lst_sz;
|
2007-09-11 18:06:44 +04:00
|
|
|
bool show_dialog;
|
2007-08-28 19:54:52 +04:00
|
|
|
AstartItem* lst;
|
|
|
|
|
|
|
|
Fl_Box* img;
|
|
|
|
Fl_Box* txt;
|
|
|
|
Fl_Check_Browser* cbrowser;
|
2007-08-29 20:38:00 +04:00
|
|
|
Fl_Button* rsel;
|
|
|
|
Fl_Button* rall;
|
2007-08-28 19:54:52 +04:00
|
|
|
Fl_Button* cancel;
|
|
|
|
|
|
|
|
public:
|
2007-09-11 18:06:44 +04:00
|
|
|
AstartDialog(unsigned int sz, bool do_show);
|
2007-08-28 19:54:52 +04:00
|
|
|
~AstartDialog();
|
|
|
|
|
|
|
|
unsigned int list_size(void) { return curr; }
|
|
|
|
void add_item(const edelib::String& n, const edelib::String& e);
|
|
|
|
void run(void);
|
2007-08-29 20:38:00 +04:00
|
|
|
|
|
|
|
void run_all(void);
|
|
|
|
void run_selected(void);
|
2007-08-28 19:54:52 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|