Imported new econtrol

This commit is contained in:
Sanel Zukan
2007-05-22 14:51:00 +00:00
parent ec100a7900
commit 562bb3037f
27 changed files with 340 additions and 9159 deletions

View File

@ -1,25 +1,54 @@
/*
* $Id$
*
* The EDE control center
* Part of Equinox Desktop Environment (EDE).
* Copyright (c) 2000-2006 EDE Authors.
*
* This program is licenced under terms of the
* GNU General Public Licence version 2 or newer.
* See COPYING for details.
*/
#ifndef __ECONTROL_H__
#define __ECONTROL_H__
#ifndef econtrol_h
#define econtrol_h
#include <fltk/Window.h>
#include <fltk/MenuBar.h>
#include <fltk/ItemGroup.h>
#include <fltk/Item.h>
#include <fltk/Group.h>
#include <fltk/InvisibleBox.h>
#include <fltk/TiledGroup.h>
#include <fltk/ScrollGroup.h>
#include <fltk/Button.h>
#include <fltk/StatusBarGroup.h>
#include <edelib/IconTheme.h>
#include <edelib/ExpandableGroup.h>
struct ControlIcon {
edelib::String name;
edelib::String tip;
edelib::String exec;
edelib::String icon;
bool abspath;
int pos;
};
class ControlButton : public fltk::Button {
private:
fltk::InvisibleBox* tip;
edelib::String tipval;
public:
ControlButton(fltk::InvisibleBox* t, edelib::String tv, int x, int y, int w, int h, const char* l = 0);
~ControlButton();
void draw(void);
int handle(int event);
};
class ControlWin : public fltk::Window {
private:
fltk::Group* titlegrp;
fltk::InvisibleBox* title;
fltk::Button* close;
fltk::Button* options;
edelib::ExpandableGroup* icons;
fltk::InvisibleBox* rbox;
fltk::InvisibleBox* tipbox;
edelib::vector<ControlIcon> iconlist;
void init(void);
void load_icons(void);
public:
ControlWin(const char* title, int w = 455, int h = 330);
~ControlWin();
void do_close(void);
};
#endif