~profzoom/ubuntu/quantal/wmaker/bug-1079925

« back to all changes in this revision

Viewing changes to src/appicon.h

  • Committer: Bazaar Package Importer
  • Author(s): Marcelo E. Magallon
  • Date: 2004-11-10 14:05:30 UTC
  • Revision ID: james.westby@ubuntu.com-20041110140530-qpd66b5lm38x7apk
Tags: upstream-0.91.0
ImportĀ upstreamĀ versionĀ 0.91.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* appicon.h- application icon
 
2
 *
 
3
 *  Window Maker window manager
 
4
 *
 
5
 *  Copyright (c) 1997-2003 Alfredo K. Kojima
 
6
 *
 
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.
 
11
 *
 
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.
 
16
 *
 
17
 *  You should have received a copy of the GNU General Public License
 
18
 *  along with this program; if not, write to the Free Software
 
19
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
 
20
 *  USA.
 
21
 */
 
22
 
 
23
 
 
24
#ifndef WMAPPICON_H_
 
25
#define WMAPPICON_H_
 
26
 
 
27
#include <wraster.h>
 
28
 
 
29
#include "wcore.h"
 
30
#include "window.h"
 
31
#include "icon.h"
 
32
#include "application.h"
 
33
 
 
34
 
 
35
typedef struct WAppIcon {
 
36
    short xindex;
 
37
    short yindex;
 
38
    struct WAppIcon *next;
 
39
    struct WAppIcon *prev;
 
40
    WIcon *icon;
 
41
 
 
42
    char *client_machine;
 
43
 
 
44
    int x_pos, y_pos;                  /* absolute screen coordinate */
 
45
 
 
46
    char *command;                     /* command used to launch app */
 
47
 
 
48
#ifdef XDND
 
49
    char *dnd_command;                 /* command to use when something is */
 
50
                                       /* dropped on us */
 
51
#endif
 
52
 
 
53
    char *paste_command;               /* command to run when something is pasted */
 
54
 
 
55
    char *wm_class;
 
56
    char *wm_instance;
 
57
    pid_t pid;                         /* for apps launched from the dock */
 
58
    Window main_window;
 
59
 
 
60
    struct WDock *dock;                /* In which dock is docked. */
 
61
 
 
62
    struct _AppSettingsPanel *panel;   /* Settings Panel */
 
63
 
 
64
    unsigned int gnustep_app:1;        /* if this is a GNUstep application */
 
65
    unsigned int docked:1;
 
66
    unsigned int omnipresent:1;        /* If omnipresent when docked in clip */
 
67
    unsigned int attracted:1;          /* If it was attracted by the clip */
 
68
    unsigned int launching:1;
 
69
    unsigned int running:1;            /* application is already running */
 
70
    unsigned int relaunching:1;        /* launching 2nd instance */
 
71
 
 
72
    unsigned int forced_dock:1;
 
73
    unsigned int auto_launch:1;        /* launch app on startup */
 
74
    unsigned int remote_start:1;
 
75
    unsigned int updated:1;
 
76
    unsigned int editing:1;            /* editing docked icon */
 
77
    unsigned int drop_launch:1;        /* launching from drop action */
 
78
    unsigned int paste_launch:1;       /* launching from paste action */
 
79
    unsigned int destroyed:1;          /* appicon was destroyed */
 
80
    unsigned int buggy_app:1;          /* do not make dock rely on hints
 
81
                                        * set by app */
 
82
 
 
83
    unsigned int lock:1;               /* do not allow to be destroyed */
 
84
 
 
85
} WAppIcon;
 
86
 
 
87
 
 
88
WAppIcon *wAppIconCreate(WWindow *leader_win);
 
89
WAppIcon *wAppIconCreateForDock(WScreen *scr, char *command, char *wm_instance,
 
90
                                char *wm_class, int tile);
 
91
 
 
92
void wAppIconDestroy(WAppIcon *aicon);
 
93
 
 
94
void wAppIconPaint(WAppIcon *aicon);
 
95
 
 
96
Bool wAppIconChangeImage(WAppIcon *icon, char *file);
 
97
 
 
98
void wAppIconMove(WAppIcon *aicon, int x, int y);
 
99
 
 
100
#endif
 
101