]> git.saurik.com Git - wxWidgets.git/blob - src/mgl/utils.cpp
use Windows standard icons instead of our own (patch 443856)
[wxWidgets.git] / src / mgl / utils.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: utils.cpp
3 // Purpose:
4 // Author: Vaclav Slavik
5 // Id: $Id$
6 // Copyright: (c) 2001 SciTech Software, Inc. (www.scitechsoft.com)
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10 #include "wx/utils.h"
11 #include "wx/string.h"
12
13 #include "wx/intl.h"
14 #include "wx/log.h"
15
16 #include "wx/process.h"
17
18 #include <stdarg.h>
19 #include <string.h>
20 #include <sys/stat.h>
21 #include <sys/types.h>
22 #include <unistd.h>
23 #include <mgraph.hpp>
24
25 #ifdef __UNIX__
26 #include "wx/unix/execute.h"
27 #endif
28
29 //----------------------------------------------------------------------------
30 // misc.
31 //----------------------------------------------------------------------------
32
33 void wxBell()
34 {
35 // FIXME_MGL
36 }
37
38 // ----------------------------------------------------------------------------
39 // display characterstics
40 // ----------------------------------------------------------------------------
41
42 extern MGLDevCtx *g_displayDC;
43
44 void wxDisplaySize( int *width, int *height )
45 {
46 wxASSERT_MSG( g_displayDC, wxT("MGL display DC not created yet.") );
47 if (width) *width = g_displayDC->sizex();
48 if (height) *height = g_displayDC->sizey();
49 }
50
51 void wxGetMousePosition( int* x, int* y )
52 {
53 #if 0 // FIXME_MGL
54 gdk_window_get_pointer( (GdkWindow*) NULL, x, y, (GdkModifierType*) NULL );
55 #endif
56 }
57
58 bool wxColourDisplay()
59 {
60 wxASSERT_MSG( g_displayDC, wxT("MGL display DC not created yet.") );
61
62 return (wxDisplayDepth() > 1);
63 }
64
65 int wxDisplayDepth()
66 {
67 wxASSERT_MSG( g_displayDC, wxT("MGL display DC not created yet.") );
68
69 return g_displayDC->getBitsPerPixel();
70 }
71
72 int wxGetOsVersion(int *majorVsn, int *minorVsn)
73 {
74 #if 0 // FIXME_MGL
75 // FIXME_MGL : wxGetOsVersion, too
76 if (majorVsn) *majorVsn = GTK_MAJOR_VERSION;
77 if (minorVsn) *minorVsn = GTK_MINOR_VERSION;
78
79 return wxGTK;
80 #endif
81 }
82
83
84 #ifdef __UNIX__
85
86 int wxAddProcessCallback(wxEndProcessData *proc_data, int fd)
87 {
88 #if 0 // FIXME_MGL -do we need it at all?
89 int tag = gdk_input_add(fd,
90 GDK_INPUT_READ,
91 GTK_EndProcessDetector,
92 (gpointer)proc_data);
93
94 return tag;
95 #endif
96 }
97
98 #endif