mirror of
https://github.com/edeproject/ede.git
synced 2023-08-10 21:13:03 +03:00
eb175fa89f
This change should make base applet code easier to modify without modifying applets itself. This is also a starting point for implementation of better routing netwm messages to applets without adding specific listener to each applet.
50 lines
1.3 KiB
C++
50 lines
1.3 KiB
C++
/*
|
|
* $Id$
|
|
*
|
|
* Copyright (C) 2012 Sanel Zukan
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License
|
|
* as published by the Free Software Foundation; either version 2
|
|
* of the License, or (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
*/
|
|
|
|
#ifndef __APPLETMANAGER_H__
|
|
#define __APPLETMANAGER_H__
|
|
|
|
#include <edelib/List.h>
|
|
#include <edelib/String.h>
|
|
#include "Applet.h"
|
|
|
|
class Panel;
|
|
class Fl_Widget;
|
|
struct AppletData;
|
|
|
|
typedef edelib::list<AppletData*> AList;
|
|
typedef edelib::list<AppletData*>::iterator AListIter;
|
|
|
|
class AppletManager {
|
|
private:
|
|
AList applet_list;
|
|
public:
|
|
~AppletManager();
|
|
bool load(const char *path);
|
|
void clear(void);
|
|
void fill_group(Panel *p);
|
|
void unfill_group(Panel *p);
|
|
|
|
bool get_applet_options(Fl_Widget *o, unsigned long &opts);
|
|
unsigned int napplets(void) const { return applet_list.size(); }
|
|
};
|
|
|
|
#endif
|