Importing EDE2 code to svn... NOTE: It doesn't compile! Stuff thats broken: edewm, eworkpanel, eiconman,

emenueditor
This commit is contained in:
Vedran Ljubovic
2006-08-20 18:43:09 +00:00
commit 65018f75b7
1004 changed files with 88271 additions and 0 deletions

58
eworkpanel/panelbutton.h Executable file
View File

@@ -0,0 +1,58 @@
// Copyright (c) 2000. - 2005. EDE Authors
// This program is licenced under terms of the
// GNU General Public Licence version 2 or newer.
// See COPYING for details.
#ifndef panelbutton_h
#define panelbutton_h
/*#include <efltk/Fl.h>
#include <efltk/Fl_Window.h>
#include <efltk/x.h>
#include <efltk/Fl_Menu_Button.h>
#include <efltk/Fl_Button.h>
#include <efltk/Fl_Item_Group.h>
#include <efltk/Fl_Item.h>*/
#include <fltk/Fl.h>
#include <fltk/Window.h>
#include <fltk/x.h>
#include <fltk/Menu_Button.h>
#include <fltk/Button.h>
#include <fltk/Item_Group.h>
#include <fltk/Item.h>
class PanelMenu : public fltk::Menu_Button
{
public:
PanelMenu(int, int, int, int, fltk::Boxtype, fltk::Boxtype, const char *l=0);
void calculate_height();
virtual void draw();
virtual int popup();
virtual void preferred_size(int &w, int &h) const { w=this->w(); }
bool is_open() { return m_open; }
private:
int Height;
fltk::Boxtype up, down;
bool m_open;
};
class PanelButton : public fltk::Button
{
public:
PanelButton(int, int, int, int, fltk::Boxtype, fltk::Boxtype, const char *l=0);
virtual void draw();
virtual void preferred_size(int &w, int &h) const { w=this->w(); }
private:
int Height;
fltk::Boxtype up, down;
};
#endif