1
/*********************************************************
2
* Copyright (C) 2004 VMware, Inc. All rights reserved.
4
* This program is free software; you can redistribute it and/or modify it
5
* under the terms of the GNU Lesser General Public License as published
6
* by the Free Software Foundation version 2.1 and no later version.
8
* This program is distributed in the hope that it will be useful, but
9
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
10
* or FITNESS FOR A PARTICULAR PURPOSE. See the Lesser GNU General Public
11
* License for more details.
13
* You should have received a copy of the GNU Lesser General Public License
14
* along with this program; if not, write to the Free Software Foundation, Inc.,
15
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
17
*********************************************************/
22
* Common defines used by the gtk toolbox
24
#ifndef _TOOLBOX_GTK_INT_H_
25
# define _TOOLBOX_GTK_INT_H_
31
#include "toolboxInt.h"
32
#include "vm_basic_types.h"
33
#include "vm_version.h"
34
#include "dbllnklst.h"
36
#define RPCIN_POLL_TIME 10 /* in 1/1000ths of a second */
37
#define DEVICES_POLL_TIME 100 /* in 1/1000ths of a second */
38
#define WIPER_POLL_TIME 10 /* in 1/1000ths of a second */
39
#define POST_RESET_TIME 100 /* in 1/1000ths of a second */
41
#define SCRIPT_SUSPEND "Suspend Guest Operating System"
42
#define SCRIPT_RESUME "Resume Guest Operating System"
43
#define SCRIPT_OFF "Shut Down Guest Operating System"
44
#define SCRIPT_ON "Power On Guest Operating System"
47
#define TAB_LABEL_OPTIONS "_Options"
48
#define TAB_LABEL_DEVICES "De_vices"
49
#define TAB_LABEL_SCRIPTS "Scri_pts"
50
#define TAB_LABEL_SHRINK "Shrin_k"
51
#define TAB_LABEL_ABOUT "Abo_ut"
53
#define TAB_LABEL_OPTIONS "Options"
54
#define TAB_LABEL_DEVICES "Devices"
55
#define TAB_LABEL_SCRIPTS "Scripts"
56
#define TAB_LABEL_SHRINK "Shrink"
57
#define TAB_LABEL_ABOUT "About"
60
void OnViewportSizeRequest(GtkWidget *widget, GtkRequisition *requisition,
63
Bool ToolsMain_YesNoBox(gchar* title, gchar *msg);
64
void ToolsMain_MsgBox(gchar* title, gchar *msg);
65
void ToolsMain_OnDestroy(GtkWidget *widget, gpointer data);
67
GtkWidget* About_Create(GtkWidget* mainWnd);
68
GtkWidget* Devices_Create(GtkWidget* mainWnd);
69
GtkWidget* Options_Create(GtkWidget* mainWnd);
70
GtkWidget* Scripts_Create(GtkWidget* mainWnd);
71
GtkWidget* Shrink_Create(GtkWidget* mainWnd);
73
void Options_OnTimeSyncToggled(gpointer btn, gpointer data);
74
void Devices_OnDeviceToggled(gpointer btn, gpointer data);
75
void Pointer_SetXCursorPos(int x, int y);
76
void Scripts_OnApply(gpointer btn, gpointer data);
78
extern GdkPixmap* pixmap;
79
extern GdkBitmap* bitmask;
80
extern GdkColormap* colormap;
81
extern GtkWidget *optionsTimeSync;
82
extern DblLnkLst_Links *gEventQueue;
83
extern GtkWidget *scriptsApply;
85
#endif // _TOOLBOX_INT_H_