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__
|
|
|
|
|
2008-09-15 15:00:23 +04:00
|
|
|
#include <FL/Fl_Window.H>
|
|
|
|
#include <FL/Fl_Box.H>
|
|
|
|
#include <FL/Fl_Check_Browser.H>
|
|
|
|
#include <FL/Fl_Button.H>
|
2007-08-28 19:54:52 +04:00
|
|
|
|
|
|
|
#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
|