[go: up one dir, main page]

Menu

[e0151d]: / src / gnomeapps.h  Maximize  Restore  History

Download this file

45 lines (33 with data), 1.0 kB

 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
44
#ifndef __GNOMEAPPS_H
#define __GNOMEAPPS_H
#ifdef CONFIG_GNOME_MENUS
#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, YIcon::Image * 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 YIcon::Image * folderIcon;
};
#endif
#endif