~onli/simdock/master

2 by onli
moved sources from unstable-svn-branch to here
1
/*  
2
 *   Copyright 2007 Simone Della Longa <simonedll@yahoo.it>
3
 *
4
 *  This program is free software; you can redistribute it and/or modify
5
 *  it under the terms of the GNU General Public License as published by
6
 *  the Free Software Foundation; either version 2 of the License, or
7
 *  (at your option) any later version.
8
 *
9
 *  This program is distributed in the hope that it will be useful,
10
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
 *  GNU General Public License for more details.
13
 *
14
 *  You should have received a copy of the GNU General Public License
15
 *  along with this program; if not, write to the Free Software
16
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17
 */
18
#ifndef TASKS_H_
19
#define TASKS_H_
20
45 by onli
Fallback to starter icon on program exit
21
#define WNCK_I_KNOW_THIS_IS_UNSTABLE 1	// LOL !!
22
#include <libwnck/libwnck.h>
23
#include "limits.h"
24
2 by onli
moved sources from unstable-svn-branch to here
25
26
#include "main.h"
27
#include "xstuff.h"
28
29
30
class callbackArgs
31
{
32
public:
33
	ImagesArray * ImagesList;
29 by onli
Replace settings with struct
34
	simSettings settings;	
2 by onli
moved sources from unstable-svn-branch to here
35
};
36
37
class taskInfo
38
{
39
public:
40
    bool Init(WnckWindow* w);
41
    void setName (char *processName);
42
    void setPath (char *processName);
43
    bool compareWith (simImage * img);
44
    wxString name;
45
    wxString path;
46
    unsigned int pid;
47
    wxString title;
48
    wxBitmap icon;
49
};
50
51
52
53
Window tasks_getFromName (const char *name, int nameLength);
16 by onli
Revert "Revert "first step for interactive settings: interactive setting (without specific app-update)""
54
Window tasks_getFromWindowName (const char *name, int nameLength);
2 by onli
moved sources from unstable-svn-branch to here
55
int tasks_getProcessName (unsigned int pid, char *target_name, int size_targetname);
29 by onli
Replace settings with struct
56
void tasks_fillList (ImagesArray * ImagesList,simSettings settings);
2 by onli
moved sources from unstable-svn-branch to here
57
void tasks_raise (WnckWindow* win);
10 by onli
better menu-position, minimizing, icon-refresh on close
58
void tasks_minimize (WnckWindow* win);
29 by onli
Replace settings with struct
59
void tasks_register_signals(ImagesArray * ImagesList,simSettings settings);
2 by onli
moved sources from unstable-svn-branch to here
60
/* Adds a new image to the images list given a window and task informations */
29 by onli
Replace settings with struct
61
void tasks_addNewImage(WnckWindow *window, ImagesArray* ImagesList, simSettings settings,const taskInfo& ti);
2 by onli
moved sources from unstable-svn-branch to here
62
wxBitmap* tasks_getRootWallpaper();
63
64
#endif