No changes whatsoever, just remove trailing whitespace.
There are no real changes in this commit but it removes all trailing white space from our source files. This avoids problems when applying patches and making diffs and it would be nice to prevent it from reappearing. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65680 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -110,7 +110,7 @@ public:
|
||||
void SetBitmapMargins(wxCoord x, wxCoord y) { DoSetBitmapMargins(x, y); }
|
||||
void SetBitmapMargins(const wxSize& sz) { DoSetBitmapMargins(sz.x, sz.y); }
|
||||
wxSize GetBitmapMargins() { return DoGetBitmapMargins(); }
|
||||
|
||||
|
||||
// set the image position relative to the text, i.e. wxLEFT means that the
|
||||
// image is to the left of the text (this is the default)
|
||||
void SetBitmapPosition(wxDirection dir);
|
||||
|
@@ -125,7 +125,7 @@ public:
|
||||
virtual bool ItemsChanged( const wxDataViewItemArray &items );
|
||||
virtual bool ValueChanged( const wxDataViewItem &item, unsigned int col ) = 0;
|
||||
virtual bool Cleared() = 0;
|
||||
|
||||
|
||||
// some platforms, such as GTK+, may need a two step procedure for ::Reset()
|
||||
virtual bool BeforeReset() { return true; }
|
||||
virtual bool AfterReset() { return Cleared(); }
|
||||
@@ -305,7 +305,7 @@ public:
|
||||
// helper methods provided by list models only
|
||||
virtual unsigned GetRow( const wxDataViewItem &item ) const = 0;
|
||||
|
||||
// returns the number of rows
|
||||
// returns the number of rows
|
||||
virtual unsigned int GetCount() const = 0;
|
||||
|
||||
// implement some base class pure virtual directly
|
||||
@@ -1151,7 +1151,7 @@ public:
|
||||
|
||||
wxDataViewItem GetNthChild( const wxDataViewItem& parent, unsigned int pos ) const;
|
||||
int GetChildCount( const wxDataViewItem& parent ) const;
|
||||
|
||||
|
||||
void SetItemText( const wxDataViewItem& item, const wxString &text );
|
||||
wxString GetItemText( const wxDataViewItem& item ) const;
|
||||
void SetItemIcon( const wxDataViewItem& item, const wxIcon &icon );
|
||||
|
@@ -105,7 +105,7 @@ public:
|
||||
|
||||
// get the full name of the directory (without '/' at the end)
|
||||
wxString GetName() const;
|
||||
|
||||
|
||||
|
||||
// file enumeration routines
|
||||
// -------------------------
|
||||
@@ -155,7 +155,7 @@ public:
|
||||
// static utilities for directory management
|
||||
// (alias to wxFileName's functions for dirs)
|
||||
// -----------------------------------------
|
||||
|
||||
|
||||
// test for existence of a directory with the given name
|
||||
static bool Exists(const wxString& dir);
|
||||
|
||||
@@ -163,7 +163,7 @@ public:
|
||||
int flags = 0);
|
||||
|
||||
static bool Remove(const wxString &dir, int flags = 0);
|
||||
|
||||
|
||||
|
||||
private:
|
||||
friend class wxDirData;
|
||||
|
@@ -351,10 +351,10 @@ public:
|
||||
wxDataViewChoiceByIndexRenderer( const wxArrayString &choices,
|
||||
wxDataViewCellMode mode = wxDATAVIEW_CELL_EDITABLE,
|
||||
int alignment = wxDVR_DEFAULT_ALIGNMENT );
|
||||
|
||||
|
||||
virtual wxControl* CreateEditorCtrl( wxWindow *parent, wxRect labelRect, const wxVariant &value );
|
||||
virtual bool GetValueFromEditorCtrl( wxControl* editor, wxVariant &value );
|
||||
|
||||
|
||||
virtual bool SetValue( const wxVariant &value );
|
||||
virtual bool GetValue( wxVariant &value ) const;
|
||||
};
|
||||
|
@@ -79,7 +79,7 @@ public:
|
||||
private:
|
||||
// common part of all ctors
|
||||
void Init(int width, wxAlignment align, int flags);
|
||||
|
||||
|
||||
void UpdateDisplay();
|
||||
|
||||
wxString m_title;
|
||||
|
@@ -229,7 +229,7 @@ public:
|
||||
wxGLAPI();
|
||||
~wxGLAPI();
|
||||
|
||||
static void glFrustum(GLfloat left, GLfloat right, GLfloat bottom,
|
||||
static void glFrustum(GLfloat left, GLfloat right, GLfloat bottom,
|
||||
GLfloat top, GLfloat zNear, GLfloat zFar);
|
||||
static void glBegin(GLenum mode);
|
||||
static void glTexCoord2f(GLfloat s, GLfloat t);
|
||||
|
@@ -286,10 +286,10 @@ public:
|
||||
wxDataViewChoiceByIndexRenderer( const wxArrayString &choices,
|
||||
wxDataViewCellMode mode = wxDATAVIEW_CELL_EDITABLE,
|
||||
int alignment = wxDVR_DEFAULT_ALIGNMENT );
|
||||
|
||||
|
||||
virtual bool SetValue( const wxVariant &value );
|
||||
virtual bool GetValue( wxVariant &value ) const;
|
||||
|
||||
|
||||
private:
|
||||
virtual void GtkOnTextEdited(const gchar *itempath, const wxString& str);
|
||||
};
|
||||
|
@@ -48,10 +48,10 @@ public:
|
||||
m_label = label;
|
||||
m_key = key;
|
||||
}
|
||||
|
||||
|
||||
~wxGtkCollatableString()
|
||||
{
|
||||
if (m_key)
|
||||
if (m_key)
|
||||
g_free( m_key );
|
||||
}
|
||||
|
||||
@@ -63,22 +63,22 @@ class wxGtkCollatedArrayString
|
||||
{
|
||||
public:
|
||||
wxGtkCollatedArrayString() { }
|
||||
|
||||
|
||||
int Add( const wxString &new_label )
|
||||
{
|
||||
int index = 0;
|
||||
|
||||
gchar *new_key_lower = g_utf8_casefold( new_label.utf8_str(), -1);
|
||||
gchar *new_key = g_utf8_collate_key( new_key_lower, -1);
|
||||
|
||||
gchar *new_key_lower = g_utf8_casefold( new_label.utf8_str(), -1);
|
||||
gchar *new_key = g_utf8_collate_key( new_key_lower, -1);
|
||||
g_free( new_key_lower );
|
||||
|
||||
|
||||
wxSharedPtr<wxGtkCollatableString> new_ptr( new wxGtkCollatableString( new_label, new_key ) );
|
||||
|
||||
|
||||
wxVector< wxSharedPtr<wxGtkCollatableString> >::iterator iter;
|
||||
for (iter = m_list.begin(); iter != m_list.end(); ++iter)
|
||||
{
|
||||
wxSharedPtr<wxGtkCollatableString> ptr = *iter;
|
||||
|
||||
|
||||
gchar *key = ptr->m_key;
|
||||
if (strcmp(key,new_key) >= 0)
|
||||
{
|
||||
@@ -87,31 +87,31 @@ public:
|
||||
}
|
||||
index ++;
|
||||
}
|
||||
|
||||
|
||||
m_list.push_back( new_ptr );
|
||||
return index;
|
||||
}
|
||||
|
||||
|
||||
size_t GetCount()
|
||||
{
|
||||
return m_list.size();
|
||||
}
|
||||
|
||||
|
||||
wxString At( size_t index )
|
||||
{
|
||||
return m_list[index]->m_label;
|
||||
}
|
||||
|
||||
|
||||
void Clear()
|
||||
{
|
||||
m_list.clear();
|
||||
}
|
||||
|
||||
|
||||
void RemoveAt( size_t index )
|
||||
{
|
||||
m_list.erase( m_list.begin() + index );
|
||||
}
|
||||
|
||||
|
||||
private:
|
||||
wxVector< wxSharedPtr<wxGtkCollatableString> > m_list;
|
||||
};
|
||||
|
@@ -63,7 +63,7 @@ public:
|
||||
void GTKDisableEvents();
|
||||
void GTKEnableEvents();
|
||||
bool GTKEventsDisabled() const;
|
||||
|
||||
|
||||
double m_pos;
|
||||
int m_scrollEventType;
|
||||
bool m_needThumbRelease;
|
||||
|
@@ -242,10 +242,10 @@ public:
|
||||
// see the docs in src/gtk/window.cpp
|
||||
GtkWidget *m_widget; // mostly the widget seen by the rest of GTK
|
||||
GtkWidget *m_wxwindow; // mostly the client area as per wxWidgets
|
||||
|
||||
|
||||
// label for use with GetLabelSetLabel
|
||||
wxString m_gtkLabel;
|
||||
|
||||
|
||||
// return true if the window is of a standard (i.e. not wxWidgets') class
|
||||
bool IsOfStandardClass() const { return m_wxwindow == NULL; }
|
||||
|
||||
|
@@ -131,7 +131,7 @@ public:
|
||||
}
|
||||
|
||||
wxDECLARE_CLASS_INFO_ITERATORS();
|
||||
|
||||
|
||||
private:
|
||||
const wxChar *m_className;
|
||||
int m_objectSize;
|
||||
@@ -233,7 +233,7 @@ WXDLLIMPEXP_BASE wxObject *wxCreateDynamicObject(const wxString& name);
|
||||
|
||||
#define wxIMPLEMENT_CLASS(name, basename) \
|
||||
wxIMPLEMENT_ABSTRACT_CLASS(name, basename)
|
||||
|
||||
|
||||
#define wxIMPLEMENT_CLASS2(name, basename1, basename2) \
|
||||
IMPLEMENT_ABSTRACT_CLASS2(name, basename1, basename2)
|
||||
|
||||
|
@@ -40,7 +40,7 @@ public:
|
||||
const wxString& name = wxButtonNameStr);
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
virtual wxSize DoGetBestSize() const;
|
||||
|
||||
DECLARE_DYNAMIC_CLASS(wxBitmapButton)
|
||||
|
@@ -56,7 +56,7 @@ protected:
|
||||
|
||||
void OnEnterWindow( wxMouseEvent& event);
|
||||
void OnLeaveWindow( wxMouseEvent& event);
|
||||
|
||||
|
||||
virtual wxBitmap DoGetBitmap(State which) const;
|
||||
virtual void DoSetBitmap(const wxBitmap& bitmap, State which);
|
||||
virtual void DoSetBitmapPosition(wxDirection dir);
|
||||
@@ -67,7 +67,7 @@ protected:
|
||||
m_marginY = y;
|
||||
InvalidateBestSize();
|
||||
}
|
||||
|
||||
|
||||
// the margins around the bitmap
|
||||
int m_marginX;
|
||||
int m_marginY;
|
||||
@@ -75,8 +75,8 @@ protected:
|
||||
// the bitmaps for the different state of the buttons, all of them may be
|
||||
// invalid and the button only shows a bitmap at all if State_Normal bitmap
|
||||
// is valid
|
||||
wxBitmap m_bitmaps[State_Max];
|
||||
|
||||
wxBitmap m_bitmaps[State_Max];
|
||||
|
||||
DECLARE_DYNAMIC_CLASS(wxButton)
|
||||
DECLARE_EVENT_TABLE()
|
||||
};
|
||||
|
@@ -24,7 +24,7 @@ protected:
|
||||
virtual int DoDispatchTimeout(unsigned long timeout);
|
||||
|
||||
virtual void DoRun();
|
||||
|
||||
|
||||
virtual void DoStop();
|
||||
|
||||
virtual CFRunLoopRef CFGetCurrentRunLoop() const;
|
||||
|
@@ -1044,7 +1044,7 @@ public :
|
||||
virtual bool IsFullScreen() const;
|
||||
|
||||
virtual bool ShowFullScreen(bool show, long style);
|
||||
|
||||
|
||||
virtual void ShowWithoutActivating();
|
||||
|
||||
virtual void RequestUserAttention(int flags);
|
||||
|
@@ -47,7 +47,7 @@ protected :
|
||||
virtual void TransferPaperInfoTo( wxPrintData &data );
|
||||
virtual void TransferResolutionTo( wxPrintData &data );
|
||||
|
||||
|
||||
|
||||
virtual void UpdateFromPMState();
|
||||
virtual void UpdateToPMState();
|
||||
|
||||
|
@@ -281,7 +281,7 @@ private:
|
||||
ofItem:(id)item;
|
||||
|
||||
-(id)
|
||||
outlineView:(NSOutlineView*)outlineView
|
||||
outlineView:(NSOutlineView*)outlineView
|
||||
objectValueForTableColumn:(NSTableColumn*)tableColumn
|
||||
byItem:(id)item;
|
||||
|
||||
|
@@ -15,14 +15,14 @@ class WXDLLIMPEXP_BASE wxGUIEventLoop : public wxCFEventLoop
|
||||
{
|
||||
public:
|
||||
wxGUIEventLoop();
|
||||
|
||||
|
||||
protected:
|
||||
virtual int DoDispatchTimeout(unsigned long timeout);
|
||||
|
||||
|
||||
virtual void DoRun();
|
||||
|
||||
virtual void DoStop();
|
||||
|
||||
|
||||
virtual CFRunLoopRef CFGetCurrentRunLoop() const;
|
||||
};
|
||||
|
||||
|
@@ -181,7 +181,7 @@ public :
|
||||
|
||||
virtual void controlAction(WXWidget slf, void* _cmd, void* sender);
|
||||
virtual void controlDoubleAction(WXWidget slf, void* _cmd, void *sender);
|
||||
|
||||
|
||||
// for wxTextCtrl-derived classes, put here since they don't all derive
|
||||
// from the same pimpl class.
|
||||
virtual void controlTextDidChange();
|
||||
@@ -259,7 +259,7 @@ public :
|
||||
virtual void WindowToScreen( int *x, int *y );
|
||||
|
||||
virtual bool IsActive();
|
||||
|
||||
|
||||
virtual void SetModified(bool modified);
|
||||
virtual bool IsModified() const;
|
||||
|
||||
|
@@ -69,14 +69,14 @@ public:
|
||||
virtual void SetSelection( long from , long to );
|
||||
virtual void WriteText(const wxString& str) ;
|
||||
virtual void SetFont( const wxFont & font , const wxColour& foreground , long windowStyle, bool ignoreBlack = true );
|
||||
|
||||
|
||||
virtual bool GetStyle(long position, wxTextAttr& style);
|
||||
virtual void SetStyle(long start, long end, const wxTextAttr& style);
|
||||
|
||||
|
||||
virtual bool CanFocus() const;
|
||||
|
||||
|
||||
virtual bool HasOwnContextMenu() const { return true; }
|
||||
|
||||
|
||||
virtual void CheckSpelling(bool check);
|
||||
virtual wxSize GetBestSize() const;
|
||||
|
||||
@@ -90,19 +90,19 @@ class wxNSComboBoxControl : public wxNSTextFieldControl, public wxComboWidgetImp
|
||||
public :
|
||||
wxNSComboBoxControl( wxComboBox *wxPeer, WXWidget w );
|
||||
virtual ~wxNSComboBoxControl();
|
||||
|
||||
|
||||
virtual int GetSelectedItem() const;
|
||||
virtual void SetSelectedItem(int item);
|
||||
|
||||
|
||||
virtual int GetNumberOfItems() const;
|
||||
|
||||
|
||||
virtual void InsertItem(int pos, const wxString& item);
|
||||
virtual void RemoveItem(int pos);
|
||||
|
||||
|
||||
virtual void Clear();
|
||||
|
||||
|
||||
virtual wxString GetStringAtIndex(int pos) const;
|
||||
|
||||
|
||||
virtual int FindString(const wxString& text) const;
|
||||
private:
|
||||
NSComboBox* m_comboBox;
|
||||
|
@@ -100,7 +100,7 @@ class WXDLLIMPEXP_CORE wxComboBox : public wxControl, public wxComboBoxBase
|
||||
virtual void SetString(unsigned int n, const wxString& s);
|
||||
|
||||
virtual unsigned int GetCount() const;
|
||||
|
||||
|
||||
// these methods are provided by wxTextEntry for the native impl.
|
||||
#if wxOSX_USE_CARBON
|
||||
// Text field functions
|
||||
|
@@ -270,7 +270,7 @@ public :
|
||||
virtual void SetScrollThumb( wxInt32 value, wxInt32 thumbSize ) = 0;
|
||||
|
||||
virtual void SetFont( const wxFont & font , const wxColour& foreground , long windowStyle, bool ignoreBlack = true ) = 0;
|
||||
|
||||
|
||||
virtual void SetToolTip(wxToolTip* WXUNUSED(tooltip)) { }
|
||||
|
||||
// is the clicked event sent AFTER the state already changed, so no additional
|
||||
@@ -278,7 +278,7 @@ public :
|
||||
virtual bool ButtonClickDidStateChange() = 0;
|
||||
|
||||
virtual void InstallEventHandler( WXWidget control = NULL ) = 0;
|
||||
|
||||
|
||||
// Mechanism used to keep track of whether a change should send an event
|
||||
// Do SendEvents(false) when starting actions that would trigger programmatic events
|
||||
// and SendEvents(true) at the end of the block.
|
||||
@@ -481,13 +481,13 @@ public :
|
||||
long extraStyle);
|
||||
|
||||
#if wxOSX_USE_COCOA
|
||||
static wxWidgetImplType* CreateComboBox( wxComboBox* wxpeer,
|
||||
wxWindowMac* parent,
|
||||
wxWindowID id,
|
||||
static wxWidgetImplType* CreateComboBox( wxComboBox* wxpeer,
|
||||
wxWindowMac* parent,
|
||||
wxWindowID id,
|
||||
wxMenu* menu,
|
||||
const wxPoint& pos,
|
||||
const wxPoint& pos,
|
||||
const wxSize& size,
|
||||
long style,
|
||||
long style,
|
||||
long extraStyle);
|
||||
#endif
|
||||
|
||||
@@ -564,7 +564,7 @@ public:
|
||||
// accessing content
|
||||
|
||||
virtual unsigned int ListGetCount() const = 0;
|
||||
|
||||
|
||||
virtual int DoListHitTest( const wxPoint& inpoint ) const = 0;
|
||||
};
|
||||
|
||||
@@ -628,7 +628,7 @@ public :
|
||||
virtual int GetLineLength(long lineNo) const ;
|
||||
virtual wxString GetLineText(long lineNo) const ;
|
||||
virtual void CheckSpelling(bool WXUNUSED(check)) { }
|
||||
|
||||
|
||||
virtual wxSize GetBestSize() const { return wxDefaultSize; }
|
||||
|
||||
private:
|
||||
@@ -645,20 +645,20 @@ public :
|
||||
wxComboWidgetImpl() {}
|
||||
|
||||
virtual ~wxComboWidgetImpl() {}
|
||||
|
||||
|
||||
virtual int GetSelectedItem() const { return -1; };
|
||||
virtual void SetSelectedItem(int WXUNUSED(item)) {};
|
||||
|
||||
|
||||
virtual int GetNumberOfItems() const { return -1; };
|
||||
|
||||
|
||||
virtual void InsertItem(int WXUNUSED(pos), const wxString& WXUNUSED(item)) {}
|
||||
|
||||
|
||||
virtual void RemoveItem(int WXUNUSED(pos)) {}
|
||||
|
||||
|
||||
virtual void Clear() {}
|
||||
|
||||
|
||||
virtual wxString GetStringAtIndex(int WXUNUSED(pos)) const { return wxEmptyString; }
|
||||
|
||||
|
||||
virtual int FindString(const wxString& WXUNUSED(text)) const { return -1; }
|
||||
};
|
||||
|
||||
@@ -671,7 +671,7 @@ class wxButtonImpl
|
||||
public :
|
||||
wxButtonImpl(){}
|
||||
virtual ~wxButtonImpl(){}
|
||||
|
||||
|
||||
virtual void SetPressedBitmap( const wxBitmap& bitmap ) = 0;
|
||||
} ;
|
||||
|
||||
@@ -759,11 +759,11 @@ public :
|
||||
virtual void SetExtraStyle( long WXUNUSED(exStyle) )
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
virtual void SetWindowStyleFlag( long WXUNUSED(style) )
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
virtual bool SetBackgroundStyle(wxBackgroundStyle WXUNUSED(style))
|
||||
{
|
||||
return false ;
|
||||
@@ -797,7 +797,7 @@ public :
|
||||
virtual bool IsFullScreen() const= 0;
|
||||
|
||||
virtual void ShowWithoutActivating() { Show(true); }
|
||||
|
||||
|
||||
virtual bool ShowFullScreen(bool show, long style)= 0;
|
||||
|
||||
virtual void RequestUserAttention(int flags) = 0;
|
||||
@@ -807,23 +807,23 @@ public :
|
||||
virtual void WindowToScreen( int *x, int *y ) = 0;
|
||||
|
||||
virtual bool IsActive() = 0;
|
||||
|
||||
|
||||
wxNonOwnedWindow* GetWXPeer() { return m_wxPeer; }
|
||||
|
||||
static wxNonOwnedWindowImpl*
|
||||
FindFromWXWindow(WXWindow window);
|
||||
|
||||
|
||||
static void RemoveAssociations( wxNonOwnedWindowImpl* impl);
|
||||
|
||||
|
||||
static void Associate( WXWindow window, wxNonOwnedWindowImpl *impl );
|
||||
|
||||
|
||||
// static creation methods, must be implemented by all toolkits
|
||||
|
||||
static wxNonOwnedWindowImpl* CreateNonOwnedWindow( wxNonOwnedWindow* wxpeer, wxWindow* parent, WXWindow native) ;
|
||||
|
||||
|
||||
static wxNonOwnedWindowImpl* CreateNonOwnedWindow( wxNonOwnedWindow* wxpeer, wxWindow* parent, const wxPoint& pos, const wxSize& size,
|
||||
long style, long extraStyle, const wxString& name ) ;
|
||||
|
||||
|
||||
virtual void SetModified(bool WXUNUSED(modified)) { }
|
||||
virtual bool IsModified() const { return false; }
|
||||
|
||||
|
@@ -56,12 +56,12 @@ public:
|
||||
|
||||
// show the dialog modally and return the value passed to EndModal()
|
||||
virtual int ShowModal();
|
||||
|
||||
|
||||
virtual void ShowWindowModal();
|
||||
|
||||
// may be called to terminate the dialog with the given return code
|
||||
virtual void EndModal(int retCode);
|
||||
|
||||
|
||||
static bool OSXHasModalDialogsOpen();
|
||||
static void OSXBeginModalDialog();
|
||||
static void OSXEndModalDialog();
|
||||
@@ -70,13 +70,13 @@ public:
|
||||
// --------------
|
||||
|
||||
wxDialogModality GetModality() const;
|
||||
|
||||
|
||||
#if wxOSX_USE_COCOA
|
||||
virtual void ModalFinishedCallback(void* WXUNUSED(panel), int WXUNUSED(returnCode)) {}
|
||||
#endif
|
||||
|
||||
protected:
|
||||
// show window modal dialog
|
||||
// show window modal dialog
|
||||
void DoShowWindowModal();
|
||||
|
||||
// end window modal dialog.
|
||||
@@ -87,7 +87,7 @@ protected:
|
||||
|
||||
|
||||
wxDialogModality m_modality;
|
||||
|
||||
|
||||
wxModalEventLoop* m_eventLoop;
|
||||
|
||||
private:
|
||||
|
@@ -24,11 +24,11 @@ public:
|
||||
const wxString& name = wxDirDialogNameStr);
|
||||
|
||||
virtual int ShowModal();
|
||||
|
||||
|
||||
#if wxOSX_USE_COCOA
|
||||
virtual void ShowWindowModal();
|
||||
virtual void ModalFinishedCallback(void* panel, int returnCode);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
protected:
|
||||
|
||||
|
@@ -26,17 +26,17 @@ public:
|
||||
// enters a loop calling OnNextIteration(), Pending() and Dispatch() and
|
||||
// terminating when Exit() is called
|
||||
virtual int Run();
|
||||
|
||||
|
||||
// sets the "should exit" flag and wakes up the loop so that it terminates
|
||||
// soon
|
||||
virtual void Exit(int rc = 0);
|
||||
|
||||
|
||||
// return true if any events are available
|
||||
virtual bool Pending() const;
|
||||
|
||||
|
||||
// dispatch a single event, return false if we should exit from the loop
|
||||
virtual bool Dispatch();
|
||||
|
||||
|
||||
// same as Dispatch() but doesn't wait for longer than the specified (in
|
||||
// ms) timeout, return true if an event was processed, false if we should
|
||||
// exit the loop or -1 if timeout expired
|
||||
@@ -45,7 +45,7 @@ public:
|
||||
// implement this to wake up the loop: usually done by posting a dummy event
|
||||
// to it (can be called from non main thread)
|
||||
virtual void WakeUp();
|
||||
|
||||
|
||||
virtual bool YieldFor(long eventsToProcess);
|
||||
|
||||
#if wxUSE_EVENTLOOP_SOURCE
|
||||
@@ -60,23 +60,23 @@ protected:
|
||||
virtual CFRunLoopRef CFGetCurrentRunLoop() const;
|
||||
|
||||
virtual int DoDispatchTimeout(unsigned long timeout);
|
||||
|
||||
|
||||
virtual void DoRun();
|
||||
|
||||
virtual void DoStop();
|
||||
|
||||
|
||||
// should we exit the loop?
|
||||
bool m_shouldExit;
|
||||
|
||||
// the loop exit code
|
||||
int m_exitcode;
|
||||
|
||||
|
||||
// cfrunloop
|
||||
CFRunLoopRef m_runLoop;
|
||||
|
||||
|
||||
// runloop observer
|
||||
CFRunLoopObserverRef m_runLoopObserver;
|
||||
|
||||
|
||||
private:
|
||||
// process all already pending events and dispatch a new one (blocking
|
||||
// until it appears in the event queue if necessary)
|
||||
@@ -101,12 +101,12 @@ class WXDLLIMPEXP_CORE wxModalEventLoop : public wxGUIEventLoop
|
||||
public:
|
||||
wxModalEventLoop(wxWindow *modalWindow);
|
||||
wxModalEventLoop(WXWindow modalNativeWindow);
|
||||
|
||||
|
||||
protected:
|
||||
virtual void DoRun();
|
||||
|
||||
|
||||
virtual void DoStop();
|
||||
|
||||
|
||||
// (in case) the modal window for this event loop
|
||||
wxNonOwnedWindow* m_modalWindow;
|
||||
WXWindow m_modalNativeWindow;
|
||||
|
@@ -38,20 +38,20 @@ public:
|
||||
virtual void GetFilenames(wxArrayString& files) const { files = m_fileNames ; }
|
||||
|
||||
virtual int ShowModal();
|
||||
|
||||
|
||||
#if wxOSX_USE_COCOA
|
||||
virtual void ShowWindowModal();
|
||||
virtual void ModalFinishedCallback(void* panel, int resultCode);
|
||||
#endif
|
||||
|
||||
virtual bool SupportsExtraControl() const;
|
||||
|
||||
|
||||
protected:
|
||||
// not supported for file dialog, RR
|
||||
virtual void DoSetSize(int WXUNUSED(x), int WXUNUSED(y),
|
||||
int WXUNUSED(width), int WXUNUSED(height),
|
||||
int WXUNUSED(sizeFlags) = wxSIZE_AUTO) {}
|
||||
|
||||
|
||||
void SetupExtraControls(WXWindow nativeWindow);
|
||||
};
|
||||
|
||||
|
@@ -36,7 +36,7 @@ class WXDLLIMPEXP_CORE wxFont : public wxFontBase
|
||||
public:
|
||||
// ctors and such
|
||||
wxFont() { }
|
||||
|
||||
|
||||
wxFont( wxOSXSystemFont systemFont );
|
||||
|
||||
#if wxOSX_USE_COCOA
|
||||
|
@@ -94,7 +94,7 @@
|
||||
#endif
|
||||
|
||||
#ifndef __WXUNIVERSAL__
|
||||
#undef wxUSE_SCROLLBAR
|
||||
#undef wxUSE_SCROLLBAR
|
||||
#define wxUSE_SCROLLBAR 0
|
||||
#endif
|
||||
|
||||
|
@@ -173,7 +173,7 @@ public :
|
||||
|
||||
// FIXME: Does iPhone have a concept of inactive windows?
|
||||
virtual bool IsActive() { return true; }
|
||||
|
||||
|
||||
wxNonOwnedWindow* GetWXPeer() { return m_wxPeer; }
|
||||
|
||||
virtual bool InitialShowEventSent() { return m_initialShowSent; }
|
||||
|
@@ -59,14 +59,14 @@ public:
|
||||
virtual void SetSelection( long from , long to );
|
||||
virtual void WriteText(const wxString& str) ;
|
||||
virtual void SetFont( const wxFont & font , const wxColour& foreground , long windowStyle, bool ignoreBlack = true );
|
||||
|
||||
|
||||
virtual bool GetStyle(long position, wxTextAttr& style);
|
||||
virtual void SetStyle(long start, long end, const wxTextAttr& style);
|
||||
|
||||
|
||||
virtual bool CanFocus() const;
|
||||
|
||||
|
||||
virtual bool HasOwnContextMenu() const { return true; }
|
||||
|
||||
|
||||
virtual void CheckSpelling(bool check);
|
||||
virtual wxSize GetBestSize() const;
|
||||
|
||||
@@ -80,19 +80,19 @@ class wxNSComboBoxControl : public wxUITextFieldControl, public wxComboWidgetImp
|
||||
public :
|
||||
wxNSComboBoxControl( wxWindow *wxPeer, WXWidget w );
|
||||
virtual ~wxNSComboBoxControl();
|
||||
|
||||
|
||||
virtual int GetSelectedItem() const;
|
||||
virtual void SetSelectedItem(int item);
|
||||
|
||||
|
||||
virtual int GetNumberOfItems() const;
|
||||
|
||||
|
||||
virtual void InsertItem(int pos, const wxString& item);
|
||||
virtual void RemoveItem(int pos);
|
||||
|
||||
|
||||
virtual void Clear();
|
||||
|
||||
|
||||
virtual wxString GetStringAtIndex(int pos) const;
|
||||
|
||||
|
||||
virtual int FindString(const wxString& text) const;
|
||||
private:
|
||||
NSComboBox* m_comboBox;
|
||||
|
@@ -23,7 +23,7 @@ public:
|
||||
const wxPoint& pos = wxDefaultPosition);
|
||||
|
||||
virtual int ShowModal();
|
||||
|
||||
|
||||
#if wxOSX_USE_COCOA
|
||||
virtual void ShowWindowModal();
|
||||
virtual void ModalFinishedCallback(void* panel, int resultCode);
|
||||
|
@@ -56,9 +56,9 @@ public:
|
||||
const wxString& name = wxPanelNameStr);
|
||||
|
||||
bool Create(wxWindow *parent, WXWindow nativeWindow);
|
||||
|
||||
|
||||
virtual ~wxNonOwnedWindow();
|
||||
|
||||
|
||||
virtual void SubclassWin(WXWindow nativeWindow);
|
||||
virtual void UnsubclassWin();
|
||||
|
||||
@@ -109,9 +109,9 @@ public:
|
||||
virtual void HandleResized( double timestampsec );
|
||||
virtual void HandleMoved( double timestampsec );
|
||||
virtual void HandleResizing( double timestampsec, wxRect* rect );
|
||||
|
||||
|
||||
virtual bool Destroy();
|
||||
|
||||
|
||||
protected:
|
||||
// common part of all ctors
|
||||
void Init();
|
||||
@@ -124,7 +124,7 @@ protected:
|
||||
virtual bool OSXShowWithEffect(bool show,
|
||||
wxShowEffect effect,
|
||||
unsigned timeout);
|
||||
|
||||
|
||||
virtual void WillBeDestroyed();
|
||||
|
||||
wxNonOwnedWindowImpl* m_nowpeer ;
|
||||
@@ -132,7 +132,7 @@ protected:
|
||||
// wxWindowMac* m_macFocus ;
|
||||
|
||||
static wxNonOwnedWindow *s_macDeactivateWindow;
|
||||
|
||||
|
||||
private :
|
||||
wxRegion m_shape;
|
||||
};
|
||||
|
@@ -26,7 +26,7 @@ public:
|
||||
{ (void)Create(parent, flags); }
|
||||
|
||||
bool Create(wxWindow *parent, int flags = wxBORDER_NONE);
|
||||
|
||||
|
||||
virtual bool Show(bool show);
|
||||
|
||||
protected:
|
||||
|
@@ -4,7 +4,7 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
CGImageRef grabViaOpenGL(CGDirectDisplayID display,
|
||||
CGImageRef grabViaOpenGL(CGDirectDisplayID display,
|
||||
CGRect srcRect);
|
||||
|
||||
#if defined __cplusplus
|
||||
|
@@ -24,7 +24,7 @@ class WXDLLIMPEXP_ADV wxSoundData
|
||||
public :
|
||||
wxSoundData();
|
||||
virtual ~wxSoundData();
|
||||
|
||||
|
||||
virtual bool Play(unsigned int flags) = 0;
|
||||
// stops the sound and deletes the optional timer
|
||||
virtual void Stop();
|
||||
@@ -33,12 +33,12 @@ public :
|
||||
// mark this to be deleted
|
||||
virtual void MarkForDeletion();
|
||||
virtual bool IsMarkedForDeletion() const { return m_markedForDeletion; }
|
||||
|
||||
|
||||
// does the true work of stopping and cleaning up
|
||||
virtual void DoStop() = 0;
|
||||
protected :
|
||||
void CreateAndStartTimer();
|
||||
|
||||
|
||||
unsigned int m_flags;
|
||||
wxSoundTimer* m_pTimer;
|
||||
bool m_markedForDeletion;
|
||||
@@ -58,16 +58,16 @@ public:
|
||||
bool Create(int size, const wxByte* data);
|
||||
|
||||
bool IsOk() const { return m_data != NULL; }
|
||||
|
||||
|
||||
// Stop playing any sound
|
||||
static void Stop();
|
||||
|
||||
|
||||
// Returns true if a sound is being played
|
||||
static bool IsPlaying();
|
||||
|
||||
|
||||
// Notification when a sound has stopped
|
||||
static void SoundStopped(const wxSoundData* data);
|
||||
|
||||
|
||||
protected:
|
||||
bool DoPlay(unsigned flags) const;
|
||||
void Init();
|
||||
@@ -75,7 +75,7 @@ protected:
|
||||
private:
|
||||
// data of this object
|
||||
class wxSoundData *m_data;
|
||||
|
||||
|
||||
wxDECLARE_NO_COPY_CLASS(wxSound);
|
||||
};
|
||||
|
||||
|
@@ -99,7 +99,7 @@ public:
|
||||
virtual void Copy();
|
||||
virtual void Cut();
|
||||
virtual void Paste();
|
||||
|
||||
|
||||
// Implementation
|
||||
// --------------
|
||||
virtual void Command(wxCommandEvent& event);
|
||||
|
@@ -32,11 +32,11 @@ class WXDLLIMPEXP_CORE wxTextEntry: public wxTextEntryBase
|
||||
{
|
||||
|
||||
public:
|
||||
wxTextEntry()
|
||||
wxTextEntry()
|
||||
: m_editable(true),
|
||||
m_maxLength(0)
|
||||
{ }
|
||||
|
||||
|
||||
virtual ~wxTextEntry() {};
|
||||
|
||||
virtual bool IsEditable() const;
|
||||
@@ -91,7 +91,7 @@ public:
|
||||
protected:
|
||||
|
||||
virtual wxString DoGetValue() const;
|
||||
|
||||
|
||||
bool m_editable;
|
||||
|
||||
// need to make this public because of the current implementation via callbacks
|
||||
|
@@ -44,7 +44,7 @@ class WXDLLIMPEXP_CORE wxToolBar: public wxToolBarBase
|
||||
const wxString& name = wxToolBarNameStr);
|
||||
|
||||
virtual void SetWindowStyleFlag(long style);
|
||||
|
||||
|
||||
virtual bool Destroy();
|
||||
|
||||
// override/implement base class virtuals
|
||||
@@ -72,7 +72,7 @@ class WXDLLIMPEXP_CORE wxToolBar: public wxToolBarBase
|
||||
void OnMouse(wxMouseEvent& event) ;
|
||||
virtual void MacSuperChangedPosition() ;
|
||||
#endif
|
||||
|
||||
|
||||
#if wxOSX_USE_NATIVE_TOOLBAR
|
||||
bool MacInstallNativeToolbar(bool usesNative);
|
||||
void MacUninstallNativeToolbar();
|
||||
@@ -111,7 +111,7 @@ protected:
|
||||
void* m_macToolbar ;
|
||||
#endif
|
||||
#ifdef __WXOSX_IPHONE__
|
||||
WX_UIView m_macToolbar;
|
||||
WX_UIView m_macToolbar;
|
||||
#endif
|
||||
};
|
||||
|
||||
|
@@ -44,9 +44,9 @@ public:
|
||||
const wxSize& size = wxDefaultSize,
|
||||
long style = wxDEFAULT_FRAME_STYLE,
|
||||
const wxString& name = wxFrameNameStr);
|
||||
|
||||
|
||||
bool Create(wxWindow *parent, WXWindow nativeWindow);
|
||||
|
||||
|
||||
virtual bool Destroy();
|
||||
|
||||
virtual wxPoint GetClientAreaOrigin() const;
|
||||
@@ -64,7 +64,7 @@ public:
|
||||
virtual void Iconize(bool iconize = true);
|
||||
virtual bool IsIconized() const;
|
||||
virtual void Restore();
|
||||
|
||||
|
||||
virtual bool IsActive();
|
||||
|
||||
virtual void ShowWithoutActivating();
|
||||
|
@@ -265,7 +265,7 @@ public:
|
||||
|
||||
virtual bool OSXHandleClicked( double timestampsec );
|
||||
virtual bool OSXHandleKeyEvent( wxKeyEvent& event );
|
||||
|
||||
|
||||
bool IsNativeWindowWrapper() const { return m_isNativeWindowWrapper; }
|
||||
protected:
|
||||
// For controls like radio buttons which are genuinely composite
|
||||
@@ -301,7 +301,7 @@ protected:
|
||||
bool m_vScrollBarAlwaysShown;
|
||||
wxWindow* m_growBox ;
|
||||
wxString m_label ;
|
||||
|
||||
|
||||
bool m_isNativeWindowWrapper;
|
||||
|
||||
// set to true if we do a sharp clip at the content area of this window
|
||||
|
@@ -1917,7 +1917,7 @@ public:
|
||||
modifying the value of the editor control (usually by clearing
|
||||
it). Currently, this can work with following properties:
|
||||
wxIntProperty, wxUIntProperty, wxFloatProperty, wxEditEnumProperty.
|
||||
|
||||
|
||||
@param enable
|
||||
Whether to enable or disable this behavior (it is disabled by
|
||||
default).
|
||||
|
@@ -397,7 +397,7 @@ wxPG_VFB_BEEP = 0x02,
|
||||
wxPG_VFB_MARK_CELL = 0x04,
|
||||
|
||||
/**
|
||||
Display a text message explaining the situation.
|
||||
Display a text message explaining the situation.
|
||||
|
||||
To customize the way the message is displayed, you need to
|
||||
reimplement wxPropertyGrid::DoShowPropertyError() in a
|
||||
@@ -802,7 +802,7 @@ public:
|
||||
|
||||
/**
|
||||
Centers the splitter.
|
||||
|
||||
|
||||
@param enableAutoResizing
|
||||
If @true, automatic column resizing is enabled (only applicapple
|
||||
if window style wxPG_SPLITTER_AUTO_CENTER is used).
|
||||
|
@@ -629,7 +629,7 @@ protected:
|
||||
wxColour m_button_bar_active_background_top_colour;
|
||||
wxColour m_button_bar_active_background_top_gradient_colour;
|
||||
wxColour m_gallery_button_background_colour;
|
||||
wxColour m_gallery_button_background_gradient_colour;
|
||||
wxColour m_gallery_button_background_gradient_colour;
|
||||
wxColour m_gallery_button_hover_background_colour;
|
||||
wxColour m_gallery_button_hover_background_gradient_colour;
|
||||
wxColour m_gallery_button_active_background_colour;
|
||||
|
@@ -66,7 +66,7 @@ public:
|
||||
const wxString& label,
|
||||
const wxBitmap& bitmap,
|
||||
const wxString& help_string = wxEmptyString);
|
||||
|
||||
|
||||
virtual wxRibbonButtonBarButtonBase* AddButton(
|
||||
int button_id,
|
||||
const wxString& label,
|
||||
|
@@ -23,7 +23,7 @@ enum wxRibbonPanelOption
|
||||
wxRIBBON_PANEL_NO_AUTO_MINIMISE = 1 << 0,
|
||||
wxRIBBON_PANEL_EXT_BUTTON = 1 << 3,
|
||||
wxRIBBON_PANEL_MINIMISE_BUTTON = 1 << 4,
|
||||
|
||||
|
||||
wxRIBBON_PANEL_DEFAULT_STYLE = 0,
|
||||
};
|
||||
|
||||
|
@@ -256,19 +256,19 @@ class WXDLLIMPEXP_RICHTEXT wxRichTextAnchoredObjectAttr
|
||||
public:
|
||||
wxRichTextAnchoredObjectAttr() { Init(); }
|
||||
wxRichTextAnchoredObjectAttr(const wxRichTextAnchoredObjectAttr& attr) { Copy(attr); }
|
||||
|
||||
|
||||
void Init();
|
||||
|
||||
void operator= (const wxRichTextAnchoredObjectAttr& attr) { Copy(attr); }
|
||||
void Copy(const wxRichTextAnchoredObjectAttr& attr);
|
||||
|
||||
|
||||
/// Is this anchored? TODO: difference between anchored and floating?
|
||||
bool IsAnchored() const { return m_floating != wxRICHTEXT_FLOAT_NONE; }
|
||||
|
||||
/// Is this floating?
|
||||
bool IsFloating() const { return m_floating != wxRICHTEXT_FLOAT_NONE; }
|
||||
void SetFloatingMode(int floating) { m_floating = floating; }
|
||||
|
||||
|
||||
int GetAlignment() const { return m_align; }
|
||||
void SetAlignment(int align) { m_align = align; }
|
||||
|
||||
@@ -467,7 +467,7 @@ public:
|
||||
|
||||
/// Dump to output stream for debugging
|
||||
virtual void Dump(wxTextOutputStream& stream);
|
||||
|
||||
|
||||
/// Can we edit properties via a GUI?
|
||||
virtual bool CanEditProperties() const { return false; }
|
||||
|
||||
@@ -918,7 +918,7 @@ public:
|
||||
|
||||
/// Invalidate the buffer. With no argument, invalidates whole buffer.
|
||||
void Invalidate(const wxRichTextRange& invalidRange = wxRICHTEXT_ALL);
|
||||
|
||||
|
||||
/// Gather information about floating objects. If untilObj is non-NULL,
|
||||
/// will stop getting information if the current object is this, since we
|
||||
/// will collect the rest later.
|
||||
@@ -1264,7 +1264,7 @@ public:
|
||||
// Make an image block from the wxImage in the given
|
||||
// format.
|
||||
virtual bool MakeImageBlock(wxImage& image, wxBitmapType imageType, int quality = 80);
|
||||
|
||||
|
||||
// Uses a const wxImage for efficiency, but can't set quality (only relevant for JPEG)
|
||||
virtual bool MakeImageBlockDefaultQuality(const wxImage& image, wxBitmapType imageType);
|
||||
|
||||
|
@@ -1,10 +1,10 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: wx/richtext/richtextimagedlg.h
|
||||
// Purpose:
|
||||
// Purpose:
|
||||
// Author: Mingquan Yang
|
||||
// Modified by:
|
||||
// Modified by:
|
||||
// Created: Wed 02 Jun 2010 11:27:23 CST
|
||||
// RCS-ID:
|
||||
// RCS-ID:
|
||||
// Copyright: (c) Mingquan Yang
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
@@ -45,7 +45,7 @@ class WXDLLIMPEXP_FWD_CORE wxTextCtrl;
|
||||
*/
|
||||
|
||||
class WXDLLIMPEXP_RICHTEXT wxRichTextImageDialog: public wxDialog
|
||||
{
|
||||
{
|
||||
DECLARE_DYNAMIC_CLASS( wxRichTextImageDialog )
|
||||
DECLARE_EVENT_TABLE()
|
||||
|
||||
|
@@ -80,12 +80,12 @@ protected: // functions required for wxST_ELLIPSIZE_* support
|
||||
// choose the default border for this window
|
||||
virtual wxBorder GetDefaultBorder() const { return wxBORDER_NONE; }
|
||||
|
||||
// calls only RemoveMarkup() on the original label
|
||||
// calls only RemoveMarkup() on the original label
|
||||
// if the wxST_MARKUP style is set
|
||||
// (but unlike GetLabelText won't remove mnemonics)
|
||||
virtual wxString GetLabelWithoutMarkup() const;
|
||||
|
||||
// just calls RemoveMarkup() & Ellipsize() on the original label
|
||||
// just calls RemoveMarkup() & Ellipsize() on the original label
|
||||
// if the wxST_MARKUP & wxST_ELLIPSIZE_* styles are set
|
||||
// (but unlike GetLabelText won't remove mnemonics)
|
||||
virtual wxString GetEllipsizedLabelWithoutMarkup() const;
|
||||
|
@@ -200,10 +200,10 @@ public:
|
||||
|
||||
// maximize the window to cover entire screen
|
||||
virtual bool ShowFullScreen(bool show, long style = wxFULLSCREEN_ALL) = 0;
|
||||
|
||||
|
||||
// shows the window, but doesn't activate it. If the base code is being run,
|
||||
// it means the port doesn't implement this method yet and so alert the user.
|
||||
virtual void ShowWithoutActivating() {
|
||||
virtual void ShowWithoutActivating() {
|
||||
wxFAIL_MSG("ShowWithoutActivating not implemented on this platform.");
|
||||
}
|
||||
|
||||
@@ -300,7 +300,7 @@ public:
|
||||
// a different API for SetSizeHints
|
||||
virtual void SetMinSize(const wxSize& minSize);
|
||||
virtual void SetMaxSize(const wxSize& maxSize);
|
||||
|
||||
|
||||
virtual void OSXSetModified(bool modified) { m_modified = modified; }
|
||||
virtual bool OSXIsModified() const { return m_modified; }
|
||||
|
||||
@@ -347,7 +347,7 @@ protected:
|
||||
|
||||
// a temporary override of m_winDefault, use the latter if NULL
|
||||
wxWindowRef m_winTmpDefault;
|
||||
|
||||
|
||||
bool m_modified;
|
||||
|
||||
wxDECLARE_NO_COPY_CLASS(wxTopLevelWindowBase);
|
||||
|
@@ -116,7 +116,7 @@ _WX_DECLARE_TYPEINFO_CUSTOM(CLS, sm_wxClassInfo)
|
||||
|
||||
#define wxTypeId(OBJ) (OBJ).GetWxTypeId()
|
||||
|
||||
// Because abstract classes cannot be instantiated, we use
|
||||
// Because abstract classes cannot be instantiated, we use
|
||||
// this macro to define pure virtual type interface for them.
|
||||
#define WX_DECLARE_ABSTRACT_TYPEINFO(CLS) \
|
||||
public: \
|
||||
|
@@ -25,7 +25,7 @@ namespace wxPrivate
|
||||
class PipeIOHandler;
|
||||
}
|
||||
|
||||
class WXDLLIMPEXP_BASE wxConsoleEventLoop
|
||||
class WXDLLIMPEXP_BASE wxConsoleEventLoop
|
||||
#ifdef __WXOSX__
|
||||
: public wxCFEventLoop
|
||||
#else
|
||||
|
Reference in New Issue
Block a user