2008-02-11 20:30:39 +03:00
|
|
|
/*
|
|
|
|
* $Id$
|
|
|
|
*
|
|
|
|
* ELMA, Ede Login MAnager
|
|
|
|
* Part of Equinox Desktop Environment (EDE).
|
|
|
|
* Copyright (c) 2008 EDE Authors.
|
|
|
|
*
|
|
|
|
* This program is licensed under terms of the
|
|
|
|
* GNU General Public License version 2 or newer.
|
|
|
|
* See COPYING for details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __ELMAWINDOW_H__
|
|
|
|
#define __ELMAWINDOW_H__
|
|
|
|
|
|
|
|
#include <FL/Fl_Double_Window.h>
|
|
|
|
|
|
|
|
class Background;
|
|
|
|
class TextArea;
|
|
|
|
class Fl_Box;
|
2008-02-18 17:46:13 +03:00
|
|
|
struct ElmaTheme;
|
2008-02-11 20:30:39 +03:00
|
|
|
|
|
|
|
class ElmaWindow : public Fl_Double_Window {
|
|
|
|
private:
|
|
|
|
Background* bkg;
|
|
|
|
TextArea* user_in;
|
|
|
|
TextArea* pass_in;
|
|
|
|
Fl_Box* error_display;
|
|
|
|
Fl_Box* info_display;
|
|
|
|
bool deny_mode;
|
2008-02-18 17:46:13 +03:00
|
|
|
int box_mode;
|
2008-02-11 20:30:39 +03:00
|
|
|
|
|
|
|
void validate_user(void);
|
|
|
|
|
|
|
|
public:
|
|
|
|
ElmaWindow(int W, int H);
|
|
|
|
~ElmaWindow();
|
|
|
|
|
|
|
|
void allow_input(void);
|
|
|
|
void deny_input(void);
|
|
|
|
|
2008-02-18 17:46:13 +03:00
|
|
|
bool create_window(ElmaTheme* et);
|
2008-02-11 20:30:39 +03:00
|
|
|
virtual int handle(int event);
|
|
|
|
};
|
|
|
|
#endif
|