[go: up one dir, main page]

Menu

[4f9184]: / src / gnomeapps.h  Maximize  Restore  History

Download this file

44 lines (32 with data), 996 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef __GNOMEAPPS_H
#define __GNOMEAPPS_H
#ifdef GNOME
#include "objmenu.h"
#include <gnome.h>
#include "obj.h"
class DGnomeDesktopEntry: public DObject {
public:
DGnomeDesktopEntry(const char *name, YIcon *icon, GnomeDesktopEntry *dentry);
~DGnomeDesktopEntry();
virtual void open();
private:
GnomeDesktopEntry *fEntry;
};
class GnomeMenu: public ObjectMenu {
public:
GnomeMenu(YWindow *parent, const char *path);
virtual ~GnomeMenu();
virtual void updatePopup();
static void createToplevel(ObjectMenu *menu, const char *path);
static void createSubmenu(ObjectMenu *menu, const char *path,
const char *name, YPixmap *icon);
private:
void populateMenu(ObjectMenu *target);
void addEntry(const char *name, const int plen, ObjectMenu *target,
const int firstItem = 0, const bool firstRun = true);
char *fPath;
time_t fModTime;
static YPixmap *folder_icon;
};
#endif
#endif