ede/eiconman/DesktopConfig.h
Sanel Zukan 4ef5be0c9b Removed multiple views support. Slow for my taste especially in case different
huge background images for each view; also eats up memory. Not to say that complicates code.
Added dnd basics.
2007-05-24 12:53:03 +00:00

61 lines
1.4 KiB
C++

/*
* $Id$
*
* Eiconman, desktop and icon manager
* 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 __DESKTOPCONFIG_H__
#define __DESKTOPCONFIG_H__
#include <fltk/Window.h>
#include <fltk/Button.h>
#include <fltk/Input.h>
#include <fltk/InvisibleBox.h>
#include <fltk/Choice.h>
#include <fltk/CheckButton.h>
#include <fltk/Image.h>
#include <edelib/String.h>
class PreviewBox : public fltk::InvisibleBox {
public:
PreviewBox(int x, int y, int w, int h, const char* l = 0);
~PreviewBox();
virtual void draw(void);
};
class DesktopConfig : public fltk::Window {
private:
bool img_enable;
fltk::Image* wp_img;
fltk::Input* img_path;
fltk::Button* img_browse;
fltk::Choice* img_choice;
fltk::CheckButton* use_wp;
PreviewBox* preview;
fltk::Button* color_box;
edelib::String wp_path;
public:
DesktopConfig();
~DesktopConfig();
void run(void);
void wp_disable(void);
bool wp_enabled(void) { return img_enable; }
void set_preview_color(unsigned int c);
void set_preview_image(const char* path);
void set_color(unsigned int c);
unsigned int bg_color(void) { return color_box->color(); }
};
#endif