Don't save app settings proplist when nothing changed
[wmaker-crm.git] / src / appicon.h
blobf10f847e3102d23d594a026b9787cc1405be5ea1
1 /* appicon.h- application icon
3 * Window Maker window manager
5 * Copyright (c) 1997-2003 Alfredo K. Kojima
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License along
18 * with this program; if not, write to the Free Software Foundation, Inc.,
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 #ifndef WMAPPICON_H_
24 #define WMAPPICON_H_
26 #include <wraster.h>
28 #include "window.h"
29 #include "icon.h"
30 #include "application.h"
33 typedef struct WAppIcon {
34 short xindex;
35 short yindex;
36 struct WAppIcon *next;
37 struct WAppIcon *prev;
38 WIcon *icon;
40 char *client_machine;
42 int x_pos, y_pos; /* absolute screen coordinate */
44 char *command; /* command used to launch app */
46 #ifdef XDND
47 char *dnd_command; /* command to use when something is */
48 /* dropped on us */
49 #endif
51 char *paste_command; /* command to run when something is pasted */
53 char *wm_class;
54 char *wm_instance;
55 pid_t pid; /* for apps launched from the dock */
56 Window main_window;
58 struct WDock *dock; /* In which dock is docked. */
60 struct _AppSettingsPanel *panel; /* Settings Panel */
62 unsigned int gnustep_app:1; /* if this is a GNUstep application */
63 unsigned int docked:1;
64 unsigned int omnipresent:1; /* If omnipresent when docked in clip */
65 unsigned int attracted:1; /* If it was attracted by the clip */
66 unsigned int launching:1;
67 unsigned int running:1; /* application is already running */
68 unsigned int relaunching:1; /* launching 2nd instance */
70 unsigned int forced_dock:1;
71 unsigned int auto_launch:1; /* launch app on startup */
72 unsigned int remote_start:1;
73 unsigned int updated:1;
74 unsigned int editing:1; /* editing docked icon */
75 unsigned int drop_launch:1; /* launching from drop action */
76 unsigned int paste_launch:1; /* launching from paste action */
77 unsigned int destroyed:1; /* appicon was destroyed */
78 unsigned int buggy_app:1; /* do not make dock rely on hints
79 * set by app */
81 unsigned int lock:1; /* do not allow to be destroyed */
83 } WAppIcon;
86 WAppIcon *wAppIconCreate(WWindow *leader_win);
87 WAppIcon *wAppIconCreateForDock(WScreen *scr, char *command, char *wm_instance,
88 char *wm_class, int tile);
90 void wAppIconDestroy(WAppIcon *aicon);
92 void wAppIconPaint(WAppIcon *aicon);
94 Bool wAppIconChangeImage(WAppIcon *icon, char *file);
96 void wAppIconMove(WAppIcon *aicon, int x, int y);
98 Bool wAppIconSave(WAppIcon *aicon);
100 #endif