-\section{Config classes overview}\label{wxconfigoverview}
+\section{wxConfig classes overview}\label{wxconfigoverview}
Classes: \helpref{wxConfig}{wxconfigbase}
\input tguide.tex
\input hworld.tex
\input tsamples.tex
-
-Every application need one wxApp class, so we start here:
-
\input tapp.tex
-
-Not everything in wxWindows is about GUI programming:
-
\input truntime.tex
\input tstring.tex
\input tunicode.tex
\input tconfig.tex
\input texpr.tex
\input fs.tex
-
-General overviews concerning windows and events:
-
\input tevent.tex
\input tstyles.tex
\input tdelwin.tex
\input tconstr.tex
\input tresourc.tex
\input tscroll.tex
-
-Drawing and device context specific overviews:
-
\input tbitmap.tex
\input tdc.tex
\input tfont.tex
\input tfontenc.tex
-
-Special controls:
-
\input tsplittr.tex
\input ttreectl.tex
\input tlistctl.tex
\input ttoolbar.tex
\input tgrid.tex
\input ttips.tex
-
-Advanced topic overviews:
-
\input tprint.tex
\input tthreads.tex
\input tdnd.tex
-\section{Streams in wxWindows overview}\label{wxstreamoverview}
+\section{wxStreams overview}\label{wxstreamoverview}
Classes: \helpref{wxStreamBase}{wxstreambase},
\helpref{wxStreamBuffer}{wxstreambuffer}, \helpref{wxInputStream}{wxinputstream},
// Ok, read some bytes ... nb_datas is expressed in bytes.
in_stream.Read(data, nb_datas);
- if (in_stream.LastError() != wxStream_NOERROR) {
+ if (in_stream.LastError() != wxSTREAM_NOERROR) {
// Oh oh, something bad happens.
// For a complete list, look into the documentation at wxStreamBase.
}
// You can also inline all like this.
- if (in_stream.Read(data, nb_datas).LastError() != wxStream_NOERROR) {
+ if (in_stream.Read(data, nb_datas).LastError() != wxSTREAM_NOERROR) {
// Do something.
}
Win32 a thread can only access GDI objects such as pens, brushes, \&c created by
itself and not by the other threads).
-Final note: in the current release of wxWindows, there are no specific
-facilities for communicating between the threads. However, the usual
-\helpref{ProcessEvent()}{wxevthandlerprocessevent} function may be used for
-thread communication too - but you should provide your own synchronisation
-mechanism if you use it (e.g. just use a critical section before sending a
-message) because there is no built-in synchronisation.
+For communication between threads, use
+\helpref{wxEvtHandler::AddPendingEvent}{wxevthandleraddpendingprocessevent}
+or its short version \helpref{wxPostEvent}{wxpostevent}. These functions
+have thread safe implementation so that they can be used as they are for
+sending event from one thread to another.
+
bool Ok() const;
-// implementation
-
+ // implementation
+ // --------------
+
int GetCommand( wxKeyEvent &event );
private:
{ return GetPalette(); };
// implementation
+ // --------------
void SetHeight( int height );
void SetWidth( int width );
GdkPixmap *GetPixmap() const;
GdkBitmap *GetBitmap() const;
-
- // no data :-)
private:
DECLARE_DYNAMIC_CLASS(wxBitmap)
virtual bool Enable(bool enable);
-// implementation
-
+ // implementation
+ // --------------
+
void HasFocus();
void NotFocus();
void StartSelect();
static wxSize GetDefaultSize();
- // implementation
+ // implementation
+ // --------------
void ApplyWidgetStyle();
bool Enable( bool enable );
// implementation
+ // --------------
+
void ApplyWidgetStyle();
bool IsOwnGtkWindow( GdkWindow *window );
void OnInternalIdle();
wxString GetString( int n ) const;
void SetString( int n, const wxString& string );
- // implementation
+protected:
wxList m_clientList; // contains the client data for the items
- void DisableEvents();
- void EnableEvents();
- void AppendCommon( const wxString &item );
void ApplyWidgetStyle();
-
-protected:
virtual int DoAppend(const wxString& item);
virtual void DoSetItemClientData( int n, void* clientData );
private:
// common part of Create() and DoAppend()
- size_t AppendHelper(GtkWidget *menu, const wxString& item);
+ size_t GtkAppendHelper(GtkWidget *menu, const wxString& item);
// this array is only used for controls with wxCB_SORT style, so only
// allocate it if it's needed (hence using pointer)
class wxCursor: public wxObject
{
- DECLARE_DYNAMIC_CLASS(wxCursor)
-
- public:
+public:
wxCursor();
wxCursor( int cursorId );
bool operator != ( const wxCursor& cursor ) const;
bool Ok() const;
+ // implementation
+
GdkCursor *GetCursor() const;
- // no data :-)
+private:
+ DECLARE_DYNAMIC_CLASS(wxCursor)
};
#endif // __GTKCURSORH__
class wxDC : public wxDCBase
{
- DECLARE_ABSTRACT_CLASS(wxDC)
-
public:
wxDC();
~wxDC() { }
m_needComputeScaleY; // not yet used
float m_scaleFactor; // wxPSDC wants to have this. Will disappear.
+
+private:
+ DECLARE_ABSTRACT_CLASS(wxDC)
};
#endif // __GTKDCH__
class wxWindowDC : public wxDC
{
- DECLARE_DYNAMIC_CLASS(wxWindowDC)
-
public:
wxWindowDC();
wxWindowDC( wxWindow *win );
void ComputeScaleAndOrigin();
GdkWindow *GetWindow() { return m_window; }
+
+private:
+ DECLARE_DYNAMIC_CLASS(wxWindowDC)
};
//-----------------------------------------------------------------------------
class wxPaintDC : public wxWindowDC
{
- DECLARE_DYNAMIC_CLASS(wxPaintDC)
-
public:
wxPaintDC();
wxPaintDC( wxWindow *win );
+
+private:
+ DECLARE_DYNAMIC_CLASS(wxPaintDC)
};
//-----------------------------------------------------------------------------
class wxClientDC : public wxWindowDC
{
- DECLARE_DYNAMIC_CLASS(wxClientDC)
-
public:
wxClientDC();
wxClientDC( wxWindow *win );
+
+private:
+ DECLARE_DYNAMIC_CLASS(wxClientDC)
};
-
#endif // __GTKDCCLIENTH__
class wxMemoryDC : public wxWindowDC
{
- DECLARE_DYNAMIC_CLASS(wxMemoryDC)
-
public:
- wxMemoryDC();
- wxMemoryDC( wxDC *dc ); // Create compatible DC
- ~wxMemoryDC();
- virtual void SelectObject( const wxBitmap& bitmap );
- void DoGetSize( int *width, int *height ) const;
+ wxMemoryDC();
+ wxMemoryDC( wxDC *dc ); // Create compatible DC
+ ~wxMemoryDC();
+ virtual void SelectObject( const wxBitmap& bitmap );
+ void DoGetSize( int *width, int *height ) const;
- // implementation
+ // implementation
+ wxBitmap m_selected;
- wxBitmap m_selected;
+private:
+ DECLARE_DYNAMIC_CLASS(wxMemoryDC)
};
#endif
class wxScreenDC: public wxPaintDC
{
- DECLARE_DYNAMIC_CLASS(wxScreenDC)
-
public:
- wxScreenDC();
- ~wxScreenDC();
-
- static bool StartDrawingOnTop( wxWindow *window );
- static bool StartDrawingOnTop( wxRect *rect = (wxRect *) NULL );
- static bool EndDrawingOnTop();
-
- // implementation
-
- static GdkWindow *sm_overlayWindow;
- static int sm_overlayWindowX;
- static int sm_overlayWindowY;
+ wxScreenDC();
+ ~wxScreenDC();
+
+ static bool StartDrawingOnTop( wxWindow *window );
+ static bool StartDrawingOnTop( wxRect *rect = (wxRect *) NULL );
+ static bool EndDrawingOnTop();
+
+ // implementation
+
+ static GdkWindow *sm_overlayWindow;
+ static int sm_overlayWindowX;
+ static int sm_overlayWindowY;
+
+private:
+ DECLARE_DYNAMIC_CLASS(wxScreenDC)
};
#endif
class wxDialog: public wxDialogBase
{
- DECLARE_DYNAMIC_CLASS(wxDialog)
-
public:
wxDialog() { Init(); }
wxDialog( wxWindow *parent, wxWindowID id,
private:
DECLARE_EVENT_TABLE()
+ DECLARE_DYNAMIC_CLASS(wxDialog)
};
#endif // __GTKDIALOGH__
class wxFileDialog: public wxDialog
{
-DECLARE_DYNAMIC_CLASS(wxFileDialog)
-
public:
wxFileDialog() { }
int GetFilterIndex() const { return m_filterIndex ; }
protected:
-
wxString m_message;
long m_dialogStyle;
wxWindow * m_parent;
wxString m_fileName;
wxString m_wildCard;
int m_filterIndex;
+
+private:
+ DECLARE_DYNAMIC_CLASS(wxFileDialog)
};
#define wxOPEN 1
class wxGauge: public wxControl
{
- DECLARE_DYNAMIC_CLASS(wxGauge)
-
- public:
+public:
inline wxGauge() { m_rangeMax = 0; m_gaugePos = 0; m_useProgressBar = TRUE; }
inline wxGauge( wxWindow *parent, wxWindowID id, int range,
// Are we a Win95/GTK progress bar, or a normal gauge?
inline bool GetProgressBar() const { return m_useProgressBar; }
- // implementation
+ // implementation
+ // -------------
void ApplyWidgetStyle();
-
- int m_rangeMax;
- int m_gaugePos;
- bool m_useProgressBar;
+ int m_rangeMax;
+ int m_gaugePos;
+ bool m_useProgressBar;
+
+private:
+ DECLARE_DYNAMIC_CLASS(wxGauge)
};
#endif
class wxGDIObject : public wxObject
{
-DECLARE_DYNAMIC_CLASS(wxGDIObject)
-
public:
- inline wxGDIObject() { m_visible = FALSE; };
- inline ~wxGDIObject() {};
+ inline wxGDIObject() { m_visible = FALSE; };
+ inline ~wxGDIObject() {}
- virtual bool GetVisible() { return m_visible; }
- virtual void SetVisible( bool visible ) { m_visible = visible; }
+ virtual bool GetVisible() { return m_visible; }
+ virtual void SetVisible( bool visible ) { m_visible = visible; }
protected:
- bool m_visible; /* can a pointer to this object be safely taken?
- * - only if created within FindOrCreate... */
+ bool m_visible; /* can a pointer to this object be safely taken?
+ * - only if created within FindOrCreate... */
+private:
+ DECLARE_DYNAMIC_CLASS(wxGDIObject)
};
#endif
class wxIcon: public wxBitmap
{
- DECLARE_DYNAMIC_CLASS(wxIcon)
-
public:
-
- wxIcon();
- wxIcon( const wxIcon& icon);
- wxIcon( const char **bits, int width=-1, int height=-1 );
-
- // For compatibility with wxMSW where desired size is sometimes required to
- // distinguish between multiple icons in a resource.
- wxIcon( const wxString& filename, int type = wxBITMAP_TYPE_XPM, int WXUNUSED(desiredWidth)=-1, int WXUNUSED(desiredHeight)=-1 ):
- wxBitmap(filename, type)
- {
- }
- wxIcon( char **bits, int width=-1, int height=-1 );
-
- wxIcon& operator = (const wxIcon& icon);
- inline bool operator == (const wxIcon& icon) { return m_refData == icon.m_refData; }
- inline bool operator != (const wxIcon& icon) { return m_refData != icon.m_refData; }
+ wxIcon();
+ wxIcon( const wxIcon& icon);
+ wxIcon( const char **bits, int width=-1, int height=-1 );
+
+ // For compatibility with wxMSW where desired size is sometimes required to
+ // distinguish between multiple icons in a resource.
+ wxIcon( const wxString& filename, int type = wxBITMAP_TYPE_XPM,
+ int WXUNUSED(desiredWidth)=-1, int WXUNUSED(desiredHeight)=-1 ) :
+ wxBitmap(filename, type)
+ {
+ }
+ wxIcon( char **bits, int width=-1, int height=-1 );
+
+ wxIcon& operator = (const wxIcon& icon);
+ inline bool operator == (const wxIcon& icon) { return m_refData == icon.m_refData; }
+ inline bool operator != (const wxIcon& icon) { return m_refData != icon.m_refData; }
+
+private:
+ DECLARE_DYNAMIC_CLASS(wxIcon)
};
class wxPen: public wxGDIObject
{
- DECLARE_DYNAMIC_CLASS(wxPen)
-
- public:
-
+public:
wxPen();
wxPen( const wxColour &colour, int width, int style );
wxPen( const wxPen& pen );
void Unshare();
- // no data :-)
+private:
+ DECLARE_DYNAMIC_CLASS(wxPen)
};
#endif // __GTKPENH__
class wxScrollBar: public wxControl
{
- DECLARE_DYNAMIC_CLASS(wxScrollBar)
-
- public:
-
+public:
wxScrollBar(void) { m_adjust = (GtkAdjustment *) NULL; m_oldPos = 0.0; };
inline wxScrollBar( wxWindow *parent, wxWindowID id,
const wxPoint& pos = wxDefaultPosition,
virtual void SetScrollbar( int position, int thumbSize, int range, int pageSize,
bool refresh = TRUE );
- // Backward compatibility
+ // Backward compatibility
+ // ----------------------
int GetValue(void) const;
void SetValue( int viewStart );
void SetObjectLength( int objectLength );
void SetViewLength( int viewLength );
- // implementation
+ // implementation
+ // --------------
bool IsOwnGtkWindow( GdkWindow *window );
void ApplyWidgetStyle();
GtkAdjustment *m_adjust;
float m_oldPos;
+
+private:
+ DECLARE_DYNAMIC_CLASS(wxScrollBar)
};
#endif
bool Ok() const;
-// implementation
-
+ // implementation
+ // --------------
+
int GetCommand( wxKeyEvent &event );
private:
{ return GetPalette(); };
// implementation
+ // --------------
void SetHeight( int height );
void SetWidth( int width );
GdkPixmap *GetPixmap() const;
GdkBitmap *GetBitmap() const;
-
- // no data :-)
private:
DECLARE_DYNAMIC_CLASS(wxBitmap)
virtual bool Enable(bool enable);
-// implementation
-
+ // implementation
+ // --------------
+
void HasFocus();
void NotFocus();
void StartSelect();
static wxSize GetDefaultSize();
- // implementation
+ // implementation
+ // --------------
void ApplyWidgetStyle();
bool Enable( bool enable );
// implementation
+ // --------------
+
void ApplyWidgetStyle();
bool IsOwnGtkWindow( GdkWindow *window );
void OnInternalIdle();
wxString GetString( int n ) const;
void SetString( int n, const wxString& string );
- // implementation
+protected:
wxList m_clientList; // contains the client data for the items
- void DisableEvents();
- void EnableEvents();
- void AppendCommon( const wxString &item );
void ApplyWidgetStyle();
-
-protected:
virtual int DoAppend(const wxString& item);
virtual void DoSetItemClientData( int n, void* clientData );
private:
// common part of Create() and DoAppend()
- size_t AppendHelper(GtkWidget *menu, const wxString& item);
+ size_t GtkAppendHelper(GtkWidget *menu, const wxString& item);
// this array is only used for controls with wxCB_SORT style, so only
// allocate it if it's needed (hence using pointer)
class wxCursor: public wxObject
{
- DECLARE_DYNAMIC_CLASS(wxCursor)
-
- public:
+public:
wxCursor();
wxCursor( int cursorId );
bool operator != ( const wxCursor& cursor ) const;
bool Ok() const;
+ // implementation
+
GdkCursor *GetCursor() const;
- // no data :-)
+private:
+ DECLARE_DYNAMIC_CLASS(wxCursor)
};
#endif // __GTKCURSORH__
class wxDC : public wxDCBase
{
- DECLARE_ABSTRACT_CLASS(wxDC)
-
public:
wxDC();
~wxDC() { }
m_needComputeScaleY; // not yet used
float m_scaleFactor; // wxPSDC wants to have this. Will disappear.
+
+private:
+ DECLARE_ABSTRACT_CLASS(wxDC)
};
#endif // __GTKDCH__
class wxWindowDC : public wxDC
{
- DECLARE_DYNAMIC_CLASS(wxWindowDC)
-
public:
wxWindowDC();
wxWindowDC( wxWindow *win );
void ComputeScaleAndOrigin();
GdkWindow *GetWindow() { return m_window; }
+
+private:
+ DECLARE_DYNAMIC_CLASS(wxWindowDC)
};
//-----------------------------------------------------------------------------
class wxPaintDC : public wxWindowDC
{
- DECLARE_DYNAMIC_CLASS(wxPaintDC)
-
public:
wxPaintDC();
wxPaintDC( wxWindow *win );
+
+private:
+ DECLARE_DYNAMIC_CLASS(wxPaintDC)
};
//-----------------------------------------------------------------------------
class wxClientDC : public wxWindowDC
{
- DECLARE_DYNAMIC_CLASS(wxClientDC)
-
public:
wxClientDC();
wxClientDC( wxWindow *win );
+
+private:
+ DECLARE_DYNAMIC_CLASS(wxClientDC)
};
-
#endif // __GTKDCCLIENTH__
class wxMemoryDC : public wxWindowDC
{
- DECLARE_DYNAMIC_CLASS(wxMemoryDC)
-
public:
- wxMemoryDC();
- wxMemoryDC( wxDC *dc ); // Create compatible DC
- ~wxMemoryDC();
- virtual void SelectObject( const wxBitmap& bitmap );
- void DoGetSize( int *width, int *height ) const;
+ wxMemoryDC();
+ wxMemoryDC( wxDC *dc ); // Create compatible DC
+ ~wxMemoryDC();
+ virtual void SelectObject( const wxBitmap& bitmap );
+ void DoGetSize( int *width, int *height ) const;
- // implementation
+ // implementation
+ wxBitmap m_selected;
- wxBitmap m_selected;
+private:
+ DECLARE_DYNAMIC_CLASS(wxMemoryDC)
};
#endif
class wxScreenDC: public wxPaintDC
{
- DECLARE_DYNAMIC_CLASS(wxScreenDC)
-
public:
- wxScreenDC();
- ~wxScreenDC();
-
- static bool StartDrawingOnTop( wxWindow *window );
- static bool StartDrawingOnTop( wxRect *rect = (wxRect *) NULL );
- static bool EndDrawingOnTop();
-
- // implementation
-
- static GdkWindow *sm_overlayWindow;
- static int sm_overlayWindowX;
- static int sm_overlayWindowY;
+ wxScreenDC();
+ ~wxScreenDC();
+
+ static bool StartDrawingOnTop( wxWindow *window );
+ static bool StartDrawingOnTop( wxRect *rect = (wxRect *) NULL );
+ static bool EndDrawingOnTop();
+
+ // implementation
+
+ static GdkWindow *sm_overlayWindow;
+ static int sm_overlayWindowX;
+ static int sm_overlayWindowY;
+
+private:
+ DECLARE_DYNAMIC_CLASS(wxScreenDC)
};
#endif
class wxDialog: public wxDialogBase
{
- DECLARE_DYNAMIC_CLASS(wxDialog)
-
public:
wxDialog() { Init(); }
wxDialog( wxWindow *parent, wxWindowID id,
private:
DECLARE_EVENT_TABLE()
+ DECLARE_DYNAMIC_CLASS(wxDialog)
};
#endif // __GTKDIALOGH__
class wxFileDialog: public wxDialog
{
-DECLARE_DYNAMIC_CLASS(wxFileDialog)
-
public:
wxFileDialog() { }
int GetFilterIndex() const { return m_filterIndex ; }
protected:
-
wxString m_message;
long m_dialogStyle;
wxWindow * m_parent;
wxString m_fileName;
wxString m_wildCard;
int m_filterIndex;
+
+private:
+ DECLARE_DYNAMIC_CLASS(wxFileDialog)
};
#define wxOPEN 1
class wxGauge: public wxControl
{
- DECLARE_DYNAMIC_CLASS(wxGauge)
-
- public:
+public:
inline wxGauge() { m_rangeMax = 0; m_gaugePos = 0; m_useProgressBar = TRUE; }
inline wxGauge( wxWindow *parent, wxWindowID id, int range,
// Are we a Win95/GTK progress bar, or a normal gauge?
inline bool GetProgressBar() const { return m_useProgressBar; }
- // implementation
+ // implementation
+ // -------------
void ApplyWidgetStyle();
-
- int m_rangeMax;
- int m_gaugePos;
- bool m_useProgressBar;
+ int m_rangeMax;
+ int m_gaugePos;
+ bool m_useProgressBar;
+
+private:
+ DECLARE_DYNAMIC_CLASS(wxGauge)
};
#endif
class wxGDIObject : public wxObject
{
-DECLARE_DYNAMIC_CLASS(wxGDIObject)
-
public:
- inline wxGDIObject() { m_visible = FALSE; };
- inline ~wxGDIObject() {};
+ inline wxGDIObject() { m_visible = FALSE; };
+ inline ~wxGDIObject() {}
- virtual bool GetVisible() { return m_visible; }
- virtual void SetVisible( bool visible ) { m_visible = visible; }
+ virtual bool GetVisible() { return m_visible; }
+ virtual void SetVisible( bool visible ) { m_visible = visible; }
protected:
- bool m_visible; /* can a pointer to this object be safely taken?
- * - only if created within FindOrCreate... */
+ bool m_visible; /* can a pointer to this object be safely taken?
+ * - only if created within FindOrCreate... */
+private:
+ DECLARE_DYNAMIC_CLASS(wxGDIObject)
};
#endif
class wxIcon: public wxBitmap
{
- DECLARE_DYNAMIC_CLASS(wxIcon)
-
public:
-
- wxIcon();
- wxIcon( const wxIcon& icon);
- wxIcon( const char **bits, int width=-1, int height=-1 );
-
- // For compatibility with wxMSW where desired size is sometimes required to
- // distinguish between multiple icons in a resource.
- wxIcon( const wxString& filename, int type = wxBITMAP_TYPE_XPM, int WXUNUSED(desiredWidth)=-1, int WXUNUSED(desiredHeight)=-1 ):
- wxBitmap(filename, type)
- {
- }
- wxIcon( char **bits, int width=-1, int height=-1 );
-
- wxIcon& operator = (const wxIcon& icon);
- inline bool operator == (const wxIcon& icon) { return m_refData == icon.m_refData; }
- inline bool operator != (const wxIcon& icon) { return m_refData != icon.m_refData; }
+ wxIcon();
+ wxIcon( const wxIcon& icon);
+ wxIcon( const char **bits, int width=-1, int height=-1 );
+
+ // For compatibility with wxMSW where desired size is sometimes required to
+ // distinguish between multiple icons in a resource.
+ wxIcon( const wxString& filename, int type = wxBITMAP_TYPE_XPM,
+ int WXUNUSED(desiredWidth)=-1, int WXUNUSED(desiredHeight)=-1 ) :
+ wxBitmap(filename, type)
+ {
+ }
+ wxIcon( char **bits, int width=-1, int height=-1 );
+
+ wxIcon& operator = (const wxIcon& icon);
+ inline bool operator == (const wxIcon& icon) { return m_refData == icon.m_refData; }
+ inline bool operator != (const wxIcon& icon) { return m_refData != icon.m_refData; }
+
+private:
+ DECLARE_DYNAMIC_CLASS(wxIcon)
};
class wxPen: public wxGDIObject
{
- DECLARE_DYNAMIC_CLASS(wxPen)
-
- public:
-
+public:
wxPen();
wxPen( const wxColour &colour, int width, int style );
wxPen( const wxPen& pen );
void Unshare();
- // no data :-)
+private:
+ DECLARE_DYNAMIC_CLASS(wxPen)
};
#endif // __GTKPENH__
class wxScrollBar: public wxControl
{
- DECLARE_DYNAMIC_CLASS(wxScrollBar)
-
- public:
-
+public:
wxScrollBar(void) { m_adjust = (GtkAdjustment *) NULL; m_oldPos = 0.0; };
inline wxScrollBar( wxWindow *parent, wxWindowID id,
const wxPoint& pos = wxDefaultPosition,
virtual void SetScrollbar( int position, int thumbSize, int range, int pageSize,
bool refresh = TRUE );
- // Backward compatibility
+ // Backward compatibility
+ // ----------------------
int GetValue(void) const;
void SetValue( int viewStart );
void SetObjectLength( int objectLength );
void SetViewLength( int viewLength );
- // implementation
+ // implementation
+ // --------------
bool IsOwnGtkWindow( GdkWindow *window );
void ApplyWidgetStyle();
GtkAdjustment *m_adjust;
float m_oldPos;
+
+private:
+ DECLARE_DYNAMIC_CLASS(wxScrollBar)
};
#endif
class WXDLLEXPORT wxMenuItemBase : public wxObject
{
public:
+ // some compilers need a default constructor here, do not use
+ wxMenuItemBase()
+ { wxFAIL_MSG( wxT("illegal call") ); }
+
// creation
static wxMenuItem *New(wxMenu *parentMenu = (wxMenu *)NULL,
int id = wxID_SEPARATOR,
wxMutexGuiEnter();
- msg << wxTime().FormatTime() << ": " << text;
+ msg << text;
m_frame->WriteText(msg);
#ifdef __WXGTK__
-#include "gtk/gtk.h"
-#include "gdk/gdk.h"
-#include "gdk/gdkx.h"
+#include <gtk/gtk.h>
+#include <gdk/gdk.h>
+#include <gdk/gdkx.h>
#if (GTK_MINOR_VERSION > 0)
-#include "gdk/gdkrgb.h"
+#include <gdk/gdkrgb.h>
#endif
wxBitmap wxImage::ConvertToBitmap() const
#include "wx/thread.h"
#endif
-#include "unistd.h"
+#include <unistd.h>
-#include "glib.h"
-#include "gdk/gdk.h"
-#include "gtk/gtk.h"
+#include <glib.h>
+#include <gdk/gdk.h>
+#include <gtk/gtk.h>
#include "wx/gtk/win_gtk.h"
#include "wx/filefn.h"
#include "wx/image.h"
-#include "gdk/gdk.h"
-#include "gdk/gdkprivate.h"
-#include "gdk/gdkx.h"
+#include <gdk/gdk.h>
+#include <gdk/gdkprivate.h>
+#include <gdk/gdkx.h>
//-----------------------------------------------------------------------------
// wxMask
#if wxUSE_BMPBUTTON
-#include "gdk/gdk.h"
-#include "gtk/gtk.h"
+#include <gdk/gdk.h>
+#include <gtk/gtk.h>
//-----------------------------------------------------------------------------
// classes
#include "wx/brush.h"
-#include "gdk/gdk.h"
+#include <gdk/gdk.h>
//-----------------------------------------------------------------------------
// wxBrush
#include "wx/button.h"
-#include "gdk/gdk.h"
-#include "gtk/gtk.h"
+#include <gdk/gdk.h>
+#include <gtk/gtk.h>
//-----------------------------------------------------------------------------
// classes
#if wxUSE_CHECKBOX
-#include "gdk/gdk.h"
-#include "gtk/gtk.h"
+#include <gdk/gdk.h>
+#include <gtk/gtk.h>
//-----------------------------------------------------------------------------
// idle system
#include "wx/thread.h"
#endif
-#include "unistd.h"
+#include <unistd.h>
-#include "glib.h"
-#include "gdk/gdk.h"
-#include "gtk/gtk.h"
+#include <glib.h>
+#include <gdk/gdk.h>
+#include <gtk/gtk.h>
#include "wx/gtk/win_gtk.h"
#include "wx/filefn.h"
#include "wx/image.h"
-#include "gdk/gdk.h"
-#include "gdk/gdkprivate.h"
-#include "gdk/gdkx.h"
+#include <gdk/gdk.h>
+#include <gdk/gdkprivate.h>
+#include <gdk/gdkx.h>
//-----------------------------------------------------------------------------
// wxMask
#if wxUSE_BMPBUTTON
-#include "gdk/gdk.h"
-#include "gtk/gtk.h"
+#include <gdk/gdk.h>
+#include <gtk/gtk.h>
//-----------------------------------------------------------------------------
// classes
#include "wx/brush.h"
-#include "gdk/gdk.h"
+#include <gdk/gdk.h>
//-----------------------------------------------------------------------------
// wxBrush
#include "wx/button.h"
-#include "gdk/gdk.h"
-#include "gtk/gtk.h"
+#include <gdk/gdk.h>
+#include <gtk/gtk.h>
//-----------------------------------------------------------------------------
// classes
#if wxUSE_CHECKBOX
-#include "gdk/gdk.h"
-#include "gtk/gtk.h"
+#include <gdk/gdk.h>
+#include <gtk/gtk.h>
//-----------------------------------------------------------------------------
// idle system