Minor header cleaning.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40325 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2006-07-25 14:31:55 +00:00
parent bf3c1a1962
commit 925f774066
35 changed files with 276 additions and 279 deletions

View File

@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: accel.h // Name: wx/motif/accel.h
// Purpose: wxAcceleratorTable class // Purpose: wxAcceleratorTable class
// Author: Julian Smart // Author: Julian Smart
// Modified by: // Modified by:
@@ -28,9 +28,9 @@ public:
bool operator == (const wxAcceleratorTable& accel) const { return m_refData == accel.m_refData; } bool operator == (const wxAcceleratorTable& accel) const { return m_refData == accel.m_refData; }
bool operator != (const wxAcceleratorTable& accel) const { return m_refData != accel.m_refData; } bool operator != (const wxAcceleratorTable& accel) const { return m_refData != accel.m_refData; }
bool Ok() const; bool Ok() const;
// Implementation only // Implementation only
int GetCount() const; int GetCount() const;
wxAcceleratorEntry* GetEntries() const; wxAcceleratorEntry* GetEntries() const;

View File

@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: app.h // Name: wx/motif/app.h
// Purpose: wxApp class // Purpose: wxApp class
// Author: Julian Smart // Author: Julian Smart
// Modified by: // Modified by:
@@ -41,34 +41,34 @@ WX_DECLARE_VOIDPTR_HASH_MAP( wxPerDisplayData*, wxPerDisplayDataMap );
class WXDLLEXPORT wxApp : public wxAppBase class WXDLLEXPORT wxApp : public wxAppBase
{ {
DECLARE_DYNAMIC_CLASS(wxApp) DECLARE_DYNAMIC_CLASS(wxApp)
public: public:
wxApp(); wxApp();
virtual ~wxApp(); virtual ~wxApp();
// override base class (pure) virtuals // override base class (pure) virtuals
// ----------------------------------- // -----------------------------------
virtual int MainLoop(); virtual int MainLoop();
virtual void Exit(); virtual void Exit();
virtual bool Yield(bool onlyIfNeeded = false); virtual bool Yield(bool onlyIfNeeded = false);
virtual void WakeUpIdle(); // implemented in motif/evtloop.cpp virtual void WakeUpIdle(); // implemented in motif/evtloop.cpp
virtual bool OnInitGui(); virtual bool OnInitGui();
// implementation from now on // implementation from now on
// -------------------------- // --------------------------
protected: protected:
bool m_showOnInit; bool m_showOnInit;
public: public:
// Implementation // Implementation
virtual bool Initialize(int& argc, wxChar **argv); virtual bool Initialize(int& argc, wxChar **argv);
virtual void CleanUp(); virtual void CleanUp();
// Motif-specific // Motif-specific
WXAppContext GetAppContext() const { return m_appContext; } WXAppContext GetAppContext() const { return m_appContext; }
WXWidget GetTopLevelWidget(); WXWidget GetTopLevelWidget();
@@ -97,4 +97,3 @@ private:
#endif #endif
// _WX_APP_H_ // _WX_APP_H_

View File

@@ -1,12 +1,12 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: bmpbuttn.h // Name: wx/motif/bmpbuttn.h
// Purpose: wxBitmapButton class // Purpose: wxBitmapButton class
// Author: Julian Smart // Author: Julian Smart
// Modified by: // Modified by:
// Created: 17/09/98 // Created: 17/09/98
// RCS-ID: $Id$ // RCS-ID: $Id$
// Copyright: (c) Julian Smart // Copyright: (c) Julian Smart
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
#ifndef _WX_BMPBUTTN_H_ #ifndef _WX_BMPBUTTN_H_
@@ -30,13 +30,13 @@ public:
{ {
Create(parent, id, bitmap, pos, size, style, validator, name); Create(parent, id, bitmap, pos, size, style, validator, name);
} }
bool Create(wxWindow *parent, wxWindowID id, const wxBitmap& bitmap, bool Create(wxWindow *parent, wxWindowID id, const wxBitmap& bitmap,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = wxBU_AUTODRAW, const wxSize& size = wxDefaultSize, long style = wxBU_AUTODRAW,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxButtonNameStr); const wxString& name = wxButtonNameStr);
virtual void SetLabel(const wxBitmap& bitmap) virtual void SetLabel(const wxBitmap& bitmap)
{ {
SetBitmapLabel(bitmap); SetBitmapLabel(bitmap);
@@ -45,23 +45,23 @@ public:
{ {
wxControl::SetLabel(label); wxControl::SetLabel(label);
} }
virtual void SetBitmapLabel(const wxBitmap& bitmap); virtual void SetBitmapLabel(const wxBitmap& bitmap);
void SetBitmapSelected(const wxBitmap& sel); void SetBitmapSelected(const wxBitmap& sel);
void SetBitmapFocus(const wxBitmap& focus); void SetBitmapFocus(const wxBitmap& focus);
void SetBitmapDisabled(const wxBitmap& disabled); void SetBitmapDisabled(const wxBitmap& disabled);
// Implementation // Implementation
void DoSetBitmap(); void DoSetBitmap();
virtual void ChangeBackgroundColour(); virtual void ChangeBackgroundColour();
virtual wxSize DoGetBestSize() const; virtual wxSize DoGetBestSize() const;
protected: protected:
wxBitmap m_bmpNormalOriginal; // May be different from m_buttonBitmap wxBitmap m_bmpNormalOriginal; // May be different from m_buttonBitmap
// if m_buttonBitmap has been changed // if m_buttonBitmap has been changed
// to reflect button background colour // to reflect button background colour
wxBitmap m_bmpSelectedOriginal; wxBitmap m_bmpSelectedOriginal;
wxBitmap m_bmpDisabledOriginal; wxBitmap m_bmpDisabledOriginal;
wxBitmapCache m_bitmapCache; wxBitmapCache m_bitmapCache;

View File

@@ -1,12 +1,12 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: bmpmotif.h // Name: wx/motif/bmpmotif.h
// Purpose: Motif-specific bitmap routines // Purpose: Motif-specific bitmap routines
// Author: Julian Smart, originally in bitmap.h // Author: Julian Smart, originally in bitmap.h
// Modified by: // Modified by:
// Created: 25/03/2003 // Created: 25/03/2003
// RCS-ID: $Id$ // RCS-ID: $Id$
// Copyright: (c) Julian Smart // Copyright: (c) Julian Smart
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
#ifndef _WX_BMPMOTIF_H_ #ifndef _WX_BMPMOTIF_H_

View File

@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: button.h // Name: wx/motif/button.h
// Purpose: wxButton class // Purpose: wxButton class
// Author: Julian Smart // Author: Julian Smart
// Modified by: // Modified by:
@@ -16,7 +16,7 @@
class WXDLLEXPORT wxButton: public wxButtonBase class WXDLLEXPORT wxButton: public wxButtonBase
{ {
DECLARE_DYNAMIC_CLASS(wxButton) DECLARE_DYNAMIC_CLASS(wxButton)
public: public:
wxButton() { } wxButton() { }
wxButton(wxWindow *parent, wxButton(wxWindow *parent,
@@ -29,19 +29,19 @@ public:
{ {
Create(parent, id, label, pos, size, style, validator, name); Create(parent, id, label, pos, size, style, validator, name);
} }
bool Create(wxWindow *parent, wxWindowID id, bool Create(wxWindow *parent, wxWindowID id,
const wxString& label = wxEmptyString, const wxString& label = wxEmptyString,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = 0, const wxSize& size = wxDefaultSize, long style = 0,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxButtonNameStr); const wxString& name = wxButtonNameStr);
virtual void SetDefault(); virtual void SetDefault();
virtual void Command(wxCommandEvent& event); virtual void Command(wxCommandEvent& event);
static wxSize GetDefaultSize(); static wxSize GetDefaultSize();
// Implementation // Implementation
protected: protected:

View File

@@ -1,12 +1,12 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: checkbox.h // Name: wx/motif/checkbox.h
// Purpose: wxCheckBox class // Purpose: wxCheckBox class
// Author: Julian Smart // Author: Julian Smart
// Modified by: // Modified by:
// Created: 17/09/98 // Created: 17/09/98
// RCS-ID: $Id$ // RCS-ID: $Id$
// Copyright: (c) Julian Smart // Copyright: (c) Julian Smart
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
#ifndef _WX_CHECKBOX_H_ #ifndef _WX_CHECKBOX_H_
@@ -16,7 +16,7 @@
class WXDLLEXPORT wxCheckBox: public wxCheckBoxBase class WXDLLEXPORT wxCheckBox: public wxCheckBoxBase
{ {
DECLARE_DYNAMIC_CLASS(wxCheckBox) DECLARE_DYNAMIC_CLASS(wxCheckBox)
public: public:
inline wxCheckBox() { Init(); } inline wxCheckBox() { Init(); }
inline wxCheckBox(wxWindow *parent, wxWindowID id, const wxString& label, inline wxCheckBox(wxWindow *parent, wxWindowID id, const wxString& label,
@@ -29,7 +29,7 @@ public:
Create(parent, id, label, pos, size, style, validator, name); Create(parent, id, label, pos, size, style, validator, name);
} }
bool Create(wxWindow *parent, wxWindowID id, const wxString& label, bool Create(wxWindow *parent, wxWindowID id, const wxString& label,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = 0, const wxSize& size = wxDefaultSize, long style = 0,
@@ -38,7 +38,7 @@ public:
virtual void SetValue(bool); virtual void SetValue(bool);
virtual bool GetValue() const ; virtual bool GetValue() const ;
virtual void Command(wxCommandEvent& event); virtual void Command(wxCommandEvent& event);
// Implementation // Implementation
virtual void ChangeBackgroundColour(); virtual void ChangeBackgroundColour();
private: private:

View File

@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: clipbrd.h // Name: wx/motif/clipbrd.h
// Purpose: Clipboard functionality. // Purpose: Clipboard functionality.
// Author: Julian Smart // Author: Julian Smart
// Modified by: // Modified by:
@@ -42,34 +42,34 @@ class WXDLLIMPEXP_CORE wxClipboard : public wxClipboardBase
public: public:
wxClipboard(); wxClipboard();
~wxClipboard(); ~wxClipboard();
// open the clipboard before SetData() and GetData() // open the clipboard before SetData() and GetData()
virtual bool Open(); virtual bool Open();
// close the clipboard after SetData() and GetData() // close the clipboard after SetData() and GetData()
virtual void Close(); virtual void Close();
// opened? // opened?
virtual bool IsOpened() const { return m_open; } virtual bool IsOpened() const { return m_open; }
// replaces the data on the clipboard with data // replaces the data on the clipboard with data
virtual bool SetData( wxDataObject *data ); virtual bool SetData( wxDataObject *data );
// adds data to the clipboard // adds data to the clipboard
virtual bool AddData( wxDataObject *data ); virtual bool AddData( wxDataObject *data );
// format available on the clipboard ? // format available on the clipboard ?
virtual bool IsSupported( const wxDataFormat& format ); virtual bool IsSupported( const wxDataFormat& format );
// fill data with data on the clipboard (if available) // fill data with data on the clipboard (if available)
virtual bool GetData( wxDataObject& data ); virtual bool GetData( wxDataObject& data );
// clears wxTheClipboard and the system's clipboard if possible // clears wxTheClipboard and the system's clipboard if possible
virtual void Clear(); virtual void Clear();
virtual void UsePrimarySelection(bool primary = true) virtual void UsePrimarySelection(bool primary = true)
{ m_usePrimary = primary; } { m_usePrimary = primary; }
// implementation from now on // implementation from now on
bool m_open; bool m_open;
wxDataObjectList m_data; wxDataObjectList m_data;

View File

@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: control.h // Name: wx/motif/control.h
// Purpose: wxControl class // Purpose: wxControl class
// Author: Julian Smart // Author: Julian Smart
// Modified by: // Modified by:
@@ -20,7 +20,7 @@
class WXDLLEXPORT wxControl: public wxControlBase class WXDLLEXPORT wxControl: public wxControlBase
{ {
DECLARE_ABSTRACT_CLASS(wxControl) DECLARE_ABSTRACT_CLASS(wxControl)
public: public:
wxControl(); wxControl();
wxControl( wxWindow *parent, wxControl( wxWindow *parent,
@@ -33,25 +33,25 @@ public:
{ {
Create(parent, id, pos, size, style, validator, name); Create(parent, id, pos, size, style, validator, name);
} }
bool Create(wxWindow *parent, wxWindowID id, bool Create(wxWindow *parent, wxWindowID id,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = 0, const wxSize& size = wxDefaultSize, long style = 0,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxControlNameStr); const wxString& name = wxControlNameStr);
// simulates the event, returns true if the event was processed // simulates the event, returns true if the event was processed
virtual void Command(wxCommandEvent& WXUNUSED(event)) { } virtual void Command(wxCommandEvent& WXUNUSED(event)) { }
// calls the callback and appropriate event handlers, returns true if // calls the callback and appropriate event handlers, returns true if
// event was processed // event was processed
virtual bool ProcessCommand(wxCommandEvent& event); virtual bool ProcessCommand(wxCommandEvent& event);
virtual void SetLabel(const wxString& label); virtual void SetLabel(const wxString& label);
virtual wxString GetLabel() const ; virtual wxString GetLabel() const ;
bool InSetValue() const { return m_inSetValue; } bool InSetValue() const { return m_inSetValue; }
protected: protected:
// calls wxControlBase::CreateControl, also sets foreground, background and // calls wxControlBase::CreateControl, also sets foreground, background and
// font to parent's values // font to parent's values
@@ -68,9 +68,8 @@ protected:
// Motif: prevent callbacks being called while in SetValue // Motif: prevent callbacks being called while in SetValue
bool m_inSetValue; bool m_inSetValue;
DECLARE_EVENT_TABLE() DECLARE_EVENT_TABLE()
}; };
#endif // _WX_CONTROL_H_ #endif // _WX_CONTROL_H_

View File

@@ -1,12 +1,12 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: cursor.h // Name: wx/motif/cursor.h
// Purpose: wxCursor class // Purpose: wxCursor class
// Author: Julian Smart // Author: Julian Smart
// Modified by: // Modified by:
// Created: 17/09/98 // Created: 17/09/98
// RCS-ID: $Id$ // RCS-ID: $Id$
// Copyright: (c) Julian Smart // Copyright: (c) Julian Smart
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
#ifndef _WX_CURSOR_H_ #ifndef _WX_CURSOR_H_
@@ -21,26 +21,26 @@ class WXDLLEXPORT wxImage;
class WXDLLEXPORT wxCursor: public wxObject class WXDLLEXPORT wxCursor: public wxObject
{ {
DECLARE_DYNAMIC_CLASS(wxCursor) DECLARE_DYNAMIC_CLASS(wxCursor)
public: public:
wxCursor(); wxCursor();
wxCursor(const char bits[], int width, int height, wxCursor(const char bits[], int width, int height,
int hotSpotX = -1, int hotSpotY = -1, int hotSpotX = -1, int hotSpotY = -1,
const char maskBits[] = NULL); const char maskBits[] = NULL);
wxCursor(const wxString& name, long flags = wxBITMAP_TYPE_XBM, wxCursor(const wxString& name, long flags = wxBITMAP_TYPE_XBM,
int hotSpotX = 0, int hotSpotY = 0); int hotSpotX = 0, int hotSpotY = 0);
#if wxUSE_IMAGE #if wxUSE_IMAGE
wxCursor(const wxImage& image); wxCursor(const wxImage& image);
#endif #endif
wxCursor(wxStockCursor id); wxCursor(wxStockCursor id);
~wxCursor(); ~wxCursor();
virtual bool Ok() const; virtual bool Ok() const;
bool operator == (const wxCursor& cursor) const bool operator == (const wxCursor& cursor) const
{ return m_refData == cursor.m_refData; } { return m_refData == cursor.m_refData; }
bool operator != (const wxCursor& cursor) const bool operator != (const wxCursor& cursor) const

View File

@@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
// Name: motif/dataform.h // Name: wx/motif/dataform.h
// Purpose: declaration of the wxDataFormat class // Purpose: declaration of the wxDataFormat class
// Author: Robert Roebling // Author: Robert Roebling
// Modified by: // Modified by:
@@ -17,16 +17,16 @@ class WXDLLIMPEXP_CORE wxDataFormat
public: public:
// the clipboard formats under Xt are Atoms // the clipboard formats under Xt are Atoms
typedef Atom NativeFormat; typedef Atom NativeFormat;
wxDataFormat(); wxDataFormat();
wxDataFormat( wxDataFormatId type ); wxDataFormat( wxDataFormatId type );
wxDataFormat( const wxString &id ); wxDataFormat( const wxString &id );
wxDataFormat( const wxChar *id ); wxDataFormat( const wxChar *id );
wxDataFormat( NativeFormat format ); wxDataFormat( NativeFormat format );
wxDataFormat& operator=(NativeFormat format) wxDataFormat& operator=(NativeFormat format)
{ SetId(format); return *this; } { SetId(format); return *this; }
// comparison (must have both versions) // comparison (must have both versions)
bool operator==(NativeFormat format) const bool operator==(NativeFormat format) const
{ return m_format == (NativeFormat)format; } { return m_format == (NativeFormat)format; }
@@ -36,31 +36,30 @@ public:
{ return m_type == (wxDataFormatId)format; } { return m_type == (wxDataFormatId)format; }
bool operator!=(wxDataFormatId format) const bool operator!=(wxDataFormatId format) const
{ return m_type != (wxDataFormatId)format; } { return m_type != (wxDataFormatId)format; }
// explicit and implicit conversions to NativeFormat which is one of // explicit and implicit conversions to NativeFormat which is one of
// standard data types (implicit conversion is useful for preserving the // standard data types (implicit conversion is useful for preserving the
// compatibility with old code) // compatibility with old code)
NativeFormat GetFormatId() const { return m_format; } NativeFormat GetFormatId() const { return m_format; }
operator NativeFormat() const { return m_format; } operator NativeFormat() const { return m_format; }
void SetId( NativeFormat format ); void SetId( NativeFormat format );
// string ids are used for custom types - this SetId() must be used for // string ids are used for custom types - this SetId() must be used for
// application-specific formats // application-specific formats
wxString GetId() const; wxString GetId() const;
void SetId( const wxChar *id ); void SetId( const wxChar *id );
// implementation // implementation
wxDataFormatId GetType() const; wxDataFormatId GetType() const;
private: private:
wxDataFormatId m_type; wxDataFormatId m_type;
NativeFormat m_format; NativeFormat m_format;
void PrepareFormats(); void PrepareFormats();
void SetType( wxDataFormatId type ); void SetType( wxDataFormatId type );
}; };
#endif // _WX_MOTIF_DATAFORM_H #endif // _WX_MOTIF_DATAFORM_H

View File

@@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
// Name: include/wx/motif/dataobj2.h // Name: wx/motif/dataobj2.h
// Purpose: declaration of standard wxDataObjectSimple-derived classes // Purpose: declaration of standard wxDataObjectSimple-derived classes
// Author: Mattia Barbon // Author: Mattia Barbon
// Created: 27.04.03 // Created: 27.04.03
@@ -42,4 +42,3 @@ public:
}; };
#endif // _WX_MOTIF_DATAOBJ2_H_ #endif // _WX_MOTIF_DATAOBJ2_H_

View File

@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: dc.h // Name: wx/motif/dc.h
// Purpose: wxDC class // Purpose: wxDC class
// Author: Julian Smart // Author: Julian Smart
// Modified by: // Modified by:

View File

@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: dcclient.h // Name: wx/motif/dcclient.h
// Purpose: wxClientDC, wxPaintDC and wxWindowDC classes // Purpose: wxClientDC, wxPaintDC and wxWindowDC classes
// Author: Julian Smart // Author: Julian Smart
// Modified by: // Modified by:
@@ -187,4 +187,3 @@ public:
}; };
#endif // _WX_DCCLIENT_H_ #endif // _WX_DCCLIENT_H_

View File

@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: dcmemory.h // Name: wx/motif/dcmemory.h
// Purpose: wxMemoryDC class // Purpose: wxMemoryDC class
// Author: Julian Smart // Author: Julian Smart
// Modified by: // Modified by:
@@ -17,21 +17,21 @@
class WXDLLIMPEXP_CORE wxMemoryDC : public wxWindowDC class WXDLLIMPEXP_CORE wxMemoryDC : public wxWindowDC
{ {
DECLARE_DYNAMIC_CLASS(wxMemoryDC) DECLARE_DYNAMIC_CLASS(wxMemoryDC)
public: public:
wxMemoryDC(); wxMemoryDC();
wxMemoryDC( wxDC *dc ); // Create compatible DC wxMemoryDC( wxDC *dc ); // Create compatible DC
~wxMemoryDC(); ~wxMemoryDC();
virtual void SelectObject( const wxBitmap& bitmap ); virtual void SelectObject( const wxBitmap& bitmap );
void DoGetSize( int *width, int *height ) const; void DoGetSize( int *width, int *height ) const;
wxBitmap& GetBitmap() const { return (wxBitmap&) m_bitmap; } wxBitmap& GetBitmap() const { return (wxBitmap&) m_bitmap; }
private: private:
friend class wxPaintDC; friend class wxPaintDC;
wxBitmap m_bitmap; wxBitmap m_bitmap;
}; };

View File

@@ -1,12 +1,12 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: dcprint.h // Name: wx/motif/dcprint.h
// Purpose: wxPrinterDC class // Purpose: wxPrinterDC class
// Author: Julian Smart // Author: Julian Smart
// Modified by: // Modified by:
// Created: 17/09/98 // Created: 17/09/98
// RCS-ID: $Id$ // RCS-ID: $Id$
// Copyright: (c) Julian Smart // Copyright: (c) Julian Smart
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
#ifndef _WX_DCPRINT_H_ #ifndef _WX_DCPRINT_H_
@@ -18,13 +18,12 @@ class WXDLLEXPORT wxPrinterDC: public wxDC
{ {
public: public:
DECLARE_CLASS(wxPrinterDC) DECLARE_CLASS(wxPrinterDC)
// Create a printer DC // Create a printer DC
wxPrinterDC(const wxString& driver, const wxString& device, const wxString& output, bool interactive = true, int orientation = wxPORTRAIT); wxPrinterDC(const wxString& driver, const wxString& device, const wxString& output, bool interactive = true, int orientation = wxPORTRAIT);
~wxPrinterDC(); ~wxPrinterDC();
}; };
#endif #endif
// _WX_DCPRINT_H_ // _WX_DCPRINT_H_

View File

@@ -1,12 +1,12 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: dcscreen.h // Name: wx/motif/dcscreen.h
// Purpose: wxScreenDC class // Purpose: wxScreenDC class
// Author: Julian Smart // Author: Julian Smart
// Modified by: // Modified by:
// Created: 17/09/98 // Created: 17/09/98
// RCS-ID: $Id$ // RCS-ID: $Id$
// Copyright: (c) Julian Smart // Copyright: (c) Julian Smart
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
#ifndef _WX_DCSCREEN_H_ #ifndef _WX_DCSCREEN_H_
@@ -17,21 +17,21 @@
class WXDLLEXPORT wxScreenDC: public wxWindowDC class WXDLLEXPORT wxScreenDC: public wxWindowDC
{ {
DECLARE_DYNAMIC_CLASS(wxScreenDC) DECLARE_DYNAMIC_CLASS(wxScreenDC)
public: public:
// Create a DC representing the whole screen // Create a DC representing the whole screen
wxScreenDC(); wxScreenDC();
~wxScreenDC(); ~wxScreenDC();
// Compatibility with X's requirements for // Compatibility with X's requirements for
// drawing on top of all windows // drawing on top of all windows
static bool StartDrawingOnTop(wxWindow* window); static bool StartDrawingOnTop(wxWindow* window);
static bool StartDrawingOnTop(wxRect* rect = NULL); static bool StartDrawingOnTop(wxRect* rect = NULL);
static bool EndDrawingOnTop(); static bool EndDrawingOnTop();
private: private:
static WXWindow sm_overlayWindow; static WXWindow sm_overlayWindow;
// If we have started transparent drawing at a non-(0,0) point // If we have started transparent drawing at a non-(0,0) point
// then we will have to adjust the device origin in the // then we will have to adjust the device origin in the
// constructor. // constructor.
@@ -41,4 +41,3 @@ private:
#endif #endif
// _WX_DCSCREEN_H_ // _WX_DCSCREEN_H_

View File

@@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
// Name: dnd.h // Name: wx/motif/dnd.h
// Purpose: declaration of wxDropTarget, wxDropSource classes // Purpose: declaration of wxDropTarget, wxDropSource classes
// Author: Julian Smart // Author: Julian Smart
// RCS-ID: $Id$ // RCS-ID: $Id$
@@ -39,19 +39,19 @@ class WXDLLEXPORT wxDropSource;
class WXDLLEXPORT wxDropTarget: public wxObject class WXDLLEXPORT wxDropTarget: public wxObject
{ {
public: public:
wxDropTarget(); wxDropTarget();
~wxDropTarget(); ~wxDropTarget();
virtual void OnEnter() { } virtual void OnEnter() { }
virtual void OnLeave() { } virtual void OnLeave() { }
virtual bool OnDrop( long x, long y, const void *data, size_t size ) = 0; virtual bool OnDrop( long x, long y, const void *data, size_t size ) = 0;
// Override these to indicate what kind of data you support: // Override these to indicate what kind of data you support:
virtual size_t GetFormatCount() const = 0; virtual size_t GetFormatCount() const = 0;
virtual wxDataFormat GetFormat(size_t n) const = 0; virtual wxDataFormat GetFormat(size_t n) const = 0;
// implementation // implementation
}; };
@@ -62,13 +62,13 @@ public:
class WXDLLEXPORT wxTextDropTarget: public wxDropTarget class WXDLLEXPORT wxTextDropTarget: public wxDropTarget
{ {
public: public:
wxTextDropTarget() {}; wxTextDropTarget() {};
virtual bool OnDrop( long x, long y, const void *data, size_t size ); virtual bool OnDrop( long x, long y, const void *data, size_t size );
virtual bool OnDropText( long x, long y, const char *psz ); virtual bool OnDropText( long x, long y, const char *psz );
protected: protected:
virtual size_t GetFormatCount() const; virtual size_t GetFormatCount() const;
virtual wxDataFormat GetFormat(size_t n) const; virtual wxDataFormat GetFormat(size_t n) const;
}; };
@@ -80,26 +80,26 @@ protected:
class WXDLLEXPORT wxPrivateDropTarget: public wxDropTarget class WXDLLEXPORT wxPrivateDropTarget: public wxDropTarget
{ {
public: public:
wxPrivateDropTarget(); wxPrivateDropTarget();
// you have to override OnDrop to get at the data // you have to override OnDrop to get at the data
// the string ID identifies the format of clipboard or DnD data. a word // the string ID identifies the format of clipboard or DnD data. a word
// processor would e.g. add a wxTextDataObject and a wxPrivateDataObject // processor would e.g. add a wxTextDataObject and a wxPrivateDataObject
// to the clipboard - the latter with the Id "WXWORD_FORMAT". // to the clipboard - the latter with the Id "WXWORD_FORMAT".
void SetId( const wxString& id ) void SetId( const wxString& id )
{ m_id = id; } { m_id = id; }
wxString GetId() wxString GetId()
{ return m_id; } { return m_id; }
private: private:
virtual size_t GetFormatCount() const; virtual size_t GetFormatCount() const;
virtual wxDataFormat GetFormat(size_t n) const; virtual wxDataFormat GetFormat(size_t n) const;
wxString m_id; wxString m_id;
}; };
@@ -110,15 +110,15 @@ private:
class WXDLLEXPORT wxFileDropTarget: public wxDropTarget class WXDLLEXPORT wxFileDropTarget: public wxDropTarget
{ {
public: public:
wxFileDropTarget() {}; wxFileDropTarget() {};
virtual bool OnDrop( long x, long y, const void *data, size_t size ); virtual bool OnDrop( long x, long y, const void *data, size_t size );
virtual bool OnDropFiles( long x, long y, virtual bool OnDropFiles( long x, long y,
size_t nFiles, const char * const aszFiles[] ); size_t nFiles, const char * const aszFiles[] );
protected: protected:
virtual size_t GetFormatCount() const; virtual size_t GetFormatCount() const;
virtual wxDataFormat GetFormat(size_t n) const; virtual wxDataFormat GetFormat(size_t n) const;
}; };
@@ -139,26 +139,26 @@ enum wxDragResult
class WXDLLEXPORT wxDropSource: public wxObject class WXDLLEXPORT wxDropSource: public wxObject
{ {
public: public:
wxDropSource( wxWindow *win ); wxDropSource( wxWindow *win );
wxDropSource( wxDataObject &data, wxWindow *win ); wxDropSource( wxDataObject &data, wxWindow *win );
~wxDropSource(void); ~wxDropSource(void);
void SetData( wxDataObject &data ); void SetData( wxDataObject &data );
wxDragResult DoDragDrop(int flags = wxDrag_CopyOnly); wxDragResult DoDragDrop(int flags = wxDrag_CopyOnly);
virtual bool GiveFeedback( wxDragResult WXUNUSED(effect), bool WXUNUSED(bScrolling) ) { return true; }; virtual bool GiveFeedback( wxDragResult WXUNUSED(effect), bool WXUNUSED(bScrolling) ) { return true; };
// implementation // implementation
#if 0 #if 0
void RegisterWindow(void); void RegisterWindow(void);
void UnregisterWindow(void); void UnregisterWindow(void);
wxWindow *m_window; wxWindow *m_window;
wxDragResult m_retValue; wxDragResult m_retValue;
wxDataObject *m_data; wxDataObject *m_data;
wxCursor m_defaultCursor; wxCursor m_defaultCursor;
wxCursor m_goaheadCursor; wxCursor m_goaheadCursor;
#endif #endif
@@ -168,6 +168,5 @@ public:
// wxUSE_DRAG_AND_DROP // wxUSE_DRAG_AND_DROP
#endif #endif
//_WX_DND_H_ //_WX_DND_H_

View File

@@ -1,12 +1,12 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: filedlg.h // Name: wx/motif/filedlg.h
// Purpose: wxFileDialog class // Purpose: wxFileDialog class
// Author: Julian Smart // Author: Julian Smart
// Modified by: // Modified by:
// Created: 17/09/98 // Created: 17/09/98
// RCS-ID: $Id$ // RCS-ID: $Id$
// Copyright: (c) Julian Smart // Copyright: (c) Julian Smart
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
#ifndef _WX_FILEDLG_H_ #ifndef _WX_FILEDLG_H_
@@ -20,11 +20,11 @@ class WXDLLEXPORT wxFileDialog: public wxFileDialogBase
{ {
DECLARE_DYNAMIC_CLASS(wxFileDialog) DECLARE_DYNAMIC_CLASS(wxFileDialog)
public: public:
// For Motif // For Motif
static wxString m_fileSelectorAnswer; static wxString m_fileSelectorAnswer;
static bool m_fileSelectorReturned; static bool m_fileSelectorReturned;
public: public:
wxFileDialog(wxWindow *parent, wxFileDialog(wxWindow *parent,
const wxString& message = wxFileSelectorPromptStr, const wxString& message = wxFileSelectorPromptStr,
@@ -35,7 +35,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& sz = wxDefaultSize, const wxSize& sz = wxDefaultSize,
const wxString& name = wxFileDialogNameStr); const wxString& name = wxFileDialogNameStr);
virtual int ShowModal(); virtual int ShowModal();
}; };

View File

@@ -1,12 +1,12 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: gauge.h // Name: wx/motif/gauge.h
// Purpose: wxGauge class // Purpose: wxGauge class
// Author: Julian Smart // Author: Julian Smart
// Modified by: // Modified by:
// Created: 17/09/98 // Created: 17/09/98
// RCS-ID: $Id$ // RCS-ID: $Id$
// Copyright: (c) Julian Smart // Copyright: (c) Julian Smart
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
#ifndef _WX_GAUGE_H_ #ifndef _WX_GAUGE_H_
@@ -16,10 +16,10 @@
class WXDLLEXPORT wxGauge : public wxGaugeBase class WXDLLEXPORT wxGauge : public wxGaugeBase
{ {
DECLARE_DYNAMIC_CLASS(wxGauge) DECLARE_DYNAMIC_CLASS(wxGauge)
public: public:
inline wxGauge() { m_rangeMax = 0; m_gaugePos = 0; } inline wxGauge() { m_rangeMax = 0; m_gaugePos = 0; }
inline wxGauge(wxWindow *parent, wxWindowID id, inline wxGauge(wxWindow *parent, wxWindowID id,
int range, int range,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
@@ -30,7 +30,7 @@ public:
{ {
Create(parent, id, range, pos, size, style, validator, name); Create(parent, id, range, pos, size, style, validator, name);
} }
bool Create(wxWindow *parent, wxWindowID id, bool Create(wxWindow *parent, wxWindowID id,
int range, int range,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
@@ -38,15 +38,15 @@ public:
long style = wxGA_HORIZONTAL, long style = wxGA_HORIZONTAL,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxGaugeNameStr); const wxString& name = wxGaugeNameStr);
void SetShadowWidth(int w); void SetShadowWidth(int w);
void SetRange(int r); void SetRange(int r);
void SetValue(int pos); void SetValue(int pos);
int GetShadowWidth() const ; int GetShadowWidth() const ;
int GetRange() const ; int GetRange() const ;
int GetValue() const ; int GetValue() const ;
virtual void Command(wxCommandEvent& WXUNUSED(event)) {} ; virtual void Command(wxCommandEvent& WXUNUSED(event)) {} ;
private: private:

View File

@@ -1,12 +1,12 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: icon.h // Name: wx/motif/icon.h
// Purpose: wxIcon class // Purpose: wxIcon class
// Author: Julian Smart // Author: Julian Smart
// Modified by: // Modified by:
// Created: 17/09/98 // Created: 17/09/98
// RCS-ID: $Id$ // RCS-ID: $Id$
// Copyright: (c) Julian Smart // Copyright: (c) Julian Smart
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
#ifndef _WX_ICON_H_ #ifndef _WX_ICON_H_

View File

@@ -1,12 +1,12 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: mdi.h // Name: wx/motif/mdi.h
// Purpose: MDI (Multiple Document Interface) classes. // Purpose: MDI (Multiple Document Interface) classes.
// Author: Julian Smart // Author: Julian Smart
// Modified by: // Modified by:
// Created: 17/09/98 // Created: 17/09/98
// RCS-ID: $Id$ // RCS-ID: $Id$
// Copyright: (c) Julian Smart // Copyright: (c) Julian Smart
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
#ifndef _WX_MDI_H_ #ifndef _WX_MDI_H_
@@ -152,7 +152,12 @@ public:
void ReleaseMouse(); void ReleaseMouse();
void Raise(); void Raise();
void Lower(void); void Lower(void);
void DoSetSizeHints(int minW = -1, int minH = -1, int maxW = -1, int maxH = -1, int incW = -1, int incH = -1); void DoSetSizeHints(int minW = wxDefaultCoord,
int minH = wxDefaultCoord,
int maxW = wxDefaultCoord,
int maxH = wxDefaultCoord,
int incW = wxDefaultCoord,
int incH = wxDefaultCoord);
// MDI operations // MDI operations
virtual void Maximize(); virtual void Maximize();

View File

@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: menu.h // Name: wx/motif/menu.h
// Purpose: wxMenu, wxMenuBar classes // Purpose: wxMenu, wxMenuBar classes
// Author: Julian Smart // Author: Julian Smart
// Modified by: // Modified by:
@@ -28,59 +28,59 @@ public:
// ctors & dtor // ctors & dtor
wxMenu(const wxString& title, long style = 0) wxMenu(const wxString& title, long style = 0)
: wxMenuBase(title, style) { Init(); } : wxMenuBase(title, style) { Init(); }
wxMenu(long style = 0) : wxMenuBase(style) { Init(); } wxMenu(long style = 0) : wxMenuBase(style) { Init(); }
virtual ~wxMenu(); virtual ~wxMenu();
// implement base class virtuals // implement base class virtuals
virtual wxMenuItem* DoAppend(wxMenuItem *item); virtual wxMenuItem* DoAppend(wxMenuItem *item);
virtual wxMenuItem* DoInsert(size_t pos, wxMenuItem *item); virtual wxMenuItem* DoInsert(size_t pos, wxMenuItem *item);
virtual wxMenuItem* DoRemove(wxMenuItem *item); virtual wxMenuItem* DoRemove(wxMenuItem *item);
virtual void Break(); virtual void Break();
virtual void SetTitle(const wxString& title); virtual void SetTitle(const wxString& title);
bool ProcessCommand(wxCommandEvent& event); bool ProcessCommand(wxCommandEvent& event);
//// Motif-specific //// Motif-specific
WXWidget GetButtonWidget() const { return m_buttonWidget; } WXWidget GetButtonWidget() const { return m_buttonWidget; }
void SetButtonWidget(WXWidget buttonWidget) { m_buttonWidget = buttonWidget; } void SetButtonWidget(WXWidget buttonWidget) { m_buttonWidget = buttonWidget; }
WXWidget GetMainWidget() const { return m_menuWidget; } WXWidget GetMainWidget() const { return m_menuWidget; }
int GetId() const { return m_menuId; } int GetId() const { return m_menuId; }
void SetId(int id) { m_menuId = id; } void SetId(int id) { m_menuId = id; }
void SetMenuBar(wxMenuBar* menuBar) { m_menuBar = menuBar; } void SetMenuBar(wxMenuBar* menuBar) { m_menuBar = menuBar; }
wxMenuBar* GetMenuBar() const { return m_menuBar; } wxMenuBar* GetMenuBar() const { return m_menuBar; }
void CreatePopup(WXWidget logicalParent, int x, int y); void CreatePopup(WXWidget logicalParent, int x, int y);
void DestroyPopup(); void DestroyPopup();
void ShowPopup(int x, int y); void ShowPopup(int x, int y);
void HidePopup(); void HidePopup();
WXWidget CreateMenu(wxMenuBar *menuBar, WXWidget parent, wxMenu *topMenu, WXWidget CreateMenu(wxMenuBar *menuBar, WXWidget parent, wxMenu *topMenu,
size_t index, const wxString& title = wxEmptyString, size_t index, const wxString& title = wxEmptyString,
bool isPulldown = false); bool isPulldown = false);
// For popups, need to destroy, then recreate menu for a different (or // For popups, need to destroy, then recreate menu for a different (or
// possibly same) window, since the parent may change. // possibly same) window, since the parent may change.
void DestroyMenu(bool full); void DestroyMenu(bool full);
WXWidget FindMenuItem(int id, wxMenuItem **it = NULL) const; WXWidget FindMenuItem(int id, wxMenuItem **it = NULL) const;
const wxColour& GetBackgroundColour() const { return m_backgroundColour; } const wxColour& GetBackgroundColour() const { return m_backgroundColour; }
const wxColour& GetForegroundColour() const { return m_foregroundColour; } const wxColour& GetForegroundColour() const { return m_foregroundColour; }
const wxFont& GetFont() const { return m_font; } const wxFont& GetFont() const { return m_font; }
void SetBackgroundColour(const wxColour& colour); void SetBackgroundColour(const wxColour& colour);
void SetForegroundColour(const wxColour& colour); void SetForegroundColour(const wxColour& colour);
void SetFont(const wxFont& colour); void SetFont(const wxFont& colour);
void ChangeFont(bool keepOriginalSize = false); void ChangeFont(bool keepOriginalSize = false);
WXWidget GetHandle() const { return m_menuWidget; } WXWidget GetHandle() const { return m_menuWidget; }
bool IsTearOff() const { return (m_style & wxMENU_TEAROFF) != 0; } bool IsTearOff() const { return (m_style & wxMENU_TEAROFF) != 0; }
void DestroyWidgetAndDetach(); void DestroyWidgetAndDetach();
@@ -96,11 +96,11 @@ public:
wxColour m_foregroundColour; wxColour m_foregroundColour;
wxColour m_backgroundColour; wxColour m_backgroundColour;
wxFont m_font; wxFont m_font;
private: private:
// common code for both constructors: // common code for both constructors:
void Init(); void Init();
DECLARE_DYNAMIC_CLASS(wxMenu) DECLARE_DYNAMIC_CLASS(wxMenu)
}; };
@@ -116,59 +116,59 @@ public:
wxMenuBar(size_t n, wxMenu *menus[], const wxString titles[], long style = 0); wxMenuBar(size_t n, wxMenu *menus[], const wxString titles[], long style = 0);
wxMenuBar(size_t n, wxMenu *menus[], const wxArrayString& titles, long style = 0); wxMenuBar(size_t n, wxMenu *menus[], const wxArrayString& titles, long style = 0);
virtual ~wxMenuBar(); virtual ~wxMenuBar();
// implement base class (pure) virtuals // implement base class (pure) virtuals
// ------------------------------------ // ------------------------------------
virtual bool Append( wxMenu *menu, const wxString &title ); virtual bool Append( wxMenu *menu, const wxString &title );
virtual bool Insert(size_t pos, wxMenu *menu, const wxString& title); virtual bool Insert(size_t pos, wxMenu *menu, const wxString& title);
virtual wxMenu *Replace(size_t pos, wxMenu *menu, const wxString& title); virtual wxMenu *Replace(size_t pos, wxMenu *menu, const wxString& title);
virtual wxMenu *Remove(size_t pos); virtual wxMenu *Remove(size_t pos);
virtual int FindMenuItem(const wxString& menuString, virtual int FindMenuItem(const wxString& menuString,
const wxString& itemString) const; const wxString& itemString) const;
virtual wxMenuItem* FindItem( int id, wxMenu **menu = NULL ) const; virtual wxMenuItem* FindItem( int id, wxMenu **menu = NULL ) const;
virtual void EnableTop( size_t pos, bool flag ); virtual void EnableTop( size_t pos, bool flag );
virtual void SetLabelTop( size_t pos, const wxString& label ); virtual void SetLabelTop( size_t pos, const wxString& label );
virtual wxString GetLabelTop( size_t pos ) const; virtual wxString GetLabelTop( size_t pos ) const;
// implementation only from now on // implementation only from now on
// ------------------------------- // -------------------------------
wxFrame* GetMenuBarFrame() const { return m_menuBarFrame; } wxFrame* GetMenuBarFrame() const { return m_menuBarFrame; }
void SetMenuBarFrame(wxFrame* frame) { m_menuBarFrame = frame; } void SetMenuBarFrame(wxFrame* frame) { m_menuBarFrame = frame; }
WXWidget GetMainWidget() const { return m_mainWidget; } WXWidget GetMainWidget() const { return m_mainWidget; }
void SetMainWidget(WXWidget widget) { m_mainWidget = widget; } void SetMainWidget(WXWidget widget) { m_mainWidget = widget; }
// Create menubar // Create menubar
bool CreateMenuBar(wxFrame* frame); bool CreateMenuBar(wxFrame* frame);
// Destroy menubar, but keep data structures intact so we can recreate it. // Destroy menubar, but keep data structures intact so we can recreate it.
bool DestroyMenuBar(); bool DestroyMenuBar();
const wxColour& GetBackgroundColour() const { return m_backgroundColour; } const wxColour& GetBackgroundColour() const { return m_backgroundColour; }
const wxColour& GetForegroundColour() const { return m_foregroundColour; } const wxColour& GetForegroundColour() const { return m_foregroundColour; }
const wxFont& GetFont() const { return m_font; } const wxFont& GetFont() const { return m_font; }
virtual bool SetBackgroundColour(const wxColour& colour); virtual bool SetBackgroundColour(const wxColour& colour);
virtual bool SetForegroundColour(const wxColour& colour); virtual bool SetForegroundColour(const wxColour& colour);
virtual bool SetFont(const wxFont& colour); virtual bool SetFont(const wxFont& colour);
void ChangeFont(bool keepOriginalSize = false); void ChangeFont(bool keepOriginalSize = false);
public: public:
// common part of all ctors // common part of all ctors
void Init(); void Init();
wxArrayString m_titles; wxArrayString m_titles;
wxFrame *m_menuBarFrame; wxFrame *m_menuBarFrame;
WXWidget m_mainWidget; WXWidget m_mainWidget;
wxColour m_foregroundColour; wxColour m_foregroundColour;
wxColour m_backgroundColour; wxColour m_backgroundColour;
wxFont m_font; wxFont m_font;
DECLARE_DYNAMIC_CLASS(wxMenuBar) DECLARE_DYNAMIC_CLASS(wxMenuBar)
}; };

View File

@@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
// Name: menuitem.h // Name: wx/motif/menuitem.h
// Purpose: wxMenuItem class // Purpose: wxMenuItem class
// Author: Vadim Zeitlin // Author: Vadim Zeitlin
// Modified by: // Modified by:
@@ -31,7 +31,7 @@ public:
wxItemKind kind = wxITEM_NORMAL, wxItemKind kind = wxITEM_NORMAL,
wxMenu *subMenu = (wxMenu *)NULL); wxMenu *subMenu = (wxMenu *)NULL);
~wxMenuItem(); ~wxMenuItem();
// accessors (some more are inherited from wxOwnerDrawn or are below) // accessors (some more are inherited from wxOwnerDrawn or are below)
virtual void SetText(const wxString& label); virtual void SetText(const wxString& label);
virtual void Enable(bool enable = true); virtual void Enable(bool enable = true);
@@ -42,26 +42,26 @@ public:
// JJ // JJ
virtual void SetBitmap(const wxBitmap& bitmap) { m_bitmap = bitmap; } virtual void SetBitmap(const wxBitmap& bitmap) { m_bitmap = bitmap; }
virtual const wxBitmap& GetBitmap() const { return m_bitmap; } virtual const wxBitmap& GetBitmap() const { return m_bitmap; }
// implementation from now on // implementation from now on
void CreateItem (WXWidget menu, wxMenuBar * menuBar, wxMenu * topMenu, void CreateItem (WXWidget menu, wxMenuBar * menuBar, wxMenu * topMenu,
size_t index); size_t index);
void DestroyItem(bool full); void DestroyItem(bool full);
WXWidget GetButtonWidget() const { return m_buttonWidget; } WXWidget GetButtonWidget() const { return m_buttonWidget; }
wxMenuBar* GetMenuBar() const { return m_menuBar; } wxMenuBar* GetMenuBar() const { return m_menuBar; }
void SetMenuBar(wxMenuBar* menuBar) { m_menuBar = menuBar; } void SetMenuBar(wxMenuBar* menuBar) { m_menuBar = menuBar; }
wxMenu* GetTopMenu() const { return m_topMenu; } wxMenu* GetTopMenu() const { return m_topMenu; }
void SetTopMenu(wxMenu* menu) { m_topMenu = menu; } void SetTopMenu(wxMenu* menu) { m_topMenu = menu; }
private: private:
WXWidget m_buttonWidget; WXWidget m_buttonWidget;
wxMenuBar* m_menuBar; wxMenuBar* m_menuBar;
wxMenu* m_topMenu; // Top-level menu e.g. popup-menu wxMenu* m_topMenu; // Top-level menu e.g. popup-menu
wxBitmap m_bitmap; // Bitmap for menuitem, if any wxBitmap m_bitmap; // Bitmap for menuitem, if any
DECLARE_DYNAMIC_CLASS(wxMenuItem) DECLARE_DYNAMIC_CLASS(wxMenuItem)
}; };

View File

@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: minifram.h // Name: wx/motif/minifram.h
// Purpose: wxMiniFrame class. A small frame for e.g. floating toolbars. // Purpose: wxMiniFrame class. A small frame for e.g. floating toolbars.
// If there is no equivalent on your platform, just make it a // If there is no equivalent on your platform, just make it a
// normal frame. // normal frame.
@@ -8,7 +8,7 @@
// Created: 17/09/98 // Created: 17/09/98
// RCS-ID: $Id$ // RCS-ID: $Id$
// Copyright: (c) Julian Smart // Copyright: (c) Julian Smart
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
#ifndef _WX_MINIFRAM_H_ #ifndef _WX_MINIFRAM_H_
@@ -17,9 +17,9 @@
#include "wx/frame.h" #include "wx/frame.h"
class WXDLLEXPORT wxMiniFrame: public wxFrame { class WXDLLEXPORT wxMiniFrame: public wxFrame {
DECLARE_DYNAMIC_CLASS(wxMiniFrame) DECLARE_DYNAMIC_CLASS(wxMiniFrame)
public: public:
inline wxMiniFrame() {} inline wxMiniFrame() {}
inline wxMiniFrame(wxWindow *parent, inline wxMiniFrame(wxWindow *parent,
@@ -33,7 +33,7 @@ public:
// Use wxFrame constructor in absence of more specific code. // Use wxFrame constructor in absence of more specific code.
Create(parent, id, title, pos, size, style, name); Create(parent, id, title, pos, size, style, name);
} }
~wxMiniFrame() {} ~wxMiniFrame() {}
protected: protected:
}; };

View File

@@ -1,12 +1,12 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: print.h // Name: wx/motif/print.h
// Purpose: wxPrinter, wxPrintPreview classes // Purpose: wxPrinter, wxPrintPreview classes
// Author: Julian Smart // Author: Julian Smart
// Modified by: // Modified by:
// Created: 17/09/98 // Created: 17/09/98
// RCS-ID: $Id$ // RCS-ID: $Id$
// Copyright: (c) Julian Smart // Copyright: (c) Julian Smart
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
#ifndef _WX_PRINT_H_ #ifndef _WX_PRINT_H_
@@ -21,11 +21,11 @@
class WXDLLEXPORT wxPrinter: public wxPrinterBase class WXDLLEXPORT wxPrinter: public wxPrinterBase
{ {
DECLARE_DYNAMIC_CLASS(wxPrinter) DECLARE_DYNAMIC_CLASS(wxPrinter)
public: public:
wxPrinter(wxPrintData *data = NULL); wxPrinter(wxPrintData *data = NULL);
~wxPrinter(); ~wxPrinter();
virtual bool Print(wxWindow *parent, wxPrintout *printout, bool prompt = true); virtual bool Print(wxWindow *parent, wxPrintout *printout, bool prompt = true);
virtual bool PrintDialog(wxWindow *parent); virtual bool PrintDialog(wxWindow *parent);
virtual bool Setup(wxWindow *parent); virtual bool Setup(wxWindow *parent);
@@ -39,11 +39,11 @@ public:
class WXDLLEXPORT wxPrintPreview: public wxPrintPreviewBase class WXDLLEXPORT wxPrintPreview: public wxPrintPreviewBase
{ {
DECLARE_CLASS(wxPrintPreview) DECLARE_CLASS(wxPrintPreview)
public: public:
wxPrintPreview(wxPrintout *printout, wxPrintout *printoutForPrinting = NULL, wxPrintData *data = NULL); wxPrintPreview(wxPrintout *printout, wxPrintout *printoutForPrinting = NULL, wxPrintData *data = NULL);
~wxPrintPreview(); ~wxPrintPreview();
virtual bool Print(bool interactive); virtual bool Print(bool interactive);
virtual void DetermineScaling(); virtual void DetermineScaling();
}; };

View File

@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: private.h // Name: wx/motif/private.h
// Purpose: Private declarations for wxMotif port // Purpose: Private declarations for wxMotif port
// Author: Julian Smart // Author: Julian Smart
// Modified by: // Modified by:
@@ -55,11 +55,11 @@ WXWidget wxCreateBorderWidget( WXWidget parent, long style );
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// All widgets should have this as their resize proc. // All widgets should have this as their resize proc.
extern void wxWidgetResizeProc(Widget w, XConfigureEvent *event, extern void wxWidgetResizeProc(Widget w, XConfigureEvent *event,
String args[], int *num_args); String args[], int *num_args);
// For repainting arbitrary windows // For repainting arbitrary windows
void wxUniversalRepaintProc(Widget w, XtPointer WXUNUSED(c_data), void wxUniversalRepaintProc(Widget w, XtPointer WXUNUSED(c_data),
XEvent *event, char *); XEvent *event, char *);
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
@@ -147,11 +147,11 @@ public:
wxXmString(const XmString& string) { m_string = string; } wxXmString(const XmString& string) { m_string = string; }
~wxXmString() { XmStringFree(m_string); } ~wxXmString() { XmStringFree(m_string); }
// semi-implicit conversion to XmString (shouldn't rely on implicit // semi-implicit conversion to XmString (shouldn't rely on implicit
// conversion because many of Motif functions are macros) // conversion because many of Motif functions are macros)
XmString operator()() const { return m_string; } XmString operator()() const { return m_string; }
private: private:
XmString m_string; XmString m_string;
}; };

View File

@@ -1,12 +1,12 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: radiobut.h // Name: wx/motif/radiobut.h
// Purpose: wxRadioButton class // Purpose: wxRadioButton class
// Author: Julian Smart // Author: Julian Smart
// Modified by: // Modified by:
// Created: 01/02/97 // Created: 01/02/97
// RCS-ID: $Id$ // RCS-ID: $Id$
// Copyright: (c) Julian Smart // Copyright: (c) Julian Smart
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
#ifndef _WX_RADIOBUT_H_ #ifndef _WX_RADIOBUT_H_
@@ -28,19 +28,19 @@ public:
{ {
Create(parent, id, label, pos, size, style, validator, name); Create(parent, id, label, pos, size, style, validator, name);
} }
bool Create(wxWindow *parent, wxWindowID id, bool Create(wxWindow *parent, wxWindowID id,
const wxString& label, const wxString& label,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = 0, const wxSize& size = wxDefaultSize, long style = 0,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxRadioButtonNameStr); const wxString& name = wxRadioButtonNameStr);
virtual void SetValue(bool val); virtual void SetValue(bool val);
virtual bool GetValue() const ; virtual bool GetValue() const ;
void Command(wxCommandEvent& event); void Command(wxCommandEvent& event);
// Implementation // Implementation
virtual void ChangeBackgroundColour(); virtual void ChangeBackgroundColour();

View File

@@ -1,12 +1,12 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: scrollbar.h // Name: wx/motif/scrollbar.h
// Purpose: wxScrollBar class // Purpose: wxScrollBar class
// Author: Julian Smart // Author: Julian Smart
// Modified by: // Modified by:
// Created: 17/09/98 // Created: 17/09/98
// RCS-ID: $Id$ // RCS-ID: $Id$
// Copyright: (c) Julian Smart // Copyright: (c) Julian Smart
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
#ifndef _WX_SCROLBAR_H_ #ifndef _WX_SCROLBAR_H_
@@ -16,11 +16,11 @@
class WXDLLEXPORT wxScrollBar: public wxScrollBarBase class WXDLLEXPORT wxScrollBar: public wxScrollBarBase
{ {
DECLARE_DYNAMIC_CLASS(wxScrollBar) DECLARE_DYNAMIC_CLASS(wxScrollBar)
public: public:
inline wxScrollBar() { m_pageSize = 0; m_viewSize = 0; m_objectSize = 0; } inline wxScrollBar() { m_pageSize = 0; m_viewSize = 0; m_objectSize = 0; }
~wxScrollBar(); ~wxScrollBar();
inline wxScrollBar(wxWindow *parent, wxWindowID id, inline wxScrollBar(wxWindow *parent, wxWindowID id,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
@@ -36,7 +36,7 @@ public:
long style = wxSB_HORIZONTAL, long style = wxSB_HORIZONTAL,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxScrollBarNameStr); const wxString& name = wxScrollBarNameStr);
int GetThumbPosition() const ; int GetThumbPosition() const ;
inline int GetThumbSize() const { return m_pageSize; } inline int GetThumbSize() const { return m_pageSize; }
inline int GetPageSize() const { return m_viewSize; } inline int GetPageSize() const { return m_viewSize; }
@@ -45,13 +45,13 @@ public:
virtual void SetThumbPosition(int viewStart); virtual void SetThumbPosition(int viewStart);
virtual void SetScrollbar(int position, int thumbSize, int range, int pageSize, virtual void SetScrollbar(int position, int thumbSize, int range, int pageSize,
bool refresh = true); bool refresh = true);
void Command(wxCommandEvent& event); void Command(wxCommandEvent& event);
// Implementation // Implementation
virtual void ChangeFont(bool keepOriginalSize = true); virtual void ChangeFont(bool keepOriginalSize = true);
virtual void ChangeBackgroundColour(); virtual void ChangeBackgroundColour();
protected: protected:
int m_pageSize; int m_pageSize;
int m_viewSize; int m_viewSize;

View File

@@ -1,12 +1,12 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: slider.h // Name: wx/motif/slider.h
// Purpose: wxSlider class // Purpose: wxSlider class
// Author: Julian Smart // Author: Julian Smart
// Modified by: // Modified by:
// Created: 17/09/98 // Created: 17/09/98
// RCS-ID: $Id$ // RCS-ID: $Id$
// Copyright: (c) Julian Smart // Copyright: (c) Julian Smart
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
#ifndef _WX_SLIDER_H_ #ifndef _WX_SLIDER_H_
@@ -18,10 +18,10 @@
class WXDLLEXPORT wxSlider: public wxSliderBase class WXDLLEXPORT wxSlider: public wxSliderBase
{ {
DECLARE_DYNAMIC_CLASS(wxSlider) DECLARE_DYNAMIC_CLASS(wxSlider)
public: public:
wxSlider(); wxSlider();
wxSlider(wxWindow *parent, wxWindowID id, wxSlider(wxWindow *parent, wxWindowID id,
int value, int minValue, int maxValue, int value, int minValue, int maxValue,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
@@ -32,9 +32,9 @@ public:
{ {
Create(parent, id, value, minValue, maxValue, pos, size, style, validator, name); Create(parent, id, value, minValue, maxValue, pos, size, style, validator, name);
} }
~wxSlider(); ~wxSlider();
bool Create(wxWindow *parent, wxWindowID id, bool Create(wxWindow *parent, wxWindowID id,
int value, int minValue, int maxValue, int value, int minValue, int maxValue,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
@@ -42,15 +42,15 @@ public:
long style = wxSL_HORIZONTAL, long style = wxSL_HORIZONTAL,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxSliderNameStr); const wxString& name = wxSliderNameStr);
virtual int GetValue() const ; virtual int GetValue() const ;
virtual void SetValue(int); virtual void SetValue(int);
void SetRange(int minValue, int maxValue); void SetRange(int minValue, int maxValue);
inline int GetMin() const { return m_rangeMin; } inline int GetMin() const { return m_rangeMin; }
inline int GetMax() const { return m_rangeMax; } inline int GetMax() const { return m_rangeMax; }
// For trackbars only // For trackbars only
void SetPageSize(int pageSize); void SetPageSize(int pageSize);
int GetPageSize() const ; int GetPageSize() const ;
@@ -58,19 +58,19 @@ public:
int GetLineSize() const ; int GetLineSize() const ;
void SetThumbLength(int len) ; void SetThumbLength(int len) ;
int GetThumbLength() const ; int GetThumbLength() const ;
void Command(wxCommandEvent& event); void Command(wxCommandEvent& event);
protected: protected:
int m_rangeMin; int m_rangeMin;
int m_rangeMax; int m_rangeMax;
int m_pageSize; int m_pageSize;
int m_lineSize; int m_lineSize;
virtual void DoSetSize(int x, int y, virtual void DoSetSize(int x, int y,
int width, int height, int width, int height,
int sizeFlags = wxSIZE_AUTO); int sizeFlags = wxSIZE_AUTO);
private: private:
DECLARE_EVENT_TABLE() DECLARE_EVENT_TABLE()
}; };

View File

@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: spinbutt.h // Name: wx/motif/spinbutt.h
// Purpose: wxSpinButton class // Purpose: wxSpinButton class
// Author: Julian Smart // Author: Julian Smart
// Modified by: // Modified by:
@@ -17,12 +17,12 @@ class WXDLLEXPORT wxArrowButton; // internal
class WXDLLEXPORT wxSpinButton : public wxSpinButtonBase class WXDLLEXPORT wxSpinButton : public wxSpinButtonBase
{ {
DECLARE_DYNAMIC_CLASS(wxSpinButton) DECLARE_DYNAMIC_CLASS(wxSpinButton)
public: public:
wxSpinButton() : m_up( 0 ), m_down( 0 ), m_pos( 0 ) { } wxSpinButton() : m_up( 0 ), m_down( 0 ), m_pos( 0 ) { }
wxSpinButton(wxWindow *parent, wxSpinButton(wxWindow *parent,
wxWindowID id = -1, wxWindowID id = wxID_ANY,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxSP_VERTICAL, long style = wxSP_VERTICAL,
@@ -34,23 +34,23 @@ public:
Create(parent, id, pos, size, style, name); Create(parent, id, pos, size, style, name);
} }
~wxSpinButton(); ~wxSpinButton();
bool Create(wxWindow *parent, bool Create(wxWindow *parent,
wxWindowID id = -1, wxWindowID id = wxID_ANY,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxSP_VERTICAL, long style = wxSP_VERTICAL,
const wxString& name = "wxSpinButton"); const wxString& name = "wxSpinButton");
// accessors // accessors
int GetValue() const; int GetValue() const;
int GetMin() const { return m_min; } int GetMin() const { return m_min; }
int GetMax() const { return m_max; } int GetMax() const { return m_max; }
// operations // operations
void SetValue(int val); void SetValue(int val);
void SetRange(int minVal, int maxVal); void SetRange(int minVal, int maxVal);
// Implementation // Implementation
virtual void Command(wxCommandEvent& event) virtual void Command(wxCommandEvent& event)
{ (void)ProcessCommand(event); }; { (void)ProcessCommand(event); };

View File

@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: statbmp.h // Name: wx/motif/statbmp.h
// Purpose: wxStaticBitmap class // Purpose: wxStaticBitmap class
// Author: Julian Smart // Author: Julian Smart
// Modified by: // Modified by:
@@ -18,11 +18,11 @@
class WXDLLEXPORT wxStaticBitmap : public wxStaticBitmapBase class WXDLLEXPORT wxStaticBitmap : public wxStaticBitmapBase
{ {
DECLARE_DYNAMIC_CLASS(wxStaticBitmap) DECLARE_DYNAMIC_CLASS(wxStaticBitmap)
public: public:
wxStaticBitmap() { } wxStaticBitmap() { }
~wxStaticBitmap(); ~wxStaticBitmap();
wxStaticBitmap(wxWindow *parent, wxWindowID id, wxStaticBitmap(wxWindow *parent, wxWindowID id,
const wxBitmap& label, const wxBitmap& label,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
@@ -32,40 +32,40 @@ public:
{ {
Create(parent, id, label, pos, size, style, name); Create(parent, id, label, pos, size, style, name);
} }
bool Create(wxWindow *parent, wxWindowID id, bool Create(wxWindow *parent, wxWindowID id,
const wxBitmap& label, const wxBitmap& label,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,
const wxString& name = wxStaticBitmapNameStr); const wxString& name = wxStaticBitmapNameStr);
virtual void SetBitmap(const wxBitmap& bitmap); virtual void SetBitmap(const wxBitmap& bitmap);
virtual bool ProcessCommand(wxCommandEvent& WXUNUSED(event)) virtual bool ProcessCommand(wxCommandEvent& WXUNUSED(event))
{ {
return false; return false;
} }
wxBitmap GetBitmap() const { return m_messageBitmap; } wxBitmap GetBitmap() const { return m_messageBitmap; }
// for compatibility with wxMSW // for compatibility with wxMSW
wxIcon GetIcon() const wxIcon GetIcon() const
{ {
// don't use wxDynamicCast, icons and bitmaps are really the same thing // don't use wxDynamicCast, icons and bitmaps are really the same thing
return *(wxIcon*)&m_messageBitmap; return *(wxIcon*)&m_messageBitmap;
} }
// for compatibility with wxMSW // for compatibility with wxMSW
void SetIcon(const wxIcon& icon) void SetIcon(const wxIcon& icon)
{ {
SetBitmap( icon ); SetBitmap( icon );
} }
// Implementation // Implementation
virtual void ChangeBackgroundColour(); virtual void ChangeBackgroundColour();
virtual void ChangeForegroundColour(); virtual void ChangeForegroundColour();
protected: protected:
void DoSetBitmap(); void DoSetBitmap();

View File

@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: statbox.h // Name: wx/motif/statbox.h
// Purpose: wxStaticBox class // Purpose: wxStaticBox class
// Author: Julian Smart // Author: Julian Smart
// Modified by: // Modified by:
@@ -16,7 +16,7 @@
class WXDLLEXPORT wxStaticBox: public wxStaticBoxBase class WXDLLEXPORT wxStaticBox: public wxStaticBoxBase
{ {
DECLARE_DYNAMIC_CLASS(wxStaticBox) DECLARE_DYNAMIC_CLASS(wxStaticBox)
public: public:
wxStaticBox(); wxStaticBox();
wxStaticBox(wxWindow *parent, wxWindowID id, wxStaticBox(wxWindow *parent, wxWindowID id,
@@ -30,14 +30,14 @@ public:
} }
~wxStaticBox(); ~wxStaticBox();
bool Create(wxWindow *parent, wxWindowID id, bool Create(wxWindow *parent, wxWindowID id,
const wxString& label, const wxString& label,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,
const wxString& name = wxStaticBoxNameStr); const wxString& name = wxStaticBoxNameStr);
virtual bool ProcessCommand(wxCommandEvent& WXUNUSED(event)) virtual bool ProcessCommand(wxCommandEvent& WXUNUSED(event))
{ {
return false; return false;
@@ -50,7 +50,7 @@ public:
private: private:
WXWidget m_labelWidget; WXWidget m_labelWidget;
private: private:
DECLARE_EVENT_TABLE() DECLARE_EVENT_TABLE()
}; };

View File

@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: stattext.h // Name: wx/motif/stattext.h
// Purpose: wxStaticText class // Purpose: wxStaticText class
// Author: Julian Smart // Author: Julian Smart
// Modified by: // Modified by:
@@ -15,10 +15,10 @@
class WXDLLEXPORT wxStaticText: public wxStaticTextBase class WXDLLEXPORT wxStaticText: public wxStaticTextBase
{ {
DECLARE_DYNAMIC_CLASS(wxStaticText) DECLARE_DYNAMIC_CLASS(wxStaticText)
public: public:
wxStaticText() { } wxStaticText() { }
wxStaticText(wxWindow *parent, wxWindowID id, wxStaticText(wxWindow *parent, wxWindowID id,
const wxString& label, const wxString& label,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
@@ -28,30 +28,30 @@ public:
{ {
Create(parent, id, label, pos, size, style, name); Create(parent, id, label, pos, size, style, name);
} }
bool Create(wxWindow *parent, wxWindowID id, bool Create(wxWindow *parent, wxWindowID id,
const wxString& label, const wxString& label,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,
const wxString& name = wxStaticTextNameStr); const wxString& name = wxStaticTextNameStr);
// implementation // implementation
// -------------- // --------------
// operations // operations
virtual bool ProcessCommand(wxCommandEvent& WXUNUSED(event)) virtual bool ProcessCommand(wxCommandEvent& WXUNUSED(event))
{ {
return false; return false;
} }
virtual void SetLabel(const wxString& label); virtual void SetLabel(const wxString& label);
// Get the widget that corresponds to the label // Get the widget that corresponds to the label
// (for font setting, label setting etc.) // (for font setting, label setting etc.)
virtual WXWidget GetLabelWidget() const virtual WXWidget GetLabelWidget() const
{ return m_labelWidget; } { return m_labelWidget; }
protected: protected:
WXWidget m_labelWidget; WXWidget m_labelWidget;
}; };

View File

@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: textctrl.h // Name: wx/motif/textctrl.h
// Purpose: wxTextCtrl class // Purpose: wxTextCtrl class
// Author: Julian Smart // Author: Julian Smart
// Modified by: // Modified by:

View File

@@ -1,12 +1,12 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: timer.h // Name: wx/motif/timer.h
// Purpose: wxTimer class // Purpose: wxTimer class
// Author: Julian Smart // Author: Julian Smart
// Modified by: // Modified by:
// Created: 17/09/98 // Created: 17/09/98
// RCS-ID: $Id$ // RCS-ID: $Id$
// Copyright: (c) Julian Smart // Copyright: (c) Julian Smart
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
#ifndef _WX_TIMER_H_ #ifndef _WX_TIMER_H_
@@ -15,23 +15,23 @@
class WXDLLEXPORT wxTimer : public wxTimerBase class WXDLLEXPORT wxTimer : public wxTimerBase
{ {
friend void wxTimerCallback(wxTimer * timer); friend void wxTimerCallback(wxTimer * timer);
public: public:
wxTimer() { Init(); } wxTimer() { Init(); }
wxTimer(wxEvtHandler *owner, int id = -1) : wxTimerBase(owner, id) wxTimer(wxEvtHandler *owner, int id = -1) : wxTimerBase(owner, id)
{ Init(); } { Init(); }
~wxTimer(); ~wxTimer();
virtual bool Start(int milliseconds = -1, bool oneShot = false); virtual bool Start(int milliseconds = -1, bool oneShot = false);
virtual void Stop(); virtual void Stop();
virtual bool IsRunning() const { return m_id != 0; } virtual bool IsRunning() const { return m_id != 0; }
protected: protected:
void Init(); void Init();
long m_id; long m_id;
private: private:
DECLARE_DYNAMIC_CLASS(wxTimer) DECLARE_DYNAMIC_CLASS(wxTimer)
}; };