repo_name
stringclasses
10 values
file_path
stringlengths
29
222
content
stringlengths
24
926k
extention
stringclasses
5 values
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/osx/core/cfdictionary.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/osx/core/cfdictionaryref.h // Purpose: wxCFDictionaryRef class // Author: Stefan Csomor // Modified by: // Created: 2018/07/27 // Copyright: (c) 2018 Stefan Csomor // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// /*! @header wx/osx/core/cfdictionaryref.h @abstract wxCFDictionaryRef class */ #ifndef _WX_OSX_COREFOUNDATION_CFDICTIONARYREF_H__ #define _WX_OSX_COREFOUNDATION_CFDICTIONARYREF_H__ #include "wx/osx/core/cfref.h" #include "wx/osx/core/cfstring.h" #include "wx/osx/core/cftype.h" #include <CoreFoundation/CFDictionary.h> /*! @class wxCFDictionaryRef @discussion Properly retains/releases reference to CoreFoundation data objects */ template <typename T> class wxCFDictionaryRefCommon : public wxCFRef<T> { public: typedef wxCFRef<T> super_type; explicit wxCFDictionaryRefCommon() : super_type() { } /*! @method wxCFDictionaryRef @abstract Assumes ownership of r and creates a reference to it. @param r The dictionary reference to assume ownership of. May be NULL. @discussion Like shared_ptr, it is assumed that the caller has a strong reference to r and intends to transfer ownership of that reference to this ref holder. If the object comes from a Create or Copy method then this is the correct behaviour. If the object comes from a Get method then you must CFRetain it yourself before passing it to this constructor. A handy way to do this is to use the non-member wxCFRefFromGet factory function. This method is templated and takes an otherType *p. This prevents implicit conversion using an operator refType() in a different ref-holding class type. */ explicit wxCFDictionaryRefCommon(T r) : super_type(r) { } /*! @method wxCFDictionaryRef @abstract Copies a ref holder of the same type @param otherRef The other ref holder to copy. @discussion Ownership will be shared by the original ref and the newly created ref. That is, the object will be explicitly retained by this new ref. */ wxCFDictionaryRefCommon(const wxCFDictionaryRefCommon& otherRef) : super_type(otherRef) { } wxCFTypeRef GetValue(const void* key) { CFTypeRef val = CFDictionaryGetValue(this->m_ptr, key); if (val) ::CFRetain(val); return val; } }; class wxCFMutableDictionaryRef; class wxCFDictionaryRef : public wxCFDictionaryRefCommon<CFDictionaryRef> { public: wxCFDictionaryRef() { } wxCFDictionaryRef(CFDictionaryRef r) : wxCFDictionaryRefCommon(r) { } wxCFDictionaryRef& operator=(const wxCFMutableDictionaryRef& other); CFDictionaryRef CreateCopy() const { return CFDictionaryCreateCopy(kCFAllocatorDefault, this->m_ptr); } CFMutableDictionaryRef CreateMutableCopy() const { return CFDictionaryCreateMutableCopy(kCFAllocatorDefault, 0, this->m_ptr); } }; class wxCFMutableDictionaryRef : public wxCFDictionaryRefCommon<CFMutableDictionaryRef> { public: wxCFMutableDictionaryRef() : wxCFDictionaryRefCommon(CFDictionaryCreateMutable(kCFAllocatorDefault, 0, &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks)) { } wxCFMutableDictionaryRef(CFMutableDictionaryRef r) : wxCFDictionaryRefCommon(r) { } void SetValue(const void* key, const void* data) { CFDictionarySetValue(this->m_ptr, key, data); } void SetValue(const void* key, CGFloat v) { SetValue(key, wxCFNumberRef(v)); } CFMutableDictionaryRef CreateCopy() const { return CFDictionaryCreateMutableCopy(kCFAllocatorDefault, 0, this->m_ptr); } friend class wxCFDictionaryRef; }; inline wxCFDictionaryRef& wxCFDictionaryRef::operator=(const wxCFMutableDictionaryRef& otherRef) { wxCFRetain(otherRef.m_ptr); wxCFRelease(m_ptr); m_ptr = (CFDictionaryRef)otherRef.m_ptr; return *this; } #endif //ifndef _WX_OSX_COREFOUNDATION_CFDICTIONARYREF_H__
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/osx/core/dataview.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/osx/core/dataview.h // Purpose: wxDataViewCtrl native implementation header for OSX // Author: // Copyright: (c) 2009 // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef _WX_DATAVIEWCTRL_CORE_H_ #define _WX_DATAVIEWCTRL_CORE_H_ #include "wx/dataview.h" typedef wxWidgetImpl wxWidgetImplType; // --------------------------------------------------------- // Helper functions for dataview implementation on OSX // --------------------------------------------------------- wxWidgetImplType* CreateDataView(wxWindowMac* wxpeer, wxWindowMac* parent, wxWindowID id, wxPoint const& pos, wxSize const& size, long style, long extraStyle); wxString ConcatenateDataViewItemValues(wxDataViewCtrl const* dataViewCtrlPtr, wxDataViewItem const& dataViewItem); // concatenates all data of the visible columns of the passed control // and item TAB separated into a string and returns it // --------------------------------------------------------- // wxDataViewWidgetImpl // Common interface of the native dataview implementation // for the carbon and cocoa environment. // ATTENTION // All methods assume that the passed column pointers are // valid (unless a NULL pointer is explicitly allowed // to be passed)! // ATTENTION // --------------------------------------------------------- class WXDLLIMPEXP_CORE wxDataViewWidgetImpl { public: // // constructors / destructor // virtual ~wxDataViewWidgetImpl(void) { } // // column related methods // virtual bool ClearColumns (void) = 0; // deletes all columns in the native control virtual bool DeleteColumn (wxDataViewColumn* columnPtr) = 0; // deletes the column in the native control virtual void DoSetExpanderColumn(wxDataViewColumn const* columnPtr) = 0; // sets the disclosure column in the native control virtual wxDataViewColumn* GetColumn (unsigned int pos) const = 0; // returns the column belonging to 'pos' in the native control virtual int GetColumnPosition (wxDataViewColumn const* columnPtr) const = 0; // returns the position of the passed column in the native control virtual bool InsertColumn (unsigned int pos, wxDataViewColumn* columnPtr) = 0; // inserts a column at pos in the native control; // the method can assume that the column's owner is already set virtual void FitColumnWidthToContent(unsigned int pos) = 0; // resizes column to fit its content // // item related methods // virtual bool Add (wxDataViewItem const& parent, wxDataViewItem const& item) = 0; // adds an item to the native control virtual bool Add (wxDataViewItem const& parent, wxDataViewItemArray const& itesm) = 0; // adds a items to the native control virtual void Collapse (wxDataViewItem const& item) = 0; // collapses the passed item in the native control virtual void EnsureVisible(wxDataViewItem const& item, wxDataViewColumn const* columnPtr) = 0; // ensures that the passed item's value in the passed column is visible (column pointer can be NULL) virtual unsigned int GetCount (void) const = 0; // returns the number of items in the native control virtual int GetCountPerPage(void) const = 0; // get number of items that fit into a single page virtual wxRect GetRectangle (wxDataViewItem const& item, wxDataViewColumn const* columnPtr) = 0; // returns the rectangle that is used by the passed item and column in the native control virtual wxDataViewItem GetTopItem (void) const = 0; // get top-most visible item virtual bool IsExpanded (wxDataViewItem const& item) const = 0; // checks if the passed item is expanded in the native control virtual bool Reload (void) = 0; // clears the native control and reloads all data virtual bool Remove (wxDataViewItem const& parent, wxDataViewItem const& item) = 0; // removes an item from the native control virtual bool Remove (wxDataViewItem const& parent, wxDataViewItemArray const& item) = 0; // removes items from the native control virtual bool Update (wxDataViewColumn const* columnPtr) = 0; // updates the items in the passed column of the native control virtual bool Update (wxDataViewItem const& parent, wxDataViewItem const& item) = 0; // updates the passed item in the native control virtual bool Update (wxDataViewItem const& parent, wxDataViewItemArray const& items) = 0; // updates the passed items in the native control // // model related methods // virtual bool AssociateModel(wxDataViewModel* model) = 0; // informs the native control that a model is present // // selection related methods // virtual wxDataViewItem GetCurrentItem() const = 0; virtual void SetCurrentItem(const wxDataViewItem& item) = 0; virtual wxDataViewColumn *GetCurrentColumn() const = 0; virtual int GetSelectedItemsCount() const = 0; virtual int GetSelections(wxDataViewItemArray& sel) const = 0; // returns all selected items in the native control virtual bool IsSelected (wxDataViewItem const& item) const = 0; // checks if the passed item is selected in the native control virtual void Select (wxDataViewItem const& item) = 0; // selects the passed item in the native control virtual void SelectAll (void) = 0; // selects all items in the native control virtual void Unselect (wxDataViewItem const& item) = 0; // unselects the passed item in the native control virtual void UnselectAll (void) = 0; // unselects all items in the native control // // sorting related methods // virtual wxDataViewColumn* GetSortingColumn (void) const = 0; // returns the column that is primarily responsible for sorting in the native control virtual void Resort (void) = 0; // asks the native control to start a resorting process // // other methods // virtual void DoSetIndent (int indent) = 0; // sets the indention in the native control virtual void DoExpand (wxDataViewItem const& item) = 0; // expands the passed item in the native control virtual void HitTest (wxPoint const& point, wxDataViewItem& item, wxDataViewColumn*& columnPtr) const = 0; // return the item and column pointer that contains with the passed point virtual void SetRowHeight(int height) = 0; // sets the height of all rows virtual void SetRowHeight(wxDataViewItem const& item, unsigned int height) = 0; // sets the height of the row containg the passed item in the native control virtual void OnSize (void) = 0; // updates the layout of the native control after a size event virtual void StartEditor( const wxDataViewItem & item, unsigned int column ) = 0; // starts editing the passed in item and column }; #endif // _WX_DATAVIEWCTRL_CORE_H_
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/osx/core/private.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/osx/core/private.h // Purpose: Private declarations: as this header is only included by // wxWidgets itself, it may contain identifiers which don't start // with "wx". // Author: Stefan Csomor // Modified by: // Created: 1998-01-01 // Copyright: (c) Stefan Csomor // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef _WX_PRIVATE_CORE_H_ #define _WX_PRIVATE_CORE_H_ #include "wx/defs.h" #include <CoreFoundation/CoreFoundation.h> #include "wx/osx/core/cfstring.h" #include "wx/osx/core/cfdataref.h" #include "wx/osx/core/cfarray.h" #include "wx/osx/core/cfdictionary.h" // platform specific Clang analyzer support #ifndef NS_RETURNS_RETAINED # if WX_HAS_CLANG_FEATURE(attribute_ns_returns_retained) # define NS_RETURNS_RETAINED __attribute__((ns_returns_retained)) # else # define NS_RETURNS_RETAINED # endif #endif #ifndef CF_RETURNS_RETAINED # if WX_HAS_CLANG_FEATURE(attribute_cf_returns_retained) # define CF_RETURNS_RETAINED __attribute__((cf_returns_retained)) # else # define CF_RETURNS_RETAINED # endif #endif #if ( !wxUSE_GUI && !wxOSX_USE_IPHONE ) || wxOSX_USE_COCOA_OR_CARBON // Carbon functions are currently still used in wxOSX/Cocoa too (including // wxBase part of it). #include <Carbon/Carbon.h> void WXDLLIMPEXP_CORE wxMacStringToPascal( const wxString&from , unsigned char * to ); wxString WXDLLIMPEXP_CORE wxMacMakeStringFromPascal( const unsigned char * from ); WXDLLIMPEXP_BASE wxString wxMacFSRefToPath( const FSRef *fsRef , CFStringRef additionalPathComponent = NULL ); WXDLLIMPEXP_BASE OSStatus wxMacPathToFSRef( const wxString&path , FSRef *fsRef ); WXDLLIMPEXP_BASE wxString wxMacHFSUniStrToString( ConstHFSUniStr255Param uniname ); // keycode utils from app.cpp WXDLLIMPEXP_BASE CGKeyCode wxCharCodeWXToOSX(wxKeyCode code); WXDLLIMPEXP_BASE long wxMacTranslateKey(unsigned char key, unsigned char code); #endif #if wxUSE_GUI #if wxOSX_USE_IPHONE #include <CoreGraphics/CoreGraphics.h> #else #include <ApplicationServices/ApplicationServices.h> #endif #include "wx/bitmap.h" #include "wx/window.h" class WXDLLIMPEXP_CORE wxMacCGContextStateSaver { wxDECLARE_NO_COPY_CLASS(wxMacCGContextStateSaver); public: wxMacCGContextStateSaver( CGContextRef cg ) { m_cg = cg; CGContextSaveGState( cg ); } ~wxMacCGContextStateSaver() { CGContextRestoreGState( m_cg ); } private: CGContextRef m_cg; }; class WXDLLIMPEXP_CORE wxDeferredObjectDeleter : public wxObject { public : wxDeferredObjectDeleter( wxObject* obj ) : m_obj(obj) { } virtual ~wxDeferredObjectDeleter() { delete m_obj; } protected : wxObject* m_obj ; } ; // Quartz WXDLLIMPEXP_CORE CGDataProviderRef wxMacCGDataProviderCreateWithCFData( CFDataRef data ); WXDLLIMPEXP_CORE CGDataConsumerRef wxMacCGDataConsumerCreateWithCFData( CFMutableDataRef data ); WXDLLIMPEXP_CORE CGDataProviderRef wxMacCGDataProviderCreateWithMemoryBuffer( const wxMemoryBuffer& buf ); WXDLLIMPEXP_CORE CGColorSpaceRef wxMacGetGenericRGBColorSpace(void); WXDLLIMPEXP_CORE double wxOSXGetMainScreenContentScaleFactor(); // UI CGSize WXDLLIMPEXP_CORE wxOSXGetImageSize(WXImage image); CGImageRef WXDLLIMPEXP_CORE wxOSXCreateCGImageFromImage( WXImage nsimage, double *scale = NULL ); CGImageRef WXDLLIMPEXP_CORE wxOSXGetCGImageFromImage( WXImage nsimage, CGRect* r, CGContextRef cg); CGContextRef WXDLLIMPEXP_CORE wxOSXCreateBitmapContextFromImage( WXImage nsimage, bool *isTemplate = NULL); WXImage WXDLLIMPEXP_CORE wxOSXGetImageFromCGImage( CGImageRef image, double scale = 1.0, bool isTemplate = false); double WXDLLIMPEXP_CORE wxOSXGetImageScaleFactor(WXImage image); class wxWindowMac; // to extern wxWindow* g_MacLastWindow; class wxNonOwnedWindow; // temporary typedef so that no additional casts are necessary within carbon code at the moment class wxMacControl; class wxWidgetImpl; class wxComboBox; class wxNotebook; class wxTextCtrl; class wxSearchCtrl; class wxMenuItem; class wxAcceleratorEntry; WXDLLIMPEXP_CORE wxWindowMac * wxFindWindowFromWXWidget(WXWidget inControl ); typedef wxWidgetImpl wxWidgetImplType; #if wxUSE_MENUS class wxMenuItemImpl : public wxObject { public : wxMenuItemImpl( wxMenuItem* peer ) : m_peer(peer) { } virtual ~wxMenuItemImpl() ; virtual void SetBitmap( const wxBitmap& bitmap ) = 0; virtual void Enable( bool enable ) = 0; virtual void Check( bool check ) = 0; virtual void SetLabel( const wxString& text, wxAcceleratorEntry *entry ) = 0; virtual void Hide( bool hide = true ) = 0; virtual void * GetHMenuItem() = 0; wxMenuItem* GetWXPeer() { return m_peer ; } static wxMenuItemImpl* Create( wxMenuItem* peer, wxMenu *pParentMenu, int id, const wxString& text, wxAcceleratorEntry *entry, const wxString& strHelp, wxItemKind kind, wxMenu *pSubMenu ); // handle OS specific menu items if they weren't handled during normal processing virtual bool DoDefault() { return false; } protected : wxMenuItem* m_peer; wxDECLARE_ABSTRACT_CLASS(wxMenuItemImpl); } ; class wxMenuImpl : public wxObject { public : wxMenuImpl( wxMenu* peer ) : m_peer(peer) { } virtual ~wxMenuImpl() ; virtual void InsertOrAppend(wxMenuItem *pItem, size_t pos) = 0; virtual void Remove( wxMenuItem *pItem ) = 0; virtual void MakeRoot() = 0; virtual void SetTitle( const wxString& text ) = 0; virtual WXHMENU GetHMenu() = 0; wxMenu* GetWXPeer() { return m_peer ; } virtual void PopUp( wxWindow *win, int x, int y ) = 0; virtual void GetMenuBarDimensions(int &x, int &y, int &width, int &height) const { x = y = width = height = -1; } static wxMenuImpl* Create( wxMenu* peer, const wxString& title ); static wxMenuImpl* CreateRootMenu( wxMenu* peer ); protected : wxMenu* m_peer; wxDECLARE_ABSTRACT_CLASS(wxMenuImpl); } ; #endif class WXDLLIMPEXP_CORE wxWidgetImpl : public wxObject { public : wxWidgetImpl( wxWindowMac* peer , bool isRootControl = false, bool isUserPane = false ); wxWidgetImpl(); virtual ~wxWidgetImpl(); void Init(); bool IsRootControl() const { return m_isRootControl; } bool IsUserPane() const { return m_isUserPane; } wxWindowMac* GetWXPeer() const { return m_wxPeer; } bool IsOk() const { return GetWXWidget() != NULL; } // not only the control itself, but also all its parents must be visible // in order for this function to return true virtual bool IsVisible() const = 0; // set the visibility of this widget (maybe latent) virtual void SetVisibility( bool visible ) = 0; virtual bool ShowWithEffect(bool WXUNUSED(show), wxShowEffect WXUNUSED(effect), unsigned WXUNUSED(timeout)) { return false; } virtual void Raise() = 0; virtual void Lower() = 0; virtual void ScrollRect( const wxRect *rect, int dx, int dy ) = 0; virtual WXWidget GetWXWidget() const = 0; virtual void SetBackgroundColour( const wxColour& col ) = 0; virtual bool SetBackgroundStyle(wxBackgroundStyle style) = 0; // all coordinates in native parent widget relative coordinates virtual void GetContentArea( int &left , int &top , int &width , int &height ) const = 0; virtual void Move(int x, int y, int width, int height) = 0; virtual void GetPosition( int &x, int &y ) const = 0; virtual void GetSize( int &width, int &height ) const = 0; virtual void SetControlSize( wxWindowVariant variant ) = 0; virtual double GetContentScaleFactor() const { return 1.0; } // the native coordinates may have an 'aura' for shadows etc, if this is the case the layout // inset indicates on which insets the real control is drawn virtual void GetLayoutInset(int &left , int &top , int &right, int &bottom) const { left = top = right = bottom = 0; } // native view coordinates are topleft to bottom right (flipped regarding CoreGraphics origin) virtual bool IsFlipped() const { return true; } virtual void SetNeedsDisplay( const wxRect* where = NULL ) = 0; virtual bool GetNeedsDisplay() const = 0; virtual bool NeedsFocusRect() const; virtual void SetNeedsFocusRect( bool needs ); virtual bool NeedsFrame() const; virtual void SetNeedsFrame( bool needs ); virtual void SetDrawingEnabled(bool enabled); virtual bool CanFocus() const = 0; // return true if successful virtual bool SetFocus() = 0; virtual bool HasFocus() const = 0; virtual void RemoveFromParent() = 0; virtual void Embed( wxWidgetImpl *parent ) = 0; virtual void SetDefaultButton( bool isDefault ) = 0; virtual void PerformClick() = 0; virtual void SetLabel( const wxString& title, wxFontEncoding encoding ) = 0; #if wxUSE_MARKUP && wxOSX_USE_COCOA virtual void SetLabelMarkup( const wxString& WXUNUSED(markup) ) { } #endif virtual void SetInitialLabel( const wxString& title, wxFontEncoding encoding ) { SetLabel(title, encoding); } virtual void SetCursor( const wxCursor & cursor ) = 0; virtual void CaptureMouse() = 0; virtual void ReleaseMouse() = 0; virtual void SetDropTarget( wxDropTarget * WXUNUSED(dropTarget) ) {} virtual wxInt32 GetValue() const = 0; virtual void SetValue( wxInt32 v ) = 0; virtual wxBitmap GetBitmap() const = 0; virtual void SetBitmap( const wxBitmap& bitmap ) = 0; virtual void SetBitmapPosition( wxDirection dir ) = 0; virtual void SetupTabs( const wxNotebook& WXUNUSED(notebook) ) {} virtual int TabHitTest( const wxPoint & WXUNUSED(pt), long *flags ) {*flags=1; return -1;} virtual void GetBestRect( wxRect *r ) const = 0; virtual bool IsEnabled() const = 0; virtual void Enable( bool enable ) = 0; virtual void SetMinimum( wxInt32 v ) = 0; virtual void SetMaximum( wxInt32 v ) = 0; virtual wxInt32 GetMinimum() const = 0; virtual wxInt32 GetMaximum() const = 0; virtual void PulseGauge() = 0; 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 // state changing logic is required from the outside virtual bool ButtonClickDidStateChange() = 0; virtual void InstallEventHandler( WXWidget control = NULL ) = 0; virtual bool EnableTouchEvents(int eventsMask) = 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. virtual void SendEvents(bool shouldSendEvents) { m_shouldSendEvents = shouldSendEvents; } virtual bool ShouldSendEvents() { return m_shouldSendEvents; } // static methods for associating native controls and their implementations // finds the impl associated with this native control static wxWidgetImpl* FindFromWXWidget(WXWidget control); // finds the impl associated with this native control, if the native control itself is not known // also checks whether its parent is eg a registered scrollview, ie whether the control is a native subpart // of a known control static wxWidgetImpl* FindBestFromWXWidget(WXWidget control); static void RemoveAssociations( wxWidgetImpl* impl); static void RemoveAssociation(WXWidget control); static void Associate( WXWidget control, wxWidgetImpl *impl ); static WXWidget FindFocus(); // static creation methods, must be implemented by all toolkits static wxWidgetImplType* CreateUserPane( wxWindowMac* wxpeer, wxWindowMac* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, long extraStyle) ; static wxWidgetImplType* CreateContentView( wxNonOwnedWindow* now ) ; static wxWidgetImplType* CreateButton( wxWindowMac* wxpeer, wxWindowMac* parent, wxWindowID id, const wxString& label, const wxPoint& pos, const wxSize& size, long style, long extraStyle) ; static wxWidgetImplType* CreateDisclosureTriangle( wxWindowMac* wxpeer, wxWindowMac* parent, wxWindowID id, const wxString& label, const wxPoint& pos, const wxSize& size, long style, long extraStyle) ; static wxWidgetImplType* CreateStaticLine( wxWindowMac* wxpeer, wxWindowMac* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, long extraStyle) ; static wxWidgetImplType* CreateGroupBox( wxWindowMac* wxpeer, wxWindowMac* parent, wxWindowID id, const wxString& label, const wxPoint& pos, const wxSize& size, long style, long extraStyle) ; static wxWidgetImplType* CreateStaticText( wxWindowMac* wxpeer, wxWindowMac* parent, wxWindowID id, const wxString& label, const wxPoint& pos, const wxSize& size, long style, long extraStyle) ; static wxWidgetImplType* CreateTextControl( wxTextCtrl* wxpeer, wxWindowMac* parent, wxWindowID id, const wxString& content, const wxPoint& pos, const wxSize& size, long style, long extraStyle) ; static wxWidgetImplType* CreateSearchControl( wxSearchCtrl* wxpeer, wxWindowMac* parent, wxWindowID id, const wxString& content, const wxPoint& pos, const wxSize& size, long style, long extraStyle) ; static wxWidgetImplType* CreateCheckBox( wxWindowMac* wxpeer, wxWindowMac* parent, wxWindowID id, const wxString& label, const wxPoint& pos, const wxSize& size, long style, long extraStyle); static wxWidgetImplType* CreateRadioButton( wxWindowMac* wxpeer, wxWindowMac* parent, wxWindowID id, const wxString& label, const wxPoint& pos, const wxSize& size, long style, long extraStyle); static wxWidgetImplType* CreateToggleButton( wxWindowMac* wxpeer, wxWindowMac* parent, wxWindowID id, const wxString& label, const wxPoint& pos, const wxSize& size, long style, long extraStyle); static wxWidgetImplType* CreateBitmapToggleButton( wxWindowMac* wxpeer, wxWindowMac* parent, wxWindowID id, const wxBitmap& bitmap, const wxPoint& pos, const wxSize& size, long style, long extraStyle); static wxWidgetImplType* CreateBitmapButton( wxWindowMac* wxpeer, wxWindowMac* parent, wxWindowID id, const wxBitmap& bitmap, const wxPoint& pos, const wxSize& size, long style, long extraStyle); static wxWidgetImplType* CreateTabView( wxWindowMac* wxpeer, wxWindowMac* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, long extraStyle); static wxWidgetImplType* CreateGauge( wxWindowMac* wxpeer, wxWindowMac* parent, wxWindowID id, wxInt32 value, wxInt32 minimum, wxInt32 maximum, const wxPoint& pos, const wxSize& size, long style, long extraStyle); static wxWidgetImplType* CreateSlider( wxWindowMac* wxpeer, wxWindowMac* parent, wxWindowID id, wxInt32 value, wxInt32 minimum, wxInt32 maximum, const wxPoint& pos, const wxSize& size, long style, long extraStyle); static wxWidgetImplType* CreateSpinButton( wxWindowMac* wxpeer, wxWindowMac* parent, wxWindowID id, wxInt32 value, wxInt32 minimum, wxInt32 maximum, const wxPoint& pos, const wxSize& size, long style, long extraStyle); static wxWidgetImplType* CreateScrollBar( wxWindowMac* wxpeer, wxWindowMac* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, long extraStyle); static wxWidgetImplType* CreateChoice( wxWindowMac* wxpeer, wxWindowMac* parent, wxWindowID id, wxMenu* menu, const wxPoint& pos, const wxSize& size, long style, long extraStyle); static wxWidgetImplType* CreateListBox( wxWindowMac* wxpeer, wxWindowMac* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, long extraStyle); #if wxOSX_USE_COCOA static wxWidgetImplType* CreateComboBox( wxComboBox* wxpeer, wxWindowMac* parent, wxWindowID id, wxMenu* menu, const wxPoint& pos, const wxSize& size, long style, long extraStyle); #endif static wxWidgetImplType* CreateStaticBitmap( wxWindowMac* wxpeer, wxWindowMac* parent, wxWindowID id, const wxBitmap& bitmap, const wxPoint& pos, const wxSize& size, long style, long extraStyle); // converts from Toplevel-Content relative to local static void Convert( wxPoint *pt , wxWidgetImpl *from , wxWidgetImpl *to ); protected : bool m_isRootControl; bool m_isUserPane; wxWindowMac* m_wxPeer; bool m_needsFocusRect; bool m_needsFrame; bool m_shouldSendEvents; wxDECLARE_ABSTRACT_CLASS(wxWidgetImpl); }; // // the interface to be implemented eg by a listbox // class WXDLLIMPEXP_CORE wxListWidgetColumn { public : virtual ~wxListWidgetColumn() {} } ; class WXDLLIMPEXP_CORE wxListWidgetCellValue { public : wxListWidgetCellValue() {} virtual ~wxListWidgetCellValue() {} virtual void Set( CFStringRef value ) = 0; virtual void Set( const wxString& value ) = 0; virtual void Set( int value ) = 0; virtual void Check( bool check ); virtual bool IsChecked() const; virtual int GetIntValue() const = 0; virtual wxString GetStringValue() const = 0; } ; class WXDLLIMPEXP_CORE wxListWidgetImpl { public: wxListWidgetImpl() {} virtual ~wxListWidgetImpl() { } virtual wxListWidgetColumn* InsertTextColumn( unsigned pos, const wxString& title, bool editable = false, wxAlignment just = wxALIGN_LEFT , int defaultWidth = -1) = 0 ; virtual wxListWidgetColumn* InsertCheckColumn( unsigned pos , const wxString& title, bool editable = false, wxAlignment just = wxALIGN_LEFT , int defaultWidth = -1) = 0 ; // add and remove // TODO will be replaced virtual void ListDelete( unsigned int n ) = 0; virtual void ListInsert( unsigned int n ) = 0; virtual void ListClear() = 0; // selecting virtual void ListDeselectAll() = 0; virtual void ListSetSelection( unsigned int n, bool select, bool multi ) = 0; virtual int ListGetSelection() const = 0; virtual int ListGetSelections( wxArrayInt& aSelections ) const = 0; virtual bool ListIsSelected( unsigned int n ) const = 0; // display virtual void ListScrollTo( unsigned int n ) = 0; virtual int ListGetTopItem() const = 0; virtual int ListGetCountPerPage() const = 0; virtual void UpdateLine( unsigned int n, wxListWidgetColumn* col = NULL ) = 0; virtual void UpdateLineToEnd( unsigned int n) = 0; // accessing content virtual unsigned int ListGetCount() const = 0; virtual int DoListHitTest( const wxPoint& inpoint ) const = 0; }; // // interface to be implemented by a textcontrol // class WXDLLIMPEXP_FWD_CORE wxTextAttr; class WXDLLIMPEXP_FWD_CORE wxTextEntry; // common interface for all implementations class WXDLLIMPEXP_CORE wxTextWidgetImpl { public : // Any widgets implementing this interface must be associated with a // wxTextEntry so instead of requiring the derived classes to implement // another (pure) virtual function, just take the pointer to this entry in // our ctor and implement GetTextEntry() ourselves. wxTextWidgetImpl(wxTextEntry *entry) : m_entry(entry) {} virtual ~wxTextWidgetImpl() {} wxTextEntry *GetTextEntry() const { return m_entry; } virtual bool CanFocus() const { return true; } virtual wxString GetStringValue() const = 0 ; virtual void SetStringValue( const wxString &val ) = 0 ; virtual void SetSelection( long from, long to ) = 0 ; virtual void GetSelection( long* from, long* to ) const = 0 ; virtual void WriteText( const wxString& str ) = 0 ; virtual bool CanClipMaxLength() const { return false; } virtual void SetMaxLength(unsigned long WXUNUSED(len)) {} virtual bool CanForceUpper() { return false; } virtual void ForceUpper() {} virtual bool GetStyle( long position, wxTextAttr& style); virtual void SetStyle( long start, long end, const wxTextAttr& style ) ; virtual void Copy() ; virtual void Cut() ; virtual void Paste() ; virtual bool CanPaste() const ; virtual void SetEditable( bool editable ) ; virtual long GetLastPosition() const ; virtual void Replace( long from, long to, const wxString &str ) ; virtual void Remove( long from, long to ) ; virtual bool HasOwnContextMenu() const { return false ; } virtual bool SetupCursor( const wxPoint& WXUNUSED(pt) ) { return false ; } virtual void Clear() ; virtual bool CanUndo() const; virtual void Undo() ; virtual bool CanRedo() const; virtual void Redo() ; virtual int GetNumberOfLines() const ; virtual long XYToPosition(long x, long y) const; virtual bool PositionToXY(long pos, long *x, long *y) const ; virtual void ShowPosition(long pos) ; virtual int GetLineLength(long lineNo) const ; virtual wxString GetLineText(long lineNo) const ; virtual void CheckSpelling(bool WXUNUSED(check)) { } virtual void EnableAutomaticQuoteSubstitution(bool WXUNUSED(enable)) {} virtual void EnableAutomaticDashSubstitution(bool WXUNUSED(enable)) {} virtual wxSize GetBestSize() const { return wxDefaultSize; } virtual bool SetHint(const wxString& WXUNUSED(hint)) { return false; } virtual void SetJustification(); private: wxTextEntry * const m_entry; wxDECLARE_NO_COPY_CLASS(wxTextWidgetImpl); }; // common interface for all combobox implementations class WXDLLIMPEXP_CORE wxComboWidgetImpl { 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 void Popup() {} virtual void Dismiss() {} virtual wxString GetStringAtIndex(int WXUNUSED(pos)) const { return wxEmptyString; } virtual int FindString(const wxString& WXUNUSED(text)) const { return -1; } }; // // common interface for choice // class WXDLLIMPEXP_CORE wxChoiceWidgetImpl { public : wxChoiceWidgetImpl() {} virtual ~wxChoiceWidgetImpl() {} virtual int GetSelectedItem() const { return -1; } virtual void SetSelectedItem(int WXUNUSED(item)) {} virtual size_t GetNumberOfItems() const = 0; virtual void InsertItem(size_t pos, int itemid, const wxString& text) = 0; virtual void RemoveItem(size_t pos) = 0; virtual void Clear() { size_t count = GetNumberOfItems(); for ( size_t i = 0 ; i < count ; i++ ) { RemoveItem( 0 ); } } virtual void SetItem(int pos, const wxString& item) = 0; }; // // common interface for buttons // class wxButtonImpl { public : wxButtonImpl(){} virtual ~wxButtonImpl(){} virtual void SetPressedBitmap( const wxBitmap& bitmap ) = 0; } ; // // common interface for search controls // class wxSearchWidgetImpl { public : wxSearchWidgetImpl(){} virtual ~wxSearchWidgetImpl(){} // search field options virtual void ShowSearchButton( bool show ) = 0; virtual bool IsSearchButtonVisible() const = 0; virtual void ShowCancelButton( bool show ) = 0; virtual bool IsCancelButtonVisible() const = 0; virtual void SetSearchMenu( wxMenu* menu ) = 0; virtual void SetDescriptiveText(const wxString& text) = 0; } ; // // toplevel window implementation class // class wxNonOwnedWindowImpl : public wxObject { public : wxNonOwnedWindowImpl( wxNonOwnedWindow* nonownedwnd) : m_wxPeer(nonownedwnd) { } wxNonOwnedWindowImpl() { } virtual ~wxNonOwnedWindowImpl() { } virtual void WillBeDestroyed() { } virtual void Create( wxWindow* parent, const wxPoint& pos, const wxSize& size, long style, long extraStyle, const wxString& name ) = 0; virtual WXWindow GetWXWindow() const = 0; virtual void Raise() { } virtual void Lower() { } virtual bool Show(bool WXUNUSED(show)) { return false; } virtual bool ShowWithEffect(bool show, wxShowEffect WXUNUSED(effect), unsigned WXUNUSED(timeout)) { return Show(show); } virtual void Update() { } virtual bool SetTransparent(wxByte WXUNUSED(alpha)) { return false; } virtual bool SetBackgroundColour(const wxColour& WXUNUSED(col) ) { return false; } virtual void SetExtraStyle( long WXUNUSED(exStyle) ) { } virtual void SetWindowStyleFlag( long WXUNUSED(style) ) { } virtual bool SetBackgroundStyle(wxBackgroundStyle WXUNUSED(style)) { return false ; } virtual bool CanSetTransparent() { return false; } virtual void GetContentArea( int &left , int &top , int &width , int &height ) const = 0; virtual void MoveWindow(int x, int y, int width, int height) = 0; virtual void GetPosition( int &x, int &y ) const = 0; virtual void GetSize( int &width, int &height ) const = 0; virtual bool SetShape(const wxRegion& WXUNUSED(region)) { return false; } virtual void SetTitle( const wxString& title, wxFontEncoding encoding ) = 0; virtual bool EnableCloseButton(bool enable) = 0; virtual bool EnableMaximizeButton(bool enable) = 0; virtual bool EnableMinimizeButton(bool enable) = 0; virtual bool IsMaximized() const = 0; virtual bool IsIconized() const= 0; virtual void Iconize( bool iconize )= 0; virtual void Maximize(bool maximize) = 0; virtual bool IsFullScreen() const= 0; virtual void ShowWithoutActivating() { Show(true); } virtual bool EnableFullScreenView(bool enable) = 0; virtual bool ShowFullScreen(bool show, long style)= 0; virtual void RequestUserAttention(int flags) = 0; virtual void ScreenToWindow( int *x, int *y ) = 0; 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; } virtual void SetRepresentedFilename(const wxString& WXUNUSED(filename)) { } #if wxOSX_USE_IPHONE virtual CGFloat GetWindowLevel() const { return 0.0; } #else virtual CGWindowLevel GetWindowLevel() const { return kCGNormalWindowLevel; } #endif virtual void RestoreWindowLevel() {} protected : wxNonOwnedWindow* m_wxPeer; wxDECLARE_ABSTRACT_CLASS(wxNonOwnedWindowImpl); }; #endif // wxUSE_GUI //--------------------------------------------------------------------------- // cocoa bridging utilities //--------------------------------------------------------------------------- bool wxMacInitCocoa(); class WXDLLIMPEXP_CORE wxMacAutoreleasePool { public : wxMacAutoreleasePool(); ~wxMacAutoreleasePool(); private : void* m_pool; }; // NSObject void wxMacCocoaRelease( void* obj ); void wxMacCocoaAutorelease( void* obj ); void* wxMacCocoaRetain( void* obj ); #endif // _WX_PRIVATE_CORE_H_
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/osx/core/cfarray.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/osx/core/cfarrayref.h // Purpose: wxCFArrayRef class // Author: Stefan Csomor // Modified by: // Created: 2018/07/27 // Copyright: (c) 2018 Stefan Csomor // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// /*! @header wx/osx/core/cfarrayref.h @abstract wxCFArrayRef class */ #ifndef _WX_OSX_COREFOUNDATION_CFARRAYREF_H__ #define _WX_OSX_COREFOUNDATION_CFARRAYREF_H__ #include "wx/osx/core/cfref.h" #include "wx/osx/core/cftype.h" #include <CoreFoundation/CFArray.h> template <typename T, typename E> class wxCFArrayRefCommon : public wxCFRef<T> { public: typedef wxCFRef<T> super_type; typedef size_t size_type; wxCFArrayRefCommon(T r) : super_type(r) { } wxCFArrayRefCommon(const wxCFArrayRefCommon& otherRef) : super_type(otherRef) { } size_type size() const { return (size_type)CFArrayGetCount(this->m_ptr); } bool empty() const { return size() == 0; } wxCFRef<E> at(size_type idx) { wxASSERT(idx < size()); return wxCFRefFromGet((E)CFArrayGetValueAtIndex(this->m_ptr, idx)); } operator WX_NSArray() { return (WX_NSArray) this->get(); } wxCFRef<E> operator[](size_type idx) { return at(idx); } wxCFRef<E> front() { return at(0); } wxCFRef<E> back() { return at(size() - 1); } }; template <typename E> class wxCFArrayRef : public wxCFArrayRefCommon<CFArrayRef, E> { public: wxCFArrayRef(CFArrayRef r) : wxCFArrayRefCommon<CFArrayRef, E>(r) { } wxCFArrayRef(const wxCFArrayRef& otherRef) : wxCFArrayRefCommon<CFArrayRef, E>(otherRef) { } }; template <typename E> class wxCFMutableArrayRef : public wxCFArrayRefCommon<CFMutableArrayRef, E> { public: wxCFMutableArrayRef() : wxCFArrayRefCommon<CFMutableArrayRef, E>(CFArrayCreateMutable(kCFAllocatorDefault, 0, &kCFTypeArrayCallBacks)) { } wxCFMutableArrayRef(CFMutableArrayRef r) : wxCFArrayRefCommon<CFMutableArrayRef, E>(r) { } wxCFMutableArrayRef(const wxCFMutableArrayRef& otherRef) : wxCFArrayRefCommon<CFMutableArrayRef, E>(otherRef) { } void push_back(E v) { CFArrayAppendValue(this->m_ptr, v); } void clear() { CFArrayRemoveAllValues(this->m_ptr); } }; #endif //ifndef _WX_OSX_COREFOUNDATION_CFARRAYREF_H__
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/osx/core/joystick.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/osx/core/joystick.h // Purpose: wxJoystick class // Author: Ryan Norton // Modified by: // Created: 2/13/2005 // Copyright: (c) Ryan Norton // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef _WX_JOYSTICK_H_ #define _WX_JOYSTICK_H_ #include "wx/event.h" class WXDLLIMPEXP_FWD_CORE wxJoystickThread; class WXDLLIMPEXP_ADV wxJoystick: public wxObject { wxDECLARE_DYNAMIC_CLASS(wxJoystick); public: wxJoystick(int joystick = wxJOYSTICK1); virtual ~wxJoystick(); // Attributes //////////////////////////////////////////////////////////////////////////// wxPoint GetPosition() const; int GetPosition(unsigned axis) const; bool GetButtonState(unsigned button) const; int GetZPosition() const; int GetButtonState() const; int GetPOVPosition() const; int GetPOVCTSPosition() const; int GetRudderPosition() const; int GetUPosition() const; int GetVPosition() const; int GetMovementThreshold() const; void SetMovementThreshold(int threshold) ; // Capabilities //////////////////////////////////////////////////////////////////////////// bool IsOk() const; // Checks that the joystick is functioning static int GetNumberJoysticks() ; int GetManufacturerId() const ; int GetProductId() const ; wxString GetProductName() const ; int GetXMin() const; int GetYMin() const; int GetZMin() const; int GetXMax() const; int GetYMax() const; int GetZMax() const; int GetNumberButtons() const; int GetNumberAxes() const; int GetMaxButtons() const; int GetMaxAxes() const; int GetPollingMin() const; int GetPollingMax() const; int GetRudderMin() const; int GetRudderMax() const; int GetUMin() const; int GetUMax() const; int GetVMin() const; int GetVMax() const; bool HasRudder() const; bool HasZ() const; bool HasU() const; bool HasV() const; bool HasPOV() const; bool HasPOV4Dir() const; bool HasPOVCTS() const; // Operations //////////////////////////////////////////////////////////////////////////// // pollingFreq = 0 means that movement events are sent when above the threshold. // If pollingFreq > 0, events are received every this many milliseconds. bool SetCapture(wxWindow* win, int pollingFreq = 0); bool ReleaseCapture(); protected: int m_joystick; wxJoystickThread* m_thread; class wxHIDJoystick* m_hid; }; #endif // _WX_JOYSTICK_H_
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/osx/core/mimetype.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/osx/core/mimetype.h // Purpose: Mac implementation for wx mime-related classes // Author: Neil Perkins // Modified by: // Created: 2010-05-15 // Copyright: (C) 2010 Neil Perkins // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef _MIMETYPE_IMPL_H #define _MIMETYPE_IMPL_H #include "wx/defs.h" #if wxUSE_MIMETYPE #include "wx/mimetype.h" #include "wx/hashmap.h" #include "wx/iconloc.h" // This class implements mime type functionality for Mac OS X using UTIs and Launch Services // Currently only the GetFileTypeFromXXXX public functions have been implemented class WXDLLIMPEXP_BASE wxMimeTypesManagerImpl { public: wxMimeTypesManagerImpl(); virtual ~wxMimeTypesManagerImpl(); // These functions are not needed on Mac OS X and have no-op implementations void Initialize(int mailcapStyles = wxMAILCAP_STANDARD, const wxString& extraDir = wxEmptyString); void ClearData(); // Functions to look up types by ext, mime or UTI wxFileType *GetFileTypeFromExtension(const wxString& ext); wxFileType *GetFileTypeFromMimeType(const wxString& mimeType); wxFileType *GetFileTypeFromUti(const wxString& uti); // These functions are only stubs on Mac OS X size_t EnumAllFileTypes(wxArrayString& mimetypes); wxFileType *Associate(const wxFileTypeInfo& ftInfo); bool Unassociate(wxFileType *ft); private: // The work of querying the OS for type data is done in these two functions void LoadTypeDataForUti(const wxString& uti); void LoadDisplayDataForUti(const wxString& uti); // These functions are pass-throughs from wxFileTypeImpl bool GetExtensions(const wxString& uti, wxArrayString& extensions); bool GetMimeType(const wxString& uti, wxString *mimeType); bool GetMimeTypes(const wxString& uti, wxArrayString& mimeTypes); bool GetIcon(const wxString& uti, wxIconLocation *iconLoc); bool GetDescription(const wxString& uti, wxString *desc); bool GetApplication(const wxString& uti, wxString *command); // Structure to represent file types typedef struct FileTypeData { wxArrayString extensions; wxArrayString mimeTypes; wxIconLocation iconLoc; wxString application; wxString description; } FileTypeInfo; // Map types WX_DECLARE_STRING_HASH_MAP( wxString, TagMap ); WX_DECLARE_STRING_HASH_MAP( FileTypeData, UtiMap ); // Data store TagMap m_extMap; TagMap m_mimeMap; UtiMap m_utiMap; friend class wxFileTypeImpl; }; // This class provides the interface between wxFileType and wxMimeTypesManagerImple for Mac OS X // Currently only extension, mimetype, description and icon information is available // All other methods have no-op implementation class WXDLLIMPEXP_BASE wxFileTypeImpl { public: wxFileTypeImpl(); virtual ~wxFileTypeImpl(); bool GetExtensions(wxArrayString& extensions) const ; bool GetMimeType(wxString *mimeType) const ; bool GetMimeTypes(wxArrayString& mimeTypes) const ; bool GetIcon(wxIconLocation *iconLoc) const ; bool GetDescription(wxString *desc) const ; bool GetOpenCommand(wxString *openCmd, const wxFileType::MessageParameters& params) const; // These functions are only stubs on Mac OS X bool GetPrintCommand(wxString *printCmd, const wxFileType::MessageParameters& params) const; size_t GetAllCommands(wxArrayString *verbs, wxArrayString *commands, const wxFileType::MessageParameters& params) const; bool SetCommand(const wxString& cmd, const wxString& verb, bool overwriteprompt = TRUE); bool SetDefaultIcon(const wxString& strIcon = wxEmptyString, int index = 0); bool Unassociate(wxFileType *ft); wxString GetExpandedCommand(const wxString& verb, const wxFileType::MessageParameters& params) const; private: // All that is needed to query type info - UTI and pointer to the manager wxString m_uti; wxMimeTypesManagerImpl* m_manager; friend class wxMimeTypesManagerImpl; }; #endif // wxUSE_MIMETYPE #endif //_MIMETYPE_IMPL_H
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/osx/core/private/datetimectrl.h
/////////////////////////////////////////////////////////////////////////////// // Name: wx/osx/core/private/datetime.h // Purpose: // Author: Vadim Zeitlin // Created: 2011-12-19 // Copyright: (c) 2011 Vadim Zeitlin <[email protected]> // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// #ifndef _WX_OSX_CORE_PRIVATE_DATETIMECTRL_H_ #define _WX_OSX_CORE_PRIVATE_DATETIMECTRL_H_ #if wxUSE_DATEPICKCTRL #include "wx/osx/private.h" #include "wx/datetime.h" enum wxDateTimeWidgetKind { wxDateTimeWidget_YearMonthDay, wxDateTimeWidget_HourMinuteSecond }; // ---------------------------------------------------------------------------- // wxDateTimeWidgetImpl: peer class for wxDateTimePickerCtrl. // ---------------------------------------------------------------------------- class wxDateTimeWidgetImpl #if wxOSX_USE_COCOA : public wxWidgetCocoaImpl #else #error "Unsupported platform" #endif { public: static wxDateTimeWidgetImpl* CreateDateTimePicker(wxDateTimePickerCtrl* wxpeer, const wxDateTime& dt, const wxPoint& pos, const wxSize& size, long style, wxDateTimeWidgetKind kind); virtual void SetDateTime(const wxDateTime& dt) = 0; virtual wxDateTime GetDateTime() const = 0; virtual void SetDateRange(const wxDateTime& dt1, const wxDateTime& dt2) = 0; virtual bool GetDateRange(wxDateTime* dt1, wxDateTime* dt2) = 0; virtual ~wxDateTimeWidgetImpl() { } protected: #if wxOSX_USE_COCOA wxDateTimeWidgetImpl(wxDateTimePickerCtrl* wxpeer, WXWidget view) : wxWidgetCocoaImpl(wxpeer, view) { } #endif }; #endif // wxUSE_DATEPICKCTRL #endif // _WX_OSX_CORE_PRIVATE_DATETIMECTRL_H_
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/osx/core/private/timer.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/osx/core/private/timer.h // Purpose: wxTimer class based on core foundation // Author: Stefan Csomor // Created: 2008-07-16 // Copyright: (c) Stefan Csomor // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef _WX_OSX_CORE_PRIVATE_TIMER_H_ #define _WX_OSX_CORE_PRIVATE_TIMER_H_ #include "wx/private/timer.h" struct wxOSXTimerInfo; class WXDLLIMPEXP_CORE wxOSXTimerImpl : public wxTimerImpl { public: wxOSXTimerImpl(wxTimer *timer); virtual ~wxOSXTimerImpl(); virtual bool Start(int milliseconds = -1, bool one_shot = false); virtual void Stop(); virtual bool IsRunning() const; private: wxOSXTimerInfo *m_info; }; #endif // _WX_OSX_CORE_PRIVATE_TIMER_H_
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/osx/core/private/strconv_cf.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/osx/core/private/strconv_cf.h // Purpose: Unicode conversion classes // Author: David Elliott, Ryan Norton // Modified by: // Created: 2007-07-06 // Copyright: (c) 2004 Ryan Norton // (c) 2007 David Elliott // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #include "wx/strconv.h" #include <CoreFoundation/CFString.h> #include <CoreFoundation/CFStringEncodingExt.h> // ============================================================================ // CoreFoundation conversion classes // ============================================================================ inline CFStringEncoding wxCFStringEncFromFontEnc(wxFontEncoding encoding) { CFStringEncoding enc = kCFStringEncodingInvalidId ; switch (encoding) { case wxFONTENCODING_DEFAULT : enc = CFStringGetSystemEncoding(); break ; case wxFONTENCODING_ISO8859_1 : enc = kCFStringEncodingISOLatin1 ; break ; case wxFONTENCODING_ISO8859_2 : enc = kCFStringEncodingISOLatin2; break ; case wxFONTENCODING_ISO8859_3 : enc = kCFStringEncodingISOLatin3 ; break ; case wxFONTENCODING_ISO8859_4 : enc = kCFStringEncodingISOLatin4; break ; case wxFONTENCODING_ISO8859_5 : enc = kCFStringEncodingISOLatinCyrillic; break ; case wxFONTENCODING_ISO8859_6 : enc = kCFStringEncodingISOLatinArabic; break ; case wxFONTENCODING_ISO8859_7 : enc = kCFStringEncodingISOLatinGreek; break ; case wxFONTENCODING_ISO8859_8 : enc = kCFStringEncodingISOLatinHebrew; break ; case wxFONTENCODING_ISO8859_9 : enc = kCFStringEncodingISOLatin5; break ; case wxFONTENCODING_ISO8859_10 : enc = kCFStringEncodingISOLatin6; break ; case wxFONTENCODING_ISO8859_11 : enc = kCFStringEncodingISOLatinThai; break ; case wxFONTENCODING_ISO8859_13 : enc = kCFStringEncodingISOLatin7; break ; case wxFONTENCODING_ISO8859_14 : enc = kCFStringEncodingISOLatin8; break ; case wxFONTENCODING_ISO8859_15 : enc = kCFStringEncodingISOLatin9; break ; case wxFONTENCODING_KOI8 : enc = kCFStringEncodingKOI8_R; break ; case wxFONTENCODING_ALTERNATIVE : // MS-DOS CP866 enc = kCFStringEncodingDOSRussian; break ; // case wxFONTENCODING_BULGARIAN : // enc = ; // break ; case wxFONTENCODING_CP437 : enc = kCFStringEncodingDOSLatinUS ; break ; case wxFONTENCODING_CP850 : enc = kCFStringEncodingDOSLatin1; break ; case wxFONTENCODING_CP852 : enc = kCFStringEncodingDOSLatin2; break ; case wxFONTENCODING_CP855 : enc = kCFStringEncodingDOSCyrillic; break ; case wxFONTENCODING_CP866 : enc = kCFStringEncodingDOSRussian ; break ; case wxFONTENCODING_CP874 : enc = kCFStringEncodingDOSThai; break ; case wxFONTENCODING_CP932 : enc = kCFStringEncodingDOSJapanese; break ; case wxFONTENCODING_CP936 : enc = kCFStringEncodingDOSChineseSimplif ; break ; case wxFONTENCODING_CP949 : enc = kCFStringEncodingDOSKorean; break ; case wxFONTENCODING_CP950 : enc = kCFStringEncodingDOSChineseTrad; break ; case wxFONTENCODING_CP1250 : enc = kCFStringEncodingWindowsLatin2; break ; case wxFONTENCODING_CP1251 : enc = kCFStringEncodingWindowsCyrillic ; break ; case wxFONTENCODING_CP1252 : enc = kCFStringEncodingWindowsLatin1 ; break ; case wxFONTENCODING_CP1253 : enc = kCFStringEncodingWindowsGreek; break ; case wxFONTENCODING_CP1254 : enc = kCFStringEncodingWindowsLatin5; break ; case wxFONTENCODING_CP1255 : enc = kCFStringEncodingWindowsHebrew ; break ; case wxFONTENCODING_CP1256 : enc = kCFStringEncodingWindowsArabic ; break ; case wxFONTENCODING_CP1257 : enc = kCFStringEncodingWindowsBalticRim; break ; // This only really encodes to UTF7 (if that) evidently // case wxFONTENCODING_UTF7 : // enc = kCFStringEncodingNonLossyASCII ; // break ; case wxFONTENCODING_UTF8 : enc = kCFStringEncodingUTF8 ; break ; case wxFONTENCODING_EUC_JP : enc = kCFStringEncodingEUC_JP; break ; /* Don't support conversion to/from UTF16 as wxWidgets can do this better. * In particular, ToWChar would fail miserably using strlen on an input UTF16. case wxFONTENCODING_UTF16 : enc = kCFStringEncodingUnicode ; break ; */ case wxFONTENCODING_MACROMAN : enc = kCFStringEncodingMacRoman ; break ; case wxFONTENCODING_MACJAPANESE : enc = kCFStringEncodingMacJapanese ; break ; case wxFONTENCODING_MACCHINESETRAD : enc = kCFStringEncodingMacChineseTrad ; break ; case wxFONTENCODING_MACKOREAN : enc = kCFStringEncodingMacKorean ; break ; case wxFONTENCODING_MACARABIC : enc = kCFStringEncodingMacArabic ; break ; case wxFONTENCODING_MACHEBREW : enc = kCFStringEncodingMacHebrew ; break ; case wxFONTENCODING_MACGREEK : enc = kCFStringEncodingMacGreek ; break ; case wxFONTENCODING_MACCYRILLIC : enc = kCFStringEncodingMacCyrillic ; break ; case wxFONTENCODING_MACDEVANAGARI : enc = kCFStringEncodingMacDevanagari ; break ; case wxFONTENCODING_MACGURMUKHI : enc = kCFStringEncodingMacGurmukhi ; break ; case wxFONTENCODING_MACGUJARATI : enc = kCFStringEncodingMacGujarati ; break ; case wxFONTENCODING_MACORIYA : enc = kCFStringEncodingMacOriya ; break ; case wxFONTENCODING_MACBENGALI : enc = kCFStringEncodingMacBengali ; break ; case wxFONTENCODING_MACTAMIL : enc = kCFStringEncodingMacTamil ; break ; case wxFONTENCODING_MACTELUGU : enc = kCFStringEncodingMacTelugu ; break ; case wxFONTENCODING_MACKANNADA : enc = kCFStringEncodingMacKannada ; break ; case wxFONTENCODING_MACMALAJALAM : enc = kCFStringEncodingMacMalayalam ; break ; case wxFONTENCODING_MACSINHALESE : enc = kCFStringEncodingMacSinhalese ; break ; case wxFONTENCODING_MACBURMESE : enc = kCFStringEncodingMacBurmese ; break ; case wxFONTENCODING_MACKHMER : enc = kCFStringEncodingMacKhmer ; break ; case wxFONTENCODING_MACTHAI : enc = kCFStringEncodingMacThai ; break ; case wxFONTENCODING_MACLAOTIAN : enc = kCFStringEncodingMacLaotian ; break ; case wxFONTENCODING_MACGEORGIAN : enc = kCFStringEncodingMacGeorgian ; break ; case wxFONTENCODING_MACARMENIAN : enc = kCFStringEncodingMacArmenian ; break ; case wxFONTENCODING_MACCHINESESIMP : enc = kCFStringEncodingMacChineseSimp ; break ; case wxFONTENCODING_MACTIBETAN : enc = kCFStringEncodingMacTibetan ; break ; case wxFONTENCODING_MACMONGOLIAN : enc = kCFStringEncodingMacMongolian ; break ; case wxFONTENCODING_MACETHIOPIC : enc = kCFStringEncodingMacEthiopic ; break ; case wxFONTENCODING_MACCENTRALEUR : enc = kCFStringEncodingMacCentralEurRoman ; break ; case wxFONTENCODING_MACVIATNAMESE : enc = kCFStringEncodingMacVietnamese ; break ; case wxFONTENCODING_MACARABICEXT : enc = kCFStringEncodingMacExtArabic ; break ; case wxFONTENCODING_MACSYMBOL : enc = kCFStringEncodingMacSymbol ; break ; case wxFONTENCODING_MACDINGBATS : enc = kCFStringEncodingMacDingbats ; break ; case wxFONTENCODING_MACTURKISH : enc = kCFStringEncodingMacTurkish ; break ; case wxFONTENCODING_MACCROATIAN : enc = kCFStringEncodingMacCroatian ; break ; case wxFONTENCODING_MACICELANDIC : enc = kCFStringEncodingMacIcelandic ; break ; case wxFONTENCODING_MACROMANIAN : enc = kCFStringEncodingMacRomanian ; break ; case wxFONTENCODING_MACCELTIC : enc = kCFStringEncodingMacCeltic ; break ; case wxFONTENCODING_MACGAELIC : enc = kCFStringEncodingMacGaelic ; break ; /* CFString is known to support this back to the original CarbonLib */ /* http://developer.apple.com/samplecode/CarbonMDEF/listing2.html */ case wxFONTENCODING_MACKEYBOARD : /* We don't wish to pollute the namespace too much, even though we're a private header. */ /* The constant is well-defined as 41 and is not expected to change. */ enc = 41 /*kTextEncodingMacKeyboardGlyphs*/ ; break ; default : // because gcc is picky break ; } return enc ; } class wxMBConv_cf : public wxMBConv { public: wxMBConv_cf() { Init(CFStringGetSystemEncoding()) ; } wxMBConv_cf(const wxMBConv_cf& conv) : wxMBConv() { m_encoding = conv.m_encoding; } #if wxUSE_FONTMAP wxMBConv_cf(const char* name) { Init( wxCFStringEncFromFontEnc(wxFontMapperBase::Get()->CharsetToEncoding(name, false) ) ) ; } #endif wxMBConv_cf(wxFontEncoding encoding) { Init( wxCFStringEncFromFontEnc(encoding) ); } virtual ~wxMBConv_cf() { } void Init( CFStringEncoding encoding) { m_encoding = encoding ; } virtual size_t ToWChar(wchar_t * dst, size_t dstSize, const char * src, size_t srcSize = wxNO_LEN) const; virtual size_t FromWChar(char *dst, size_t dstSize, const wchar_t *src, size_t srcSize = wxNO_LEN) const; virtual wxMBConv *Clone() const { return new wxMBConv_cf(*this); } bool IsOk() const { return m_encoding != kCFStringEncodingInvalidId && CFStringIsEncodingAvailable(m_encoding); } private: CFStringEncoding m_encoding ; };
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/osx/private/addremovectrl.h
/////////////////////////////////////////////////////////////////////////////// // Name: wx/osx/private/addremovectrl.h // Purpose: OS X specific wxAddRemoveImpl implementation // Author: Vadim Zeitlin // Created: 2015-02-05 // Copyright: (c) 2015 Vadim Zeitlin <[email protected]> // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// #ifndef _WX_OSX_PRIVATE_ADDREMOVECTRL_H_ #define _WX_OSX_PRIVATE_ADDREMOVECTRL_H_ #include "wx/artprov.h" #include "wx/bmpbuttn.h" #include "wx/panel.h" #include "wx/osx/private.h" // ---------------------------------------------------------------------------- // wxAddRemoveImpl itself // ---------------------------------------------------------------------------- class wxAddRemoveImpl : public wxAddRemoveImplWithButtons { public: wxAddRemoveImpl(wxAddRemoveAdaptor* adaptor, wxAddRemoveCtrl* parent, wxWindow* ctrlItems) : wxAddRemoveImplWithButtons(adaptor, parent, ctrlItems), m_ctrlItems(ctrlItems) { // This size is hard coded for now as this is what the system dialogs // themselves (e.g. the buttons under the lists in the "Users" or // "Network" panes of the "System Preferences") use under OS X 10.8. const wxSize sizeBtn(25, 23); m_btnAdd = new wxBitmapButton(parent, wxID_ADD, wxArtProvider::GetBitmap("NSAddTemplate"), wxDefaultPosition, sizeBtn, wxBORDER_SIMPLE); m_btnRemove = new wxBitmapButton(parent, wxID_REMOVE, wxArtProvider::GetBitmap("NSRemoveTemplate"), wxDefaultPosition, sizeBtn, wxBORDER_SIMPLE); // Under OS X the space to the right of the buttons is actually // occupied by an inactive gradient button, so create one. m_btnPlaceholder = new wxButton(parent, wxID_ANY, "", wxDefaultPosition, sizeBtn, wxBORDER_SIMPLE); m_btnPlaceholder->Disable(); // We need to lay out our windows manually under OS X as it is the only // way to achieve the required, for the correct look, overlap between // their borders -- sizers would never allow this. parent->Bind(wxEVT_SIZE, &wxAddRemoveImpl::OnSize, this); // We also have to ensure that the window with the items doesn't have // any border as it wouldn't look correctly if it did. long style = ctrlItems->GetWindowStyle(); style &= ~wxBORDER_MASK; style |= wxBORDER_SIMPLE; ctrlItems->SetWindowStyle(style); SetUpEvents(); } // As we don't use sizers, we also need to compute our best size ourselves. virtual wxSize GetBestClientSize() const wxOVERRIDE { wxSize size = m_ctrlItems->GetBestSize(); const wxSize sizeBtn = m_btnAdd->GetSize(); size.y += sizeBtn.y; size.IncTo(wxSize(3*sizeBtn.x, -1)); return size; } private: void OnSize(wxSizeEvent& event) { const wxSize size = event.GetSize(); const wxSize sizeBtn = m_btnAdd->GetSize(); const int yBtn = size.y - sizeBtn.y; // There is a vertical overlap which hides the items control bottom // border. m_ctrlItems->SetSize(0, 0, size.x, yBtn + 2); // And there is also a horizontal 1px overlap between the buttons // themselves, so subtract 1 from the next button position. int x = 0; m_btnAdd->Move(x, yBtn); x += sizeBtn.x - 1; m_btnRemove->Move(x, yBtn); x += sizeBtn.x - 1; // The last one needs to be resized to take up all the remaining space. m_btnPlaceholder->SetSize(x, yBtn, size.x - x, sizeBtn.y); } wxWindow* m_ctrlItems; wxButton* /* const */ m_btnPlaceholder; }; #endif // _WX_OSX_PRIVATE_ADDREMOVECTRL_H_
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/osx/private/timer.h
#if 1 // revert to wxOSX_USE_COCOA_OR_IPHONE in case of problems #include "wx/osx/core/private/timer.h" #endif
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/osx/private/print.h
#include "wx/osx/carbon/private/print.h"
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/osx/iphone/private.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/osx/iphone/private.h // Purpose: Private declarations: as this header is only included by // wxWidgets itself, it may contain identifiers which don't start // with "wx". // Author: Stefan Csomor // Modified by: // Created: 1998-01-01 // Copyright: (c) Stefan Csomor // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef _WX_PRIVATE_IPHONE_H_ #define _WX_PRIVATE_IPHONE_H_ #ifdef __OBJC__ #import <UIKit/UIKit.h> #endif #include <CoreText/CTFont.h> #include <CoreText/CTStringAttributes.h> #include <CoreText/CTLine.h> #if wxUSE_GUI typedef CGRect WXRect; OSStatus WXDLLIMPEXP_CORE wxMacDrawCGImage( CGContextRef inContext, const CGRect * inBounds, CGImageRef inImage) ; WX_UIImage WXDLLIMPEXP_CORE wxOSXGetUIImageFromCGImage( CGImageRef image ); wxBitmap WXDLLIMPEXP_CORE wxOSXCreateSystemBitmap(const wxString& id, const wxString &client, const wxSize& size); class WXDLLIMPEXP_CORE wxWidgetIPhoneImpl : public wxWidgetImpl { public : wxWidgetIPhoneImpl( wxWindowMac* peer , WXWidget w, bool isRootControl = false, bool isUserPane = false ) ; wxWidgetIPhoneImpl() ; ~wxWidgetIPhoneImpl(); void Init(); virtual bool IsVisible() const ; virtual void SetVisibility( bool visible ); virtual void Raise(); virtual void Lower(); virtual void ScrollRect( const wxRect *rect, int dx, int dy ); virtual WXWidget GetWXWidget() const { return m_osxView; } virtual void SetBackgroundColour( const wxColour& col ) ; virtual bool SetBackgroundStyle(wxBackgroundStyle style) ; virtual void GetContentArea( int &left , int &top , int &width , int &height ) const; virtual void Move(int x, int y, int width, int height); virtual void GetPosition( int &x, int &y ) const; virtual void GetSize( int &width, int &height ) const; virtual void SetControlSize( wxWindowVariant variant ); virtual double GetContentScaleFactor() const ; virtual void SetNeedsDisplay( const wxRect* where = NULL ); virtual bool GetNeedsDisplay() const; virtual bool CanFocus() const; // return true if successful virtual bool SetFocus(); virtual bool HasFocus() const; void RemoveFromParent(); void Embed( wxWidgetImpl *parent ); void SetDefaultButton( bool isDefault ); void PerformClick(); virtual void SetLabel(const wxString& title, wxFontEncoding encoding); void SetCursor( const wxCursor & cursor ); void CaptureMouse(); void ReleaseMouse(); wxInt32 GetValue() const; void SetValue( wxInt32 v ); virtual wxBitmap GetBitmap() const; virtual void SetBitmap( const wxBitmap& bitmap ); virtual void SetBitmapPosition( wxDirection dir ); void SetupTabs( const wxNotebook &notebook ); void GetBestRect( wxRect *r ) const; bool IsEnabled() const; void Enable( bool enable ); bool ButtonClickDidStateChange() { return true ;} void SetMinimum( wxInt32 v ); void SetMaximum( wxInt32 v ); wxInt32 GetMinimum() const; wxInt32 GetMaximum() const; void PulseGauge(); void SetScrollThumb( wxInt32 value, wxInt32 thumbSize ); void SetFont( const wxFont & font , const wxColour& foreground , long windowStyle, bool ignoreBlack = true ); void InstallEventHandler( WXWidget control = NULL ); bool EnableTouchEvents(int WXUNUSED(eventsMask)) { return false; } virtual void DoNotifyFocusEvent(bool receivedFocus, wxWidgetImpl* otherWindow); // thunk connected calls virtual void drawRect(CGRect* rect, WXWidget slf, void* _cmd); virtual void touchEvent(WX_NSSet touches, WX_UIEvent event, WXWidget slf, void* _cmd); virtual bool becomeFirstResponder(WXWidget slf, void* _cmd); virtual bool resignFirstResponder(WXWidget slf, void* _cmd); // action virtual void controlAction(void* sender, wxUint32 controlEvent, WX_UIEvent rawEvent); virtual void controlTextDidChange(); protected: WXWidget m_osxView; wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxWidgetIPhoneImpl); }; class wxNonOwnedWindowIPhoneImpl : public wxNonOwnedWindowImpl { public : wxNonOwnedWindowIPhoneImpl( wxNonOwnedWindow* nonownedwnd) ; wxNonOwnedWindowIPhoneImpl(); virtual ~wxNonOwnedWindowIPhoneImpl(); virtual void WillBeDestroyed() ; void Create( wxWindow* parent, const wxPoint& pos, const wxSize& size, long style, long extraStyle, const wxString& name ) ; void Create( wxWindow* parent, WXWindow nativeWindow ); WXWindow GetWXWindow() const; void Raise(); void Lower(); bool Show(bool show); bool ShowWithEffect(bool show, wxShowEffect effect, unsigned timeout); void Update(); bool SetTransparent(wxByte alpha); bool SetBackgroundColour(const wxColour& col ); void SetExtraStyle( long exStyle ); bool SetBackgroundStyle(wxBackgroundStyle style); bool CanSetTransparent(); void MoveWindow(int x, int y, int width, int height); void GetPosition( int &x, int &y ) const; void GetSize( int &width, int &height ) const; void GetContentArea( int &left , int &top , int &width , int &height ) const; bool SetShape(const wxRegion& region); virtual void SetTitle( const wxString& title, wxFontEncoding encoding ) ; // Title bar buttons don't exist in iOS. virtual bool EnableCloseButton(bool WXUNUSED(enable)) { return false; } virtual bool EnableMaximizeButton(bool WXUNUSED(enable)) { return false; } virtual bool EnableMinimizeButton(bool WXUNUSED(enable)) { return false; } virtual bool IsMaximized() const; virtual bool IsIconized() const; virtual void Iconize( bool iconize ); virtual void Maximize(bool maximize); virtual bool IsFullScreen() const; virtual bool EnableFullScreenView(bool enable); virtual bool ShowFullScreen(bool show, long style); virtual void RequestUserAttention(int flags); virtual void ScreenToWindow( int *x, int *y ); virtual void WindowToScreen( int *x, int *y ); // 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; } protected : WX_UIWindow m_macWindow; void * m_macFullScreenData ; bool m_initialShowSent; wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxNonOwnedWindowIPhoneImpl); }; #ifdef __OBJC__ WXDLLIMPEXP_CORE CGRect wxToNSRect( UIView* parent, const wxRect& r ); WXDLLIMPEXP_CORE wxRect wxFromNSRect( UIView* parent, const CGRect& rect ); WXDLLIMPEXP_CORE CGPoint wxToNSPoint( UIView* parent, const wxPoint& p ); WXDLLIMPEXP_CORE wxPoint wxFromNSPoint( UIView* parent, const CGPoint& p ); CGRect WXDLLIMPEXP_CORE wxOSXGetFrameForControl( wxWindowMac* window , const wxPoint& pos , const wxSize &size , bool adjustForOrigin = true ); @interface wxUIButton : UIButton { } @end @interface wxUIView : UIView { } @end // wxUIView void WXDLLIMPEXP_CORE wxOSXIPhoneClassAddWXMethods(Class c); #endif #endif // wxUSE_GUI #endif // _WX_PRIVATE_IPHONE_H_
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/osx/iphone/chkconf.h
/* * Name: wx/osx/iphone/chkconf.h * Purpose: Compiler-specific configuration checking * Author: Stefan Csomor * Modified by: * Created: 2008-07-30 * Copyright: (c) Stefan Csomor * Licence: wxWindows licence */ #ifndef _WX_OSX_IPHONE_CHKCONF_H_ #define _WX_OSX_IPHONE_CHKCONF_H_ /* * text rendering system */ /* we have different options and we turn on all that make sense * under a certain platform */ #define wxHAS_OPENGL_ES #define wxOSX_USE_QUICKTIME 0 #define wxOSX_USE_AUDIOTOOLBOX 1 /* * turning off capabilities that don't work under iphone yet */ #if wxUSE_MIMETYPE #undef wxUSE_MIMETYPE #define wxUSE_MIMETYPE 0 #endif #if wxUSE_MDI #undef wxUSE_MDI #define wxUSE_MDI 0 #endif #if wxUSE_MDI_ARCHITECTURE #undef wxUSE_MDI_ARCHITECTURE #define wxUSE_MDI_ARCHITECTURE 0 #endif #if wxUSE_DRAG_AND_DROP #undef wxUSE_DRAG_AND_DROP #define wxUSE_DRAG_AND_DROP 0 #endif #if wxUSE_TASKBARICON #undef wxUSE_TASKBARICON #define wxUSE_TASKBARICON 0 #endif #if wxUSE_TOOLTIPS #undef wxUSE_TOOLTIPS #define wxUSE_TOOLTIPS 0 #endif #if wxUSE_DATAVIEWCTRL #undef wxUSE_DATAVIEWCTRL #define wxUSE_DATAVIEWCTRL 0 #endif #if wxUSE_TREELISTCTRL #undef wxUSE_TREELISTCTRL #define wxUSE_TREELISTCTRL 0 #endif #if wxUSE_DRAG_AND_DROP #undef wxUSE_DRAG_AND_DROP #define wxUSE_DRAG_AND_DROP 0 #endif #if wxUSE_TASKBARICON #undef wxUSE_TASKBARICON #define wxUSE_TASKBARICON 0 #endif #define wxUSE_BUTTON 1 #if wxUSE_CARET #undef wxUSE_CARET #define wxUSE_CARET 0 #endif #if wxUSE_CHOICE #undef wxUSE_CHOICE #define wxUSE_CHOICE 0 #endif #if wxUSE_COMBOBOX #undef wxUSE_COMBOBOX #define wxUSE_COMBOBOX 0 #endif #ifndef __WXUNIVERSAL__ #undef wxUSE_SCROLLBAR #define wxUSE_SCROLLBAR 0 #endif #undef wxUSE_STATUSBAR #undef wxUSE_NATIVE_STATUSBAR #undef wxUSE_ABOUTDLG #undef wxUSE_STATLINE #undef wxUSE_COLLPANE #undef wxUSE_STATBMP #undef wxUSE_STATBOX #undef wxUSE_RADIOBTN #undef wxUSE_RADIOBOX #undef wxUSE_TOGGLEBTN #define wxUSE_STATUSBAR 0 #define wxUSE_NATIVE_STATUSBAR 0 #define wxUSE_ABOUTDLG 0 #define wxUSE_STATLINE 0 #define wxUSE_COLLPANE 0 #define wxUSE_STATBMP 0 #define wxUSE_STATBOX 0 #define wxUSE_RADIOBTN 0 #define wxUSE_RADIOBOX 0 #define wxUSE_TOGGLEBTN 0 #undef wxUSE_HTML #define wxUSE_HTML 0 #undef wxUSE_RICHTEXT #define wxUSE_RICHTEXT 0 #undef wxUSE_ACTIVITYINDICATOR #undef wxUSE_ADDREMOVECTRL #undef wxUSE_ANIMATIONCTRL #undef wxUSE_CALENDARCTRL #undef wxUSE_COMBOCTRL #undef wxUSE_ODCOMBOBOX #undef wxUSE_BITMAPCOMBOBOX #undef wxUSE_BMPBUTTON #undef wxUSE_CHECKLISTBOX #undef wxUSE_GRID #undef wxUSE_LISTBOX #undef wxUSE_LISTCTRL #undef wxUSE_NOTEBOOK #undef wxUSE_SPINBTN #undef wxUSE_SPINCTRL #undef wxUSE_TREECTRL #undef wxUSE_DATEPICKCTRL #undef wxUSE_DATAVIEWCTRL #undef wxUSE_EDITABLELISTBOX #undef wxUSE_FILEPICKERCTRL #undef wxUSE_DIRPICKERCTRL #undef wxUSE_FILECTRL #undef wxUSE_COLOURPICKERCTRL #undef wxUSE_FONTPICKERCTRL #undef wxUSE_DEBUGREPORT #undef wxUSE_HYPERLINKCTRL #undef wxUSE_STC #undef wxUSE_AUI #undef wxUSE_BUSYINFO #undef wxUSE_SEARCHCTRL #define wxUSE_ACTIVITYINDICATOR 0 #define wxUSE_ADDREMOVECTRL 0 #define wxUSE_ANIMATIONCTRL 0 #define wxUSE_CALENDARCTRL 0 #define wxUSE_COMBOCTRL 0 #define wxUSE_ODCOMBOBOX 0 #define wxUSE_BITMAPCOMBOBOX 0 #define wxUSE_BMPBUTTON 0 #define wxUSE_CHECKLISTBOX 0 #define wxUSE_GRID 0 #define wxUSE_LISTBOX 0 #define wxUSE_LISTCTRL 0 #define wxUSE_NOTEBOOK 0 #define wxUSE_SPINBTN 0 #define wxUSE_SPINCTRL 0 #define wxUSE_TREECTRL 0 #define wxUSE_DATEPICKCTRL 0 #define wxUSE_DATAVIEWCTRL 0 #define wxUSE_EDITABLELISTBOX 0 #define wxUSE_FILEPICKERCTRL 0 #define wxUSE_DIRPICKERCTRL 0 #define wxUSE_FILECTRL 0 #define wxUSE_COLOURPICKERCTRL 0 #define wxUSE_FONTPICKERCTRL 0 #define wxUSE_DEBUGREPORT 0 #define wxUSE_HYPERLINKCTRL 0 #define wxUSE_STC 0 #define wxUSE_AUI 0 #define wxUSE_BUSYINFO 0 #define wxUSE_SEARCHCTRL 0 #undef wxUSE_LOGWINDOW #undef wxUSE_LOG_DIALOG #undef wxUSE_LISTBOOK #undef wxUSE_CHOICEBOOK #undef wxUSE_TREEBOOK #undef wxUSE_TOOLBOOK #undef wxUSE_CHOICEDLG #undef wxUSE_HELP #undef wxUSE_PROGRESSDLG #undef wxUSE_FONTDLG #undef wxUSE_FILEDLG #undef wxUSE_CHOICEDLG #undef wxUSE_NUMBERDLG #undef wxUSE_TEXTDLG #undef wxUSE_DIRDLG #undef wxUSE_STARTUP_TIPS #undef wxUSE_WIZARDDLG #undef wxUSE_TOOLBAR_NATIVE #undef wxUSE_FINDREPLDLG #undef wxUSE_TASKBARICON #undef wxUSE_REARRANGECTRL #define wxUSE_LOGWINDOW 0 #define wxUSE_LOG_DIALOG 0 #define wxUSE_LISTBOOK 0 #define wxUSE_CHOICEBOOK 0 #define wxUSE_TREEBOOK 0 #define wxUSE_TOOLBOOK 0 #define wxUSE_CHOICEDLG 0 #define wxUSE_HELP 0 #define wxUSE_PROGRESSDLG 0 #define wxUSE_FONTDLG 0 #define wxUSE_FILEDLG 0 #define wxUSE_CHOICEDLG 0 #define wxUSE_NUMBERDLG 0 #define wxUSE_TEXTDLG 0 #define wxUSE_DIRDLG 0 #define wxUSE_STARTUP_TIPS 0 #define wxUSE_WIZARDDLG 0 #define wxUSE_TOOLBAR_NATIVE 0 #define wxUSE_FINDREPLDLG 0 #define wxUSE_TASKBARICON 0 #define wxUSE_REARRANGECTRL 0 #if wxUSE_WXHTML_HELP #undef wxUSE_WXHTML_HELP #define wxUSE_WXHTML_HELP 0 #endif #if wxUSE_DOC_VIEW_ARCHITECTURE #undef wxUSE_DOC_VIEW_ARCHITECTURE #define wxUSE_DOC_VIEW_ARCHITECTURE 0 #endif #if wxUSE_PRINTING_ARCHITECTURE #undef wxUSE_PRINTING_ARCHITECTURE #define wxUSE_PRINTING_ARCHITECTURE 0 #endif #if wxUSE_MENUS #undef wxUSE_MENUS #define wxUSE_MENUS 0 #endif /* #if wxUSE_POPUPWIN #undef wxUSE_POPUPWIN #define wxUSE_POPUPWIN 0 #endif #if wxUSE_COMBOBOX #undef wxUSE_COMBOBOX #define wxUSE_COMBOBOX 0 #endif #if wxUSE_CALENDARCTRL #undef wxUSE_CALENDARCTRL #define wxUSE_CALENDARCTRL 0 #endif */ #if wxUSE_CLIPBOARD #undef wxUSE_CLIPBOARD #define wxUSE_CLIPBOARD 0 #endif // wxUSE_CLIPBOARD /* #if wxUSE_GLCANVAS #undef wxUSE_GLCANVAS #define wxUSE_GLCANVAS 0 #endif // wxUSE_GLCANVAS */ #if wxUSE_COLOURDLG #undef wxUSE_COLOURDLG #define wxUSE_COLOURDLG 0 #endif // wxUSE_COLOURDLG // iphone has a toolbar that is a regular UIView #ifdef wxOSX_USE_NATIVE_TOOLBAR #if wxOSX_USE_NATIVE_TOOLBAR #undef wxOSX_USE_NATIVE_TOOLBAR #define wxOSX_USE_NATIVE_TOOLBAR 0 #endif #else #define wxOSX_USE_NATIVE_TOOLBAR 0 #endif #if wxUSE_RIBBON #undef wxUSE_RIBBON #define wxUSE_RIBBON 0 #endif #if wxUSE_INFOBAR #undef wxUSE_INFOBAR #define wxUSE_INFOBAR 0 #endif #if wxUSE_FILE_HISTORY #undef wxUSE_FILE_HISTORY #define wxUSE_FILE_HISTORY 0 #endif #if wxUSE_NOTIFICATION_MESSAGE #undef wxUSE_NOTIFICATION_MESSAGE #define wxUSE_NOTIFICATION_MESSAGE 0 #endif #undef wxUSE_PREFERENCES_EDITOR #define wxUSE_PREFERENCES_EDITOR 0 #if wxUSE_PROPGRID #undef wxUSE_PROPGRID #define wxUSE_PROPGRID 0 #endif #if wxUSE_WEBKIT #undef wxUSE_WEBKIT #define wxUSE_WEBKIT 0 #endif #if wxUSE_DATAOBJ #undef wxUSE_DATAOBJ #define wxUSE_DATAOBJ 0 #endif #if wxUSE_UIACTIONSIMULATOR #undef wxUSE_UIACTIONSIMULATOR #define wxUSE_UIACTIONSIMULATOR 0 #endif #if wxUSE_RICHMSGDLG #undef wxUSE_RICHMSGDLG #define wxUSE_RICHMSGDLG 0 #endif #if wxUSE_RICHTEXT #undef wxUSE_RICHTEXT #define wxUSE_RICHTEXT 0 #endif #if wxUSE_TIMEPICKCTRL #undef wxUSE_TIMEPICKCTRL #define wxUSE_TIMEPICKCTRL 0 #endif #if wxUSE_RICHTOOLTIP #undef wxUSE_RICHTOOLTIP #define wxUSE_RICHTOOLTIP 0 #endif #if wxUSE_WEBVIEW #undef wxUSE_WEBVIEW #define wxUSE_WEBVIEW 0 #endif #if wxUSE_SECRETSTORE #undef wxUSE_SECRETSTORE #define wxUSE_SECRETSTORE 0 #endif // IconRef datatype does not exist on iOS #undef wxOSX_USE_ICONREF #define wxOSX_USE_ICONREF 0 #endif /* _WX_OSX_IPHONE_CHKCONF_H_ */
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/osx/iphone/private/textimpl.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/osx/iphone/private/textimpl.h // Purpose: textcontrol implementation classes that have to be exposed // Author: Stefan Csomor // Modified by: // Created: 03/02/99 // Copyright: (c) Stefan Csomor // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef _WX_OSX_COCOA_PRIVATE_TEXTIMPL_H_ #define _WX_OSX_COCOA_PRIVATE_TEXTIMPL_H_ #include "wx/combobox.h" #include "wx/osx/private.h" // implementation exposed, so that search control can pull it class wxUITextFieldControl : public wxWidgetIPhoneImpl, public wxTextWidgetImpl { public : wxUITextFieldControl( wxTextCtrl *wxPeer, UITextField* w ); virtual ~wxUITextFieldControl(); virtual wxString GetStringValue() const ; virtual void SetStringValue( const wxString &str) ; virtual void Copy() ; virtual void Cut() ; virtual void Paste() ; virtual bool CanPaste() const ; virtual void SetEditable(bool editable) ; virtual void GetSelection( long* from, long* to) const ; virtual void SetSelection( long from , long to ); virtual void WriteText(const wxString& str) ; virtual bool HasOwnContextMenu() const { return true; } virtual wxSize GetBestSize() const; virtual bool SetHint(const wxString& hint); virtual void controlAction(WXWidget slf, void* _cmd, void *sender); protected : UITextField* m_textField; NSObject<UITextFieldDelegate>* m_delegate; long m_selStart; long m_selEnd; }; class wxUITextViewControl : public wxWidgetIPhoneImpl, public wxTextWidgetImpl { public: wxUITextViewControl( wxTextCtrl *wxPeer, UITextView* w ); virtual ~wxUITextViewControl(); virtual wxString GetStringValue() const ; virtual void SetStringValue( const wxString &str) ; virtual void Copy() ; virtual void Cut() ; virtual void Paste() ; virtual bool CanPaste() const ; virtual void SetEditable(bool editable) ; virtual void GetSelection( long* from, long* to) const ; 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; protected: NSObject<UITextViewDelegate>* m_delegate; UITextView* m_textView; }; #if 0 class wxNSComboBoxControl : public wxUITextFieldControl, public wxComboWidgetImpl { 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; }; #endif #endif // _WX_OSX_COCOA_PRIVATE_TEXTIMPL_H_
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/osx/cocoa/stdpaths.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/osx/cocoa/stdpaths.h // Purpose: wxStandardPaths for Cocoa // Author: Tobias Taschner // Created: 2015-09-09 // Copyright: (c) 2015 wxWidgets development team // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef _WX_COCOA_STDPATHS_H_ #define _WX_COCOA_STDPATHS_H_ // ---------------------------------------------------------------------------- // wxStandardPaths // ---------------------------------------------------------------------------- class WXDLLIMPEXP_BASE wxStandardPaths : public wxStandardPathsBase { public: virtual ~wxStandardPaths(); // implement base class pure virtuals virtual wxString GetExecutablePath() const wxOVERRIDE; virtual wxString GetConfigDir() const wxOVERRIDE; virtual wxString GetUserConfigDir() const wxOVERRIDE; virtual wxString GetDataDir() const wxOVERRIDE; virtual wxString GetLocalDataDir() const wxOVERRIDE; virtual wxString GetUserDataDir() const wxOVERRIDE; virtual wxString GetPluginsDir() const wxOVERRIDE; virtual wxString GetResourcesDir() const wxOVERRIDE; virtual wxString GetLocalizedResourcesDir(const wxString& lang, ResourceCat category = ResourceCat_None) const wxOVERRIDE; virtual wxString GetUserDir(Dir userDir) const wxOVERRIDE; virtual wxString MakeConfigFileName(const wxString& basename, ConfigFileConv conv = ConfigFileConv_Ext ) const wxOVERRIDE; protected: // Ctor is protected, use wxStandardPaths::Get() instead of instantiating // objects of this class directly. wxStandardPaths(); }; #endif // _WX_COCOA_STDPATHS_H_
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/osx/cocoa/evtloop.h
/////////////////////////////////////////////////////////////////////////////// // Name: wx/osx/cocoa/evtloop.h // Purpose: declaration of wxGUIEventLoop for wxOSX/Cocoa // Author: Vadim Zeitlin // Created: 2008-12-28 // Copyright: (c) 2006 Vadim Zeitlin <[email protected]> // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// #ifndef _WX_OSX_COCOA_EVTLOOP_H_ #define _WX_OSX_COCOA_EVTLOOP_H_ class WXDLLIMPEXP_BASE wxGUIEventLoop : public wxCFEventLoop { public: wxGUIEventLoop(); ~wxGUIEventLoop(); void BeginModalSession( wxWindow* modalWindow ); void EndModalSession(); virtual void WakeUp(); void OSXUseLowLevelWakeup(bool useIt) { m_osxLowLevelWakeUp = useIt ; } protected: virtual int DoDispatchTimeout(unsigned long timeout); virtual void OSXDoRun(); virtual void OSXDoStop(); virtual CFRunLoopRef CFGetCurrentRunLoop() const; void* m_modalSession; wxWindow* m_modalWindow; WXWindow m_dummyWindow; int m_modalNestedLevel; bool m_osxLowLevelWakeUp; }; #endif // _WX_OSX_COCOA_EVTLOOP_H_
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/osx/cocoa/dataview.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/osx/cocoa/dataview.h // Purpose: wxDataViewCtrl native implementation header for carbon // Author: // Copyright: (c) 2009 // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef _WX_DATAVIEWCTRL_COCOOA_H_ #define _WX_DATAVIEWCTRL_COCOOA_H_ #include "wx/defs.h" #import <Cocoa/Cocoa.h> #include "wx/osx/core/dataview.h" #include "wx/osx/private.h" // Forward declaration class wxCocoaDataViewControl; /* Dramatis personae: [vertical arrows indicate inheritance, horizontal -- aggregation] wxWindow ---> wxWidgetCocoaImpl wxDataViewWidgetImpl NSOutlineView | \ / | | \ / | | \ / | v \/ \/ v wxDataViewCtrl -------> wxCocoaDataViewControl <-------> wxCocoaOutlineView The right most classes are Objective-C only and can't be used from (pure) C++ code. */ // ============================================================================ // wxPointerObject: simply stores a pointer, without taking its ownership // ============================================================================ // Two pointer objects are equal if the containing pointers are equal. This // means also that the hash value of a pointer object depends only on the // stored pointer. @interface wxPointerObject : NSObject { void* pointer; } -(id) initWithPointer:(void*)initPointer; -(void*) pointer; -(void) setPointer:(void*)newPointer; @end // ============================================================================ // wxSortDescriptorObject: helper class to use native sorting facilities // ============================================================================ @interface wxSortDescriptorObject : NSSortDescriptor<NSCopying> { wxDataViewColumn* columnPtr; // pointer to the sorting column wxDataViewModel* modelPtr; // pointer to model } -(id) initWithModelPtr:(wxDataViewModel*)initModelPtr sortingColumnPtr:(wxDataViewColumn*)initColumnPtr ascending:(BOOL)sortAscending; -(wxDataViewColumn*) columnPtr; -(wxDataViewModel*) modelPtr; -(void) setColumnPtr:(wxDataViewColumn*)newColumnPtr; -(void) setModelPtr:(wxDataViewModel*)newModelPtr; @end // ============================================================================ // wxDataViewColumnNativeData: extra data for wxDataViewColumn // ============================================================================ class wxDataViewColumnNativeData { public: wxDataViewColumnNativeData() : m_NativeColumnPtr(NULL) { } wxDataViewColumnNativeData(NSTableColumn* initNativeColumnPtr) : m_NativeColumnPtr(initNativeColumnPtr) { } NSTableColumn* GetNativeColumnPtr() const { return m_NativeColumnPtr; } void SetNativeColumnPtr(NSTableColumn* newNativeColumnPtr) { m_NativeColumnPtr = newNativeColumnPtr; } private: // not owned by us NSTableColumn* m_NativeColumnPtr; }; // ============================================================================ // wxDataViewRendererNativeData: extra data for wxDataViewRenderer // ============================================================================ class wxDataViewRendererNativeData { public: wxDataViewRendererNativeData() : m_Object(NULL), m_ColumnCell(NULL), m_ItemCell(NULL) { Init(); } wxDataViewRendererNativeData(NSCell* initColumnCell) : m_Object(NULL), m_ColumnCell([initColumnCell retain]), m_ItemCell(NULL) { Init(); } wxDataViewRendererNativeData(NSCell* initColumnCell, id initObject) : m_Object([initObject retain]), m_ColumnCell([initColumnCell retain]), m_ItemCell(NULL) { Init(); } ~wxDataViewRendererNativeData() { [m_ColumnCell release]; [m_Object release]; [m_origFont release]; [m_origTextColour release]; } NSCell* GetColumnCell() const { return m_ColumnCell; } NSTableColumn* GetColumnPtr() const { return m_TableColumnPtr; } id GetItem() const { return m_Item; } NSCell* GetItemCell() const { return m_ItemCell; } id GetObject() const { return m_Object; } void SetColumnCell(NSCell* newCell) { [newCell retain]; [m_ColumnCell release]; m_ColumnCell = newCell; } void SetColumnPtr(NSTableColumn* newColumnPtr) { m_TableColumnPtr = newColumnPtr; } void SetItem(id newItem) { m_Item = newItem; } void SetItemCell(NSCell* newCell) { m_ItemCell = newCell; } void SetObject(id newObject) { [newObject retain]; [m_Object release]; m_Object = newObject; } // The original cell font and text colour stored here are NULL by default // and are only initialized to the values retrieved from the cell when we // change them from wxCocoaOutlineView:willDisplayCell:forTableColumn:item: // which calls our SaveOriginalXXX() methods before changing the cell // attributes. // // This allows us to avoid doing anything for the columns without any // attributes but still be able to restore the correct attributes for the // ones that do. NSFont *GetOriginalFont() const { return m_origFont; } NSColor *GetOriginalTextColour() const { return m_origTextColour; } void SaveOriginalFont(NSFont *font) { m_origFont = [font retain]; } void SaveOriginalTextColour(NSColor *textColour) { m_origTextColour = [textColour retain]; } // The ellipsization mode which we need to set for each cell being rendered. void SetEllipsizeMode(wxEllipsizeMode mode) { m_ellipsizeMode = mode; } wxEllipsizeMode GetEllipsizeMode() const { return m_ellipsizeMode; } // Set the line break mode for the given cell using our m_ellipsizeMode void ApplyLineBreakMode(NSCell *cell); // Does the rendered use a font that the control can't override? void SetHasCustomFont(bool has) { m_hasCustomFont = has; } bool HasCustomFont() const { return m_hasCustomFont; } private: // common part of all ctors void Init(); id m_Item; // item NOT owned by renderer // object that can be used by renderer for storing special data (owned by // renderer) id m_Object; NSCell* m_ColumnCell; // column's cell is owned by renderer NSCell* m_ItemCell; // item's cell is NOT owned by renderer NSTableColumn* m_TableColumnPtr; // column NOT owned by renderer // we own those if they're non-NULL NSFont *m_origFont; NSColor *m_origTextColour; wxEllipsizeMode m_ellipsizeMode; bool m_hasCustomFont; }; // ============================================================================ // wxCocoaOutlineDataSource // ============================================================================ // This class implements the data source delegate for the outline view. // As only an informal protocol exists this class inherits from NSObject only. // // As mentioned in the documentation for NSOutlineView the native control does // not own any data. Therefore, it has to be done by the data source. // Unfortunately, wxWidget's data source is a C++ data source but // NSOutlineDataSource requires objects as data. Therefore, the data (or better // the native item objects) have to be stored additionally in the native data // source. // NSOutlineView requires quick access to the item objects and quick linear // access to an item's children. This requires normally a hash type of storage // for the item object itself and an array structure for each item's children. // This means that basically two times the whole structure of wxWidget's model // class has to be stored. // This implementation is using a compromise: all items that are in use by the // control are stored in a set (from there they can be easily retrieved) and // owned by the set. Furthermore, children of the last parent are stored // in a linear list. // @interface wxCocoaOutlineDataSource : NSObject <NSOutlineViewDataSource> { // descriptors specifying the sorting (currently the array only holds one // object only) NSArray* sortDescriptors; NSMutableArray* children; // buffered children NSMutableSet* items; // stores all items that are in use by the control wxCocoaDataViewControl* implementation; wxDataViewModel* model; // parent of the buffered children; the object is owned wxPointerObject* currentParentItem; } // methods of informal protocol: -(BOOL) outlineView:(NSOutlineView*)outlineView acceptDrop:(id<NSDraggingInfo>)info item:(id)item childIndex:(NSInteger)index; -(id) outlineView:(NSOutlineView*)outlineView child:(NSInteger)index ofItem:(id)item; -(id) outlineView:(NSOutlineView*)outlineView objectValueForTableColumn:(NSTableColumn*)tableColumn byItem:(id)item; -(BOOL) outlineView:(NSOutlineView*)outlineView isItemExpandable:(id)item; -(NSInteger) outlineView:(NSOutlineView*)outlineView numberOfChildrenOfItem:(id)item; -(NSDragOperation) outlineView:(NSOutlineView*)outlineView validateDrop:(id<NSDraggingInfo>)info proposedItem:(id)item proposedChildIndex:(NSInteger)index; -(BOOL) outlineView:(NSOutlineView*)outlineView writeItems:(NSArray*)items toPasteboard:(NSPasteboard*)pasteboard; // buffer for items handling -(void) addToBuffer:(wxPointerObject*)item; -(void) clearBuffer; // returns the item in the buffer that has got the same pointer as "item", // if such an item does not exist nil is returned -(wxPointerObject*) getDataViewItemFromBuffer:(const wxDataViewItem&)item; -(wxPointerObject*) getItemFromBuffer:(wxPointerObject*)item; -(BOOL) isInBuffer:(wxPointerObject*)item; -(void) removeFromBuffer:(wxPointerObject*)item; // buffered children handling -(void) clearChildren; -(wxPointerObject*) getChild:(NSUInteger)index; -(NSUInteger) getChildCount; // buffer handling -(void) clearBuffers; // sorting -(NSArray*) sortDescriptors; -(void) setSortDescriptors:(NSArray*)newSortDescriptors; // access to wxWidgets variables -(wxPointerObject*) currentParentItem; -(wxCocoaDataViewControl*) implementation; -(wxDataViewModel*) model; -(void) setCurrentParentItem:(wxPointerObject*)newCurrentParentItem; -(void) setImplementation:(wxCocoaDataViewControl*)newImplementation; -(void) setModel:(wxDataViewModel*)newModel; // other methods -(void) bufferItem:(wxPointerObject*)parentItem withChildren:(wxDataViewItemArray*)dataViewChildrenPtr; @end // ============================================================================ // wxCustomCell: used for custom renderers // ============================================================================ @interface wxCustomCell : NSTextFieldCell { } -(NSSize) cellSize; @end // ============================================================================ // wxImageCell: used for bitmap renderer // ============================================================================ @interface wxImageCell : NSImageCell { } -(NSSize) cellSize; @end // ============================================================================ // NSTextFieldCell customized to allow vertical alignment // ============================================================================ @interface wxTextFieldCell : NSTextFieldCell { @private int alignment_; BOOL adjustRect_; } -(void) setWXAlignment:(int)alignment; @end // ============================================================================ // wxImageTextCell // ============================================================================ // // As the native cocoa environment does not have a cell displaying an icon/ // image and text at the same time, it has to be implemented by the user. // This implementation follows the implementation of Chuck Pisula in Apple's // DragNDropOutline sample application. // Although in wxDataViewCtrl icons are used on OSX icons do not exist for // display. Therefore, the cell is also called wxImageTextCell. // Instead of displaying images of any size (which is possible) this cell uses // a fixed size for displaying the image. Larger images are scaled to fit // into their reserved space. Smaller or not existing images use the fixed // reserved size and are scaled if necessary. // @interface wxImageTextCell : wxTextFieldCell { @private CGFloat xImageShift; // shift for the image in x-direction from border CGFloat spaceImageText; // space between image and text NSImage* image; // the image itself NSSize imageSize; // largest size of the image; default size is (16, 16) // the text alignment is used to align the whole cell (image and text) NSTextAlignment cellAlignment; } -(NSTextAlignment) alignment; -(void) setAlignment:(NSTextAlignment)newAlignment; -(NSImage*) image; -(void) setImage:(NSImage*)newImage; -(NSSize) imageSize; -(void) setImageSize:(NSSize) newImageSize; -(NSSize) cellSize; @end // ============================================================================ // wxCocoaOutlineView // ============================================================================ @interface wxCocoaOutlineView : NSOutlineView <NSOutlineViewDelegate> { @private // column and row of the cell being edited or -1 if none int currentlyEditedColumn, currentlyEditedRow; wxCocoaDataViewControl* implementation; } -(wxCocoaDataViewControl*) implementation; -(void) setImplementation:(wxCocoaDataViewControl*) newImplementation; @end // ============================================================================ // wxCocoaDataViewControl // ============================================================================ // This is the internal interface class between wxDataViewCtrl (wxWidget) and // the native source view (Mac OS X cocoa). class wxCocoaDataViewControl : public wxWidgetCocoaImpl, public wxDataViewWidgetImpl { public: // constructors / destructor wxCocoaDataViewControl(wxWindow* peer, const wxPoint& pos, const wxSize& size, long style); virtual ~wxCocoaDataViewControl(); wxDataViewCtrl* GetDataViewCtrl() const { return static_cast<wxDataViewCtrl*>(GetWXPeer()); } // column related methods (inherited from wxDataViewWidgetImpl) virtual bool ClearColumns(); virtual bool DeleteColumn(wxDataViewColumn* columnPtr); virtual void DoSetExpanderColumn(wxDataViewColumn const* columnPtr); virtual wxDataViewColumn* GetColumn(unsigned int pos) const; virtual int GetColumnPosition(wxDataViewColumn const* columnPtr) const; virtual bool InsertColumn(unsigned int pos, wxDataViewColumn* columnPtr); virtual void FitColumnWidthToContent(unsigned int pos); // item related methods (inherited from wxDataViewWidgetImpl) virtual bool Add(const wxDataViewItem& parent, const wxDataViewItem& item); virtual bool Add(const wxDataViewItem& parent, const wxDataViewItemArray& items); virtual void Collapse(const wxDataViewItem& item); virtual void EnsureVisible(const wxDataViewItem& item, wxDataViewColumn const* columnPtr); virtual unsigned int GetCount() const; virtual int GetCountPerPage() const; virtual wxRect GetRectangle(const wxDataViewItem& item, wxDataViewColumn const* columnPtr); virtual wxDataViewItem GetTopItem() const; virtual bool IsExpanded(const wxDataViewItem& item) const; virtual bool Reload(); virtual bool Remove(const wxDataViewItem& parent, const wxDataViewItem& item); virtual bool Remove(const wxDataViewItem& parent, const wxDataViewItemArray& item); virtual bool Update(const wxDataViewColumn* columnPtr); virtual bool Update(const wxDataViewItem& parent, const wxDataViewItem& item); virtual bool Update(const wxDataViewItem& parent, const wxDataViewItemArray& items); // model related methods virtual bool AssociateModel(wxDataViewModel* model); // // selection related methods (inherited from wxDataViewWidgetImpl) // virtual wxDataViewItem GetCurrentItem() const; virtual void SetCurrentItem(const wxDataViewItem& item); virtual wxDataViewColumn *GetCurrentColumn() const; virtual int GetSelectedItemsCount() const; virtual int GetSelections(wxDataViewItemArray& sel) const; virtual bool IsSelected(const wxDataViewItem& item) const; virtual void Select(const wxDataViewItem& item); virtual void SelectAll(); virtual void Unselect(const wxDataViewItem& item); virtual void UnselectAll(); // // sorting related methods // virtual wxDataViewColumn* GetSortingColumn () const; virtual void Resort(); // // other methods (inherited from wxDataViewWidgetImpl) // virtual void DoSetIndent(int indent); virtual void DoExpand(const wxDataViewItem& item); virtual void HitTest(const wxPoint& point, wxDataViewItem& item, wxDataViewColumn*& columnPtr) const; virtual void SetRowHeight(int height); virtual void SetRowHeight(const wxDataViewItem& item, unsigned int height); virtual void OnSize(); virtual void StartEditor( const wxDataViewItem & item, unsigned int column ); // drag & drop helper methods wxDataFormat GetDnDDataFormat(wxDataObjectComposite* dataObjects); wxDataObjectComposite* GetDnDDataObjects(NSData* dataObject) const; // Cocoa-specific helpers id GetItemAtRow(int row) const; virtual void SetFont(const wxFont& font, const wxColour& foreground, long windowStyle, bool ignoreBlack = true); private: void InitOutlineView(long style); int GetDefaultRowHeight() const; wxCocoaOutlineDataSource* m_DataSource; wxCocoaOutlineView* m_OutlineView; }; #endif // _WX_DATAVIEWCTRL_COCOOA_H_
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/osx/cocoa/private.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/osx/cocoa/private.h // Purpose: Private declarations: as this header is only included by // wxWidgets itself, it may contain identifiers which don't start // with "wx". // Author: Stefan Csomor // Modified by: // Created: 1998-01-01 // Copyright: (c) Stefan Csomor // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef _WX_PRIVATE_COCOA_H_ #define _WX_PRIVATE_COCOA_H_ #include <ApplicationServices/ApplicationServices.h> #ifdef __OBJC__ #import <Cocoa/Cocoa.h> #endif // // shared between Cocoa and Carbon // // bring in theming types without pulling in the headers #if wxUSE_GUI typedef SInt16 ThemeBrush; CGColorRef WXDLLIMPEXP_CORE wxMacCreateCGColorFromHITheme( ThemeBrush brush ) ; OSStatus WXDLLIMPEXP_CORE wxMacDrawCGImage( CGContextRef inContext, const CGRect * inBounds, CGImageRef inImage) ; void WXDLLIMPEXP_CORE wxOSXDrawNSImage( CGContextRef inContext, const CGRect * inBounds, WX_NSImage inImage) ; WX_NSImage WXDLLIMPEXP_CORE wxOSXGetSystemImage(const wxString& name); WX_NSImage WXDLLIMPEXP_CORE wxOSXGetNSImageFromCGImage( CGImageRef image, double scale = 1.0, bool isTemplate = false); WX_NSImage WXDLLIMPEXP_CORE wxOSXGetNSImageFromIconRef( WXHICON iconref ); WX_NSImage WXDLLIMPEXP_CORE wxOSXGetIconForType(OSType type ); void WXDLLIMPEXP_CORE wxOSXSetImageSize(WX_NSImage image, CGFloat width, CGFloat height); wxBitmap WXDLLIMPEXP_CORE wxOSXCreateSystemBitmap(const wxString& id, const wxString &client, const wxSize& size); WXWindow WXDLLIMPEXP_CORE wxOSXGetMainWindow(); WXWindow WXDLLIMPEXP_CORE wxOSXGetKeyWindow(); class WXDLLIMPEXP_FWD_CORE wxDialog; class WXDLLIMPEXP_CORE wxWidgetCocoaImpl : public wxWidgetImpl { public : wxWidgetCocoaImpl( wxWindowMac* peer , WXWidget w, bool isRootControl = false, bool isUserPane = false ) ; wxWidgetCocoaImpl() ; ~wxWidgetCocoaImpl(); void Init(); virtual bool IsVisible() const ; virtual void SetVisibility(bool); // we provide a static function which can be reused from // wxNonOwnedWindowCocoaImpl too static bool ShowViewOrWindowWithEffect(wxWindow *win, bool show, wxShowEffect effect, unsigned timeout); virtual bool ShowWithEffect(bool show, wxShowEffect effect, unsigned timeout); virtual void Raise(); virtual void Lower(); virtual void ScrollRect( const wxRect *rect, int dx, int dy ); virtual WXWidget GetWXWidget() const { return m_osxView; } virtual void SetBackgroundColour(const wxColour&); virtual bool SetBackgroundStyle(wxBackgroundStyle style); virtual void GetContentArea( int &left , int &top , int &width , int &height ) const; virtual void Move(int x, int y, int width, int height); virtual void GetPosition( int &x, int &y ) const; virtual void GetSize( int &width, int &height ) const; virtual void SetControlSize( wxWindowVariant variant ); virtual void SetNeedsDisplay( const wxRect* where = NULL ); virtual bool GetNeedsDisplay() const; virtual void SetDrawingEnabled(bool enabled); virtual bool CanFocus() const; // return true if successful virtual bool SetFocus(); virtual bool HasFocus() const; void RemoveFromParent(); void Embed( wxWidgetImpl *parent ); void SetDefaultButton( bool isDefault ); void PerformClick(); virtual void SetLabel(const wxString& title, wxFontEncoding encoding); void SetCursor( const wxCursor & cursor ); void CaptureMouse(); void ReleaseMouse(); #if wxUSE_DRAG_AND_DROP void SetDropTarget(wxDropTarget* target); #endif wxInt32 GetValue() const; void SetValue( wxInt32 v ); wxBitmap GetBitmap() const; void SetBitmap( const wxBitmap& bitmap ); void SetBitmapPosition( wxDirection dir ); void SetupTabs( const wxNotebook &notebook ); void GetBestRect( wxRect *r ) const; bool IsEnabled() const; void Enable( bool enable ); bool ButtonClickDidStateChange() { return true ;} void SetMinimum( wxInt32 v ); void SetMaximum( wxInt32 v ); wxInt32 GetMinimum() const; wxInt32 GetMaximum() const; void PulseGauge(); void SetScrollThumb( wxInt32 value, wxInt32 thumbSize ); void SetFont( const wxFont & font , const wxColour& foreground , long windowStyle, bool ignoreBlack = true ); void SetToolTip( wxToolTip* tooltip ); void InstallEventHandler( WXWidget control = NULL ); bool EnableTouchEvents(int eventsMask); virtual bool ShouldHandleKeyNavigation(const wxKeyEvent &event) const; bool DoHandleKeyNavigation(const wxKeyEvent &event); virtual bool DoHandleMouseEvent(NSEvent *event); virtual bool DoHandleKeyEvent(NSEvent *event); virtual bool DoHandleCharEvent(NSEvent *event, NSString *text); virtual void DoNotifyFocusSet(); virtual void DoNotifyFocusLost(); virtual void DoNotifyFocusEvent(bool receivedFocus, wxWidgetImpl* otherWindow); virtual void SetupKeyEvent(wxKeyEvent &wxevent, NSEvent * nsEvent, NSString* charString = NULL); virtual void SetupMouseEvent(wxMouseEvent &wxevent, NSEvent * nsEvent); void SetupCoordinates(wxCoord &x, wxCoord &y, NSEvent *nsEvent); virtual bool SetupCursor(NSEvent* event); #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_10 virtual void PanGestureEvent(NSPanGestureRecognizer *panGestureRecognizer); virtual void ZoomGestureEvent(NSMagnificationGestureRecognizer *magnificationGestureRecognizer); virtual void RotateGestureEvent(NSRotationGestureRecognizer *rotationGestureRecognizer); virtual void LongPressEvent(NSPressGestureRecognizer *pressGestureRecognizer); virtual void TouchesBegan(NSEvent *event); virtual void TouchesMoved(NSEvent *event); virtual void TouchesEnded(NSEvent *event); #endif // MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_10 #if !wxOSX_USE_NATIVE_FLIPPED void SetFlipped(bool flipped); virtual bool IsFlipped() const { return m_isFlipped; } #endif virtual double GetContentScaleFactor() const; // cocoa thunk connected calls #if wxUSE_DRAG_AND_DROP virtual unsigned int draggingEntered(void* sender, WXWidget slf, void* _cmd); virtual void draggingExited(void* sender, WXWidget slf, void* _cmd); virtual unsigned int draggingUpdated(void* sender, WXWidget slf, void* _cmd); virtual bool performDragOperation(void* sender, WXWidget slf, void* _cmd); #endif virtual void mouseEvent(WX_NSEvent event, WXWidget slf, void* _cmd); virtual void cursorUpdate(WX_NSEvent event, WXWidget slf, void* _cmd); virtual void keyEvent(WX_NSEvent event, WXWidget slf, void* _cmd); virtual void insertText(NSString* text, WXWidget slf, void* _cmd); virtual void doCommandBySelector(void* sel, WXWidget slf, void* _cmd); virtual bool performKeyEquivalent(WX_NSEvent event, WXWidget slf, void* _cmd); virtual bool acceptsFirstResponder(WXWidget slf, void* _cmd); virtual bool becomeFirstResponder(WXWidget slf, void* _cmd); virtual bool resignFirstResponder(WXWidget slf, void* _cmd); #if !wxOSX_USE_NATIVE_FLIPPED virtual bool isFlipped(WXWidget slf, void* _cmd); #endif virtual void drawRect(void* rect, WXWidget slf, void* _cmd); 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(); protected: WXWidget m_osxView; NSEvent* m_lastKeyDownEvent; #if !wxOSX_USE_NATIVE_FLIPPED bool m_isFlipped; #endif // if it the control has an editor, that editor will already send some // events, don't resend them bool m_hasEditor; wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxWidgetCocoaImpl); }; DECLARE_WXCOCOA_OBJC_CLASS( wxNSWindow ); class wxNonOwnedWindowCocoaImpl : public wxNonOwnedWindowImpl { public : wxNonOwnedWindowCocoaImpl( wxNonOwnedWindow* nonownedwnd) ; wxNonOwnedWindowCocoaImpl(); virtual ~wxNonOwnedWindowCocoaImpl(); virtual void WillBeDestroyed() wxOVERRIDE; void Create( wxWindow* parent, const wxPoint& pos, const wxSize& size, long style, long extraStyle, const wxString& name ) wxOVERRIDE; void Create( wxWindow* parent, WXWindow nativeWindow ); WXWindow GetWXWindow() const wxOVERRIDE; void Raise() wxOVERRIDE; void Lower() wxOVERRIDE; bool Show(bool show) wxOVERRIDE; virtual bool ShowWithEffect(bool show, wxShowEffect effect, unsigned timeout) wxOVERRIDE; void Update() wxOVERRIDE; bool SetTransparent(wxByte alpha) wxOVERRIDE; bool SetBackgroundColour(const wxColour& col ) wxOVERRIDE; void SetExtraStyle( long exStyle ) wxOVERRIDE; void SetWindowStyleFlag( long style ) wxOVERRIDE; bool SetBackgroundStyle(wxBackgroundStyle style) wxOVERRIDE; bool CanSetTransparent() wxOVERRIDE; void MoveWindow(int x, int y, int width, int height) wxOVERRIDE; void GetPosition( int &x, int &y ) const wxOVERRIDE; void GetSize( int &width, int &height ) const wxOVERRIDE; void GetContentArea( int &left , int &top , int &width , int &height ) const wxOVERRIDE; bool SetShape(const wxRegion& region) wxOVERRIDE; virtual void SetTitle( const wxString& title, wxFontEncoding encoding ) wxOVERRIDE; virtual bool EnableCloseButton(bool enable) wxOVERRIDE; virtual bool EnableMaximizeButton(bool enable) wxOVERRIDE; virtual bool EnableMinimizeButton(bool enable) wxOVERRIDE; virtual bool IsMaximized() const wxOVERRIDE; virtual bool IsIconized() const wxOVERRIDE; virtual void Iconize( bool iconize ) wxOVERRIDE; virtual void Maximize(bool maximize) wxOVERRIDE; virtual bool IsFullScreen() const wxOVERRIDE; bool EnableFullScreenView(bool enable) wxOVERRIDE; virtual bool ShowFullScreen(bool show, long style) wxOVERRIDE; virtual void ShowWithoutActivating() wxOVERRIDE; virtual void RequestUserAttention(int flags) wxOVERRIDE; virtual void ScreenToWindow( int *x, int *y ) wxOVERRIDE; virtual void WindowToScreen( int *x, int *y ) wxOVERRIDE; virtual bool IsActive() wxOVERRIDE; virtual void SetModified(bool modified) wxOVERRIDE; virtual bool IsModified() const wxOVERRIDE; virtual void SetRepresentedFilename(const wxString& filename) wxOVERRIDE; wxNonOwnedWindow* GetWXPeer() { return m_wxPeer; } CGWindowLevel GetWindowLevel() const wxOVERRIDE { return m_macWindowLevel; } void RestoreWindowLevel() wxOVERRIDE; static WX_NSResponder GetNextFirstResponder() ; static WX_NSResponder GetFormerFirstResponder() ; protected : CGWindowLevel m_macWindowLevel; WXWindow m_macWindow; void * m_macFullScreenData ; private: void SetUpForModalParent(); wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxNonOwnedWindowCocoaImpl); }; DECLARE_WXCOCOA_OBJC_CLASS( wxNSButton ); class wxButtonCocoaImpl : public wxWidgetCocoaImpl, public wxButtonImpl { public: wxButtonCocoaImpl(wxWindowMac *wxpeer, wxNSButton *v); virtual void SetBitmap(const wxBitmap& bitmap); #if wxUSE_MARKUP virtual void SetLabelMarkup(const wxString& markup); #endif // wxUSE_MARKUP void SetPressedBitmap( const wxBitmap& bitmap ); void GetLayoutInset(int &left , int &top , int &right, int &bottom) const; void SetAcceleratorFromLabel(const wxString& label); NSButton *GetNSButton() const; }; #ifdef __OBJC__ typedef NSRect WXRect; typedef void (*wxOSX_TextEventHandlerPtr)(NSView* self, SEL _cmd, NSString *event); typedef void (*wxOSX_EventHandlerPtr)(NSView* self, SEL _cmd, NSEvent *event); typedef BOOL (*wxOSX_PerformKeyEventHandlerPtr)(NSView* self, SEL _cmd, NSEvent *event); typedef BOOL (*wxOSX_FocusHandlerPtr)(NSView* self, SEL _cmd); WXDLLIMPEXP_CORE NSScreen* wxOSXGetMenuScreen(); WXDLLIMPEXP_CORE NSRect wxToNSRect( NSView* parent, const wxRect& r ); WXDLLIMPEXP_CORE wxRect wxFromNSRect( NSView* parent, const NSRect& rect ); WXDLLIMPEXP_CORE NSPoint wxToNSPoint( NSView* parent, const wxPoint& p ); WXDLLIMPEXP_CORE wxPoint wxFromNSPoint( NSView* parent, const NSPoint& p ); NSRect WXDLLIMPEXP_CORE wxOSXGetFrameForControl( wxWindowMac* window , const wxPoint& pos , const wxSize &size , bool adjustForOrigin = true ); WXDLLIMPEXP_CORE NSView* wxOSXGetViewFromResponder( NSResponder* responder ); // used for many wxControls @interface wxNSButton : NSButton { NSTrackingRectTag rectTag; } @end @interface wxNSBox : NSBox { } @end @interface wxNSTextFieldEditor : NSTextView { NSEvent* lastKeyDownEvent; NSTextField* textField; } - (void) setTextField:(NSTextField*) field; @end @interface wxNSTextField : NSTextField <NSTextFieldDelegate> { wxNSTextFieldEditor* fieldEditor; } - (wxNSTextFieldEditor*) fieldEditor; - (void) setFieldEditor:(wxNSTextFieldEditor*) fieldEditor; @end @interface wxNSSecureTextField : NSSecureTextField <NSTextFieldDelegate> { } @end @interface wxNSTextView : NSTextView <NSTextViewDelegate> { } - (void)textDidChange:(NSNotification *)aNotification; - (void)changeColor:(id)sender; @end @interface wxNSComboBox : NSComboBox { wxNSTextFieldEditor* fieldEditor; } - (wxNSTextFieldEditor*) fieldEditor; - (void) setFieldEditor:(wxNSTextFieldEditor*) fieldEditor; @end @interface wxNSMenu : NSMenu { wxMenuImpl* impl; } - (void) setImplementation:(wxMenuImpl*) item; - (wxMenuImpl*) implementation; @end @interface wxNSMenuItem : NSMenuItem { wxMenuItemImpl* impl; } - (void) setImplementation:(wxMenuItemImpl*) item; - (wxMenuItemImpl*) implementation; - (void)clickedAction:(id)sender; - (BOOL)validateMenuItem:(NSMenuItem *)menuItem; @end // this enum declares which methods should not be overridden in the native view classes enum wxOSXSkipOverrides { wxOSXSKIP_NONE = 0x0, wxOSXSKIP_DRAW = 0x1 }; void WXDLLIMPEXP_CORE wxOSXCocoaClassAddWXMethods(Class c, wxOSXSkipOverrides skipFlags = wxOSXSKIP_NONE); /* We need this for ShowModal, as the sheet just disables the parent window and returns control to the app, whereas we don't want to return from ShowModal until the sheet has been dismissed. */ @interface ModalDialogDelegate : NSObject { BOOL sheetFinished; int resultCode; wxDialog* impl; } - (void)setImplementation: (wxDialog *)dialog; - (BOOL)finished; - (int)code; - (void)waitForSheetToFinish; - (void)sheetDidEnd:(NSWindow *)sheet returnCode:(int)returnCode contextInfo:(void *)contextInfo; @end // This interface must be exported in shared 64 bit multilib build but // using WXEXPORT with Objective C interfaces doesn't work with old (4.0.1) // gcc when using 10.4 SDK. It does work with newer gcc even in 32 bit // builds but seems to be unnecessary there so to avoid the expense of a // configure check verifying if this does work or not with the current // compiler we just only use it for 64 bit builds where this is always // supported. // // NB: Currently this is the only place where we need to export an // interface but if we need to do it elsewhere we should define a // WXEXPORT_OBJC macro once and reuse it in all places it's needed // instead of duplicating this preprocessor check. #ifdef __LP64__ WXEXPORT #endif // 64 bit builds @interface wxNSAppController : NSObject <NSApplicationDelegate> { } @end #endif // __OBJC__ // NSCursor WX_NSCursor wxMacCocoaCreateStockCursor( int cursor_type ); WX_NSCursor wxMacCocoaCreateCursorFromCGImage( CGImageRef cgImageRef, float hotSpotX, float hotSpotY ); void wxMacCocoaSetCursor( WX_NSCursor cursor ); void wxMacCocoaHideCursor(); void wxMacCocoaShowCursor(); typedef struct tagClassicCursor { wxUint16 bits[16]; wxUint16 mask[16]; wxInt16 hotspot[2]; }ClassicCursor; const short kwxCursorBullseye = 0; const short kwxCursorBlank = 1; const short kwxCursorPencil = 2; const short kwxCursorMagnifier = 3; const short kwxCursorNoEntry = 4; const short kwxCursorPaintBrush = 5; const short kwxCursorPointRight = 6; const short kwxCursorPointLeft = 7; const short kwxCursorQuestionArrow = 8; const short kwxCursorRightArrow = 9; const short kwxCursorSizeNS = 10; const short kwxCursorSize = 11; const short kwxCursorSizeNESW = 12; const short kwxCursorSizeNWSE = 13; const short kwxCursorRoller = 14; const short kwxCursorWatch = 15; const short kwxCursorLast = kwxCursorWatch; // exposing our fallback cursor map extern ClassicCursor gMacCursors[]; extern NSLayoutManager* gNSLayoutManager; // NSString<->wxString wxString wxStringWithNSString(NSString *nsstring); NSString* wxNSStringWithWxString(const wxString &wxstring); // helper class for setting the current appearance to the // effective appearance and restore when exiting scope class WXDLLIMPEXP_CORE wxOSXEffectiveAppearanceSetter { public: wxOSXEffectiveAppearanceSetter(); ~wxOSXEffectiveAppearanceSetter(); private: void * formerAppearance; }; #endif // wxUSE_GUI #endif // _WX_PRIVATE_COCOA_H_
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/osx/cocoa/chkconf.h
/* * Name: wx/osx/cocoa/chkconf.h * Purpose: Compiler-specific configuration checking * Author: Stefan Csomor * Modified by: * Created: 2008-07-30 * Copyright: (c) Stefan Csomor * Licence: wxWindows licence */ #ifndef _WX_OSX_COCOA_CHKCONF_H_ #define _WX_OSX_COCOA_CHKCONF_H_ /* * native (1) or emulated (0) toolbar */ #ifndef wxOSX_USE_NATIVE_TOOLBAR #define wxOSX_USE_NATIVE_TOOLBAR 1 #endif /* * leave is isFlipped and don't override */ #ifndef wxOSX_USE_NATIVE_FLIPPED #define wxOSX_USE_NATIVE_FLIPPED 1 #endif /* * Audio System */ #define wxOSX_USE_QUICKTIME 0 #define wxOSX_USE_AUDIOTOOLBOX 1 /* Use the more efficient FSEvents API instead of kqueue events for file system watcher since that version introduced a flag that allows watching files as well as sub directories. */ #define wxHAVE_FSEVENTS_FILE_NOTIFICATIONS 1 /* * turn off old style icon format if not asked for */ #ifndef wxOSX_USE_ICONREF #define wxOSX_USE_ICONREF 0 #endif /* * turning off capabilities that don't work under cocoa yet */ #endif /* _WX_MAC_CHKCONF_H_ */
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/osx/cocoa/private/date.h
/////////////////////////////////////////////////////////////////////////////// // Name: wx/osx/cocoa/private/date.h // Purpose: NSDate-related helpers // Author: Vadim Zeitlin // Created: 2011-12-19 // Copyright: (c) 2011 Vadim Zeitlin <[email protected]> // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// #ifndef _WX_OSX_COCOA_PRIVATE_DATE_H_ #define _WX_OSX_COCOA_PRIVATE_DATE_H_ #include "wx/datetime.h" namespace wxOSXImpl { // Functions to convert between NSDate and wxDateTime. // Returns an NSDate corresponding to the given wxDateTime which can be invalid // (in which case nil is returned). inline NSDate* NSDateFromWX(const wxDateTime& dt) { if ( !dt.IsValid() ) return nil; // Get the internal representation as a double used by NSDate. double ticks = dt.GetValue().ToDouble(); // wxDateTime uses milliseconds while NSDate uses (fractional) seconds. return [NSDate dateWithTimeIntervalSince1970:ticks/1000.]; } // Returns wxDateTime corresponding to the given NSDate (which may be nil). inline wxDateTime NSDateToWX(const NSDate* d) { if ( !d ) return wxDefaultDateTime; // Reverse everything done above. wxLongLong ll; ll.Assign([d timeIntervalSince1970]*1000); wxDateTime dt(ll); return dt; } } // namespace wxOSXImpl #endif // _WX_OSX_COCOA_PRIVATE_DATE_H_
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/osx/cocoa/private/textimpl.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/osx/cocoa/private/textimpl.h // Purpose: textcontrol implementation classes that have to be exposed // Author: Stefan Csomor // Modified by: // Created: 03/02/99 // Copyright: (c) Stefan Csomor // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef _WX_OSX_COCOA_PRIVATE_TEXTIMPL_H_ #define _WX_OSX_COCOA_PRIVATE_TEXTIMPL_H_ #include "wx/combobox.h" #include "wx/osx/private.h" @class wxTextEntryFormatter; class wxNSTextBase : public wxWidgetCocoaImpl, public wxTextWidgetImpl { public : wxNSTextBase( wxTextCtrl *text, WXWidget w ) : wxWidgetCocoaImpl(text, w), wxTextWidgetImpl(text) { } wxNSTextBase( wxWindow *wxPeer, wxTextEntry *entry, WXWidget w ) : wxWidgetCocoaImpl(wxPeer, w), wxTextWidgetImpl(entry) { } virtual ~wxNSTextBase() { } virtual bool ShouldHandleKeyNavigation(const wxKeyEvent &event) const wxOVERRIDE; }; // implementation exposed, so that search control can pull it class wxNSTextFieldControl : public wxNSTextBase { public : // wxNSTextFieldControl must always be associated with a wxTextEntry. If // it's associated with a wxTextCtrl then we can get the associated entry // from it but otherwise the second ctor should be used to explicitly pass // us the entry. wxNSTextFieldControl( wxTextCtrl *text, WXWidget w ); wxNSTextFieldControl( wxWindow *wxPeer, wxTextEntry *entry, WXWidget w ); virtual ~wxNSTextFieldControl(); virtual bool CanClipMaxLength() const wxOVERRIDE { return true; } virtual void SetMaxLength(unsigned long len) wxOVERRIDE; virtual bool CanForceUpper() wxOVERRIDE { return true; } virtual void ForceUpper() wxOVERRIDE; virtual wxString GetStringValue() const wxOVERRIDE ; virtual void SetStringValue( const wxString &str) wxOVERRIDE ; virtual void Copy() wxOVERRIDE ; virtual void Cut() wxOVERRIDE ; virtual void Paste() wxOVERRIDE ; virtual bool CanPaste() const wxOVERRIDE ; virtual void SetEditable(bool editable) wxOVERRIDE ; virtual long GetLastPosition() const wxOVERRIDE; virtual void GetSelection( long* from, long* to) const wxOVERRIDE ; virtual void SetSelection( long from , long to ) wxOVERRIDE; virtual bool PositionToXY(long pos, long *x, long *y) const wxOVERRIDE; virtual long XYToPosition(long x, long y) const wxOVERRIDE; virtual void ShowPosition(long pos) wxOVERRIDE; virtual void WriteText(const wxString& str) wxOVERRIDE ; virtual bool HasOwnContextMenu() const wxOVERRIDE { return true; } virtual bool SetHint(const wxString& hint) wxOVERRIDE; virtual void SetJustification() wxOVERRIDE; virtual void controlAction(WXWidget slf, void* _cmd, void *sender) wxOVERRIDE; virtual bool becomeFirstResponder(WXWidget slf, void *_cmd) wxOVERRIDE; virtual bool resignFirstResponder(WXWidget slf, void *_cmd) wxOVERRIDE; virtual void SetInternalSelection( long from , long to ); virtual void UpdateInternalSelectionFromEditor( wxNSTextFieldEditor* editor); protected : NSTextField* m_textField; long m_selStart; long m_selEnd; private: // Common part of both ctors. void Init(WXWidget w); // Get our formatter, creating it if necessary. wxTextEntryFormatter* GetFormatter(); }; class wxNSTextViewControl : public wxNSTextBase { public: wxNSTextViewControl( wxTextCtrl *wxPeer, WXWidget w, long style ); virtual ~wxNSTextViewControl(); virtual void insertText(NSString* text, WXWidget slf, void *_cmd) wxOVERRIDE; virtual wxString GetStringValue() const wxOVERRIDE ; virtual void SetStringValue( const wxString &str) wxOVERRIDE ; virtual void Copy() wxOVERRIDE ; virtual void Cut() wxOVERRIDE ; virtual void Paste() wxOVERRIDE ; virtual bool CanPaste() const wxOVERRIDE ; virtual void SetEditable(bool editable) wxOVERRIDE ; virtual long GetLastPosition() const wxOVERRIDE; virtual void GetSelection( long* from, long* to) const wxOVERRIDE ; virtual void SetSelection( long from , long to ) wxOVERRIDE; virtual bool PositionToXY(long pos, long *x, long *y) const wxOVERRIDE; virtual long XYToPosition(long x, long y) const wxOVERRIDE; virtual void ShowPosition(long pos) wxOVERRIDE; virtual void WriteText(const wxString& str) wxOVERRIDE ; virtual void SetFont( const wxFont & font , const wxColour& foreground , long windowStyle, bool ignoreBlack = true ) wxOVERRIDE; virtual bool GetStyle(long position, wxTextAttr& style) wxOVERRIDE; virtual void SetStyle(long start, long end, const wxTextAttr& style) wxOVERRIDE; virtual bool CanFocus() const wxOVERRIDE; virtual bool HasOwnContextMenu() const wxOVERRIDE { return true; } virtual void CheckSpelling(bool check) wxOVERRIDE; virtual void EnableAutomaticQuoteSubstitution(bool enable) wxOVERRIDE; virtual void EnableAutomaticDashSubstitution(bool enable) wxOVERRIDE; virtual wxSize GetBestSize() const wxOVERRIDE; virtual void SetJustification() wxOVERRIDE; virtual void controlTextDidChange() wxOVERRIDE; protected: void DoUpdateTextStyle(); NSScrollView* m_scrollView; NSTextView* m_textView; bool m_useCharWrapping; }; class wxNSComboBoxControl : public wxNSTextFieldControl, public wxComboWidgetImpl { 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; virtual void Popup(); virtual void Dismiss(); virtual void SetEditable(bool editable); virtual void mouseEvent(WX_NSEvent event, WXWidget slf, void *_cmd); private: NSComboBox* m_comboBox; }; #endif // _WX_OSX_COCOA_PRIVATE_TEXTIMPL_H_
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/osx/cocoa/private/overlay.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/osx/cocoa/private/overlay.h // Purpose: wxOverlayImpl declaration // Author: Stefan Csomor // Modified by: // Created: 2006-10-20 // Copyright: (c) wxWidgets team // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef _WX_OSX_COCOA_PRIVATE_OVERLAY_H_ #define _WX_OSX_COCOA_PRIVATE_OVERLAY_H_ #include "wx/osx/private.h" #include "wx/toplevel.h" #include "wx/graphics.h" class wxOverlayImpl { public: wxOverlayImpl() ; ~wxOverlayImpl() ; // clears the overlay without restoring the former state // to be done eg when the window content has been changed and repainted void Reset(); // returns true if it has been setup bool IsOk(); void Init( wxDC* dc, int x , int y , int width , int height ); void BeginDrawing( wxDC* dc); void EndDrawing( wxDC* dc); void Clear( wxDC* dc); private: void CreateOverlayWindow( wxDC* dc ); WXWindow m_overlayWindow; WXWindow m_overlayParentWindow; CGContextRef m_overlayContext ; // we store the window in case we would have to issue a Refresh() wxWindow* m_window ; int m_x ; int m_y ; int m_width ; int m_height ; } ; #endif // _WX_MAC_CARBON_PRIVATE_OVERLAY_H_
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/osx/cocoa/private/markuptoattr.h
/////////////////////////////////////////////////////////////////////////////// // Name: wx/osx/cocoa/private/markuptoattr.h // Purpose: Class to convert markup to Cocoa attributed strings. // Author: Vadim Zeitlin // Created: 2011-02-22 // Copyright: (c) 2011 Vadim Zeitlin <[email protected]> // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// #ifndef _WX_OSX_COCOA_PRIVATE_MARKUPTOATTR_H_ #define _WX_OSX_COCOA_PRIVATE_MARKUPTOATTR_H_ #include "wx/private/markupparserattr.h" // ---------------------------------------------------------------------------- // wxMarkupToAttrString: create NSAttributedString from markup. // ---------------------------------------------------------------------------- class wxMarkupToAttrStringBase : public wxMarkupParserAttrOutput { protected: // We don't care about the original colours because we never use them but // we do need the correct initial font as we apply modifiers (e.g. create a // font larger than it) to it and so it must be valid. wxMarkupToAttrStringBase(const wxFont& font) : wxMarkupParserAttrOutput(font, wxColour(), wxColour()), m_attrString(NULL) {} void Parse(const wxFont& font, const wxString& markup) { const wxCFStringRef label(PrepareText(wxMarkupParser::Strip(markup))); m_attrString = [[NSMutableAttributedString alloc] initWithString: label.AsNSString()]; m_pos = 0; [m_attrString beginEditing]; // First thing we do is change the default string font: as mentioned in // Apple documentation, attributed strings use "Helvetica 12" font by // default which is different from the system "Lucida Grande" font. So // we need to explicitly change the font for the entire string. [m_attrString addAttribute:NSFontAttributeName value:font.OSXGetNSFont() range:NSMakeRange(0, [m_attrString length])]; // Now translate the markup tags to corresponding attributes. wxMarkupParser parser(*this); parser.Parse(markup); [m_attrString endEditing]; } ~wxMarkupToAttrStringBase() { if ( m_attrString ) [m_attrString release]; } // prepare text chunk for display, e.g. strip mnemonics from it virtual wxString PrepareText(const wxString& text) = 0; public: // Accessor for the users of this class. // // We keep ownership of the returned string. NSMutableAttributedString *GetNSAttributedString() const { return m_attrString; } // Implement base class pure virtual methods to process markup tags. virtual void OnText(const wxString& text) { m_pos += PrepareText(text).length(); } virtual void OnAttrStart(const Attr& WXUNUSED(attr)) { // Just remember the starting position of the range, we can't really // set the attribute until we find the end of it. m_rangeStarts.push(m_pos); } virtual void OnAttrEnd(const Attr& attr) { unsigned start = m_rangeStarts.top(); m_rangeStarts.pop(); const NSRange range = NSMakeRange(start, m_pos - start); [m_attrString addAttribute:NSFontAttributeName value:attr.font.OSXGetNSFont() range:range]; if ( attr.foreground.IsOk() ) { [m_attrString addAttribute:NSForegroundColorAttributeName value:attr.foreground.OSXGetNSColor() range:range]; } if ( attr.background.IsOk() ) { [m_attrString addAttribute:NSBackgroundColorAttributeName value:attr.background.OSXGetNSColor() range:range]; } } private: // The attributed string we're building. NSMutableAttributedString *m_attrString; // The current position in the output string. unsigned m_pos; // The positions of starting ranges. wxStack<unsigned> m_rangeStarts; }; // for use with labels with mnemonics class wxMarkupToAttrString : public wxMarkupToAttrStringBase { public: wxMarkupToAttrString(const wxFont& font, const wxString& markup) : wxMarkupToAttrStringBase(font) { Parse(font, markup); } protected: virtual wxString PrepareText(const wxString& text) { return wxControl::RemoveMnemonics(text); } wxDECLARE_NO_COPY_CLASS(wxMarkupToAttrString); }; // for raw markup with no mnemonics class wxItemMarkupToAttrString : public wxMarkupToAttrStringBase { public: wxItemMarkupToAttrString(const wxFont& font, const wxString& markup) : wxMarkupToAttrStringBase(font) { Parse(font, markup); } protected: virtual wxString PrepareText(const wxString& text) { return text; } wxDECLARE_NO_COPY_CLASS(wxItemMarkupToAttrString); }; #endif // _WX_OSX_COCOA_PRIVATE_MARKUPTOATTR_H_
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/dcclient.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/gtk1/dcclient.h // Purpose: // Author: Robert Roebling // Copyright: (c) 1998 Robert Roebling // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef __GTKDCCLIENTH__ #define __GTKDCCLIENTH__ #include "wx/gtk1/dc.h" #include "wx/window.h" //----------------------------------------------------------------------------- // classes //----------------------------------------------------------------------------- class WXDLLIMPEXP_FWD_CORE wxWindowDCImpl; class WXDLLIMPEXP_FWD_CORE wxPaintDCImpl; class WXDLLIMPEXP_FWD_CORE wxClientDCImpl; //----------------------------------------------------------------------------- // wxWindowDCImpl //----------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxWindowDCImpl : public wxGTKDCImpl { public: wxWindowDCImpl(wxDC *owner); wxWindowDCImpl(wxDC *owner, wxWindow *win); virtual ~wxWindowDCImpl(); virtual bool CanDrawBitmap() const { return true; } virtual bool CanGetTextExtent() const { return true; } protected: virtual void DoGetSize(int *width, int *height) const; virtual bool DoFloodFill( wxCoord x, wxCoord y, const wxColour& col, wxFloodFillStyle style=wxFLOOD_SURFACE ); virtual bool DoGetPixel( wxCoord x1, wxCoord y1, wxColour *col ) const; virtual void DoDrawLine( wxCoord x1, wxCoord y1, wxCoord x2, wxCoord y2 ); virtual void DoCrossHair( wxCoord x, wxCoord y ); virtual void DoDrawArc( wxCoord x1, wxCoord y1, wxCoord x2, wxCoord y2, wxCoord xc, wxCoord yc ); virtual void DoDrawEllipticArc( wxCoord x, wxCoord y, wxCoord width, wxCoord height, double sa, double ea ); virtual void DoDrawPoint( wxCoord x, wxCoord y ); virtual void DoDrawLines(int n, const wxPoint points[], wxCoord xoffset, wxCoord yoffset); virtual void DoDrawPolygon(int n, const wxPoint points[], wxCoord xoffset, wxCoord yoffset, wxPolygonFillMode fillStyle = wxODDEVEN_RULE); virtual void DoDrawRectangle( wxCoord x, wxCoord y, wxCoord width, wxCoord height ); virtual void DoDrawRoundedRectangle( wxCoord x, wxCoord y, wxCoord width, wxCoord height, double radius = 20.0 ); virtual void DoDrawEllipse( wxCoord x, wxCoord y, wxCoord width, wxCoord height ); virtual void DoDrawIcon( const wxIcon &icon, wxCoord x, wxCoord y ); virtual void DoDrawBitmap( const wxBitmap &bitmap, wxCoord x, wxCoord y, bool useMask = false ); virtual bool DoBlit( wxCoord xdest, wxCoord ydest, wxCoord width, wxCoord height, wxDC *source, wxCoord xsrc, wxCoord ysrc, wxRasterOperationMode logical_func = wxCOPY, bool useMask = false, wxCoord xsrcMask = -1, wxCoord ysrcMask = -1 ); virtual void DoDrawText( const wxString &text, wxCoord x, wxCoord y ); virtual void DoDrawRotatedText(const wxString& text, wxCoord x, wxCoord y, double angle); virtual void DoGetTextExtent( const wxString &string, wxCoord *width, wxCoord *height, wxCoord *descent = NULL, wxCoord *externalLeading = NULL, const wxFont *theFont = NULL) const; public: virtual wxCoord GetCharWidth() const; virtual wxCoord GetCharHeight() const; virtual void Clear(); virtual void SetFont( const wxFont &font ); virtual void SetPen( const wxPen &pen ); virtual void SetBrush( const wxBrush &brush ); virtual void SetBackground( const wxBrush &brush ); virtual void SetLogicalFunction( wxRasterOperationMode function ); virtual void SetTextForeground( const wxColour &col ); virtual void SetTextBackground( const wxColour &col ); virtual void SetBackgroundMode( int mode ); virtual void SetPalette( const wxPalette& palette ); virtual void DoSetClippingRegion( wxCoord x, wxCoord y, wxCoord width, wxCoord height ); virtual void DestroyClippingRegion(); virtual void DoSetDeviceClippingRegion( const wxRegion &region ); // Resolution in pixels per logical inch virtual wxSize GetPPI() const; virtual int GetDepth() const; virtual GdkWindow* GetGDKWindow() const { return m_window; } // implementation // -------------- GdkWindow *m_window; GdkGC *m_penGC; GdkGC *m_brushGC; GdkGC *m_textGC; GdkGC *m_bgGC; GdkColormap *m_cmap; bool m_isMemDC; bool m_isScreenDC; wxWindow *m_owner; wxRegion m_currentClippingRegion; wxRegion m_paintClippingRegion; void SetUpDC(); void Destroy(); virtual void ComputeScaleAndOrigin(); GdkWindow *GetWindow() { return m_window; } private: wxDECLARE_DYNAMIC_CLASS(wxWindowDCImpl); }; //----------------------------------------------------------------------------- // wxClientDCImpl //----------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxClientDCImpl : public wxWindowDCImpl { public: wxClientDCImpl(wxDC *owner) : wxWindowDCImpl(owner) { } wxClientDCImpl(wxDC *owner, wxWindow *win); protected: virtual void DoGetSize(int *width, int *height) const; private: wxDECLARE_DYNAMIC_CLASS(wxClientDCImpl); }; //----------------------------------------------------------------------------- // wxPaintDCImpl //----------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxPaintDCImpl : public wxClientDCImpl { public: wxPaintDCImpl(wxDC *owner) : wxClientDCImpl(owner) { } wxPaintDCImpl(wxDC *owner, wxWindow *win); private: wxDECLARE_DYNAMIC_CLASS(wxPaintDCImpl); }; #endif // __GTKDCCLIENTH__
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/font.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/gtk1/font.h // Purpose: // Author: Robert Roebling // Copyright: (c) 1998 Robert Roebling // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef __GTKFONTH__ #define __GTKFONTH__ #include "wx/hash.h" // ---------------------------------------------------------------------------- // classes // ---------------------------------------------------------------------------- class WXDLLIMPEXP_FWD_CORE wxDC; class WXDLLIMPEXP_FWD_CORE wxPaintDC; class WXDLLIMPEXP_FWD_CORE wxWindow; class WXDLLIMPEXP_FWD_CORE wxFont; // ---------------------------------------------------------------------------- // wxFont // ---------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxFont : public wxFontBase { public: // ctors and such wxFont() { } wxFont(const wxFontInfo& info) { Create(info.GetPointSize(), info.GetFamily(), info.GetStyle(), info.GetWeight(), info.IsUnderlined(), info.GetFaceName(), info.GetEncoding()); if ( info.IsUsingSizeInPixels() ) SetPixelSize(info.GetPixelSize()); } wxFont(const wxString& fontname) { Create(fontname); } wxFont(const wxNativeFontInfo& info); wxFont(int size, wxFontFamily family, wxFontStyle style, wxFontWeight weight, bool underlined = false, const wxString& face = wxEmptyString, wxFontEncoding encoding = wxFONTENCODING_DEFAULT) { Create(size, family, style, weight, underlined, face, encoding); } wxFont(const wxSize& pixelSize, wxFontFamily family, wxFontStyle style, wxFontWeight weight, bool underlined = false, const wxString& face = wxEmptyString, wxFontEncoding encoding = wxFONTENCODING_DEFAULT) { Create(10, family, style, weight, underlined, face, encoding); SetPixelSize(pixelSize); } bool Create(int size, wxFontFamily family, wxFontStyle style, wxFontWeight weight, bool underlined = false, const wxString& face = wxEmptyString, wxFontEncoding encoding = wxFONTENCODING_DEFAULT); // wxGTK-specific bool Create(const wxString& fontname); virtual ~wxFont(); // implement base class pure virtuals virtual float GetFractionalPointSize() const; virtual wxFontStyle GetStyle() const; virtual int GetNumericWeight() const; virtual wxString GetFaceName() const; virtual bool GetUnderlined() const; virtual wxFontEncoding GetEncoding() const; virtual const wxNativeFontInfo *GetNativeFontInfo() const; virtual bool IsFixedWidth() const; virtual void SetFractionalPointSize(float pointSize); virtual void SetFamily(wxFontFamily family); virtual void SetStyle(wxFontStyle style); virtual void SetNumericWeight(int weight); virtual bool SetFaceName( const wxString& faceName ); virtual void SetUnderlined( bool underlined ); virtual void SetEncoding(wxFontEncoding encoding); wxDECLARE_COMMON_FONT_METHODS(); wxDEPRECATED_MSG("use wxFONT{FAMILY,STYLE,WEIGHT}_XXX constants") wxFont(int size, int family, int style, int weight, bool underlined = false, const wxString& face = wxEmptyString, wxFontEncoding encoding = wxFONTENCODING_DEFAULT) { (void)Create(size, (wxFontFamily)family, (wxFontStyle)style, (wxFontWeight)weight, underlined, face, encoding); } // implementation from now on void Unshare(); GdkFont* GetInternalFont(float scale = 1.0) const; protected: virtual wxGDIRefData *CreateGDIRefData() const; virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const; virtual void DoSetNativeFontInfo( const wxNativeFontInfo& info ); virtual wxFontFamily DoGetFamily() const; private: wxDECLARE_DYNAMIC_CLASS(wxFont); }; #endif // __GTKFONTH__
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/app.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/gtk1/app.h // Purpose: // Author: Robert Roebling // Copyright: (c) 1998 Robert Roebling, Julian Smart // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef __GTKAPPH__ #define __GTKAPPH__ #include "wx/frame.h" #include "wx/icon.h" #include "wx/strconv.h" typedef struct _GdkVisual GdkVisual; //----------------------------------------------------------------------------- // classes //----------------------------------------------------------------------------- class WXDLLIMPEXP_FWD_CORE wxApp; class WXDLLIMPEXP_FWD_BASE wxLog; //----------------------------------------------------------------------------- // wxApp //----------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxApp: public wxAppBase { public: wxApp(); virtual ~wxApp(); /* override for altering the way wxGTK initializes the GUI * (palette/visual/colorcube). under wxMSW, OnInitGui() does nothing by * default. when overriding this method, the code in it is likely to be * platform dependent, otherwise use OnInit(). */ virtual bool OnInitGui(); // override base class (pure) virtuals virtual void WakeUpIdle(); virtual bool Initialize(int& argc, wxChar **argv); virtual void CleanUp(); static bool InitialzeVisual(); virtual void OnAssertFailure(const wxChar *file, int line, const wxChar *func, const wxChar *cond, const wxChar *msg); bool IsInAssert() const { return m_isInAssert; } int m_idleTag; void RemoveIdleTag(); unsigned char *m_colorCube; // Used by the wxGLApp and wxGLCanvas class for GL-based X visual // selection. void *m_glVisualInfo; // this is actually an XVisualInfo* void *m_glFBCInfo; // this is actually an GLXFBConfig* // This returns the current visual: either that used by wxRootWindow // or the XVisualInfo* for SGI. GdkVisual *GetGdkVisual(); private: // true if we're inside an assert modal dialog bool m_isInAssert; wxDECLARE_DYNAMIC_CLASS(wxApp); }; #endif // __GTKAPPH__
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/dcmemory.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/gtk1/dcmemory.h // Purpose: // Author: Robert Roebling // Copyright: (c) 1998 Robert Roebling // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef __GTKDCMEMORYH__ #define __GTKDCMEMORYH__ #include "wx/dcmemory.h" #include "wx/gtk1/dcclient.h" //----------------------------------------------------------------------------- // classes //----------------------------------------------------------------------------- class WXDLLIMPEXP_FWD_CORE wxMemoryDCImpl; //----------------------------------------------------------------------------- // wxMemoryDCImpl //----------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxMemoryDCImpl : public wxWindowDCImpl { public: wxMemoryDCImpl(wxMemoryDC *owner) : wxWindowDCImpl(owner) { Init(); } wxMemoryDCImpl(wxMemoryDC *owner, wxBitmap& bitmap) : wxWindowDCImpl(owner) { Init(); DoSelect(bitmap); } wxMemoryDCImpl(wxMemoryDC *owner, wxDC *dc); virtual ~wxMemoryDCImpl(); virtual void DoSelect(const wxBitmap& bitmap); virtual void DoGetSize( int *width, int *height ) const; // these get reimplemented for mono-bitmaps to behave // more like their Win32 couterparts. They now interpret // wxWHITE, wxWHITE_BRUSH and wxWHITE_PEN as drawing 0 // and everything else as drawing 1. virtual void SetPen( const wxPen &pen ); virtual void SetBrush( const wxBrush &brush ); virtual void SetBackground( const wxBrush &brush ); virtual void SetTextForeground( const wxColour &col ); virtual void SetTextBackground( const wxColour &col ); // implementation wxBitmap m_selected; private: void Init(); wxDECLARE_DYNAMIC_CLASS(wxMemoryDCImpl); }; #endif // __GTKDCMEMORYH__
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/toplevel.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/gtk1/toplevel.h // Purpose: // Author: Robert Roebling // Copyright: (c) 1998 Robert Roebling, Julian Smart // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef __GTKTOPLEVELH__ #define __GTKTOPLEVELH__ //----------------------------------------------------------------------------- // wxTopLevelWindowGTK //----------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxTopLevelWindowGTK : public wxTopLevelWindowBase { public: // construction wxTopLevelWindowGTK() { Init(); } wxTopLevelWindowGTK(wxWindow *parent, wxWindowID id, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE, const wxString& name = wxFrameNameStr) { Init(); Create(parent, id, title, pos, size, style, name); } bool Create(wxWindow *parent, wxWindowID id, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE, const wxString& name = wxFrameNameStr); virtual ~wxTopLevelWindowGTK(); // implement base class pure virtuals virtual void Maximize(bool maximize = true); virtual bool IsMaximized() const; virtual void Iconize(bool iconize = true); virtual bool IsIconized() const; virtual void SetIcons(const wxIconBundle& icons); virtual void Restore(); virtual bool ShowFullScreen(bool show, long style = wxFULLSCREEN_ALL); virtual bool IsFullScreen() const { return m_fsIsShowing; } virtual bool SetShape(const wxRegion& region); virtual void RequestUserAttention(int flags = wxUSER_ATTENTION_INFO); virtual void SetWindowStyleFlag( long style ); virtual bool Show(bool show = true); virtual void Raise(); virtual bool IsActive(); virtual void SetTitle( const wxString &title ); virtual wxString GetTitle() const { return m_title; } // Experimental, to allow help windows to be // viewable from within modal dialogs virtual void AddGrab(); virtual void RemoveGrab(); virtual bool IsGrabbed() const { return m_grabbed; } // implementation from now on // -------------------------- // move the window to the specified location and resize it: this is called // from both DoSetSize() and DoSetClientSize() virtual void DoMoveWindow(int x, int y, int width, int height); // GTK callbacks virtual void GtkOnSize( int x, int y, int width, int height ); virtual void OnInternalIdle(); // do *not* call this to iconize the frame, this is a private function! void SetIconizeState(bool iconic); int m_miniEdge, m_miniTitle; GtkWidget *m_mainWidget; bool m_insertInClientArea; /* not from within OnCreateXXX */ bool m_fsIsShowing; /* full screen */ long m_fsSaveGdkFunc, m_fsSaveGdkDecor; long m_fsSaveFlag; wxRect m_fsSaveFrame; // m_windowStyle translated to GDK's terms long m_gdkFunc, m_gdkDecor; // private gtk_timeout_add result for mimicing wxUSER_ATTENTION_INFO and // wxUSER_ATTENTION_ERROR difference, -2 for no hint, -1 for ERROR hint, rest for GtkTimeout handle. int m_urgency_hint; protected: // common part of all ctors void Init(); // override wxWindow methods to take into account tool/menu/statusbars virtual void DoSetSize(int x, int y, int width, int height, int sizeFlags = wxSIZE_AUTO); virtual void DoSetClientSize(int width, int height); virtual void DoGetClientSize( int *width, int *height ) const; wxString m_title; // is the frame currently iconized? bool m_isIconized; // is the frame currently grabbed explicitly // by the application? bool m_grabbed; }; #endif // __GTKTOPLEVELH__
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/tooltip.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/gtk1/tooltip.h // Purpose: wxToolTip class // Author: Robert Roebling // Copyright: (c) 1998 Robert Roebling // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef __GTKTOOLTIPH__ #define __GTKTOOLTIPH__ #include "wx/defs.h" #include "wx/string.h" #include "wx/object.h" //----------------------------------------------------------------------------- // forward declarations //----------------------------------------------------------------------------- class WXDLLIMPEXP_FWD_CORE wxToolTip; class WXDLLIMPEXP_FWD_CORE wxWindow; //----------------------------------------------------------------------------- // wxToolTip //----------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxToolTip : public wxObject { public: // globally change the tooltip parameters static void Enable( bool flag ); static void SetDelay( long msecs ); // set the delay after which the tooltip disappears or how long the tooltip remains visible static void SetAutoPop(long msecs); // set the delay between subsequent tooltips to appear static void SetReshow(long msecs); wxToolTip( const wxString &tip ); // get/set the tooltip text void SetTip( const wxString &tip ); wxString GetTip() const { return m_text; } wxWindow *GetWindow() const { return m_window; } bool IsOk() const { return m_window != NULL; } // implementation void Apply( wxWindow *win ); private: wxString m_text; wxWindow *m_window; wxDECLARE_ABSTRACT_CLASS(wxToolTip); }; #endif // __GTKTOOLTIPH__
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/stattext.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/gtk1/stattext.h // Purpose: // Author: Robert Roebling // Copyright: (c) 1998 Robert Roebling // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef __GTKSTATICTEXTH__ #define __GTKSTATICTEXTH__ //----------------------------------------------------------------------------- // wxStaticText //----------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxStaticText : public wxStaticTextBase { public: wxStaticText(); wxStaticText(wxWindow *parent, wxWindowID id, const wxString &label, const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize, long style = 0, const wxString &name = wxStaticTextNameStr ); bool Create(wxWindow *parent, wxWindowID id, const wxString &label, const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize, long style = 0, const wxString &name = wxStaticTextNameStr ); virtual wxString GetLabel() const; virtual void SetLabel( const wxString &label ); virtual bool SetFont( const wxFont &font ); virtual bool SetForegroundColour( const wxColour& colour ); static wxVisualAttributes GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); protected: virtual void DoSetSize(int x, int y, int width, int height, int sizeFlags = wxSIZE_AUTO); virtual wxSize DoGetBestSize() const; wxDECLARE_DYNAMIC_CLASS(wxStaticText); }; #endif // __GTKSTATICTEXTH__
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/radiobut.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/gtk1/radiobut.h // Purpose: // Author: Robert Roebling // Copyright: (c) 1998 Robert Roebling // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef __GTKRADIOBUTTONH__ #define __GTKRADIOBUTTONH__ //----------------------------------------------------------------------------- // wxRadioButton //----------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxRadioButton: public wxControl { public: wxRadioButton() { } wxRadioButton( wxWindow *parent, wxWindowID id, const wxString& label, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxRadioButtonNameStr ) { Create( parent, id, label, pos, size, style, validator, name ); } bool Create( wxWindow *parent, wxWindowID id, const wxString& label, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxRadioButtonNameStr ); virtual void SetLabel(const wxString& label); virtual void SetValue(bool val); virtual bool GetValue() const; virtual bool Enable( bool enable = TRUE ); static wxVisualAttributes GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); // implementation virtual bool IsRadioButton() const { return TRUE; } void DoApplyWidgetStyle(GtkRcStyle *style); bool IsOwnGtkWindow( GdkWindow *window ); void OnInternalIdle(); bool m_blockEvent; protected: virtual wxSize DoGetBestSize() const; private: wxDECLARE_DYNAMIC_CLASS(wxRadioButton); }; #endif // __GTKRADIOBUTTONH__
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/radiobox.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/gtk1/radiobox.h // Purpose: // Author: Robert Roebling // Copyright: (c) 1998 Robert Roebling // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef _WX_GTK_RADIOBOX_H_ #define _WX_GTK_RADIOBOX_H_ #include "wx/bitmap.h" //----------------------------------------------------------------------------- // wxRadioBox //----------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxRadioBox : public wxControl, public wxRadioBoxBase { public: // ctors and dtor wxRadioBox() { Init(); } wxRadioBox(wxWindow *parent, wxWindowID id, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, int n = 0, const wxString choices[] = (const wxString *) NULL, int majorDim = 1, long style = wxRA_SPECIFY_COLS, const wxValidator& val = wxDefaultValidator, const wxString& name = wxRadioBoxNameStr) { Init(); Create( parent, id, title, pos, size, n, choices, majorDim, style, val, name ); } wxRadioBox(wxWindow *parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, const wxArrayString& choices, int majorDim = 1, long style = wxRA_SPECIFY_COLS, const wxValidator& val = wxDefaultValidator, const wxString& name = wxRadioBoxNameStr) { Init(); Create( parent, id, title, pos, size, choices, majorDim, style, val, name ); } bool Create(wxWindow *parent, wxWindowID id, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, int n = 0, const wxString choices[] = (const wxString *) NULL, int majorDim = 0, long style = wxRA_SPECIFY_COLS, const wxValidator& val = wxDefaultValidator, const wxString& name = wxRadioBoxNameStr); bool Create(wxWindow *parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, const wxArrayString& choices, int majorDim = 0, long style = wxRA_SPECIFY_COLS, const wxValidator& val = wxDefaultValidator, const wxString& name = wxRadioBoxNameStr); virtual ~wxRadioBox(); // implement wxItemContainerImmutable methods virtual unsigned int GetCount() const; virtual wxString GetString(unsigned int n) const; virtual void SetString(unsigned int n, const wxString& s); virtual void SetSelection(int n); virtual int GetSelection() const; // implement wxRadioBoxBase methods virtual bool Show(unsigned int n, bool show = true); virtual bool Enable(unsigned int n, bool enable = true); virtual bool IsItemEnabled(unsigned int n) const; virtual bool IsItemShown(unsigned int n) const; // override some base class methods to operate on radiobox itself too virtual bool Show( bool show = true ); virtual bool Enable( bool enable = true ); virtual void SetLabel( const wxString& label ); static wxVisualAttributes GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); // implementation // -------------- void SetFocus(); void GtkDisableEvents(); void GtkEnableEvents(); bool IsOwnGtkWindow( GdkWindow *window ); void DoApplyWidgetStyle(GtkRcStyle *style); #if wxUSE_TOOLTIPS void ApplyToolTip( GtkTooltips *tips, const wxChar *tip ); #endif // wxUSE_TOOLTIPS virtual void OnInternalIdle(); bool m_hasFocus, m_lostFocus; wxList m_boxes; protected: // common part of all ctors void Init(); private: wxDECLARE_DYNAMIC_CLASS(wxRadioBox); }; #endif // _WX_GTK_RADIOBOX_H_
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/checklst.h
/////////////////////////////////////////////////////////////////////////////// // Name: wx/gtk1/checklst.h // Purpose: wxCheckListBox class // Author: Robert Roebling // Modified by: // Copyright: (c) 1998 Robert Roebling // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// #ifndef __GTKCHECKLISTH__ #define __GTKCHECKLISTH__ // ---------------------------------------------------------------------------- // macros // ---------------------------------------------------------------------------- // there is no "right" choice of the checkbox indicators, so allow the user to // define them himself if he wants #ifndef wxCHECKLBOX_CHECKED #define wxCHECKLBOX_CHECKED wxT('x') #define wxCHECKLBOX_UNCHECKED wxT(' ') #define wxCHECKLBOX_STRING wxT("[ ] ") #endif //----------------------------------------------------------------------------- // wxCheckListBox // ---------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxCheckListBox : public wxCheckListBoxBase { public: wxCheckListBox(); wxCheckListBox(wxWindow *parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, int nStrings = 0, const wxString *choices = (const wxString *)NULL, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxListBoxNameStr); wxCheckListBox(wxWindow *parent, wxWindowID id, const wxPoint& pos, const wxSize& size, const wxArrayString& choices, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxListBoxNameStr); bool IsChecked(unsigned int index) const; void Check(unsigned int index, bool check = true); int GetItemHeight() const; private: wxDECLARE_DYNAMIC_CLASS(wxCheckListBox); }; #endif //__GTKCHECKLISTH__
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/listbox.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/gtk1/listbox.h // Purpose: wxListBox class declaration // Author: Robert Roebling // Copyright: (c) 1998 Robert Roebling // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef __GTKLISTBOXH__ #define __GTKLISTBOXH__ #include "wx/list.h" typedef struct _GtkList GtkList; class WXDLLIMPEXP_FWD_BASE wxSortedArrayString; //----------------------------------------------------------------------------- // wxListBox //----------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxListBox : public wxListBoxBase { public: // ctors and such wxListBox(); wxListBox( wxWindow *parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, int n = 0, const wxString choices[] = (const wxString *) NULL, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxListBoxNameStr ) { #if wxUSE_CHECKLISTBOX m_hasCheckBoxes = false; #endif // wxUSE_CHECKLISTBOX Create(parent, id, pos, size, n, choices, style, validator, name); } wxListBox( wxWindow *parent, wxWindowID id, const wxPoint& pos, const wxSize& size, const wxArrayString& choices, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxListBoxNameStr ) { #if wxUSE_CHECKLISTBOX m_hasCheckBoxes = false; #endif // wxUSE_CHECKLISTBOX Create(parent, id, pos, size, choices, style, validator, name); } virtual ~wxListBox(); bool Create(wxWindow *parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, int n = 0, const wxString choices[] = (const wxString *) NULL, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxListBoxNameStr); bool Create(wxWindow *parent, wxWindowID id, const wxPoint& pos, const wxSize& size, const wxArrayString& choices, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxListBoxNameStr); // implement base class pure virtuals virtual void DoClear(); virtual void DoDeleteOneItem(unsigned int n); virtual unsigned int GetCount() const; virtual wxString GetString(unsigned int n) const; virtual void SetString(unsigned int n, const wxString& s); virtual int FindString(const wxString& s, bool bCase = false) const; virtual bool IsSelected(int n) const; virtual void DoSetSelection(int n, bool select); virtual int GetSelection() const; virtual int GetSelections(wxArrayInt& aSelections) const; virtual int DoInsertItems(const wxArrayStringsAdapter& items, unsigned int pos, void **clientData, wxClientDataType type); virtual void DoSetFirstItem(int n); virtual void DoSetItemClientData(unsigned int n, void* clientData); virtual void* DoGetItemClientData(unsigned int n) const; static wxVisualAttributes GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); // implementation from now on void GtkAddItem( const wxString &item, int pos=-1 ); int GtkGetIndex( GtkWidget *item ) const; GtkWidget *GetConnectWidget(); bool IsOwnGtkWindow( GdkWindow *window ); void DoApplyWidgetStyle(GtkRcStyle *style); void OnInternalIdle(); #if wxUSE_TOOLTIPS void ApplyToolTip( GtkTooltips *tips, const wxChar *tip ); #endif // wxUSE_TOOLTIPS GtkList *m_list; wxList m_clientList; #if wxUSE_CHECKLISTBOX bool m_hasCheckBoxes; #endif // wxUSE_CHECKLISTBOX int m_prevSelection; bool m_blockEvent; virtual void FixUpMouseEvent(GtkWidget *widget, wxCoord& x, wxCoord& y); protected: virtual wxSize DoGetBestSize() const; // return the string label for the given item wxString GetRealLabel(struct _GList *item) const; // Widgets that use the style->base colour for the BG colour should // override this and return true. virtual bool UseGTKStyleBase() const { return true; } private: // this array is only used for controls with wxCB_SORT style, so only // allocate it if it's needed (hence using pointer) wxSortedArrayString *m_strings; wxDECLARE_DYNAMIC_CLASS(wxListBox); }; #endif // __GTKLISTBOXH__
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/fontdlg.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/gtk1/fontdlg.h // Purpose: wxFontDialog // Author: Robert Roebling // Created: // Copyright: (c) Robert Roebling // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef __GTK_FONTDLGH__ #define __GTK_FONTDLGH__ //----------------------------------------------------------------------------- // wxFontDialog //----------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxFontDialog : public wxFontDialogBase { public: wxFontDialog() : wxFontDialogBase() { /* must be Create()d later */ } wxFontDialog(wxWindow *parent) : wxFontDialogBase(parent) { Create(parent); } wxFontDialog(wxWindow *parent, const wxFontData& data) : wxFontDialogBase(parent, data) { Create(parent, data); } virtual ~wxFontDialog(); // implementation only void SetChosenFont(const char *name); protected: // create the GTK dialog virtual bool DoCreate(wxWindow *parent); private: wxDECLARE_DYNAMIC_CLASS(wxFontDialog); }; #endif
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/filedlg.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/gtk1/filedlg.h // Purpose: // Author: Robert Roebling // Copyright: (c) 1998 Robert Roebling // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef __GTKFILEDLGH__ #define __GTKFILEDLGH__ #include "wx/generic/filedlgg.h" //------------------------------------------------------------------------- // wxFileDialog //------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxFileDialog: public wxGenericFileDialog { public: wxFileDialog() { } wxFileDialog(wxWindow *parent, const wxString& message = wxFileSelectorPromptStr, const wxString& defaultDir = wxEmptyString, const wxString& defaultFile = wxEmptyString, const wxString& wildCard = wxFileSelectorDefaultWildcardStr, long style = wxFD_DEFAULT_STYLE, const wxPoint& pos = wxDefaultPosition, const wxSize& sz = wxDefaultSize, const wxString& name = wxFileDialogNameStr); virtual ~wxFileDialog(); virtual wxString GetPath() const; virtual void GetPaths(wxArrayString& paths) const; virtual wxString GetDirectory() const; virtual wxString GetFilename() const; virtual void GetFilenames(wxArrayString& files) const; virtual int GetFilterIndex() const; virtual void SetMessage(const wxString& message); virtual void SetPath(const wxString& path); virtual void SetDirectory(const wxString& dir); virtual void SetFilename(const wxString& name); virtual void SetWildcard(const wxString& wildCard); virtual void SetFilterIndex(int filterIndex); virtual int ShowModal(); virtual bool Show( bool show = true ); //private: bool m_destroyed_by_delete; // override this from wxTLW since the native // form doesn't have any m_wxwindow virtual void DoSetSize(int x, int y, int width, int height, int sizeFlags = wxSIZE_AUTO); private: wxDECLARE_DYNAMIC_CLASS(wxFileDialog); wxDECLARE_EVENT_TABLE(); void OnFakeOk( wxCommandEvent &event ); }; #endif // __GTKFILEDLGH__
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/spinbutt.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/gtk1/spinbutt.h // Purpose: wxSpinButton class // Author: Robert Roebling // Modified by: // Copyright: (c) Robert Roebling // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef _WX_GTK_SPINBUTT_H_ #define _WX_GTK_SPINBUTT_H_ //----------------------------------------------------------------------------- // wxSpinButton //----------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxSpinButton : public wxSpinButtonBase { public: wxSpinButton() { } wxSpinButton(wxWindow *parent, wxWindowID id = -1, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxSP_VERTICAL, const wxString& name = wxSPIN_BUTTON_NAME) { Create(parent, id, pos, size, style, name); } bool Create(wxWindow *parent, wxWindowID id = -1, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxSP_VERTICAL, const wxString& name = wxSPIN_BUTTON_NAME); virtual int GetValue() const; virtual void SetValue( int value ); virtual void SetRange( int minVal, int maxVal ); virtual int GetMin() const; virtual int GetMax() const; static wxVisualAttributes GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); // implementation void OnSize( wxSizeEvent &event ); bool IsOwnGtkWindow( GdkWindow *window ); GtkAdjustment *m_adjust; float m_oldPos; protected: virtual wxSize DoGetBestSize() const; private: wxDECLARE_EVENT_TABLE(); wxDECLARE_DYNAMIC_CLASS(wxSpinButton); }; #endif // _WX_GTK_SPINBUTT_H_
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/statbmp.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/gtk1/statbmp.h // Purpose: // Author: Robert Roebling // Copyright: (c) 1998 Robert Roebling // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef __GTKSTATICBITMAPH__ #define __GTKSTATICBITMAPH__ #include "wx/icon.h" //----------------------------------------------------------------------------- // wxStaticBitmap //----------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxStaticBitmap : public wxStaticBitmapBase { public: wxStaticBitmap(); wxStaticBitmap( wxWindow *parent, wxWindowID id, const wxBitmap& label, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxString& name = wxStaticBitmapNameStr ); bool Create( wxWindow *parent, wxWindowID id, const wxBitmap& label, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxString& name = wxStaticBitmapNameStr); virtual void SetIcon(const wxIcon& icon) { SetBitmap( icon ); } virtual void SetBitmap( const wxBitmap& bitmap ); virtual wxBitmap GetBitmap() const { return m_bitmap; } // for compatibility with wxMSW wxIcon GetIcon() const { // don't use wxDynamicCast, icons and bitmaps are really the same thing // in wxGTK return (const wxIcon &)m_bitmap; } static wxVisualAttributes GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); private: wxBitmap m_bitmap; wxDECLARE_DYNAMIC_CLASS(wxStaticBitmap); }; #endif // __GTKSTATICBITMAPH__
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/slider.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/gtk1/slider.h // Purpose: // Author: Robert Roebling // Copyright: (c) 1998 Robert Roebling // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef __GTKSLIDERH__ #define __GTKSLIDERH__ // ---------------------------------------------------------------------------- // wxSlider // ---------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxSlider : public wxSliderBase { public: wxSlider() { } wxSlider(wxWindow *parent, wxWindowID id, int value, int minValue, int maxValue, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxSL_HORIZONTAL, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxSliderNameStr) { Create( parent, id, value, minValue, maxValue, pos, size, style, validator, name ); } bool Create(wxWindow *parent, wxWindowID id, int value, int minValue, int maxValue, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxSL_HORIZONTAL, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxSliderNameStr); // implement the base class pure virtuals virtual int GetValue() const; virtual void SetValue(int value); virtual void SetRange(int minValue, int maxValue); virtual int GetMin() const; virtual int GetMax() const; virtual void SetLineSize(int lineSize); virtual void SetPageSize(int pageSize); virtual int GetLineSize() const; virtual int GetPageSize() const; virtual void SetThumbLength(int lenPixels); virtual int GetThumbLength() const; static wxVisualAttributes GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); // implementation bool IsOwnGtkWindow( GdkWindow *window ); void GtkDisableEvents(); void GtkEnableEvents(); GtkAdjustment *m_adjust; float m_oldPos; private: wxDECLARE_DYNAMIC_CLASS(wxSlider); }; #endif // __GTKSLIDERH__
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/menuitem.h
/////////////////////////////////////////////////////////////////////////////// // Name: wx/gtk1/menuitem.h // Purpose: wxMenuItem class // Author: Robert Roebling // Copyright: (c) 1998 Robert Roebling // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// #ifndef __GTKMENUITEMH__ #define __GTKMENUITEMH__ #include "wx/bitmap.h" //----------------------------------------------------------------------------- // wxMenuItem //----------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxMenuItem : public wxMenuItemBase { public: wxMenuItem(wxMenu *parentMenu = NULL, int id = wxID_SEPARATOR, const wxString& text = wxEmptyString, const wxString& help = wxEmptyString, wxItemKind kind = wxITEM_NORMAL, wxMenu *subMenu = NULL); virtual ~wxMenuItem(); // implement base class virtuals virtual void SetItemLabel( const wxString& str ); virtual wxString GetItemLabel() const; virtual void Enable( bool enable = TRUE ); virtual void Check( bool check = TRUE ); virtual bool IsChecked() const; virtual void SetBitmap(const wxBitmap& bitmap) { m_bitmap = bitmap; } virtual const wxBitmap& GetBitmap() const { return m_bitmap; } #if wxUSE_ACCEL virtual wxAcceleratorEntry *GetAccel() const; #endif // wxUSE_ACCEL // implementation void SetMenuItem(GtkWidget *menuItem) { m_menuItem = menuItem; } GtkWidget *GetMenuItem() const { return m_menuItem; } GtkWidget *GetLabelWidget() const { return m_labelWidget; } void SetLabelWidget(GtkWidget *labelWidget) { m_labelWidget = labelWidget; } wxString GetFactoryPath() const; wxString GetHotKey() const { return m_hotKey; } // compatibility only, don't use in new code wxMenuItem(wxMenu *parentMenu, int id, const wxString& text, const wxString& help, bool isCheckable, wxMenu *subMenu = NULL); private: // common part of all ctors void Init(); // DoSetText() transforms the accel mnemonics in our label from MSW/wxWin // style to GTK+ and is called from ctor and SetText() void DoSetText(const wxString& text); wxString m_hotKey; wxBitmap m_bitmap; // Bitmap for menuitem, if any GtkWidget *m_menuItem; // GtkMenuItem GtkWidget* m_labelWidget; // Label widget wxDECLARE_DYNAMIC_CLASS(wxMenuItem); }; #endif //__GTKMENUITEMH__
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/toolbar.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/gtk1/toolbar.h // Purpose: GTK toolbar // Author: Robert Roebling // Copyright: (c) Robert Roebling // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef _WX_GTK_TOOLBAR_H_ #define _WX_GTK_TOOLBAR_H_ #if wxUSE_TOOLBAR // ---------------------------------------------------------------------------- // wxToolBar // ---------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxToolBar : public wxToolBarBase { public: // construction/destruction wxToolBar() { Init(); } wxToolBar( wxWindow *parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxString& name = wxToolBarNameStr ) { Init(); Create(parent, id, pos, size, style, name); } bool Create( wxWindow *parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxString& name = wxToolBarNameStr ); virtual ~wxToolBar(); // override base class virtuals virtual void SetMargins(int x, int y); virtual void SetToolSeparation(int separation); virtual wxToolBarToolBase *FindToolForPosition(wxCoord x, wxCoord y) const; virtual void SetToolShortHelp(int id, const wxString& helpString); virtual void SetWindowStyleFlag( long style ); static wxVisualAttributes GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); // implementation from now on // -------------------------- GtkToolbar *m_toolbar; bool m_blockEvent; void OnInternalIdle(); protected: // common part of all ctors void Init(); // choose the default border for this window virtual wxBorder GetDefaultBorder() const { return wxBORDER_DEFAULT; } // set the GTK toolbar style and orientation void GtkSetStyle(); // implement base class pure virtuals virtual bool DoInsertTool(size_t pos, wxToolBarToolBase *tool); virtual bool DoDeleteTool(size_t pos, wxToolBarToolBase *tool); virtual void DoEnableTool(wxToolBarToolBase *tool, bool enable); virtual void DoToggleTool(wxToolBarToolBase *tool, bool toggle); virtual void DoSetToggle(wxToolBarToolBase *tool, bool toggle); virtual wxToolBarToolBase *CreateTool(int id, const wxString& label, const wxBitmap& bitmap1, const wxBitmap& bitmap2, wxItemKind kind, wxObject *clientData, const wxString& shortHelpString, const wxString& longHelpString); virtual wxToolBarToolBase *CreateTool(wxControl *control, const wxString& label); private: wxDECLARE_DYNAMIC_CLASS(wxToolBar); }; #endif // wxUSE_TOOLBAR #endif // _WX_GTK_TOOLBAR_H_
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/gauge.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/gtk1/gauge.h // Purpose: // Author: Robert Roebling // Copyright: (c) 1998 Robert Roebling // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef __GTKGAUGEH__ #define __GTKGAUGEH__ //----------------------------------------------------------------------------- // wxGaugeBox //----------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxGauge: public wxGaugeBase { public: wxGauge() { Init(); } wxGauge( wxWindow *parent, wxWindowID id, int range, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxGA_HORIZONTAL, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxGaugeNameStr ) { Init(); Create(parent, id, range, pos, size, style, validator, name); } bool Create( wxWindow *parent, wxWindowID id, int range, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxGA_HORIZONTAL, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxGaugeNameStr ); void SetRange( int r ); void SetValue( int pos ); int GetRange() const; int GetValue() const; bool IsVertical() const { return HasFlag(wxGA_VERTICAL); } static wxVisualAttributes GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); // implementation // ------------- // the max and current gauge values int m_rangeMax, m_gaugePos; protected: // common part of all ctors void Init() { m_rangeMax = m_gaugePos = 0; } // set the gauge value to the value of m_gaugePos void DoSetGauge(); virtual wxSize DoGetBestSize() const; virtual wxVisualAttributes GetDefaultAttributes() const; private: wxDECLARE_DYNAMIC_CLASS(wxGauge); }; #endif // __GTKGAUGEH__
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/spinctrl.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/gtk1/spinctrl.h // Purpose: wxSpinCtrl class // Author: Robert Roebling // Modified by: // Copyright: (c) Robert Roebling // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef __GTKSPINCTRLH__ #define __GTKSPINCTRLH__ #include "wx/defs.h" #if wxUSE_SPINCTRL #include "wx/control.h" //----------------------------------------------------------------------------- // wxSpinCtrl //----------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxSpinCtrl : public wxControl { public: wxSpinCtrl() {} wxSpinCtrl(wxWindow *parent, wxWindowID id = -1, const wxString& value = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxSP_ARROW_KEYS, int min = 0, int max = 100, int initial = 0, const wxString& name = wxT("wxSpinCtrl")) { Create(parent, id, value, pos, size, style, min, max, initial, name); } bool Create(wxWindow *parent, wxWindowID id = -1, const wxString& value = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxSP_ARROW_KEYS, int min = 0, int max = 100, int initial = 0, const wxString& name = wxT("wxSpinCtrl")); void SetValue(const wxString& text); void SetSelection(long from, long to); virtual int GetValue() const; virtual void SetValue( int value ); virtual void SetRange( int minVal, int maxVal ); virtual int GetMin() const; virtual int GetMax() const; static wxVisualAttributes GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); // implementation void OnChar( wxKeyEvent &event ); bool IsOwnGtkWindow( GdkWindow *window ); void GtkDisableEvents(); void GtkEnableEvents(); GtkAdjustment *m_adjust; float m_oldPos; virtual int GetBase() const { return m_base; } virtual bool SetBase(int base); protected: virtual wxSize DoGetBestSize() const; // Widgets that use the style->base colour for the BG colour should // override this and return true. virtual bool UseGTKStyleBase() const { return true; } private: // Common part of all ctors. void Init() { m_base = 10; } int m_base; wxDECLARE_DYNAMIC_CLASS(wxSpinCtrl); wxDECLARE_EVENT_TABLE(); }; #endif // wxUSE_SPINCTRL #endif // __GTKSPINCTRLH__
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/region.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/gtk1/region.h // Purpose: // Author: Robert Roebling // Copyright: (c) 1998 Robert Roebling // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef _WX_GTK_REGION_H_ #define _WX_GTK_REGION_H_ #include "wx/list.h" // ---------------------------------------------------------------------------- // wxRegion // ---------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxRegion : public wxRegionBase { public: wxRegion() { } wxRegion( wxCoord x, wxCoord y, wxCoord w, wxCoord h ) { InitRect(x, y, w, h); } wxRegion( const wxPoint& topLeft, const wxPoint& bottomRight ) { InitRect(topLeft.x, topLeft.y, bottomRight.x - topLeft.x, bottomRight.y - topLeft.y); } wxRegion( const wxRect& rect ) { InitRect(rect.x, rect.y, rect.width, rect.height); } wxRegion( size_t n, const wxPoint *points, wxPolygonFillMode fillStyle = wxODDEVEN_RULE ); wxRegion( const wxBitmap& bmp) { Union(bmp); } wxRegion( const wxBitmap& bmp, const wxColour& transColour, int tolerance = 0) { Union(bmp, transColour, tolerance); } virtual ~wxRegion(); // wxRegionBase methods virtual void Clear(); virtual bool IsEmpty() const; public: // Init with GdkRegion, set ref count to 2 so that // the C++ class will not destroy the region! wxRegion( GdkRegion *region ); GdkRegion *GetRegion() const; protected: virtual wxGDIRefData *CreateGDIRefData() const; virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const; // wxRegionBase pure virtuals virtual bool DoIsEqual(const wxRegion& region) const; virtual bool DoGetBox(wxCoord& x, wxCoord& y, wxCoord& w, wxCoord& h) const; virtual wxRegionContain DoContainsPoint(wxCoord x, wxCoord y) const; virtual wxRegionContain DoContainsRect(const wxRect& rect) const; virtual bool DoOffset(wxCoord x, wxCoord y); virtual bool DoUnionWithRect(const wxRect& rect); virtual bool DoUnionWithRegion(const wxRegion& region); virtual bool DoIntersect(const wxRegion& region); virtual bool DoSubtract(const wxRegion& region); virtual bool DoXor(const wxRegion& region); // common part of ctors for a rectangle region void InitRect(wxCoord x, wxCoord y, wxCoord w, wxCoord h); private: wxDECLARE_DYNAMIC_CLASS(wxRegion); }; // ---------------------------------------------------------------------------- // wxRegionIterator: decomposes a region into rectangles // ---------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxRegionIterator: public wxObject { public: wxRegionIterator(); wxRegionIterator(const wxRegion& region); void Reset() { m_current = 0u; } void Reset(const wxRegion& region); bool HaveRects() const; operator bool () const { return HaveRects(); } wxRegionIterator& operator ++ (); wxRegionIterator operator ++ (int); wxCoord GetX() const; wxCoord GetY() const; wxCoord GetW() const; wxCoord GetWidth() const { return GetW(); } wxCoord GetH() const; wxCoord GetHeight() const { return GetH(); } wxRect GetRect() const; private: size_t m_current; wxRegion m_region; private: wxDECLARE_DYNAMIC_CLASS(wxRegionIterator); }; #endif // _WX_GTK_REGION_H_
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/menu.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/gtk1/menu.h // Purpose: // Author: Robert Roebling // Copyright: (c) 1998 Robert Roebling, Julian Smart // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef __GTKMENUH__ #define __GTKMENUH__ //----------------------------------------------------------------------------- // wxMenuBar //----------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxMenuBar : public wxMenuBarBase { public: // ctors wxMenuBar(); wxMenuBar(long style); wxMenuBar(size_t n, wxMenu *menus[], const wxString titles[], long style = 0); virtual ~wxMenuBar(); // implement base class (pure) virtuals virtual bool Append( 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 *Remove(size_t pos); virtual int FindMenuItem(const wxString& menuString, const wxString& itemString) const; virtual wxMenuItem* FindItem( int id, wxMenu **menu = NULL ) const; virtual void EnableTop( size_t pos, bool flag ); virtual void SetMenuLabel( size_t pos, const wxString& label ); virtual wxString GetMenuLabel( size_t pos ) const; // common part of Append and Insert bool GtkAppend(wxMenu *menu, const wxString& title, int pos=-1); virtual void Attach(wxFrame *frame); virtual void Detach(); GtkAccelGroup *m_accel; GtkWidget *m_menubar; long m_style; private: void Init(size_t n, wxMenu *menus[], const wxString titles[], long style); wxDECLARE_DYNAMIC_CLASS(wxMenuBar); }; //----------------------------------------------------------------------------- // wxMenu //----------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxMenu : public wxMenuBase { public: // ctors & dtor wxMenu(const wxString& title, long style = 0) : wxMenuBase(title, style) { Init(); } wxMenu(long style = 0) : wxMenuBase(style) { Init(); } virtual ~wxMenu(); // implement base class virtuals virtual wxMenuItem* DoAppend(wxMenuItem *item); virtual wxMenuItem* DoInsert(size_t pos, wxMenuItem *item); virtual wxMenuItem* DoRemove(wxMenuItem *item); // Returns the title, with mnemonics translated to wx format wxString GetTitle() const; // TODO: virtual void SetTitle(const wxString& title); // implementation int FindMenuIdByMenuItem( GtkWidget *menuItem ) const; // implementation GTK only GtkWidget *m_menu; // GtkMenu GtkWidget *m_owner; GtkAccelGroup *m_accel; private: // common code for all constructors: void Init(); // common part of Append (if pos == -1) and Insert bool GtkAppend(wxMenuItem *item, int pos=-1); GtkWidget *m_prevRadio; wxDECLARE_DYNAMIC_CLASS(wxMenu); }; #endif // __GTKMENUH__
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/colour.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/gtk1/colour.h // Purpose: // Author: Robert Roebling // Copyright: (c) 1998 Robert Roebling // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef __GTKCOLOURH__ #define __GTKCOLOURH__ #include "wx/defs.h" #include "wx/object.h" #include "wx/string.h" #include "wx/gdiobj.h" #include "wx/palette.h" //----------------------------------------------------------------------------- // classes //----------------------------------------------------------------------------- class WXDLLIMPEXP_FWD_CORE wxDC; class WXDLLIMPEXP_FWD_CORE wxPaintDC; class WXDLLIMPEXP_FWD_CORE wxBitmap; class WXDLLIMPEXP_FWD_CORE wxWindow; class WXDLLIMPEXP_FWD_CORE wxColour; //----------------------------------------------------------------------------- // wxColour //----------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxColour : public wxColourBase { public: // constructors // ------------ DEFINE_STD_WXCOLOUR_CONSTRUCTORS virtual ~wxColour(); virtual bool FromString(const wxString& str); bool operator==(const wxColour& col) const; bool operator!=(const wxColour& col) const { return !(*this == col); } unsigned char Red() const; unsigned char Green() const; unsigned char Blue() const; // Implementation part void CalcPixel( GdkColormap *cmap ); int GetPixel() const; GdkColor *GetColor() const; protected: // ref counting code virtual wxGDIRefData *CreateGDIRefData() const; virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const; virtual void InitRGBA(unsigned char r, unsigned char g, unsigned char b, unsigned char a); private: wxDECLARE_DYNAMIC_CLASS(wxColour); }; #endif // __GTKCOLOURH__
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/checkbox.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/gtk1/checkbox.h // Purpose: // Author: Robert Roebling // Copyright: (c) 1998 Robert Roebling // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef __GTKCHECKBOXH__ #define __GTKCHECKBOXH__ // ---------------------------------------------------------------------------- // wxCheckBox // ---------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxCheckBox : public wxCheckBoxBase { public: wxCheckBox(); wxCheckBox( wxWindow *parent, wxWindowID id, const wxString& label, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxCheckBoxNameStr) { Create(parent, id, label, pos, size, style, validator, name); } bool Create(wxWindow *parent, wxWindowID id, const wxString& label, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxCheckBoxNameStr ); void SetValue( bool state ); bool GetValue() const; virtual void SetLabel( const wxString& label ); virtual bool Enable( bool enable = TRUE ); static wxVisualAttributes GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); // implementation // -------------- void DoApplyWidgetStyle(GtkRcStyle *style); bool IsOwnGtkWindow( GdkWindow *window ); void OnInternalIdle(); GtkWidget *m_widgetCheckbox; GtkWidget *m_widgetLabel; bool m_blockEvent; protected: virtual wxSize DoGetBestSize() const; private: wxDECLARE_DYNAMIC_CLASS(wxCheckBox); }; #endif // __GTKCHECKBOXH__
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/bmpbuttn.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/gtk1/bmpbutton.h // Purpose: // Author: Robert Roebling // Copyright: (c) 1998 Robert Roebling // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef __BMPBUTTONH__ #define __BMPBUTTONH__ // ---------------------------------------------------------------------------- // wxBitmapButton // ---------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxBitmapButton: public wxBitmapButtonBase { public: wxBitmapButton() { Init(); } wxBitmapButton(wxWindow *parent, wxWindowID id, const wxBitmap& bitmap, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxButtonNameStr) { Init(); Create(parent, id, bitmap, pos, size, style, validator, name); } bool Create(wxWindow *parent, wxWindowID id, const wxBitmap& bitmap, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxButtonNameStr); void SetLabel( const wxString &label ); virtual void SetLabel( const wxBitmap& bitmap ) { SetBitmapLabel(bitmap); } virtual bool Enable(bool enable = TRUE); // implementation // -------------- void GTKSetHasFocus(); void GTKSetNotFocus(); void StartSelect(); void EndSelect(); void DoApplyWidgetStyle(GtkRcStyle *style); bool m_hasFocus:1; bool m_isSelected:1; protected: virtual void OnSetBitmap(); virtual wxSize DoGetBestSize() const; void Init(); private: wxDECLARE_DYNAMIC_CLASS(wxBitmapButton); }; #endif // __BMPBUTTONH__
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/win_gtk.h
/* /////////////////////////////////////////////////////////////////////////// // Name: wx/gtk1/win_gtk.h // Purpose: wxWidgets's GTK base widget = GtkPizza // Author: Robert Roebling // Copyright: (c) 1998 Robert Roebling // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////// */ #ifndef __GTK_PIZZA_H__ #define __GTK_PIZZA_H__ #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ #include <gdk/gdk.h> #include <gdk/gdkx.h> #include <gtk/gtkcontainer.h> #include <gtk/gtkadjustment.h> #include <gtk/gtkfeatures.h> #include "wx/dlimpexp.h" #define GTK_PIZZA(obj) GTK_CHECK_CAST (obj, gtk_pizza_get_type (), GtkPizza) #define GTK_PIZZA_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, gtk_pizza_get_type (), GtkPizzaClass) #define GTK_IS_PIZZA(obj) GTK_CHECK_TYPE (obj, gtk_pizza_get_type ()) /* Shadow types */ typedef enum { GTK_MYSHADOW_NONE, GTK_MYSHADOW_THIN, GTK_MYSHADOW_IN, GTK_MYSHADOW_OUT } GtkMyShadowType; typedef struct _GtkPizzaChild GtkPizzaChild; typedef struct _GtkPizza GtkPizza; typedef struct _GtkPizzaClass GtkPizzaClass; struct _GtkPizzaChild { GtkWidget *widget; gint x; gint y; gint width; gint height; }; struct _GtkPizza { GtkContainer container; GList *children; GtkMyShadowType shadow_type; guint width; guint height; guint xoffset; guint yoffset; GdkWindow *bin_window; GdkVisibilityState visibility; gulong configure_serial; gint scroll_x; gint scroll_y; gboolean clear_on_draw; gboolean use_filter; gboolean external_expose; }; struct _GtkPizzaClass { GtkContainerClass parent_class; void (*set_scroll_adjustments) (GtkPizza *pizza, GtkAdjustment *hadjustment, GtkAdjustment *vadjustment); }; WXDLLIMPEXP_CORE GtkType gtk_pizza_get_type (void); WXDLLIMPEXP_CORE GtkWidget* gtk_pizza_new (void); WXDLLIMPEXP_CORE void gtk_pizza_set_shadow_type (GtkPizza *pizza, GtkMyShadowType type); WXDLLIMPEXP_CORE void gtk_pizza_set_clear (GtkPizza *pizza, gboolean clear); WXDLLIMPEXP_CORE void gtk_pizza_set_filter (GtkPizza *pizza, gboolean use); WXDLLIMPEXP_CORE void gtk_pizza_set_external (GtkPizza *pizza, gboolean expose); WXDLLIMPEXP_CORE void gtk_pizza_scroll (GtkPizza *pizza, gint dx, gint dy); WXDLLIMPEXP_CORE gint gtk_pizza_child_resized (GtkPizza *pizza, GtkWidget *widget); WXDLLIMPEXP_CORE void gtk_pizza_put (GtkPizza *pizza, GtkWidget *widget, gint x, gint y, gint width, gint height); WXDLLIMPEXP_CORE void gtk_pizza_move (GtkPizza *pizza, GtkWidget *widget, gint x, gint y ); WXDLLIMPEXP_CORE void gtk_pizza_resize (GtkPizza *pizza, GtkWidget *widget, gint width, gint height ); WXDLLIMPEXP_CORE void gtk_pizza_set_size (GtkPizza *pizza, GtkWidget *widget, gint x, gint y, gint width, gint height); #ifdef __cplusplus } #endif /* __cplusplus */ #endif /* __GTK_PIZZA_H__ */
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/mdi.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/gtk1/mdi.h // Purpose: TDI-based MDI implementation for wxGTK1 // Author: Robert Roebling // Modified by: 2008-10-31 Vadim Zeitlin: derive from the base classes // Copyright: (c) 1998 Robert Roebling // (c) 2008 Vadim Zeitlin // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef _WX_GTK1_MDI_H_ #define _WX_GTK1_MDI_H_ #include "wx/frame.h" class WXDLLIMPEXP_FWD_CORE wxMDIChildFrame; class WXDLLIMPEXP_FWD_CORE wxMDIClientWindow; typedef struct _GtkNotebook GtkNotebook; //----------------------------------------------------------------------------- // wxMDIParentFrame //----------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxMDIParentFrame : public wxMDIParentFrameBase { public: wxMDIParentFrame() { Init(); } wxMDIParentFrame(wxWindow *parent, wxWindowID id, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL, const wxString& name = wxFrameNameStr) { Init(); (void)Create(parent, id, title, pos, size, style, name); } bool Create(wxWindow *parent, wxWindowID id, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL, const wxString& name = wxFrameNameStr); // we don't store the active child in m_currentChild unlike the base class // version so override this method to find it dynamically virtual wxMDIChildFrame *GetActiveChild() const; // implement base class pure virtuals // ---------------------------------- virtual void ActivateNext(); virtual void ActivatePrevious(); static bool IsTDI() { return true; } // implementation bool m_justInserted; virtual void GtkOnSize( int x, int y, int width, int height ); virtual void OnInternalIdle(); private: void Init(); wxDECLARE_DYNAMIC_CLASS(wxMDIParentFrame); }; //----------------------------------------------------------------------------- // wxMDIChildFrame //----------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxMDIChildFrame : public wxTDIChildFrame { public: wxMDIChildFrame() { Init(); } wxMDIChildFrame(wxMDIParentFrame *parent, wxWindowID id, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE, const wxString& name = wxFrameNameStr) { Init(); Create(parent, id, title, pos, size, style, name); } bool Create(wxMDIParentFrame *parent, wxWindowID id, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE, const wxString& name = wxFrameNameStr); virtual ~wxMDIChildFrame(); virtual void SetMenuBar( wxMenuBar *menu_bar ); virtual wxMenuBar *GetMenuBar() const; virtual void Activate(); virtual void SetTitle(const wxString& title); // implementation void OnActivate( wxActivateEvent& event ); void OnMenuHighlight( wxMenuEvent& event ); wxMenuBar *m_menuBar; GtkNotebookPage *m_page; bool m_justInserted; private: void Init(); GtkNotebook *GTKGetNotebook() const; wxDECLARE_EVENT_TABLE(); wxDECLARE_DYNAMIC_CLASS(wxMDIChildFrame); }; //----------------------------------------------------------------------------- // wxMDIClientWindow //----------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxMDIClientWindow : public wxMDIClientWindowBase { public: wxMDIClientWindow() { } virtual bool CreateClient(wxMDIParentFrame *parent, long style = wxVSCROLL | wxHSCROLL); private: wxDECLARE_DYNAMIC_CLASS(wxMDIClientWindow); }; #endif // _WX_GTK1_MDI_H_
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/private.h
/////////////////////////////////////////////////////////////////////////////// // Name: wx/gtk1/private.h // Purpose: wxGTK private macros, functions &c // Author: Vadim Zeitlin // Modified by: // Created: 12.03.02 // Copyright: (c) 2002 Vadim Zeitlin <[email protected]> // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// #ifndef _WX_GTK_PRIVATE_H_ #define _WX_GTK_PRIVATE_H_ #include <gdk/gdk.h> #include <gtk/gtk.h> #include "wx/event.h" // fail all version tests if the GTK+ version is so ancient that it doesn't // even have GTK_CHECK_VERSION #ifndef GTK_CHECK_VERSION #define GTK_CHECK_VERSION(a, b, c) 0 #endif #define wxGTK_CONV(s) s.c_str() #define wxGTK_CONV_BACK(s) s // child is not a member of GTK_BUTTON() any more in GTK+ 2.0 #define BUTTON_CHILD(w) GTK_BUTTON((w))->child // event_window has disappeared from GtkToggleButton in GTK+ 2.0 #define TOGGLE_BUTTON_EVENT_WIN(w) GTK_TOGGLE_BUTTON((w))->event_window // gtk_editable_{copy|cut|paste}_clipboard() had an extra argument under // previous GTK+ versions but no more #if defined(__WXGTK20__) || (GTK_MINOR_VERSION > 0) #define DUMMY_CLIPBOARD_ARG #else #define DUMMY_CLIPBOARD_ARG ,0 #endif // _GtkEditable is private in GTK2 #define GET_EDITABLE_POS(w) GTK_EDITABLE((w))->current_pos #define SET_EDITABLE_POS(w, pos) \ GTK_EDITABLE((w))->current_pos = (pos) // this GtkNotebook struct field has been renamed in GTK2 #define NOTEBOOK_PANEL(nb) GTK_NOTEBOOK(nb)->panel #define SCROLLBAR_CBACK_ARG #define GET_SCROLL_TYPE(w) GTK_RANGE((w))->scroll_type // translate a GTK+ scroll type to a wxEventType inline wxEventType GtkScrollTypeToWx(guint scrollType) { wxEventType command; switch ( scrollType ) { case GTK_SCROLL_STEP_BACKWARD: command = wxEVT_SCROLL_LINEUP; break; case GTK_SCROLL_STEP_FORWARD: command = wxEVT_SCROLL_LINEDOWN; break; case GTK_SCROLL_PAGE_BACKWARD: command = wxEVT_SCROLL_PAGEUP; break; case GTK_SCROLL_PAGE_FORWARD: command = wxEVT_SCROLL_PAGEDOWN; break; default: command = wxEVT_SCROLL_THUMBTRACK; } return command; } inline wxEventType GtkScrollWinTypeToWx(guint scrollType) { // GtkScrollTypeToWx() returns SCROLL_XXX, not SCROLLWIN_XXX as we need return GtkScrollTypeToWx(scrollType) + wxEVT_SCROLLWIN_TOP - wxEVT_SCROLL_TOP; } // Needed for implementing e.g. combobox on wxGTK within a modal dialog. void wxAddGrab(wxWindow* window); void wxRemoveGrab(wxWindow* window); #endif // _WX_GTK_PRIVATE_H_
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/accel.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/gtk1/accel.h // Purpose: wxAcceleratorTable redirection file // Author: Julian Smart // Modified by: // Created: // Copyright: (c) Julian Smart // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// // VZ: keeping the old file just in case we're going to have a native GTK+ // wxAcceleratorTable implementation one day, but for now use the generic // version #include "wx/generic/accel.h"
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/scrolbar.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/gtk1/scrolbar.h // Purpose: // Author: Robert Roebling // Copyright: (c) 1998 Robert Roebling // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef __GTKSCROLLBARH__ #define __GTKSCROLLBARH__ #include "wx/defs.h" //----------------------------------------------------------------------------- // classes //----------------------------------------------------------------------------- class WXDLLIMPEXP_FWD_CORE wxScrollBar; //----------------------------------------------------------------------------- // wxScrollBar //----------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxScrollBar: public wxScrollBarBase { public: wxScrollBar() { m_adjust = NULL; m_oldPos = 0.0; } inline wxScrollBar( wxWindow *parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxSB_HORIZONTAL, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxScrollBarNameStr ) { Create( parent, id, pos, size, style, validator, name ); } bool Create( wxWindow *parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxSB_HORIZONTAL, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxScrollBarNameStr ); virtual ~wxScrollBar(); int GetThumbPosition() const; int GetThumbSize() const; int GetPageSize() const; int GetRange() const; virtual void SetThumbPosition( int viewStart ); virtual void SetScrollbar( int position, int thumbSize, int range, int pageSize, bool refresh = TRUE ); // Backward compatibility // ---------------------- int GetValue(void) const; void SetValue( int viewStart ); void GetValues( int *viewStart, int *viewLength, int *objectLength, int *pageLength) const; int GetViewLength() const; int GetObjectLength() const; void SetPageSize( int pageLength ); void SetObjectLength( int objectLength ); void SetViewLength( int viewLength ); static wxVisualAttributes GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); // implementation // -------------- bool IsOwnGtkWindow( GdkWindow *window ); GtkAdjustment *m_adjust; float m_oldPos; protected: virtual wxSize DoGetBestSize() const; private: wxDECLARE_DYNAMIC_CLASS(wxScrollBar); }; #endif // __GTKSCROLLBARH__
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/choice.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/gtk1/choice.h // Purpose: // Author: Robert Roebling // Copyright: (c) 1998 Robert Roebling // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef __GTKCHOICEH__ #define __GTKCHOICEH__ class WXDLLIMPEXP_FWD_BASE wxSortedArrayString; class WXDLLIMPEXP_FWD_BASE wxArrayString; //----------------------------------------------------------------------------- // wxChoice //----------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxChoice : public wxChoiceBase { public: wxChoice(); wxChoice( wxWindow *parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, int n = 0, const wxString choices[] = (const wxString *) NULL, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxChoiceNameStr ) { m_strings = NULL; Create(parent, id, pos, size, n, choices, style, validator, name); } wxChoice( wxWindow *parent, wxWindowID id, const wxPoint& pos, const wxSize& size, const wxArrayString& choices, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxChoiceNameStr ) { m_strings = NULL; Create(parent, id, pos, size, choices, style, validator, name); } virtual ~wxChoice(); bool Create( wxWindow *parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, int n = 0, const wxString choices[] = NULL, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxChoiceNameStr ); bool Create( wxWindow *parent, wxWindowID id, const wxPoint& pos, const wxSize& size, const wxArrayString& choices, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxChoiceNameStr ); // implement base class pure virtuals void DoDeleteOneItem(unsigned int n); void DoClear(); int GetSelection() const; virtual void SetSelection(int n); virtual unsigned int GetCount() const; virtual int FindString(const wxString& s, bool bCase = false) const; virtual wxString GetString(unsigned int n) const; virtual void SetString(unsigned int n, const wxString& string); static wxVisualAttributes GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); protected: wxList m_clientList; // contains the client data for the items void DoApplyWidgetStyle(GtkRcStyle *style); virtual int DoInsertItems(const wxArrayStringsAdapter& items, unsigned int pos, void **clientData, wxClientDataType type); virtual void DoSetItemClientData(unsigned int n, void* clientData); virtual void* DoGetItemClientData(unsigned int n) const; virtual wxSize DoGetBestSize() const; virtual bool IsOwnGtkWindow( GdkWindow *window ); private: // DoInsertItems() helper int GtkAddHelper(GtkWidget *menu, unsigned int pos, const wxString& item); // this array is only used for controls with wxCB_SORT style, so only // allocate it if it's needed (hence using pointer) wxSortedArrayString *m_strings; public: // this circumvents a GTK+ 2.0 bug so that the selection is // invalidated properly int m_selection_hack; private: wxDECLARE_DYNAMIC_CLASS(wxChoice); }; #endif // __GTKCHOICEH__
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/bitmap.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/gtk1/bitmap.h // Purpose: // Author: Robert Roebling // Copyright: (c) 1998 Robert Roebling // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef __GTKBITMAPH__ #define __GTKBITMAPH__ #include "wx/defs.h" #include "wx/object.h" #include "wx/string.h" #include "wx/palette.h" #include "wx/gdiobj.h" class WXDLLIMPEXP_FWD_CORE wxPixelDataBase; //----------------------------------------------------------------------------- // classes //----------------------------------------------------------------------------- class WXDLLIMPEXP_FWD_CORE wxMask; class WXDLLIMPEXP_FWD_CORE wxBitmap; class WXDLLIMPEXP_FWD_CORE wxImage; //----------------------------------------------------------------------------- // wxMask //----------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxMask: public wxObject { public: wxMask(); wxMask( const wxBitmap& bitmap, const wxColour& colour ); #if wxUSE_PALETTE wxMask( const wxBitmap& bitmap, int paletteIndex ); #endif // wxUSE_PALETTE wxMask( const wxBitmap& bitmap ); virtual ~wxMask(); bool Create( const wxBitmap& bitmap, const wxColour& colour ); #if wxUSE_PALETTE bool Create( const wxBitmap& bitmap, int paletteIndex ); #endif // wxUSE_PALETTE bool Create( const wxBitmap& bitmap ); // implementation GdkBitmap *m_bitmap; GdkBitmap *GetBitmap() const; private: wxDECLARE_DYNAMIC_CLASS(wxMask); }; //----------------------------------------------------------------------------- // wxBitmap //----------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxBitmap: public wxBitmapBase { public: wxBitmap() {} wxBitmap( int width, int height, int depth = -1 ) { Create( width, height, depth ); } wxBitmap( const wxSize& sz, int depth = -1 ) { Create( sz, depth ); } wxBitmap( const char bits[], int width, int height, int depth = 1 ); wxBitmap( const char* const* bits ); #ifdef wxNEEDS_CHARPP // needed for old GCC wxBitmap(char** data) { *this = wxBitmap(const_cast<const char* const*>(data)); } #endif wxBitmap( const wxString &filename, wxBitmapType type = wxBITMAP_DEFAULT_TYPE ); wxBitmap( const wxImage& image, int depth = -1, double WXUNUSED(scale) = 1.0 ) { (void)CreateFromImage(image, depth); } virtual ~wxBitmap(); bool Create(int width, int height, int depth = wxBITMAP_SCREEN_DEPTH); bool Create(const wxSize& sz, int depth = wxBITMAP_SCREEN_DEPTH) { return Create(sz.GetWidth(), sz.GetHeight(), depth); } bool Create(int width, int height, const wxDC& WXUNUSED(dc)) { return Create(width,height); } virtual int GetHeight() const; virtual int GetWidth() const; virtual int GetDepth() const; wxImage ConvertToImage() const; // copies the contents and mask of the given (colour) icon to the bitmap virtual bool CopyFromIcon(const wxIcon& icon); wxMask *GetMask() const; void SetMask( wxMask *mask ); wxBitmap GetSubBitmap( const wxRect& rect ) const; bool SaveFile(const wxString &name, wxBitmapType type, const wxPalette *palette = NULL) const; bool LoadFile(const wxString &name, wxBitmapType type = wxBITMAP_DEFAULT_TYPE); #if wxUSE_PALETTE wxPalette *GetPalette() const; void SetPalette(const wxPalette& palette); wxPalette *GetColourMap() const { return GetPalette(); } #endif // wxUSE_PALETTE static void InitStandardHandlers(); // implementation // -------------- void SetHeight( int height ); void SetWidth( int width ); void SetDepth( int depth ); void SetPixmap( GdkPixmap *pixmap ); void SetBitmap( GdkBitmap *bitmap ); GdkPixmap *GetPixmap() const; GdkBitmap *GetBitmap() const; bool HasPixmap() const; // Basically, this corresponds to Win32 StretchBlt() wxBitmap Rescale( int clipx, int clipy, int clipwidth, int clipheight, int width, int height ); // raw bitmap access support functions void *GetRawData(wxPixelDataBase& data, int bpp); void UngetRawData(wxPixelDataBase& data); bool HasAlpha() const; protected: bool CreateFromImage(const wxImage& image, int depth); virtual wxGDIRefData *CreateGDIRefData() const; virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const; private: // to be called from CreateFromImage only! bool CreateFromImageAsBitmap(const wxImage& image); bool CreateFromImageAsPixmap(const wxImage& image); friend class wxBitmapHandler; private: wxDECLARE_DYNAMIC_CLASS(wxBitmap); }; #endif // __GTKBITMAPH__
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/minifram.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/gtk1/minifram.h // Purpose: wxMiniFrame class // Author: Robert Roebling // Copyright: (c) Robert Roebling // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef __GTKMINIFRAMEH__ #define __GTKMINIFRAMEH__ #include "wx/defs.h" #if wxUSE_MINIFRAME #include "wx/object.h" #include "wx/frame.h" //----------------------------------------------------------------------------- // classes //----------------------------------------------------------------------------- class WXDLLIMPEXP_FWD_CORE wxMiniFrame; //----------------------------------------------------------------------------- // wxMiniFrame //----------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxMiniFrame: public wxFrame { wxDECLARE_DYNAMIC_CLASS(wxMiniFrame); public: wxMiniFrame() {} wxMiniFrame(wxWindow *parent, wxWindowID id, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE | wxTINY_CAPTION, const wxString& name = wxFrameNameStr) { Create(parent, id, title, pos, size, style, name); } bool Create(wxWindow *parent, wxWindowID id, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE | wxTINY_CAPTION, const wxString& name = wxFrameNameStr); virtual void SetTitle( const wxString &title ); // implementation bool m_isDragging; int m_oldX,m_oldY; int m_diffX,m_diffY; }; #endif #endif // __GTKMINIFRAMEH__
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/pen.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/gtk1/pen.h // Purpose: // Author: Robert Roebling // Copyright: (c) 1998 Robert Roebling // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef __GTKPENH__ #define __GTKPENH__ #include "wx/defs.h" #include "wx/object.h" #include "wx/string.h" #include "wx/gdiobj.h" #include "wx/gdicmn.h" //----------------------------------------------------------------------------- // classes //----------------------------------------------------------------------------- class WXDLLIMPEXP_FWD_CORE wxPen; #if defined(__WXGTK127__) typedef signed char wxGTKDash; #else typedef char wxGTKDash; #endif //----------------------------------------------------------------------------- // wxPen //----------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxPen: public wxPenBase { public: wxPen() { } wxPen( const wxColour &colour, int width = 1, wxPenStyle style = wxPENSTYLE_SOLID ); wxPen( const wxPenInfo& info ); bool operator==(const wxPen& pen) const; bool operator!=(const wxPen& pen) const { return !(*this == pen); } void SetColour( const wxColour &colour ); void SetColour( unsigned char red, unsigned char green, unsigned char blue ); void SetCap( wxPenCap capStyle ); void SetJoin( wxPenJoin joinStyle ); void SetStyle( wxPenStyle style ); void SetWidth( int width ); void SetDashes( int number_of_dashes, const wxDash *dash ); void SetStipple(const wxBitmap& stipple); wxColour GetColour() const; wxPenCap GetCap() const; wxPenJoin GetJoin() const; wxPenStyle GetStyle() const; int GetWidth() const; int GetDashes(wxDash **ptr) const; int GetDashCount() const; wxDash* GetDash() const; wxBitmap *GetStipple() const; wxDEPRECATED_MSG("use wxPENSTYLE_XXX constants") wxPen(const wxColour& col, int width, int style); wxDEPRECATED_MSG("use wxPENSTYLE_XXX constants") void SetStyle(int style) { SetStyle((wxPenStyle)style); } private: virtual wxGDIRefData *CreateGDIRefData() const; virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const; wxDECLARE_DYNAMIC_CLASS(wxPen); }; #endif // __GTKPENH__
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/dialog.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/gtk1/dialog.h // Purpose: // Author: Robert Roebling // Created: // Copyright: (c) 1998 Robert Roebling // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef __GTKDIALOGH__ #define __GTKDIALOGH__ //----------------------------------------------------------------------------- // wxDialog //----------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxDialog: public wxDialogBase { public: wxDialog() { Init(); } wxDialog( wxWindow *parent, wxWindowID id, const wxString &title, const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE, const wxString &name = wxDialogNameStr ); bool Create( wxWindow *parent, wxWindowID id, const wxString &title, const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE, const wxString &name = wxDialogNameStr ); virtual ~wxDialog() {} void OnApply( wxCommandEvent &event ); void OnCancel( wxCommandEvent &event ); void OnOK( wxCommandEvent &event ); void OnPaint( wxPaintEvent& event ); void OnCloseWindow( wxCloseEvent& event ); /* void OnCharHook( wxKeyEvent& event ); */ virtual bool Show( bool show = TRUE ); virtual int ShowModal(); virtual void EndModal( int retCode ); virtual bool IsModal() const; void SetModal( bool modal ); // implementation // -------------- bool m_modalShowing; protected: // common part of all ctors void Init(); private: wxDECLARE_EVENT_TABLE(); wxDECLARE_DYNAMIC_CLASS(wxDialog); }; #endif // __GTKDIALOGH__
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/dataobj2.h
/////////////////////////////////////////////////////////////////////////////// // Name: wx/gtk1/dataobj2.h // Purpose: declaration of standard wxDataObjectSimple-derived classes // Author: Robert Roebling // Created: 19.10.99 (extracted from gtk/dataobj.h) // Copyright: (c) 1998, 1999 Vadim Zeitlin, Robert Roebling // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// #ifndef _WX_GTK_DATAOBJ2_H_ #define _WX_GTK_DATAOBJ2_H_ // ---------------------------------------------------------------------------- // wxBitmapDataObject is a specialization of wxDataObject for bitmaps // ---------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxBitmapDataObject : public wxBitmapDataObjectBase { public: // ctors wxBitmapDataObject(); wxBitmapDataObject(const wxBitmap& bitmap); // destr virtual ~wxBitmapDataObject(); // override base class virtual to update PNG data too virtual void SetBitmap(const wxBitmap& bitmap); // implement base class pure virtuals // ---------------------------------- virtual size_t GetDataSize() const { return m_pngSize; } virtual bool GetDataHere(void *buf) const; virtual bool SetData(size_t len, const void *buf); protected: void Init() { m_pngData = NULL; m_pngSize = 0; } void Clear() { free(m_pngData); } void ClearAll() { Clear(); Init(); } size_t m_pngSize; void *m_pngData; void DoConvertToPng(); private: // virtual function hiding supression size_t GetDataSize(const wxDataFormat& format) const { return(wxDataObjectSimple::GetDataSize(format)); } bool GetDataHere(const wxDataFormat& format, void* pBuf) const { return(wxDataObjectSimple::GetDataHere(format, pBuf)); } bool SetData(const wxDataFormat& format, size_t nLen, const void* pBuf) { return(wxDataObjectSimple::SetData(format, nLen, pBuf)); } }; // ---------------------------------------------------------------------------- // wxFileDataObject is a specialization of wxDataObject for file names // ---------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxFileDataObject : public wxFileDataObjectBase { public: // implement base class pure virtuals // ---------------------------------- void AddFile( const wxString &filename ); virtual size_t GetDataSize() const; virtual bool GetDataHere(void *buf) const; virtual bool SetData(size_t len, const void *buf); private: // virtual function hiding supression size_t GetDataSize(const wxDataFormat& format) const { return(wxDataObjectSimple::GetDataSize(format)); } bool GetDataHere(const wxDataFormat& format, void* pBuf) const { return(wxDataObjectSimple::GetDataHere(format, pBuf)); } bool SetData(const wxDataFormat& format, size_t nLen, const void* pBuf) { return(wxDataObjectSimple::SetData(format, nLen, pBuf)); } }; #endif // _WX_GTK_DATAOBJ2_H_
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/cursor.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/gtk1/cursor.h // Purpose: // Author: Robert Roebling // Copyright: (c) 1998 Robert Roebling // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef __GTKCURSORH__ #define __GTKCURSORH__ #include "wx/gdicmn.h" #if wxUSE_IMAGE #include "wx/image.h" #endif //----------------------------------------------------------------------------- // wxCursor //----------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxCursor : public wxCursorBase { public: wxCursor(); wxCursor(wxStockCursor id) { InitFromStock(id); } #if WXWIN_COMPATIBILITY_2_8 wxCursor(int id) { InitFromStock((wxStockCursor)id); } #endif #if wxUSE_IMAGE wxCursor( const wxImage & image ); #endif wxCursor( const char bits[], int width, int height, int hotSpotX=-1, int hotSpotY=-1, const char maskBits[] = NULL, const wxColour* fg = NULL, const wxColour* bg = NULL); /* WARNING: the following ctor is missing: wxCursor(const wxString& name, wxBitmapType type = wxCURSOR_DEFAULT_TYPE, int hotSpotX = 0, int hotSpotY = 0); */ virtual ~wxCursor(); // implementation GdkCursor *GetCursor() const; protected: void InitFromStock(wxStockCursor); virtual wxGDIRefData *CreateGDIRefData() const; virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const; private: wxDECLARE_DYNAMIC_CLASS(wxCursor); }; #endif // __GTKCURSORH__
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/dnd.h
/////////////////////////////////////////////////////////////////////////////// // Name: wx/gtk1/dnd.h // Purpose: declaration of the wxDropTarget class // Author: Robert Roebling // Copyright: (c) 1998 Vadim Zeitlin, Robert Roebling // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// #ifndef __GTKDNDH__ #define __GTKDNDH__ #if wxUSE_DRAG_AND_DROP #include "wx/object.h" #include "wx/string.h" #include "wx/dataobj.h" #include "wx/cursor.h" #include "wx/icon.h" #include "wx/gdicmn.h" //------------------------------------------------------------------------- // classes //------------------------------------------------------------------------- class WXDLLIMPEXP_FWD_CORE wxWindow; class WXDLLIMPEXP_FWD_CORE wxDropTarget; class WXDLLIMPEXP_FWD_CORE wxTextDropTarget; class WXDLLIMPEXP_FWD_CORE wxFileDropTarget; class WXDLLIMPEXP_FWD_CORE wxDropSource; // ---------------------------------------------------------------------------- // macros // ---------------------------------------------------------------------------- // this macro may be used instead for wxDropSource ctor arguments: it will use // the icon 'name' from an XPM file under GTK, but will expand to something // else under MSW. If you don't use it, you will have to use #ifdef in the // application code. #define wxDROP_ICON(name) wxICON(name) //------------------------------------------------------------------------- // wxDropTarget //------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxDropTarget: public wxDropTargetBase { public: wxDropTarget(wxDataObject *dataObject = NULL ); virtual wxDragResult OnDragOver(wxCoord x, wxCoord y, wxDragResult def); virtual bool OnDrop(wxCoord x, wxCoord y); virtual wxDragResult OnData(wxCoord x, wxCoord y, wxDragResult def); virtual bool GetData(); // implementation GdkAtom GetMatchingPair(bool quiet = false); void RegisterWidget( GtkWidget *widget ); void UnregisterWidget( GtkWidget *widget ); GdkDragContext *m_dragContext; GtkWidget *m_dragWidget; GtkSelectionData *m_dragData; unsigned m_dragTime; bool m_firstMotion; // gdk has no "gdk_drag_enter" event void SetDragContext( GdkDragContext *dc ) { m_dragContext = dc; } void SetDragWidget( GtkWidget *w ) { m_dragWidget = w; } void SetDragData( GtkSelectionData *sd ) { m_dragData = sd; } void SetDragTime(unsigned time) { m_dragTime = time; } }; //------------------------------------------------------------------------- // wxDropSource //------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxDropSource: public wxDropSourceBase { public: // constructor. set data later with SetData() wxDropSource( wxWindow *win = NULL, const wxIcon &copy = wxNullIcon, const wxIcon &move = wxNullIcon, const wxIcon &none = wxNullIcon); // constructor for setting one data object wxDropSource( wxDataObject& data, wxWindow *win, const wxIcon &copy = wxNullIcon, const wxIcon &move = wxNullIcon, const wxIcon &none = wxNullIcon); virtual ~wxDropSource(); // start drag action virtual wxDragResult DoDragDrop(int flags = wxDrag_CopyOnly); // GTK implementation void RegisterWindow(); void UnregisterWindow(); void PrepareIcon( int action, GdkDragContext *context ); GtkWidget *m_widget; GtkWidget *m_iconWindow; GdkDragContext *m_dragContext; wxWindow *m_window; wxDragResult m_retValue; wxIcon m_iconCopy, m_iconMove, m_iconNone; bool m_waiting; private: // common part of both ctors void SetIcons(const wxIcon& copy, const wxIcon& move, const wxIcon& none); }; #endif // wxUSE_DRAG_AND_DROP #endif //__GTKDNDH__
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/popupwin.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/gtk1/popupwin.h // Purpose: // Author: Robert Roebling // Created: // Copyright: (c) 2001 Robert Roebling // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef __GTKPOPUPWINH__ #define __GTKPOPUPWINH__ #include "wx/defs.h" #include "wx/panel.h" #include "wx/icon.h" //----------------------------------------------------------------------------- // wxPopUpWindow //----------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxPopupWindow: public wxPopupWindowBase { public: wxPopupWindow() { } virtual ~wxPopupWindow(); wxPopupWindow(wxWindow *parent, int flags = wxBORDER_NONE) { (void)Create(parent, flags); } bool Create(wxWindow *parent, int flags = wxBORDER_NONE); virtual bool Show( bool show = TRUE ); // implementation // -------------- virtual void DoMoveWindow(int x, int y, int width, int height); virtual void OnInternalIdle(); protected: void GtkOnSize( int x, int y, int width, int height ); virtual void DoSetSize(int x, int y, int width, int height, int sizeFlags = wxSIZE_AUTO); private: wxDECLARE_EVENT_TABLE(); wxDECLARE_DYNAMIC_CLASS(wxPopupWindow); }; #endif // __GTKPOPUPWINDOWH__
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/dataform.h
/////////////////////////////////////////////////////////////////////////////// // Name: wx/gtk1/dataform.h // Purpose: declaration of the wxDataFormat class // Author: Vadim Zeitlin // Modified by: // Created: 19.10.99 (extracted from gtk/dataobj.h) // Copyright: (c) 1998 Vadim Zeitlin <[email protected]> // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// #ifndef _WX_GTK_DATAFORM_H #define _WX_GTK_DATAFORM_H class WXDLLIMPEXP_CORE wxDataFormat { public: // the clipboard formats under GDK are GdkAtoms typedef GdkAtom NativeFormat; wxDataFormat(); wxDataFormat( wxDataFormatId type ); wxDataFormat( NativeFormat format ); // we have to provide all the overloads to allow using strings instead of // data formats (as a lot of existing code does) wxDataFormat( const wxString& id ) { InitFromString(id); } wxDataFormat( const char *id ) { InitFromString(id); } wxDataFormat( const wchar_t *id ) { InitFromString(id); } wxDataFormat( const wxCStrData& id ) { InitFromString(id); } wxDataFormat& operator=(const wxDataFormat& format) { m_type = format.m_type; m_format = format.m_format; return *this; } wxDataFormat& operator=(NativeFormat format) { SetId(format); return *this; } // comparison (must have both versions) bool operator==(NativeFormat format) const { return m_format == (NativeFormat)format; } bool operator!=(NativeFormat format) const { return m_format != (NativeFormat)format; } bool operator==(wxDataFormatId format) const { return m_type == (wxDataFormatId)format; } bool operator!=(wxDataFormatId format) const { return m_type != (wxDataFormatId)format; } // explicit and implicit conversions to NativeFormat which is one of // standard data types (implicit conversion is useful for preserving the // compatibility with old code) NativeFormat GetFormatId() const { return m_format; } operator NativeFormat() const { return m_format; } void SetId( NativeFormat format ); // string ids are used for custom types - this SetId() must be used for // application-specific formats wxString GetId() const; void SetId( const wxString& id ); // implementation wxDataFormatId GetType() const; void SetType( wxDataFormatId type ); private: // common part of ctors from format name void InitFromString(const wxString& id); wxDataFormatId m_type; NativeFormat m_format; void PrepareFormats(); }; #endif // _WX_GTK_DATAFORM_H
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/brush.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/gtk1/brush.h // Purpose: // Author: Robert Roebling // Copyright: (c) 1998 Robert Roebling // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef __GTKBRUSHH__ #define __GTKBRUSHH__ #include "wx/defs.h" #include "wx/object.h" #include "wx/string.h" #include "wx/gdiobj.h" #include "wx/bitmap.h" //----------------------------------------------------------------------------- // classes //----------------------------------------------------------------------------- class WXDLLIMPEXP_FWD_CORE wxBrush; //----------------------------------------------------------------------------- // wxBrush //----------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxBrush: public wxBrushBase { public: wxBrush() { } wxBrush( const wxColour &colour, wxBrushStyle style = wxBRUSHSTYLE_SOLID ); wxBrush( const wxBitmap &stippleBitmap ); virtual ~wxBrush(); bool operator==(const wxBrush& brush) const; bool operator!=(const wxBrush& brush) const { return !(*this == brush); } wxBrushStyle GetStyle() const; wxColour GetColour() const; wxBitmap *GetStipple() const; void SetColour( const wxColour& col ); void SetColour( unsigned char r, unsigned char g, unsigned char b ); void SetStyle( wxBrushStyle style ); void SetStipple( const wxBitmap& stipple ); wxDEPRECATED_MSG("use wxBRUSHSTYLE_XXX constants") wxBrush(const wxColour& col, int style); wxDEPRECATED_MSG("use wxBRUSHSTYLE_XXX constants") void SetStyle(int style) { SetStyle((wxBrushStyle)style); } private: virtual wxGDIRefData *CreateGDIRefData() const; virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const; wxDECLARE_DYNAMIC_CLASS(wxBrush); }; #endif // __GTKBRUSHH__
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/clipbrd.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/gtk1/clipbrd.h // Purpose: // Author: Robert Roebling // Copyright: (c) 1998 Robert Roebling // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef __GTKCLIPBOARDH__ #define __GTKCLIPBOARDH__ #if wxUSE_CLIPBOARD #include "wx/object.h" #include "wx/list.h" #include "wx/dataobj.h" #include "wx/control.h" #include "wx/module.h" // ---------------------------------------------------------------------------- // wxClipboard // ---------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxClipboard : public wxClipboardBase { public: wxClipboard(); virtual ~wxClipboard(); // open the clipboard before SetData() and GetData() virtual bool Open(); // close the clipboard after SetData() and GetData() virtual void Close(); // query whether the clipboard is opened virtual bool IsOpened() const; // set the clipboard data. all other formats will be deleted. virtual bool SetData( wxDataObject *data ); // add to the clipboard data. virtual bool AddData( wxDataObject *data ); // ask if data in correct format is available virtual bool IsSupported( const wxDataFormat& format ); // fill data with data on the clipboard (if available) virtual bool GetData( wxDataObject& data ); // clears wxTheClipboard and the system's clipboard if possible virtual void Clear(); // implementation from now on bool m_open; bool m_ownsClipboard; bool m_ownsPrimarySelection; wxDataObject *m_data; GtkWidget *m_clipboardWidget; /* for getting and offering data */ GtkWidget *m_targetsWidget; /* for getting list of supported formats */ bool m_waiting; /* querying data or formats is asynchronous */ bool m_formatSupported; GdkAtom m_targetRequested; wxDataObject *m_receivedData; private: wxDECLARE_DYNAMIC_CLASS(wxClipboard); }; #endif // wxUSE_CLIPBOARD #endif // __GTKCLIPBOARDH__
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/tglbtn.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/gtk1/tglbtn.h // Purpose: Declaration of the wxToggleButton class, which implements a // toggle button under wxGTK. // Author: John Norris, minor changes by Axel Schlueter // Modified by: // Created: 08.02.01 // Copyright: (c) 2000 Johnny C. Norris II // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef _WX_GTK_TOGGLEBUTTON_H_ #define _WX_GTK_TOGGLEBUTTON_H_ #include "wx/bitmap.h" //----------------------------------------------------------------------------- // classes //----------------------------------------------------------------------------- class WXDLLIMPEXP_FWD_CORE wxToggleButton; class WXDLLIMPEXP_FWD_CORE wxToggleBitmapButton; //----------------------------------------------------------------------------- // wxToggleBitmapButton //----------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxToggleBitmapButton: public wxToggleButtonBase { public: // construction/destruction wxToggleBitmapButton() {} wxToggleBitmapButton(wxWindow *parent, wxWindowID id, const wxBitmap& label, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxCheckBoxNameStr) { Create(parent, id, label, pos, size, style, validator, name); } // Create the control bool Create(wxWindow *parent, wxWindowID id, const wxBitmap& label, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxCheckBoxNameStr); // Get/set the value void SetValue(bool state); bool GetValue() const; // Set the label virtual void SetLabel(const wxString& label) { wxControl::SetLabel(label); } virtual void SetLabel(const wxBitmap& label); bool Enable(bool enable = TRUE); static wxVisualAttributes GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); // implementation bool m_blockEvent; wxBitmap m_bitmap; void OnSetBitmap(); void DoApplyWidgetStyle(GtkRcStyle *style); bool IsOwnGtkWindow(GdkWindow *window); virtual void OnInternalIdle(); virtual wxSize DoGetBestSize() const; private: wxDECLARE_DYNAMIC_CLASS(wxToggleBitmapButton); }; //----------------------------------------------------------------------------- // wxToggleButton //----------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxToggleButton: public wxControl { public: // construction/destruction wxToggleButton() {} wxToggleButton(wxWindow *parent, wxWindowID id, const wxString& label, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxCheckBoxNameStr) { Create(parent, id, label, pos, size, style, validator, name); } // Create the control bool Create(wxWindow *parent, wxWindowID id, const wxString& label, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxCheckBoxNameStr); // Get/set the value void SetValue(bool state); bool GetValue() const; // Set the label void SetLabel(const wxString& label); bool Enable(bool enable = TRUE); static wxVisualAttributes GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); // implementation bool m_blockEvent; void DoApplyWidgetStyle(GtkRcStyle *style); bool IsOwnGtkWindow(GdkWindow *window); virtual void OnInternalIdle(); virtual wxSize DoGetBestSize() const; private: wxDECLARE_DYNAMIC_CLASS(wxToggleButton); }; #endif // _WX_GTK_TOGGLEBUTTON_H_
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/scrolwin.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/gtk1/scrolwin.h // Purpose: wxScrolledWindow class // Author: Robert Roebling // Modified by: Vadim Zeitlin (2005-10-10): wxScrolledWindow is now common // Created: 01/02/97 // Copyright: (c) Robert Roebling // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef _WX_GTK_SCROLLWIN_H_ #define _WX_GTK_SCROLLWIN_H_ // ---------------------------------------------------------------------------- // wxScrolledWindow // ---------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxScrollHelper : public wxScrollHelperBase { public: wxScrollHelper(wxWindow *win) : wxScrollHelperBase(win) { } // implement base class pure virtuals virtual void SetScrollbars(int pixelsPerUnitX, int pixelsPerUnitY, int noUnitsX, int noUnitsY, int xPos = 0, int yPos = 0, bool noRefresh = false); virtual bool IsScrollbarShown(int orient) const; virtual void AdjustScrollbars(); protected: virtual void DoScroll(int x, int y); virtual void DoShowScrollbars(wxScrollbarVisibility horz, wxScrollbarVisibility vert); // this does (each) half of AdjustScrollbars() work void DoAdjustScrollbar(GtkAdjustment *adj, int pixelsPerLine, int winSize, int virtSize, int *pos, int *lines, int *linesPerPage); // and this does the same for Scroll() void DoScrollOneDir(int orient, GtkAdjustment *adj, int pos, int pixelsPerLine, int *posOld); private: wxDECLARE_NO_COPY_CLASS(wxScrollHelper); }; #endif // _WX_GTK_SCROLLWIN_H_
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/dcscreen.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/gtk1/dcscreen.h // Purpose: // Author: Robert Roebling // Copyright: (c) 1998 Robert Roebling // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef __GTKDCSCREENH__ #define __GTKDCSCREENH__ #include "wx/gtk1/dcclient.h" //----------------------------------------------------------------------------- // wxScreenDCImpl //----------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxScreenDCImpl : public wxPaintDCImpl { public: wxScreenDCImpl(wxScreenDC *owner); virtual ~wxScreenDCImpl(); // implementation static GdkWindow *sm_overlayWindow; static int sm_overlayWindowX; static int sm_overlayWindowY; protected: virtual void DoGetSize(int *width, int *height) const; private: wxDECLARE_DYNAMIC_CLASS(wxScreenDCImpl); }; #endif // __GTKDCSCREENH__
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/combobox.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/gtk1/combobox.h // Purpose: // Author: Robert Roebling // Created: 01/02/97 // Copyright: (c) 1998 Robert Roebling // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef __GTKCOMBOBOXH__ #define __GTKCOMBOBOXH__ #include "wx/defs.h" #if wxUSE_COMBOBOX #include "wx/object.h" //----------------------------------------------------------------------------- // classes //----------------------------------------------------------------------------- class WXDLLIMPEXP_FWD_CORE wxComboBox; //----------------------------------------------------------------------------- // global data //----------------------------------------------------------------------------- extern WXDLLIMPEXP_DATA_CORE(const char) wxComboBoxNameStr[]; extern WXDLLIMPEXP_BASE const wxChar* wxEmptyString; //----------------------------------------------------------------------------- // wxComboBox //----------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxComboBox : public wxWindowWithItems<wxControl, wxComboBoxBase> { public: inline wxComboBox() {} inline wxComboBox(wxWindow *parent, wxWindowID id, const wxString& value = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, int n = 0, const wxString choices[] = (const wxString *) NULL, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxComboBoxNameStr) { Create(parent, id, value, pos, size, n, choices, style, validator, name); } inline wxComboBox(wxWindow *parent, wxWindowID id, const wxString& value, const wxPoint& pos, const wxSize& size, const wxArrayString& choices, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxComboBoxNameStr) { Create(parent, id, value, pos, size, choices, style, validator, name); } virtual ~wxComboBox(); bool Create(wxWindow *parent, wxWindowID id, const wxString& value = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, int n = 0, const wxString choices[] = (const wxString *) NULL, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxComboBoxNameStr); bool Create(wxWindow *parent, wxWindowID id, const wxString& value, const wxPoint& pos, const wxSize& size, const wxArrayString& choices, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxComboBoxNameStr); void DoClear(); void DoDeleteOneItem(unsigned int n); virtual int FindString(const wxString& s, bool bCase = false) const; int GetSelection() const; int GetCurrentSelection() const; virtual wxString GetString(unsigned int n) const; wxString GetStringSelection() const; virtual unsigned int GetCount() const; virtual void SetSelection(int n); virtual void SetString(unsigned int n, const wxString &text); wxString GetValue() const { return DoGetValue(); } void SetValue(const wxString& value); void WriteText(const wxString& value); void Copy(); void Cut(); void Paste(); bool CanCopy() const; bool CanCut() const; bool CanPaste() const; void SetInsertionPoint( long pos ); void SetInsertionPointEnd() { SetInsertionPoint( -1 ); } long GetInsertionPoint() const; virtual wxTextPos GetLastPosition() const; void Remove(long from, long to) { Replace(from, to, wxEmptyString); } void Replace( long from, long to, const wxString& value ); void SetSelection( long from, long to ); void GetSelection( long* from, long* to ) const; void SetEditable( bool editable ); void Undo() ; void Redo() ; bool CanUndo() const; bool CanRedo() const; void SelectAll(); bool IsEditable() const ; bool HasSelection() const ; // implementation virtual void SetFocus(); void OnSize( wxSizeEvent &event ); void OnChar( wxKeyEvent &event ); // Standard event handling void OnCut(wxCommandEvent& event); void OnCopy(wxCommandEvent& event); void OnPaste(wxCommandEvent& event); void OnUndo(wxCommandEvent& event); void OnRedo(wxCommandEvent& event); void OnDelete(wxCommandEvent& event); void OnSelectAll(wxCommandEvent& event); void OnUpdateCut(wxUpdateUIEvent& event); void OnUpdateCopy(wxUpdateUIEvent& event); void OnUpdatePaste(wxUpdateUIEvent& event); void OnUpdateUndo(wxUpdateUIEvent& event); void OnUpdateRedo(wxUpdateUIEvent& event); void OnUpdateDelete(wxUpdateUIEvent& event); void OnUpdateSelectAll(wxUpdateUIEvent& event); bool m_ignoreNextUpdate:1; wxList m_clientDataList; wxList m_clientObjectList; int m_prevSelection; void DisableEvents(); void EnableEvents(); GtkWidget* GetConnectWidget(); bool IsOwnGtkWindow( GdkWindow *window ); void DoApplyWidgetStyle(GtkRcStyle *style); static wxVisualAttributes GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); protected: virtual int DoInsertItems(const wxArrayStringsAdapter& items, unsigned int pos, void **clientData, wxClientDataType type); virtual void DoSetItemClientData(unsigned int n, void* clientData); virtual void* DoGetItemClientData(unsigned int n) const; virtual wxSize DoGetBestSize() const; // implement wxTextEntry pure virtual methods virtual wxString DoGetValue() const; virtual wxWindow *GetEditableWindow() { return this; } // Widgets that use the style->base colour for the BG colour should // override this and return true. virtual bool UseGTKStyleBase() const { return true; } private: wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxComboBox); wxDECLARE_EVENT_TABLE(); }; #endif #endif // __GTKCOMBOBOXH__
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/glcanvas.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/gtk1/glcanvas.h // Purpose: wxGLCanvas, for using OpenGL/Mesa with wxWidgets and GTK // Author: Robert Roebling // Modified by: // Created: 17/8/98 // Copyright: (c) Robert Roebling // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef _WX_GLCANVAS_H_ #define _WX_GLCANVAS_H_ #include "wx/unix/glx11.h" //--------------------------------------------------------------------------- // wxGLCanvas //--------------------------------------------------------------------------- class WXDLLIMPEXP_GL wxGLCanvas : public wxGLCanvasX11 { public: wxGLCanvas(wxWindow *parent, const wxGLAttributes& dispAttrs, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxString& name = wxGLCanvasName, const wxPalette& palette = wxNullPalette); explicit // avoid implicitly converting a wxWindow* to wxGLCanvas wxGLCanvas(wxWindow *parent, wxWindowID id = wxID_ANY, const int *attribList = NULL, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxString& name = wxGLCanvasName, const wxPalette& palette = wxNullPalette); bool Create(wxWindow *parent, const wxGLAttributes& dispAttrs, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxString& name = wxGLCanvasName, const wxPalette& palette = wxNullPalette); bool Create(wxWindow *parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxString& name = wxGLCanvasName, const int *attribList = NULL, const wxPalette& palette = wxNullPalette); // implement wxGLCanvasX11 methods // ------------------------------- virtual Window GetXWindow() const; // deprecated methods // ------------------ #if WXWIN_COMPATIBILITY_2_8 wxDEPRECATED_CONSTRUCTOR( wxGLCanvas(wxWindow *parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxString& name = wxGLCanvasName, const int *attribList = NULL, const wxPalette& palette = wxNullPalette) ); wxDEPRECATED_CONSTRUCTOR( wxGLCanvas(wxWindow *parent, const wxGLContext *shared, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxString& name = wxGLCanvasName, const int *attribList = NULL, const wxPalette& palette = wxNullPalette) ); wxDEPRECATED_CONSTRUCTOR( wxGLCanvas(wxWindow *parent, const wxGLCanvas *shared, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxString& name = wxGLCanvasName, const int *attribList = NULL, const wxPalette& palette = wxNullPalette) ); // called from "realized" callback to create the implicit context if needed void GTKInitImplicitContext(); #endif // WXWIN_COMPATIBILITY_2_8 // implementation from now on virtual void OnInternalIdle(); GtkWidget *m_glWidget; #if WXWIN_COMPATIBILITY_2_8 wxGLContext *m_sharedContext; wxGLCanvas *m_sharedContextOf; const bool m_createImplicitContext; #endif // WXWIN_COMPATIBILITY_2_8 private: wxDECLARE_CLASS(wxGLCanvas); }; #endif // _WX_GLCANVAS_H_
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/window.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/gtk1/window.h // Purpose: // Author: Robert Roebling // Copyright: (c) 1998 Robert Roebling // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef __GTKWINDOWH__ #define __GTKWINDOWH__ typedef struct _GtkTooltips GtkTooltips; #ifdef HAVE_XIM typedef struct _GdkIC GdkIC; typedef struct _GdkICAttr GdkICAttr; #endif //----------------------------------------------------------------------------- // callback definition for inserting a window (internal) //----------------------------------------------------------------------------- class WXDLLIMPEXP_FWD_CORE wxWindowGTK; typedef void (*wxInsertChildFunction)( wxWindowGTK*, wxWindowGTK* ); //----------------------------------------------------------------------------- // wxWindowGTK //----------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxWindowGTK : public wxWindowBase { public: // creating the window // ------------------- wxWindowGTK(); wxWindowGTK(wxWindow *parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxString& name = wxPanelNameStr); bool Create(wxWindow *parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxString& name = wxPanelNameStr); virtual ~wxWindowGTK(); // implement base class (pure) virtual methods // ------------------------------------------- virtual void SetLabel(const wxString& WXUNUSED(label)) { } virtual wxString GetLabel() const { return wxEmptyString; } virtual bool Destroy(); virtual void Raise(); virtual void Lower(); virtual bool Show( bool show = true ); virtual void DoEnable( bool enable ); virtual void SetWindowStyleFlag( long style ); virtual bool IsRetained() const; virtual void SetFocus(); virtual bool AcceptsFocus() const; virtual bool Reparent( wxWindowBase *newParent ); virtual void WarpPointer(int x, int y); virtual void Refresh( bool eraseBackground = true, const wxRect *rect = (const wxRect *) NULL ); virtual void Update(); virtual void ClearBackground(); virtual bool SetBackgroundColour( const wxColour &colour ); virtual bool SetForegroundColour( const wxColour &colour ); virtual bool SetCursor( const wxCursor &cursor ); virtual bool SetFont( const wxFont &font ); virtual bool SetBackgroundStyle(wxBackgroundStyle style) ; virtual int GetCharHeight() const; virtual int GetCharWidth() const; virtual void SetScrollbar( int orient, int pos, int thumbVisible, int range, bool refresh = true ); virtual void SetScrollPos( int orient, int pos, bool refresh = true ); virtual int GetScrollPos( int orient ) const; virtual int GetScrollThumb( int orient ) const; virtual int GetScrollRange( int orient ) const; virtual void ScrollWindow( int dx, int dy, const wxRect* rect = NULL ); #if wxUSE_DRAG_AND_DROP virtual void SetDropTarget( wxDropTarget *dropTarget ); #endif // wxUSE_DRAG_AND_DROP virtual bool IsDoubleBuffered() const { return false; } GdkWindow* GTKGetDrawingWindow() const; // implementation // -------------- virtual WXWidget GetHandle() const { return m_widget; } // I don't want users to override what's done in idle so everything that // has to be done in idle time in order for wxGTK to work is done in // OnInternalIdle virtual void OnInternalIdle(); // Internal representation of Update() void GtkUpdate(); // For compatibility across platforms (not in event table) void OnIdle(wxIdleEvent& WXUNUSED(event)) {} // Used by all window classes in the widget creation process. bool PreCreation( wxWindowGTK *parent, const wxPoint &pos, const wxSize &size ); void PostCreation(); // Internal addition of child windows. differs from class // to class not by using virtual functions but by using // the m_insertCallback. void DoAddChild(wxWindowGTK *child); // This methods sends wxPaintEvents to the window. It reads the // update region, breaks it up into rects and sends an event // for each rect. It is also responsible for background erase // events and NC paint events. It is called from "draw" and // "expose" handlers as well as from ::Update() void GtkSendPaintEvents(); // The methods below are required because many native widgets // are composed of several subwidgets and setting a style for // the widget means setting it for all subwidgets as well. // also, it is not clear which native widget is the top // widget where (most of) the input goes. even tooltips have // to be applied to all subwidgets. virtual GtkWidget* GetConnectWidget(); virtual bool IsOwnGtkWindow( GdkWindow *window ); void ConnectWidget( GtkWidget *widget ); #if wxUSE_TOOLTIPS virtual void ApplyToolTip( GtkTooltips *tips, const wxChar *tip ); #endif // wxUSE_TOOLTIPS // Call after modifing the value of m_hAdjust or m_vAdjust to bring the // scrolbar in sync (this does not generate any wx events) void GtkUpdateScrollbar(int orient); // Called from GTK signal handlers. it indicates that // the layout functions have to be called later on // (i.e. in idle time, implemented in OnInternalIdle() ). void GtkUpdateSize() { m_sizeSet = false; } // fix up the mouse event coords, used by wxListBox only so far virtual void FixUpMouseEvent(GtkWidget * WXUNUSED(widget), wxCoord& WXUNUSED(x), wxCoord& WXUNUSED(y)) { } // is this window transparent for the mouse events (as wxStaticBox is)? virtual bool IsTransparentForMouse() const { return false; } // is this a radiobutton (used by radiobutton code itself only)? virtual bool IsRadioButton() const { return false; } // position and size of the window int m_x, m_y; int m_width, m_height; int m_oldClientWidth,m_oldClientHeight; // 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 // this widget will be queried for GTK's focus events GtkWidget *m_focusWidget; #ifdef HAVE_XIM // XIM support for wxWidgets GdkIC *m_ic; GdkICAttr *m_icattr; #endif // HAVE_XIM // The area to be cleared (and not just refreshed) // We cannot make this distinction under GTK 2.0. wxRegion m_clearRegion; // scrolling stuff GtkAdjustment *m_hAdjust,*m_vAdjust; float m_oldHorizontalPos; float m_oldVerticalPos; // extra (wxGTK-specific) flags bool m_needParent:1; // ! wxFrame, wxDialog, wxNotebookPage ? bool m_noExpose:1; // wxGLCanvas has its own redrawing bool m_nativeSizeEvent:1; // wxGLCanvas sends wxSizeEvent upon "alloc_size" bool m_hasScrolling:1; bool m_hasVMT:1; bool m_sizeSet:1; bool m_resizing:1; bool m_acceptsFocus:1; // true if not static bool m_hasFocus:1; // true if == FindFocus() bool m_isScrolling:1; // dragging scrollbar thumb? bool m_clipPaintRegion:1; // true after ScrollWindow() bool m_needsStyleChange:1; // May not be able to change // background style until OnIdle // C++ has no virtual methods in the constrcutor of any class but we need // different methods of inserting a child window into a wxFrame, // wxMDIFrame, wxNotebook etc. this is the callback that will get used. wxInsertChildFunction m_insertCallback; // implement the base class pure virtuals virtual void DoGetTextExtent(const wxString& string, int *x, int *y, int *descent = NULL, int *externalLeading = NULL, const wxFont *theFont = NULL) const; #if wxUSE_MENUS_NATIVE virtual bool DoPopupMenu( wxMenu *menu, int x, int y ); #endif // wxUSE_MENUS_NATIVE virtual void DoClientToScreen( int *x, int *y ) const; virtual void DoScreenToClient( int *x, int *y ) const; virtual void DoGetPosition( int *x, int *y ) const; virtual void DoGetSize( int *width, int *height ) const; virtual void DoGetClientSize( int *width, int *height ) const; virtual void DoSetSize(int x, int y, int width, int height, int sizeFlags = wxSIZE_AUTO); virtual void DoSetClientSize(int width, int height); virtual void DoMoveWindow(int x, int y, int width, int height); virtual void DoCaptureMouse(); virtual void DoReleaseMouse(); #if wxUSE_TOOLTIPS virtual void DoSetToolTip( wxToolTip *tip ); #endif // wxUSE_TOOLTIPS protected: // common part of all ctors (not virtual because called from ctor) void Init(); // Called by ApplyWidgetStyle (which is called by SetFont() and // SetXXXColour etc to apply style changed to native widgets) to create // modified GTK style with non-standard attributes. If forceStyle=true, // creates empty GtkRcStyle if there are no modifications, otherwise // returns NULL in such case. GtkRcStyle *CreateWidgetStyle(bool forceStyle = false); // Overridden in many GTK widgets who have to handle subwidgets virtual void ApplyWidgetStyle(bool forceStyle = false); // helper function to ease native widgets wrapping, called by // ApplyWidgetStyle -- override this, not ApplyWidgetStyle virtual void DoApplyWidgetStyle(GtkRcStyle *style); private: wxDECLARE_DYNAMIC_CLASS(wxWindowGTK); wxDECLARE_NO_COPY_CLASS(wxWindowGTK); }; extern WXDLLIMPEXP_CORE wxWindow *wxFindFocusedChild(wxWindowGTK *win); #endif // __GTKWINDOWH__
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/dc.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/gtk1/dc.h // Purpose: // Author: Robert Roebling // Copyright: (c) 1998 Robert Roebling // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef __GTKDCH__ #define __GTKDCH__ #include "wx/dc.h" //----------------------------------------------------------------------------- // wxDC //----------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxGTKDCImpl : public wxDCImpl { public: wxGTKDCImpl(wxDC *owner); virtual ~wxGTKDCImpl() { } #if wxUSE_PALETTE void SetColourMap( const wxPalette& palette ) { SetPalette(palette); } #endif // wxUSE_PALETTE // Resolution in pixels per logical inch virtual wxSize GetPPI() const; virtual bool StartDoc( const wxString& WXUNUSED(message) ) { return true; } virtual void EndDoc() { } virtual void StartPage() { } virtual void EndPage() { } virtual GdkWindow* GetGDKWindow() const { return NULL; } public: // implementation wxCoord XDEV2LOG(wxCoord x) const { return DeviceToLogicalX(x); } wxCoord XDEV2LOGREL(wxCoord x) const { return DeviceToLogicalXRel(x); } wxCoord YDEV2LOG(wxCoord y) const { return DeviceToLogicalY(y); } wxCoord YDEV2LOGREL(wxCoord y) const { return DeviceToLogicalYRel(y); } wxCoord XLOG2DEV(wxCoord x) const { return LogicalToDeviceX(x); } wxCoord XLOG2DEVREL(wxCoord x) const { return LogicalToDeviceXRel(x); } wxCoord YLOG2DEV(wxCoord y) const { return LogicalToDeviceY(y); } wxCoord YLOG2DEVREL(wxCoord y) const { return LogicalToDeviceYRel(y); } // base class pure virtuals implemented here virtual void DoSetClippingRegion(wxCoord x, wxCoord y, wxCoord width, wxCoord height); virtual void DoGetSizeMM(int* width, int* height) const; private: wxDECLARE_ABSTRACT_CLASS(wxDC); }; // this must be defined when wxDC::Blit() honours the DC origian and needed to // allow wxUniv code in univ/winuniv.cpp to work with versions of wxGTK // 2.3.[23] #ifndef wxHAS_WORKING_GTK_DC_BLIT #define wxHAS_WORKING_GTK_DC_BLIT #endif #endif // __GTKDCH__
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/msgdlg.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/gtk1/msgdlg.h // Purpose: wxMessageDialog for GTK+2 // Author: Vaclav Slavik // Modified by: // Created: 2003/02/28 // Copyright: (c) Vaclav Slavik, 2003 // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef __MSGDLG_H__ #define __MSGDLG_H__ #include "wx/defs.h" #include "wx/dialog.h" // type is an 'or' (|) of wxOK, wxCANCEL, wxYES_NO // Returns wxYES/NO/OK/CANCEL extern WXDLLIMPEXP_DATA_CORE(const wxChar) wxMessageBoxCaptionStr[]; class WXDLLIMPEXP_CORE wxMessageDialog: public wxDialog, public wxMessageDialogBase { public: wxMessageDialog(wxWindow *parent, const wxString& message, const wxString& caption = wxMessageBoxCaptionStr, long style = wxOK|wxCENTRE, const wxPoint& pos = wxDefaultPosition); virtual ~wxMessageDialog(); int ShowModal(); virtual bool Show( bool WXUNUSED(show) = true ) { return false; } protected: // implement some base class methods to do nothing to avoid asserts and // GTK warnings, since this is not a real wxDialog. virtual void DoSetSize(int WXUNUSED(x), int WXUNUSED(y), int WXUNUSED(width), int WXUNUSED(height), int WXUNUSED(sizeFlags) = wxSIZE_AUTO) {} virtual void DoMoveWindow(int WXUNUSED(x), int WXUNUSED(y), int WXUNUSED(width), int WXUNUSED(height)) {} private: wxString m_caption; wxString m_message; wxDECLARE_DYNAMIC_CLASS(wxMessageDialog); }; #endif
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/notebook.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/gtk1/notebook.h // Purpose: wxNotebook class // Author: Robert Roebling // Modified by: // Copyright: (c) Julian Smart and Robert Roebling // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef __GTKNOTEBOOKH__ #define __GTKNOTEBOOKH__ //----------------------------------------------------------------------------- // internal class //----------------------------------------------------------------------------- class WXDLLIMPEXP_FWD_CORE wxGtkNotebookPage; #include "wx/list.h" WX_DECLARE_LIST(wxGtkNotebookPage, wxGtkNotebookPagesList); //----------------------------------------------------------------------------- // wxNotebook //----------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxNotebook : public wxNotebookBase { public: // default for dynamic class wxNotebook(); // the same arguments as for wxControl wxNotebook(wxWindow *parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxString& name = wxNotebookNameStr); // Create() function bool Create(wxWindow *parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxString& name = wxNotebookNameStr); // dtor virtual ~wxNotebook(); // accessors // --------- // set the currently selected page, return the index of the previously // selected one (or wxNOT_FOUND on error) // NB: this function will _not_ generate wxEVT_NOTEBOOK_PAGE_xxx events int SetSelection(size_t nPage) { return DoSetSelection(nPage, SetSelection_SendEvent); } // get the currently selected page int GetSelection() const; // changes selected page without sending events int ChangeSelection(size_t nPage) { return DoSetSelection(nPage); } // set/get the title of a page bool SetPageText(size_t nPage, const wxString& strText); wxString GetPageText(size_t nPage) const; // sets/returns item's image index in the current image list int GetPageImage(size_t nPage) const; bool SetPageImage(size_t nPage, int nImage); // control the appearance of the notebook pages // set the size (the same for all pages) void SetPageSize(const wxSize& size); // set the padding between tabs (in pixels) void SetPadding(const wxSize& padding); // sets the size of the tabs (assumes all tabs are the same size) void SetTabSize(const wxSize& sz); virtual int HitTest(const wxPoint& pt, long *flags = NULL) const; // operations // ---------- // remove all pages bool DeleteAllPages(); // adds a new page to the notebook (it will be deleted by the notebook, // don't delete it yourself). If bSelect, this page becomes active. // the same as AddPage(), but adds it at the specified position bool InsertPage( size_t position, wxNotebookPage *win, const wxString& strText, bool bSelect = false, int imageId = NO_IMAGE ); // handler for tab navigation // -------------------------- void OnNavigationKey(wxNavigationKeyEvent& event); static wxVisualAttributes GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); // implementation // -------------- #if wxUSE_CONSTRAINTS void SetConstraintSizes(bool recurse); bool DoPhase(int phase); #endif // set all page's attributes void DoApplyWidgetStyle(GtkRcStyle *style); // report if window belongs to notebook bool IsOwnGtkWindow( GdkWindow *window ); // common part of all ctors void Init(); // helper function wxGtkNotebookPage* GetNotebookPage(int page) const; // the additional page data (the pages themselves are in m_pages array) wxGtkNotebookPagesList m_pagesData; // for reasons explained in gtk/notebook.cpp we store the current // selection internally instead of querying the notebook for it int m_selection; // flag set to true while we're inside "switch_page" callback bool m_inSwitchPage; // flag set to true when the switch-page signal has been programmatically generated bool m_skipNextPageChangeEvent; protected: // remove one page from the notebook but do not destroy it virtual wxNotebookPage *DoRemovePage(size_t nPage); int DoSetSelection(size_t nPage, int flags = 0); private: // the padding set by SetPadding() int m_padding; wxDECLARE_DYNAMIC_CLASS(wxNotebook); wxDECLARE_EVENT_TABLE(); }; #endif // __GTKNOTEBOOKH__
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/statline.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/gtk1/statline.h // Purpose: // Author: Robert Roebling // Copyright: (c) 1998 Robert Roebling // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef __GTKSTATICLINEH__ #define __GTKSTATICLINEH__ #include "wx/defs.h" #if wxUSE_STATLINE // ---------------------------------------------------------------------------- // wxStaticLine // ---------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxStaticLine : public wxStaticLineBase { public: wxStaticLine(); wxStaticLine(wxWindow *parent, wxWindowID id = wxID_ANY, const wxPoint &pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxLI_HORIZONTAL, const wxString &name = wxStaticLineNameStr); bool Create(wxWindow *parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxLI_HORIZONTAL, const wxString &name = wxStaticLineNameStr); static wxVisualAttributes GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); private: wxDECLARE_DYNAMIC_CLASS(wxStaticLine); }; #endif // wxUSE_STATLINE #endif // __GTKSTATICLINEH__
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/frame.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/gtk1/frame.h // Purpose: // Author: Robert Roebling // Copyright: (c) 1998 Robert Roebling, Julian Smart // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef __GTKFRAMEH__ #define __GTKFRAMEH__ //----------------------------------------------------------------------------- // classes //----------------------------------------------------------------------------- class WXDLLIMPEXP_FWD_CORE wxMDIChildFrame; class WXDLLIMPEXP_FWD_CORE wxMDIClientWindow; class WXDLLIMPEXP_FWD_CORE wxMenu; class WXDLLIMPEXP_FWD_CORE wxMenuBar; class WXDLLIMPEXP_FWD_CORE wxToolBar; class WXDLLIMPEXP_FWD_CORE wxStatusBar; //----------------------------------------------------------------------------- // wxFrame //----------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxFrame : public wxFrameBase { public: // construction wxFrame() { Init(); } wxFrame(wxWindow *parent, wxWindowID id, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE, const wxString& name = wxFrameNameStr) { Init(); Create(parent, id, title, pos, size, style, name); } bool Create(wxWindow *parent, wxWindowID id, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE, const wxString& name = wxFrameNameStr); #if wxUSE_STATUSBAR virtual void PositionStatusBar(); virtual wxStatusBar* CreateStatusBar(int number = 1, long style = wxSTB_DEFAULT_STYLE, wxWindowID id = 0, const wxString& name = wxStatusLineNameStr); void SetStatusBar(wxStatusBar *statbar); #endif // wxUSE_STATUSBAR #if wxUSE_TOOLBAR virtual wxToolBar* CreateToolBar(long style = -1, wxWindowID id = -1, const wxString& name = wxToolBarNameStr); void SetToolBar(wxToolBar *toolbar); #endif // wxUSE_TOOLBAR wxPoint GetClientAreaOrigin() const { return wxPoint(0, 0); } // implementation from now on // -------------------------- // GTK callbacks virtual void GtkOnSize( int x, int y, int width, int height ); virtual void OnInternalIdle(); bool m_menuBarDetached; int m_menuBarHeight; bool m_toolBarDetached; protected: // common part of all ctors void Init(); // override wxWindow methods to take into account tool/menu/statusbars virtual void DoSetClientSize(int width, int height); virtual void DoGetClientSize( int *width, int *height ) const; #if wxUSE_MENUS_NATIVE virtual void DetachMenuBar(); virtual void AttachMenuBar(wxMenuBar *menubar); public: // Menu size is dynamic now, call this whenever it might change. void UpdateMenuBarSize(); #endif // wxUSE_MENUS_NATIVE wxDECLARE_DYNAMIC_CLASS(wxFrame); }; #endif // __GTKFRAMEH__
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/dataobj.h
/////////////////////////////////////////////////////////////////////////////// // Name: wx/gtk1/dataobj.h // Purpose: declaration of the wxDataObject // Author: Robert Roebling // Copyright: (c) 1998, 1999 Vadim Zeitlin, Robert Roebling // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// #ifndef _WX_GTK_DATAOBJ_H_ #define _WX_GTK_DATAOBJ_H_ // ---------------------------------------------------------------------------- // wxDataObject is the same as wxDataObjectBase under wxGTK // ---------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxDataObject : public wxDataObjectBase { public: wxDataObject(); virtual ~wxDataObject(); virtual bool IsSupportedFormat( const wxDataFormat& format, Direction dir = Get ) const; }; #endif // _WX_GTK_DATAOBJ_H_
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/statbox.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/gtk1/statbox.h // Purpose: // Author: Robert Roebling // Copyright: (c) 1998 Robert Roebling // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef __GTKSTATICBOXH__ #define __GTKSTATICBOXH__ //----------------------------------------------------------------------------- // wxStaticBox //----------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxStaticBox : public wxStaticBoxBase { public: wxStaticBox(); wxStaticBox( wxWindow *parent, wxWindowID id, const wxString &label, const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize, long style = 0, const wxString &name = wxStaticBoxNameStr ); bool Create( wxWindow *parent, wxWindowID id, const wxString &label, const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize, long style = 0, const wxString &name = wxStaticBoxNameStr ); virtual void SetLabel( const wxString &label ); static wxVisualAttributes GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); // implementation virtual bool IsTransparentForMouse() const { return TRUE; } protected: void DoApplyWidgetStyle(GtkRcStyle *style); private: wxDECLARE_DYNAMIC_CLASS(wxStaticBox); }; #endif // __GTKSTATICBOXH__
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/control.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/gtk1/control.h // Purpose: // Author: Robert Roebling // Copyright: (c) 1998 Robert Roebling, Julian Smart // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef __GTKCONTROLH__ #define __GTKCONTROLH__ #include "wx/defs.h" #include "wx/object.h" #include "wx/list.h" #include "wx/window.h" //----------------------------------------------------------------------------- // classes //----------------------------------------------------------------------------- class WXDLLIMPEXP_FWD_CORE wxControl; typedef struct _GtkLabel GtkLabel; typedef struct _GtkFrame GtkFrame; //----------------------------------------------------------------------------- // wxControl //----------------------------------------------------------------------------- // C-linkage function pointer types for GetDefaultAttributesFromGTKWidget extern "C" { typedef GtkWidget* (*wxGtkWidgetNew_t)(void); typedef GtkWidget* (*wxGtkWidgetNewFromStr_t)(const char*); typedef GtkWidget* (*wxGtkWidgetNewFromAdj_t)(GtkAdjustment*); } class WXDLLIMPEXP_CORE wxControl : public wxControlBase { public: wxControl(); wxControl(wxWindow *parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxControlNameStr) { Create(parent, id, pos, size, style, validator, name); } bool Create(wxWindow *parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxControlNameStr); virtual void SetLabel( const wxString &label ); virtual wxString GetLabel() const; virtual wxVisualAttributes GetDefaultAttributes() const; protected: virtual wxSize DoGetBestSize() const; void PostCreation(const wxSize& size); // sets the label to the given string and also sets it for the given widget void GTKSetLabelForLabel(GtkLabel *w, const wxString& label); // as GTKSetLabelForLabel() but for a GtkFrame widget void GTKSetLabelForFrame(GtkFrame *w, const wxString& label); // remove mnemonics ("&"s) from the label static wxString GTKRemoveMnemonics(const wxString& label); // These are used by GetDefaultAttributes static wxVisualAttributes GetDefaultAttributesFromGTKWidget(GtkWidget* widget, bool useBase = false, int state = -1); static wxVisualAttributes GetDefaultAttributesFromGTKWidget(wxGtkWidgetNew_t, bool useBase = false, int state = -1); static wxVisualAttributes GetDefaultAttributesFromGTKWidget(wxGtkWidgetNewFromStr_t, bool useBase = false, int state = -1); static wxVisualAttributes GetDefaultAttributesFromGTKWidget(wxGtkWidgetNewFromAdj_t, bool useBase = false, int state = -1); // Widgets that use the style->base colour for the BG colour should // override this and return true. virtual bool UseGTKStyleBase() const { return false; } // this field contains the label in wx format, i.e. with "&" mnemonics wxString m_label; private: wxDECLARE_DYNAMIC_CLASS(wxControl); }; #endif // __GTKCONTROLH__
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/colordlg.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/gtk1/colordlg.h // Purpose: wxColourDialog // Author: Vaclav Slavik // Modified by: // Created: 2004/06/04 // Copyright: (c) Vaclav Slavik, 2004 // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef __COLORDLG_H__ #define __COLORDLG_H__ #include "wx/defs.h" #include "wx/gdicmn.h" #include "wx/dialog.h" class WXDLLIMPEXP_CORE wxColourDialog : public wxDialog { public: wxColourDialog() {} wxColourDialog(wxWindow *parent, wxColourData *data = NULL); virtual ~wxColourDialog() {} bool Create(wxWindow *parent, wxColourData *data = NULL); wxColourData &GetColourData() { return m_data; } virtual int ShowModal(); protected: // implement some base class methods to do nothing to avoid asserts and // GTK warnings, since this is not a real wxDialog. virtual void DoSetSize(int WXUNUSED(x), int WXUNUSED(y), int WXUNUSED(width), int WXUNUSED(height), int WXUNUSED(sizeFlags) = wxSIZE_AUTO) {} virtual void DoMoveWindow(int WXUNUSED(x), int WXUNUSED(y), int WXUNUSED(width), int WXUNUSED(height)) {} // copy data between the dialog and m_colourData: void ColourDataToDialog(); void DialogToColourData(); wxColourData m_data; wxDECLARE_DYNAMIC_CLASS(wxColourDialog); }; #endif
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/button.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/gtk1/button.h // Purpose: // Author: Robert Roebling // Copyright: (c) 1998 Robert Roebling // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef __GTKBUTTONH__ #define __GTKBUTTONH__ #include "wx/defs.h" #include "wx/object.h" #include "wx/list.h" //----------------------------------------------------------------------------- // wxButton //----------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxButton: public wxButtonBase { public: wxButton(); wxButton(wxWindow *parent, wxWindowID id, const wxString& label = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxButtonNameStr) { Create(parent, id, label, pos, size, style, validator, name); } virtual ~wxButton(); bool Create(wxWindow *parent, wxWindowID id, const wxString& label = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxButtonNameStr); virtual wxWindow *SetDefault(); virtual void SetLabel( const wxString &label ); virtual bool Enable( bool enable = TRUE ); // implementation // -------------- void DoApplyWidgetStyle(GtkRcStyle *style); bool IsOwnGtkWindow( GdkWindow *window ); // Since this wxButton doesn't derive from wxButtonBase (why?) we need // to override this here too... virtual bool ShouldInheritColours() const { return false; } static wxVisualAttributes GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); protected: virtual wxSize DoGetBestSize() const; private: wxDECLARE_DYNAMIC_CLASS(wxButton); }; #endif // __GTKBUTTONH__
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/treectrl.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/gtk1/treectrl.h // Purpose: wxTreeCtrl class // Author: Denis Pershin // Modified by: // Created: 08/08/98 // Copyright: (c) Denis Pershin // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef _WX_TREECTRL_H_ #define _WX_TREECTRL_H_ #include "wx/textctrl.h" #include "wx/imaglist.h" #include <gtk/gtk.h> // the type for "untyped" data typedef long wxDataType; // fwd decl class WXDLLIMPEXP_CORE wxImageList; struct wxTreeViewItem; // a callback function used for sorting tree items, it should return -1 if the // first item precedes the second, +1 if the second precedes the first or 0 if // they're equivalent class WXDLLIMPEXP_FWD_CORE wxTreeItemData; typedef int (*wxTreeItemCmpFunc)(wxTreeItemData *item1, wxTreeItemData *item2); // ---------------------------------------------------------------------------- // constants // ---------------------------------------------------------------------------- // values for the `flags' parameter of wxTreeCtrl::HitTest() which determine // where exactly the specified point is situated: // above the client area. static const int wxTREE_HITTEST_ABOVE = 0x0001; // below the client area. static const int wxTREE_HITTEST_BELOW = 0x0002; // in the client area but below the last item. static const int wxTREE_HITTEST_NOWHERE = 0x0004; // on the button associated with an item. static const int wxTREE_HITTEST_ONITEMBUTTON = 0x0010; // on the bitmap associated with an item. static const int wxTREE_HITTEST_ONITEMICON = 0x0020; // in the indentation associated with an item. static const int wxTREE_HITTEST_ONITEMINDENT = 0x0040; // on the label (string) associated with an item. static const int wxTREE_HITTEST_ONITEMLABEL = 0x0080; // in the area to the right of an item. static const int wxTREE_HITTEST_ONITEMRIGHT = 0x0100; // on the state icon for a tree view item that is in a user-defined state. static const int wxTREE_HITTEST_ONITEMSTATEICON = 0x0200; // to the right of the client area. static const int wxTREE_HITTEST_TOLEFT = 0x0400; // to the left of the client area. static const int wxTREE_HITTEST_TORIGHT = 0x0800; // anywhere on the item static const int wxTREE_HITTEST_ONITEM = wxTREE_HITTEST_ONITEMICON | wxTREE_HITTEST_ONITEMLABEL | wxTREE_HITTEST_ONITEMSTATEICON; // ---------------------------------------------------------------------------- // wxTreeItemId identifies an element of the tree. In this implementation, it's // just a trivial wrapper around GTK GtkTreeItem *. It's opaque for the // application. // ---------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxTreeItemId { public: // ctors wxTreeItemId() { m_itemId = NULL; } // default copy ctor/assignment operator are ok for us // accessors // is this a valid tree item? bool IsOk() const { return m_itemId != NULL; } // conversion to/from either real (system-dependent) tree item id or // to "long" which used to be the type for tree item ids in previous // versions of wxWidgets // for wxTreeCtrl usage only wxTreeItemId(GtkTreeItem *itemId) { m_itemId = itemId; } operator GtkTreeItem *() const { return m_itemId; } void operator =(GtkTreeItem *item) { m_itemId = item; } protected: GtkTreeItem *m_itemId; }; // ---------------------------------------------------------------------------- // wxTreeItemData is some (arbitrary) user class associated with some item. The // main advantage of having this class (compared to old untyped interface) is // that wxTreeItemData's are destroyed automatically by the tree and, as this // class has virtual dtor, it means that the memory will be automatically // freed. OTOH, we don't just use wxObject instead of wxTreeItemData because // the size of this class is critical: in any real application, each tree leaf // will have wxTreeItemData associated with it and number of leaves may be // quite big. // // Because the objects of this class are deleted by the tree, they should // always be allocated on the heap! // ---------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxTreeItemData : private wxTreeItemId { public: // default ctor/copy ctor/assignment operator are ok // dtor is virtual and all the items are deleted by the tree control when // it's deleted, so you normally don't have to care about freeing memory // allocated in your wxTreeItemData-derived class virtual ~wxTreeItemData() { } // accessors: set/get the item associated with this node void SetId(const wxTreeItemId& id) { m_itemId = id; } const wxTreeItemId& GetId() const { return (wxTreeItemId&) m_itemId; } }; class WXDLLIMPEXP_CORE wxTreeCtrl: public wxControl { public: // creation // -------- wxTreeCtrl() { Init(); } wxTreeCtrl(wxWindow *parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxTR_HAS_BUTTONS | wxTR_LINES_AT_ROOT, const wxValidator& validator = wxDefaultValidator, const wxString& name = "wxTreeCtrl") { Create(parent, id, pos, size, style, validator, name); } virtual ~wxTreeCtrl(); bool Create(wxWindow *parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxTR_HAS_BUTTONS | wxTR_LINES_AT_ROOT, const wxValidator& validator = wxDefaultValidator, const wxString& name = "wxTreeCtrl"); // accessors // --------- // get the total number of items in the control virtual unsigned int GetCount() const; // indent is the number of pixels the children are indented relative to // the parents position. SetIndent() also redraws the control // immediately. unsigned int GetIndent() const; void SetIndent(unsigned int indent); // image list: these functions allow to associate an image list with // the control and retrieve it. Note that the control does _not_ delete // the associated image list when it's deleted in order to allow image // lists to be shared between different controls. // // The normal image list is for the icons which correspond to the // normal tree item state (whether it is selected or not). // Additionally, the application might choose to show a state icon // which corresponds to an app-defined item state (for example, // checked/unchecked) which are taken from the state image list. wxImageList *GetImageList() const; wxImageList *GetStateImageList() const; void SetImageList(wxImageList *imageList); void SetStateImageList(wxImageList *imageList); // Functions to work with tree ctrl items. Unfortunately, they can _not_ be // member functions of wxTreeItem because they must know the tree the item // belongs to for Windows implementation and storing the pointer to // wxTreeCtrl in each wxTreeItem is just too much waste. // accessors // --------- // retrieve items label wxString GetItemText(const wxTreeItemId& item) const; // get the normal item image int GetItemImage(const wxTreeItemId& item) const; // get the data associated with the item wxTreeItemData *GetItemData(const wxTreeItemId& item) const; // modifiers // --------- // set items label void SetItemText(const wxTreeItemId& item, const wxString& text); // set the normal item image void SetItemImage(const wxTreeItemId& item, int image); // associate some data with the item void SetItemData(const wxTreeItemId& item, wxTreeItemData *data); // item status inquiries // --------------------- // is the item visible (it might be outside the view or not expanded)? bool IsVisible(const wxTreeItemId& item) const; // does the item has any children? bool ItemHasChildren(const wxTreeItemId& item) const; // is the item expanded (only makes sense if HasChildren())? bool IsExpanded(const wxTreeItemId& item) const; // is this item currently selected (the same as has focus)? bool IsSelected(const wxTreeItemId& item) const; // number of children // ------------------ // if 'recursively' is false, only immediate children count, otherwise // the returned number is the number of all items in this branch size_t GetChildrenCount(const wxTreeItemId& item, bool recursively = true); // navigation // ---------- // wxTreeItemId.IsOk() will return false if there is no such item // get the root tree item wxTreeItemId GetRootItem() const; // get the item currently selected (may return NULL if no selection) wxTreeItemId GetSelection() const; // get the parent of this item (may return NULL if root) wxTreeItemId GetItemParent(const wxTreeItemId& item) const; // for this enumeration function you must pass in a "cookie" parameter // which is opaque for the application but is necessary for the library // to make these functions reentrant (i.e. allow more than one // enumeration on one and the same object simultaneously). Of course, // the "cookie" passed to GetFirstChild() and GetNextChild() should be // the same! // get the last child of this item - this method doesn't use cookies wxTreeItemId GetLastChild(const wxTreeItemId& item) const; // get the next sibling of this item wxTreeItemId GetNextSibling(const wxTreeItemId& item) const; // get the previous sibling wxTreeItemId GetPrevSibling(const wxTreeItemId& item) const; // get first visible item wxTreeItemId GetFirstVisibleItem() const; // get the next visible item: item must be visible itself! // see IsVisible() and wxTreeCtrl::GetFirstVisibleItem() wxTreeItemId GetNextVisible(const wxTreeItemId& item) const; // get the previous visible item: item must be visible itself! wxTreeItemId GetPrevVisible(const wxTreeItemId& item) const; // operations // ---------- // add the root node to the tree wxTreeItemId AddRoot(const wxString& text, int image = -1, int selectedImage = -1, wxTreeItemData *data = NULL); // insert a new item in as the first child of the parent wxTreeItemId PrependItem(const wxTreeItemId& parent, const wxString& text, int image = -1, int selectedImage = -1, wxTreeItemData *data = NULL); // insert a new item after a given one wxTreeItemId InsertItem(const wxTreeItemId& parent, const wxTreeItemId& idPrevious, const wxString& text, int image = -1, int selectedImage = -1, wxTreeItemData *data = NULL); // insert a new item in as the last child of the parent wxTreeItemId AppendItem(const wxTreeItemId& parent, const wxString& text, int image = -1, int selectedImage = -1, wxTreeItemData *data = NULL); // delete this item and associated data if any void Delete(const wxTreeItemId& item); // delete all items from the tree void DeleteAllItems(); // expand this item void Expand(const wxTreeItemId& item); // collapse the item without removing its children void Collapse(const wxTreeItemId& item); // collapse the item and remove all children void CollapseAndReset(const wxTreeItemId& item); // toggles the current state void Toggle(const wxTreeItemId& item); // remove the selection from currently selected item (if any) void Unselect(); // select this item void SelectItem(const wxTreeItemId& item); // make sure this item is visible (expanding the parent item and/or // scrolling to this item if necessary) void EnsureVisible(const wxTreeItemId& item); // scroll to this item (but don't expand its parent) void ScrollTo(const wxTreeItemId& item); // start editing the item label: this (temporarily) replaces the item // with a one line edit control. The item will be selected if it hadn't // been before. textCtrlClass parameter allows you to create an edit // control of arbitrary user-defined class deriving from wxTextCtrl. wxTextCtrl* EditLabel(const wxTreeItemId& item, wxClassInfo* textCtrlClass = wxCLASSINFO(wxTextCtrl)); // returns the same pointer as StartEdit() if the item is being edited, // NULL otherwise (it's assumed that no more than one item may be // edited simultaneously) wxTextCtrl* GetEditControl() const; // end editing and accept or discard the changes to item label void EndEditLabel(const wxTreeItemId& item, bool discardChanges = false); // sort the children of this item using the specified callback function // (it should return -1, 0 or +1 as usual), if it's not specified // alphabetical comparaison is performed. // // NB: this function is not reentrant! void SortChildren(const wxTreeItemId& item, wxTreeItemCmpFunc *cmpFunction = NULL); // use Set/GetImageList and Set/GetStateImageList wxImageList *GetImageList(int) const { return GetImageList(); } void SendExpanding(const wxTreeItemId& item); void SendExpanded(const wxTreeItemId& item); void SendCollapsing(const wxTreeItemId& item); void SendCollapsed(const wxTreeItemId& item); void SendSelChanging(const wxTreeItemId& item); void SendSelChanged(const wxTreeItemId& item); protected: wxTreeItemId m_editItem; GtkTree *m_tree; GtkTreeItem *m_anchor; wxTextCtrl* m_textCtrl; wxImageList* m_imageListNormal; wxImageList* m_imageListState; long m_curitemId; void SendMessage(wxEventType command, const wxTreeItemId& item); // GtkTreeItem *findGtkTreeItem(wxTreeCtrlId &id) const; // the common part of all ctors void Init(); // insert a new item in as the last child of the parent wxTreeItemId p_InsertItem(GtkTreeItem *p, const wxString& text, int image, int selectedImage, wxTreeItemData *data); wxDECLARE_DYNAMIC_CLASS(wxTreeCtrl); }; #endif // _WX_TREECTRL_H_
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/textctrl.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/gtk1/textctrl.h // Purpose: // Author: Robert Roebling // Created: 01/02/97 // Copyright: (c) 1998 Robert Roebling // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef __GTKTEXTCTRLH__ #define __GTKTEXTCTRLH__ //----------------------------------------------------------------------------- // wxTextCtrl //----------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxTextCtrl: public wxTextCtrlBase { public: wxTextCtrl() { Init(); } wxTextCtrl(wxWindow *parent, wxWindowID id, const wxString &value = wxEmptyString, const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString &name = wxTextCtrlNameStr); virtual ~wxTextCtrl(); bool Create(wxWindow *parent, wxWindowID id, const wxString &value = wxEmptyString, const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString &name = wxTextCtrlNameStr); // implement base class pure virtuals // ---------------------------------- virtual int GetLineLength(long lineNo) const; virtual wxString GetLineText(long lineNo) const; virtual int GetNumberOfLines() const; virtual bool IsModified() const; virtual bool IsEditable() const; // If the return values from and to are the same, there is no selection. virtual void GetSelection(long* from, long* to) const; // operations // ---------- // editing virtual void Clear(); virtual void Replace(long from, long to, const wxString& value); virtual void Remove(long from, long to); // sets/clears the dirty flag virtual void MarkDirty(); virtual void DiscardEdits(); virtual void SetMaxLength(unsigned long len); // writing text inserts it at the current position, appending always // inserts it at the end virtual void WriteText(const wxString& text); virtual void AppendText(const wxString& text); // apply text attribute to the range of text (only works with richedit // controls) virtual bool SetStyle(long start, long end, const wxTextAttr& style); // translate between the position (which is just an index in the text ctrl // considering all its contents as a single strings) and (x, y) coordinates // which represent column and line. virtual long XYToPosition(long x, long y) const; virtual bool PositionToXY(long pos, long *x, long *y) const; virtual void ShowPosition(long pos); // Clipboard operations virtual void Copy(); virtual void Cut(); virtual void Paste(); // Undo/redo virtual void Undo(); virtual void Redo(); virtual bool CanUndo() const; virtual bool CanRedo() const; // Insertion point virtual void SetInsertionPoint(long pos); virtual void SetInsertionPointEnd(); virtual long GetInsertionPoint() const; virtual wxTextPos GetLastPosition() const; virtual void SetSelection(long from, long to); virtual void SetEditable(bool editable); virtual void DoEnable( bool enable ); // Implementation from now on void OnDropFiles( wxDropFilesEvent &event ); void OnChar( wxKeyEvent &event ); void OnCut(wxCommandEvent& event); void OnCopy(wxCommandEvent& event); void OnPaste(wxCommandEvent& event); void OnUndo(wxCommandEvent& event); void OnRedo(wxCommandEvent& event); void OnUpdateCut(wxUpdateUIEvent& event); void OnUpdateCopy(wxUpdateUIEvent& event); void OnUpdatePaste(wxUpdateUIEvent& event); void OnUpdateUndo(wxUpdateUIEvent& event); void OnUpdateRedo(wxUpdateUIEvent& event); bool SetFont(const wxFont& font); bool SetForegroundColour(const wxColour& colour); bool SetBackgroundColour(const wxColour& colour); GtkWidget* GetConnectWidget(); bool IsOwnGtkWindow( GdkWindow *window ); void DoApplyWidgetStyle(GtkRcStyle *style); void CalculateScrollbar(); void OnInternalIdle(); void SetUpdateFont(bool update) { m_updateFont = update; } void UpdateFontIfNeeded(); void SetModified() { m_modified = true; } // textctrl specific scrolling virtual bool ScrollLines(int lines); virtual bool ScrollPages(int pages); // implementation only from now on // tell the control to ignore next text changed signal void IgnoreNextTextUpdate(); // should we ignore the changed signal? always resets the flag bool IgnoreTextUpdate(); static wxVisualAttributes GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); protected: virtual wxSize DoGetBestSize() const; // common part of all ctors void Init(); // overridden wxWindow methods virtual void DoFreeze(); virtual void DoThaw(); // get the vertical adjustment, if any, NULL otherwise GtkAdjustment *GetVAdj() const; // scroll the control by the given number of pixels, return true if the // scroll position changed bool DoScroll(GtkAdjustment *adj, int diff); // Widgets that use the style->base colour for the BG colour should // override this and return true. virtual bool UseGTKStyleBase() const { return true; } virtual void DoSetValue(const wxString &value, int flags = 0); virtual wxString DoGetValue() const; private: // change the font for everything in this control void ChangeFontGlobally(); GtkWidget *m_text; GtkWidget *m_vScrollbar; bool m_modified:1; bool m_vScrollbarVisible:1; bool m_updateFont:1; bool m_ignoreNextUpdate:1; wxDECLARE_EVENT_TABLE(); wxDECLARE_DYNAMIC_CLASS(wxTextCtrl); }; #endif // __GTKTEXTCTRLH__
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/private/mnemonics.h
/////////////////////////////////////////////////////////////////////////////// // Name: wx/gtk1/private/mnemonics.h // Purpose: helper functions for dealing with GTK+ mnemonics // Author: Vadim Zeitlin // Created: 2007-11-12 // Copyright: (c) 2007 Vadim Zeitlin <[email protected]> // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// #ifndef _GTK_PRIVATE_MNEMONICS_H_ #define _GTK_PRIVATE_MNEMONICS_H_ #if wxUSE_CONTROLS || wxUSE_MENUS #include "wx/string.h" // ---------------------------------------------------------------------------- // functions to convert between wxWidgets and GTK+ string containing mnemonics // ---------------------------------------------------------------------------- // remove all mnemonics from a string wxString wxGTKRemoveMnemonics(const wxString& label); // convert a wx string with '&' to GTK+ string with '_'s wxString wxConvertMnemonicsToGTK(const wxString& label); // convert a wx string with '&' to indicate mnemonics as well as HTML entities // to a GTK+ string with "&amp;" used instead of '&', i.e. suitable for use // with GTK+ functions using markup strings wxString wxConvertMnemonicsToGTKMarkup(const wxString& label); // convert GTK+ string with '_'s to wx string with '&'s wxString wxConvertMnemonicsFromGTK(const wxString& label); #endif // wxUSE_CONTROLS || wxUSE_MENUS #endif // _GTK_PRIVATE_MNEMONICS_H_
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/private/addremovectrl.h
/////////////////////////////////////////////////////////////////////////////// // Name: wx/gtk/private/addremovectrl.h // Purpose: GTK specific wxAddRemoveImpl implementation // Author: Vadim Zeitlin // Created: 2015-02-05 // Copyright: (c) 2015 Vadim Zeitlin <[email protected]> // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// #ifndef _WX_GTK_PRIVATE_ADDREMOVECTRL_H_ #define _WX_GTK_PRIVATE_ADDREMOVECTRL_H_ #include "wx/artprov.h" #include "wx/bmpbuttn.h" #include "wx/toolbar.h" #include <gtk/gtk.h> // ---------------------------------------------------------------------------- // wxAddRemoveImpl // ---------------------------------------------------------------------------- class wxAddRemoveImpl : public wxAddRemoveImplBase { public: wxAddRemoveImpl(wxAddRemoveAdaptor* adaptor, wxAddRemoveCtrl* parent, wxWindow* ctrlItems) : wxAddRemoveImplBase(adaptor, parent, ctrlItems), m_tbar(new wxToolBar(parent, wxID_ANY)) { m_tbar->AddTool(wxID_ADD, wxString(), GetNamedBitmap("list-add")); m_tbar->AddTool(wxID_REMOVE, wxString(), GetNamedBitmap("list-remove")); #if defined(__WXGTK3__) && !defined(__WXUNIVERSAL__) // Tweak the toolbar appearance to correspond to how the toolbars used // in other GNOME applications for similar purposes look. GtkToolbar* const toolbar = m_tbar->GTKGetToolbar(); GtkStyleContext* context = gtk_widget_get_style_context(GTK_WIDGET(toolbar)); gtk_style_context_add_class(context, GTK_STYLE_CLASS_INLINE_TOOLBAR); gtk_style_context_set_junction_sides(context, GTK_JUNCTION_TOP); #endif // GTK+3 wxSizer* const sizerTop = new wxBoxSizer(wxVERTICAL); sizerTop->Add(ctrlItems, wxSizerFlags(1).Expand()); sizerTop->Add(m_tbar, wxSizerFlags().Expand()); parent->SetSizer(sizerTop); m_tbar->Bind(wxEVT_UPDATE_UI, &wxAddRemoveImplBase::OnUpdateUIAdd, this, wxID_ADD); m_tbar->Bind(wxEVT_UPDATE_UI, &wxAddRemoveImplBase::OnUpdateUIRemove, this, wxID_REMOVE); m_tbar->Bind(wxEVT_TOOL, &wxAddRemoveImplBase::OnAdd, this, wxID_ADD); m_tbar->Bind(wxEVT_TOOL, &wxAddRemoveImplBase::OnRemove, this, wxID_REMOVE); } virtual void SetButtonsToolTips(const wxString& addtip, const wxString& removetip) wxOVERRIDE { m_tbar->SetToolShortHelp(wxID_ADD, addtip); m_tbar->SetToolShortHelp(wxID_REMOVE, removetip); } private: static wxBitmap GetNamedBitmap(const wxString& name) { // GTK UI guidelines recommend using "symbolic" versions of the icons // for these buttons, so try them first but fall back to the normal // ones if symbolic theme is not installed. wxBitmap bmp = wxArtProvider::GetBitmap(name + "-symbolic", wxART_MENU); if ( !bmp.IsOk() ) bmp = wxArtProvider::GetBitmap(name, wxART_MENU); return bmp; } wxToolBar* const m_tbar; }; #endif // _WX_GTK_PRIVATE_ADDREMOVECTRL_H_
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/gtk1/private/timer.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/gtk1/private/timer.h // Purpose: wxTimerImpl for wxGTK // Author: Robert Roebling // Copyright: (c) 1998 Robert Roebling // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef _WX_GTK1_PRIVATE_TIMER_H_ #define _WX_GTK1_PRIVATE_TIMER_H_ #include "wx/private/timer.h" //----------------------------------------------------------------------------- // wxTimer //----------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxGTKTimerImpl : public wxTimerImpl { public: wxGTKTimerImpl(wxTimer *timer) : wxTimerImpl(timer) { m_tag = -1; } virtual bool Start(int millisecs = -1, bool oneShot = FALSE); virtual void Stop(); virtual bool IsRunning() const { return m_tag != -1; } private: // registered timeout id, -1 if the timer isn't running int m_tag; }; #endif // _WX_GTK1_PRIVATE_TIMER_H_
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/univ/setup.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/univ/setup.h // Purpose: Configuration for the universal build of the library // Author: Julian Smart // Created: 01/02/97 // Copyright: (c) Julian Smart // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef _WX_SETUP_H_ #define _WX_SETUP_H_ /* --- start common options --- */ // ---------------------------------------------------------------------------- // global settings // ---------------------------------------------------------------------------- // define this to 0 when building wxBase library - this can also be done from // makefile/project file overriding the value here #ifndef wxUSE_GUI #define wxUSE_GUI 1 #endif // wxUSE_GUI // ---------------------------------------------------------------------------- // compatibility settings // ---------------------------------------------------------------------------- // This setting determines the compatibility with 2.8 API: set it to 0 to // flag all cases of using deprecated functions. // // Default is 1 but please try building your code with 0 as the default will // change to 0 in the next version and the deprecated functions will disappear // in the version after it completely. // // Recommended setting: 0 (please update your code) #define WXWIN_COMPATIBILITY_2_8 0 // This setting determines the compatibility with 3.0 API: set it to 0 to // flag all cases of using deprecated functions. // // Default is 1 but please try building your code with 0 as the default will // change to 0 in the next version and the deprecated functions will disappear // in the version after it completely. // // Recommended setting: 0 (please update your code) #define WXWIN_COMPATIBILITY_3_0 1 // MSW-only: Set to 0 for accurate dialog units, else 1 for old behaviour when // default system font is used for wxWindow::GetCharWidth/Height() instead of // the current font. // // Default is 0 // // Recommended setting: 0 #define wxDIALOG_UNIT_COMPATIBILITY 0 // Provide unsafe implicit conversions in wxString to "const char*" or // "std::string" (depending on wxUSE_STD_STRING_CONV_IN_WXSTRING value). // // Default is 1 but only for compatibility reasons, it is recommended to set // this to 0 because converting wxString to a narrow (non-Unicode) string may // fail unless a locale using UTF-8 encoding is used, which is never the case // under MSW, for example, hence such conversions can result in silent data // loss. // // Recommended setting: 0 #define wxUSE_UNSAFE_WXSTRING_CONV 1 // If set to 1, enables "reproducible builds", i.e. build output should be // exactly the same if the same build is redone again. As using __DATE__ and // __TIME__ macros clearly makes the build irreproducible, setting this option // to 1 disables their use in the library code. // // Default is 0 // // Recommended setting: 0 #define wxUSE_REPRODUCIBLE_BUILD 0 // ---------------------------------------------------------------------------- // debugging settings // ---------------------------------------------------------------------------- // wxDEBUG_LEVEL will be defined as 1 in wx/debug.h so normally there is no // need to define it here. You may do it for two reasons: either completely // disable/compile out the asserts in release version (then do it inside #ifdef // NDEBUG) or, on the contrary, enable more asserts, including the usually // disabled ones, in the debug build (then do it inside #ifndef NDEBUG) // // #ifdef NDEBUG // #define wxDEBUG_LEVEL 0 // #else // #define wxDEBUG_LEVEL 2 // #endif // wxHandleFatalExceptions() may be used to catch the program faults at run // time and, instead of terminating the program with a usual GPF message box, // call the user-defined wxApp::OnFatalException() function. If you set // wxUSE_ON_FATAL_EXCEPTION to 0, wxHandleFatalExceptions() will not work. // // This setting is for Win32 only and can only be enabled if your compiler // supports Win32 structured exception handling (currently only VC++ does) // // Default is 1 // // Recommended setting: 1 if your compiler supports it. #define wxUSE_ON_FATAL_EXCEPTION 1 // Set this to 1 to be able to generate a human-readable (unlike // machine-readable minidump created by wxCrashReport::Generate()) stack back // trace when your program crashes using wxStackWalker // // Default is 1 if supported by the compiler. // // Recommended setting: 1, set to 0 if your programs never crash #define wxUSE_STACKWALKER 1 // Set this to 1 to compile in wxDebugReport class which allows you to create // and optionally upload to your web site a debug report consisting of back // trace of the crash (if wxUSE_STACKWALKER == 1) and other information. // // Default is 1 if supported by the compiler. // // Recommended setting: 1, it is compiled into a separate library so there // is no overhead if you don't use it #define wxUSE_DEBUGREPORT 1 // Generic comment about debugging settings: they are very useful if you don't // use any other memory leak detection tools such as Purify/BoundsChecker, but // are probably redundant otherwise. Also, Visual C++ CRT has the same features // as wxWidgets memory debugging subsystem built in since version 5.0 and you // may prefer to use it instead of built in memory debugging code because it is // faster and more fool proof. // // Using VC++ CRT memory debugging is enabled by default in debug build (_DEBUG // is defined) if wxUSE_GLOBAL_MEMORY_OPERATORS is *not* enabled (i.e. is 0) // and if __NO_VC_CRTDBG__ is not defined. // The rest of the options in this section are obsolete and not supported, // enable them at your own risk. // If 1, enables wxDebugContext, for writing error messages to file, etc. If // __WXDEBUG__ is not defined, will still use the normal memory operators. // // Default is 0 // // Recommended setting: 0 #define wxUSE_DEBUG_CONTEXT 0 // If 1, enables debugging versions of wxObject::new and wxObject::delete *IF* // __WXDEBUG__ is also defined. // // WARNING: this code may not work with all architectures, especially if // alignment is an issue. This switch is currently ignored for mingw / cygwin // // Default is 0 // // Recommended setting: 1 if you are not using a memory debugging tool, else 0 #define wxUSE_MEMORY_TRACING 0 // In debug mode, cause new and delete to be redefined globally. // If this causes problems (e.g. link errors which is a common problem // especially if you use another library which also redefines the global new // and delete), set this to 0. // This switch is currently ignored for mingw / cygwin // // Default is 0 // // Recommended setting: 0 #define wxUSE_GLOBAL_MEMORY_OPERATORS 0 // In debug mode, causes new to be defined to be WXDEBUG_NEW (see object.h). If // this causes problems (e.g. link errors), set this to 0. You may need to set // this to 0 if using templates (at least for VC++). This switch is currently // ignored for MinGW/Cygwin. // // Default is 0 // // Recommended setting: 0 #define wxUSE_DEBUG_NEW_ALWAYS 0 // ---------------------------------------------------------------------------- // Unicode support // ---------------------------------------------------------------------------- // These settings are obsolete: the library is always built in Unicode mode // now, only set wxUSE_UNICODE to 0 to compile legacy code in ANSI mode if // absolutely necessary -- updating it is strongly recommended as the ANSI mode // will disappear completely in future wxWidgets releases. #ifndef wxUSE_UNICODE #define wxUSE_UNICODE 1 #endif // wxUSE_WCHAR_T is required by wxWidgets now, don't change. #define wxUSE_WCHAR_T 1 // ---------------------------------------------------------------------------- // global features // ---------------------------------------------------------------------------- // Compile library in exception-safe mode? If set to 1, the library will try to // behave correctly in presence of exceptions (even though it still will not // use the exceptions itself) and notify the user code about any unhandled // exceptions. If set to 0, propagation of the exceptions through the library // code will lead to undefined behaviour -- but the code itself will be // slightly smaller and faster. // // Note that like wxUSE_THREADS this option is automatically set to 0 if // wxNO_EXCEPTIONS is defined. // // Default is 1 // // Recommended setting: depends on whether you intend to use C++ exceptions // in your own code (1 if you do, 0 if you don't) #define wxUSE_EXCEPTIONS 1 // Set wxUSE_EXTENDED_RTTI to 1 to use extended RTTI // // Default is 0 // // Recommended setting: 0 (this is still work in progress...) #define wxUSE_EXTENDED_RTTI 0 // Support for message/error logging. This includes wxLogXXX() functions and // wxLog and derived classes. Don't set this to 0 unless you really know what // you are doing. // // Default is 1 // // Recommended setting: 1 (always) #define wxUSE_LOG 1 // Recommended setting: 1 #define wxUSE_LOGWINDOW 1 // Recommended setting: 1 #define wxUSE_LOGGUI 1 // Recommended setting: 1 #define wxUSE_LOG_DIALOG 1 // Support for command line parsing using wxCmdLineParser class. // // Default is 1 // // Recommended setting: 1 (can be set to 0 if you don't use the cmd line) #define wxUSE_CMDLINE_PARSER 1 // Support for multithreaded applications: if 1, compile in thread classes // (thread.h) and make the library a bit more thread safe. Although thread // support is quite stable by now, you may still consider recompiling the // library without it if you have no use for it - this will result in a // somewhat smaller and faster operation. // // Notice that if wxNO_THREADS is defined, wxUSE_THREADS is automatically reset // to 0 in wx/chkconf.h, so, for example, if you set USE_THREADS to 0 in // build/msw/config.* file this value will have no effect. // // Default is 1 // // Recommended setting: 0 unless you do plan to develop MT applications #define wxUSE_THREADS 1 // If enabled, compiles wxWidgets streams classes // // wx stream classes are used for image IO, process IO redirection, network // protocols implementation and much more and so disabling this results in a // lot of other functionality being lost. // // Default is 1 // // Recommended setting: 1 as setting it to 0 disables many other things #define wxUSE_STREAMS 1 // Support for positional parameters (e.g. %1$d, %2$s ...) in wxVsnprintf. // Note that if the system's implementation does not support positional // parameters, setting this to 1 forces the use of the wxWidgets implementation // of wxVsnprintf. The standard vsnprintf() supports positional parameters on // many Unix systems but usually doesn't under Windows. // // Positional parameters are very useful when translating a program since using // them in formatting strings allow translators to correctly reorder the // translated sentences. // // Default is 1 // // Recommended setting: 1 if you want to support multiple languages #define wxUSE_PRINTF_POS_PARAMS 1 // Enable the use of compiler-specific thread local storage keyword, if any. // This is used for wxTLS_XXX() macros implementation and normally should use // the compiler-provided support as it's simpler and more efficient, but is // disabled under Windows in wx/msw/chkconf.h as it can't be used if wxWidgets // is used in a dynamically loaded Win32 DLL (i.e. using LoadLibrary()) under // XP as this triggers a bug in compiler TLS support that results in crashes // when any TLS variables are used. // // If you're absolutely sure that your build of wxWidgets is never going to be // used in such situation, either because it's not going to be linked from any // kind of plugin or because you only target Vista or later systems, you can // set this to 2 to force the use of compiler TLS even under MSW. // // Default is 1 meaning that compiler TLS is used only if it's 100% safe. // // Recommended setting: 2 if you want to have maximal performance and don't // care about the scenario described above. #define wxUSE_COMPILER_TLS 1 // ---------------------------------------------------------------------------- // Interoperability with the standard library. // ---------------------------------------------------------------------------- // Set wxUSE_STL to 1 to enable maximal interoperability with the standard // library, even at the cost of backwards compatibility. // // Default is 0 // // Recommended setting: 0 as the options below already provide a relatively // good level of interoperability and changing this option arguably isn't worth // diverging from the official builds of the library. #define wxUSE_STL 0 // This is not a real option but is used as the default value for // wxUSE_STD_IOSTREAM, wxUSE_STD_STRING and wxUSE_STD_CONTAINERS_COMPATIBLY. // // Set it to 0 if you want to disable the use of all standard classes // completely for some reason. #define wxUSE_STD_DEFAULT 1 // Use standard C++ containers where it can be done without breaking backwards // compatibility. // // This provides better interoperability with the standard library, e.g. with // this option on it's possible to insert std::vector<> into many wxWidgets // containers directly. // // Default is 1. // // Recommended setting is 1 unless you want to avoid all dependencies on the // standard library. #define wxUSE_STD_CONTAINERS_COMPATIBLY wxUSE_STD_DEFAULT // Use standard C++ containers to implement wxVector<>, wxStack<>, wxDList<> // and wxHashXXX<> classes. If disabled, wxWidgets own (mostly compatible but // usually more limited) implementations are used which allows to avoid the // dependency on the C++ run-time library. // // Default is 0 for compatibility reasons. // // Recommended setting: 1 unless compatibility with the official wxWidgets // build and/or the existing code is a concern. #define wxUSE_STD_CONTAINERS 0 // Use standard C++ streams if 1 instead of wx streams in some places. If // disabled, wx streams are used everywhere and wxWidgets doesn't depend on the // standard streams library. // // Notice that enabling this does not replace wx streams with std streams // everywhere, in a lot of places wx streams are used no matter what. // // Default is 1 if compiler supports it. // // Recommended setting: 1 if you use the standard streams anyhow and so // dependency on the standard streams library is not a // problem #define wxUSE_STD_IOSTREAM wxUSE_STD_DEFAULT // Enable minimal interoperability with the standard C++ string class if 1. // "Minimal" means that wxString can be constructed from std::string or // std::wstring but can't be implicitly converted to them. You need to enable // the option below for the latter. // // Default is 1 for most compilers. // // Recommended setting: 1 unless you want to ensure your program doesn't use // the standard C++ library at all. #define wxUSE_STD_STRING wxUSE_STD_DEFAULT // Make wxString as much interchangeable with std::[w]string as possible, in // particular allow implicit conversion of wxString to either of these classes. // This comes at a price (or a benefit, depending on your point of view) of not // allowing implicit conversion to "const char *" and "const wchar_t *". // // Because a lot of existing code relies on these conversions, this option is // disabled by default but can be enabled for your build if you don't care // about compatibility. // // Default is 0 if wxUSE_STL has its default value or 1 if it is enabled. // // Recommended setting: 0 to remain compatible with the official builds of // wxWidgets. #define wxUSE_STD_STRING_CONV_IN_WXSTRING wxUSE_STL // VC++ 4.2 and above allows <iostream> and <iostream.h> but you can't mix // them. Set this option to 1 to use <iostream.h>, 0 to use <iostream>. // // Note that newer compilers (including VC++ 7.1 and later) don't support // wxUSE_IOSTREAMH == 1 and so <iostream> will be used anyhow. // // Default is 0. // // Recommended setting: 0, only set to 1 if you use a really old compiler #define wxUSE_IOSTREAMH 0 // ---------------------------------------------------------------------------- // non GUI features selection // ---------------------------------------------------------------------------- // Set wxUSE_LONGLONG to 1 to compile the wxLongLong class. This is a 64 bit // integer which is implemented in terms of native 64 bit integers if any or // uses emulation otherwise. // // This class is required by wxDateTime and so you should enable it if you want // to use wxDateTime. For most modern platforms, it will use the native 64 bit // integers in which case (almost) all of its functions are inline and it // almost does not take any space, so there should be no reason to switch it // off. // // Recommended setting: 1 #define wxUSE_LONGLONG 1 // Set wxUSE_BASE64 to 1, to compile in Base64 support. This is required for // storing binary data in wxConfig on most platforms. // // Default is 1. // // Recommended setting: 1 (but can be safely disabled if you don't use it) #define wxUSE_BASE64 1 // Set this to 1 to be able to use wxEventLoop even in console applications // (i.e. using base library only, without GUI). This is mostly useful for // processing socket events but is also necessary to use timers in console // applications // // Default is 1. // // Recommended setting: 1 (but can be safely disabled if you don't use it) #define wxUSE_CONSOLE_EVENTLOOP 1 // Set wxUSE_(F)FILE to 1 to compile wx(F)File classes. wxFile uses low level // POSIX functions for file access, wxFFile uses ANSI C stdio.h functions. // // Default is 1 // // Recommended setting: 1 (wxFile is highly recommended as it is required by // i18n code, wxFileConfig and others) #define wxUSE_FILE 1 #define wxUSE_FFILE 1 // Use wxFSVolume class providing access to the configured/active mount points // // Default is 1 // // Recommended setting: 1 (but may be safely disabled if you don't use it) #define wxUSE_FSVOLUME 1 // Use wxSecretStore class for storing passwords using OS-specific facilities. // // Default is 1 // // Recommended setting: 1 (but may be safely disabled if you don't use it) #define wxUSE_SECRETSTORE 1 // Use wxStandardPaths class which allows to retrieve some standard locations // in the file system // // Default is 1 // // Recommended setting: 1 (may be disabled to save space, but not much) #define wxUSE_STDPATHS 1 // use wxTextBuffer class: required by wxTextFile #define wxUSE_TEXTBUFFER 1 // use wxTextFile class: requires wxFile and wxTextBuffer, required by // wxFileConfig #define wxUSE_TEXTFILE 1 // i18n support: _() macro, wxLocale class. Requires wxTextFile. #define wxUSE_INTL 1 // Provide wxFoo_l() functions similar to standard foo() functions but taking // an extra locale parameter. // // Notice that this is fully implemented only for the systems providing POSIX // xlocale support or Microsoft Visual C++ >= 8 (which provides proprietary // almost-equivalent of xlocale functions), otherwise wxFoo_l() functions will // only work for the current user locale and "C" locale. You can use // wxHAS_XLOCALE_SUPPORT to test whether the full support is available. // // Default is 1 // // Recommended setting: 1 but may be disabled if you are writing programs // running only in C locale anyhow #define wxUSE_XLOCALE 1 // Set wxUSE_DATETIME to 1 to compile the wxDateTime and related classes which // allow to manipulate dates, times and time intervals. // // Requires: wxUSE_LONGLONG // // Default is 1 // // Recommended setting: 1 #define wxUSE_DATETIME 1 // Set wxUSE_TIMER to 1 to compile wxTimer class // // Default is 1 // // Recommended setting: 1 #define wxUSE_TIMER 1 // Use wxStopWatch clas. // // Default is 1 // // Recommended setting: 1 (needed by wxSocket) #define wxUSE_STOPWATCH 1 // Set wxUSE_FSWATCHER to 1 if you want to enable wxFileSystemWatcher // // Default is 1 // // Recommended setting: 1 #define wxUSE_FSWATCHER 1 // Setting wxUSE_CONFIG to 1 enables the use of wxConfig and related classes // which allow the application to store its settings in the persistent // storage. Setting this to 1 will also enable on-demand creation of the // global config object in wxApp. // // See also wxUSE_CONFIG_NATIVE below. // // Recommended setting: 1 #define wxUSE_CONFIG 1 // If wxUSE_CONFIG is 1, you may choose to use either the native config // classes under Windows (using .INI files under Win16 and the registry under // Win32) or the portable text file format used by the config classes under // Unix. // // Default is 1 to use native classes. Note that you may still use // wxFileConfig even if you set this to 1 - just the config object created by // default for the applications needs will be a wxRegConfig or wxIniConfig and // not wxFileConfig. // // Recommended setting: 1 #define wxUSE_CONFIG_NATIVE 1 // If wxUSE_DIALUP_MANAGER is 1, compile in wxDialUpManager class which allows // to connect/disconnect from the network and be notified whenever the dial-up // network connection is established/terminated. Requires wxUSE_DYNAMIC_LOADER. // // Default is 1. // // Recommended setting: 1 #define wxUSE_DIALUP_MANAGER 1 // Compile in classes for run-time DLL loading and function calling. // Required by wxUSE_DIALUP_MANAGER. // // This setting is for Win32 only // // Default is 1. // // Recommended setting: 1 #define wxUSE_DYNLIB_CLASS 1 // experimental, don't use for now #define wxUSE_DYNAMIC_LOADER 1 // Set to 1 to use socket classes #define wxUSE_SOCKETS 1 // Set to 1 to use ipv6 socket classes (requires wxUSE_SOCKETS) // // Notice that currently setting this option under Windows will result in // programs which can only run on recent OS versions (with ws2_32.dll // installed) which is why it is disabled by default. // // Default is 1. // // Recommended setting: 1 if you need IPv6 support #define wxUSE_IPV6 0 // Set to 1 to enable virtual file systems (required by wxHTML) #define wxUSE_FILESYSTEM 1 // Set to 1 to enable virtual ZIP filesystem (requires wxUSE_FILESYSTEM) #define wxUSE_FS_ZIP 1 // Set to 1 to enable virtual archive filesystem (requires wxUSE_FILESYSTEM) #define wxUSE_FS_ARCHIVE 1 // Set to 1 to enable virtual Internet filesystem (requires wxUSE_FILESYSTEM) #define wxUSE_FS_INET 1 // wxArchive classes for accessing archives such as zip and tar #define wxUSE_ARCHIVE_STREAMS 1 // Set to 1 to compile wxZipInput/OutputStream classes. #define wxUSE_ZIPSTREAM 1 // Set to 1 to compile wxTarInput/OutputStream classes. #define wxUSE_TARSTREAM 1 // Set to 1 to compile wxZlibInput/OutputStream classes. Also required by // wxUSE_LIBPNG #define wxUSE_ZLIB 1 // Set to 1 if liblzma is available to enable wxLZMA{Input,Output}Stream // classes. // // Notice that if you enable this build option when not using configure or // CMake, you need to ensure that liblzma headers and libraries are available // (i.e. by building the library yourself or downloading its binaries) and can // be found, either by copying them to one of the locations searched by the // compiler/linker by default (e.g. any of the directories in the INCLUDE or // LIB environment variables, respectively, when using MSVC) or modify the // make- or project files to add references to these directories. // // Default is 0 under MSW, auto-detected by configure. // // Recommended setting: 1 if you need LZMA compression. #define wxUSE_LIBLZMA 0 // If enabled, the code written by Apple will be used to write, in a portable // way, float on the disk. See extended.c for the license which is different // from wxWidgets one. // // Default is 1. // // Recommended setting: 1 unless you don't like the license terms (unlikely) #define wxUSE_APPLE_IEEE 1 // Joystick support class #define wxUSE_JOYSTICK 1 // wxFontEnumerator class #define wxUSE_FONTENUM 1 // wxFontMapper class #define wxUSE_FONTMAP 1 // wxMimeTypesManager class #define wxUSE_MIMETYPE 1 // wxProtocol and related classes: if you want to use either of wxFTP, wxHTTP // or wxURL you need to set this to 1. // // Default is 1. // // Recommended setting: 1 #define wxUSE_PROTOCOL 1 // The settings for the individual URL schemes #define wxUSE_PROTOCOL_FILE 1 #define wxUSE_PROTOCOL_FTP 1 #define wxUSE_PROTOCOL_HTTP 1 // Define this to use wxURL class. #define wxUSE_URL 1 // Define this to use native platform url and protocol support. // Currently valid only for MS-Windows. // Note: if you set this to 1, you can open ftp/http/gopher sites // and obtain a valid input stream for these sites // even when you set wxUSE_PROTOCOL_FTP/HTTP to 0. // Doing so reduces the code size. // // This code is experimental and subject to change. #define wxUSE_URL_NATIVE 0 // Support for wxVariant class used in several places throughout the library, // notably in wxDataViewCtrl API. // // Default is 1. // // Recommended setting: 1 unless you want to reduce the library size as much as // possible in which case setting this to 0 can gain up to 100KB. #define wxUSE_VARIANT 1 // Support for wxAny class, the successor for wxVariant. // // Default is 1. // // Recommended setting: 1 unless you want to reduce the library size by a small amount, // or your compiler cannot for some reason cope with complexity of templates used. #define wxUSE_ANY 1 // Support for regular expression matching via wxRegEx class: enable this to // use POSIX regular expressions in your code. You need to compile regex // library from src/regex to use it under Windows. // // Default is 0 // // Recommended setting: 1 if your compiler supports it, if it doesn't please // contribute us a makefile for src/regex for it #define wxUSE_REGEX 1 // wxSystemOptions class #define wxUSE_SYSTEM_OPTIONS 1 // wxSound class #define wxUSE_SOUND 1 // Use wxMediaCtrl // // Default is 1. // // Recommended setting: 1 #define wxUSE_MEDIACTRL 1 // Use wxWidget's XRC XML-based resource system. Recommended. // // Default is 1 // // Recommended setting: 1 (requires wxUSE_XML) #define wxUSE_XRC 1 // XML parsing classes. Note that their API will change in the future, so // using wxXmlDocument and wxXmlNode in your app is not recommended. // // Default is the same as wxUSE_XRC, i.e. 1 by default. // // Recommended setting: 1 (required by XRC) #define wxUSE_XML wxUSE_XRC // Use wxWidget's AUI docking system // // Default is 1 // // Recommended setting: 1 #define wxUSE_AUI 1 // Use wxWidget's Ribbon classes for interfaces // // Default is 1 // // Recommended setting: 1 #define wxUSE_RIBBON 1 // Use wxPropertyGrid. // // Default is 1 // // Recommended setting: 1 #define wxUSE_PROPGRID 1 // Use wxStyledTextCtrl, a wxWidgets implementation of Scintilla. // // Default is 1 // // Recommended setting: 1 #define wxUSE_STC 1 // Use wxWidget's web viewing classes // // Default is 1 // // Recommended setting: 1 #define wxUSE_WEBVIEW 1 // Use the IE wxWebView backend // // Default is 1 on MSW // // Recommended setting: 1 #ifdef __WXMSW__ #define wxUSE_WEBVIEW_IE 1 #else #define wxUSE_WEBVIEW_IE 0 #endif // Use the WebKit wxWebView backend // // Default is 1 on GTK and OSX // // Recommended setting: 1 #if (defined(__WXGTK__) && !defined(__WXGTK3__)) || defined(__WXOSX__) #define wxUSE_WEBVIEW_WEBKIT 1 #else #define wxUSE_WEBVIEW_WEBKIT 0 #endif // Use the WebKit2 wxWebView backend // // Default is 1 on GTK3 // // Recommended setting: 1 #if defined(__WXGTK3__) #define wxUSE_WEBVIEW_WEBKIT2 1 #else #define wxUSE_WEBVIEW_WEBKIT2 0 #endif // Enable wxGraphicsContext and related classes for a modern 2D drawing API. // // Default is 1 except if you're using a compiler without support for GDI+ // under MSW, i.e. gdiplus.h and related headers (MSVC and MinGW >= 4.8 are // known to have them). For other compilers (e.g. older mingw32) you may need // to install the headers (and just the headers) yourself. If you do, change // the setting below manually. // // Recommended setting: 1 if supported by the compilation environment // Notice that we can't use wxCHECK_VISUALC_VERSION() nor wxCHECK_GCC_VERSION() // here as this file is included from wx/platform.h before they're defined. #if defined(_MSC_VER) || \ (defined(__MINGW32__) && (__GNUC__ > 4 || __GNUC_MINOR__ >= 8)) #define wxUSE_GRAPHICS_CONTEXT 1 #else // Disable support for other Windows compilers, enable it if your compiler // comes with new enough SDK or you installed the headers manually. // // Notice that this will be set by configure under non-Windows platforms // anyhow so the value there is not important. #define wxUSE_GRAPHICS_CONTEXT 0 #endif // Enable wxGraphicsContext implementation using Cairo library. // // This is not needed under Windows and detected automatically by configure // under other systems, however you may set this to 1 manually if you installed // Cairo under Windows yourself and prefer to use it instead the native GDI+ // implementation. // // Default is 0 // // Recommended setting: 0 #define wxUSE_CAIRO 0 // ---------------------------------------------------------------------------- // Individual GUI controls // ---------------------------------------------------------------------------- // You must set wxUSE_CONTROLS to 1 if you are using any controls at all // (without it, wxControl class is not compiled) // // Default is 1 // // Recommended setting: 1 (don't change except for very special programs) #define wxUSE_CONTROLS 1 // Support markup in control labels, i.e. provide wxControl::SetLabelMarkup(). // Currently markup is supported only by a few controls and only some ports but // their number will increase with time. // // Default is 1 // // Recommended setting: 1 (may be set to 0 if you want to save on code size) #define wxUSE_MARKUP 1 // wxPopupWindow class is a top level transient window. It is currently used // to implement wxTipWindow // // Default is 1 // // Recommended setting: 1 (may be set to 0 if you don't wxUSE_TIPWINDOW) #define wxUSE_POPUPWIN 1 // wxTipWindow allows to implement the custom tooltips, it is used by the // context help classes. Requires wxUSE_POPUPWIN. // // Default is 1 // // Recommended setting: 1 (may be set to 0) #define wxUSE_TIPWINDOW 1 // Each of the settings below corresponds to one wxWidgets control. They are // all switched on by default but may be disabled if you are sure that your // program (including any standard dialogs it can show!) doesn't need them and // if you desperately want to save some space. If you use any of these you must // set wxUSE_CONTROLS as well. // // Default is 1 // // Recommended setting: 1 #define wxUSE_ACTIVITYINDICATOR 1 // wxActivityIndicator #define wxUSE_ANIMATIONCTRL 1 // wxAnimationCtrl #define wxUSE_BANNERWINDOW 1 // wxBannerWindow #define wxUSE_BUTTON 1 // wxButton #define wxUSE_BMPBUTTON 1 // wxBitmapButton #define wxUSE_CALENDARCTRL 1 // wxCalendarCtrl #define wxUSE_CHECKBOX 1 // wxCheckBox #define wxUSE_CHECKLISTBOX 1 // wxCheckListBox (requires wxUSE_OWNER_DRAWN) #define wxUSE_CHOICE 1 // wxChoice #define wxUSE_COLLPANE 1 // wxCollapsiblePane #define wxUSE_COLOURPICKERCTRL 1 // wxColourPickerCtrl #define wxUSE_COMBOBOX 1 // wxComboBox #define wxUSE_COMMANDLINKBUTTON 1 // wxCommandLinkButton #define wxUSE_DATAVIEWCTRL 1 // wxDataViewCtrl #define wxUSE_DATEPICKCTRL 1 // wxDatePickerCtrl #define wxUSE_DIRPICKERCTRL 1 // wxDirPickerCtrl #define wxUSE_EDITABLELISTBOX 1 // wxEditableListBox #define wxUSE_FILECTRL 1 // wxFileCtrl #define wxUSE_FILEPICKERCTRL 1 // wxFilePickerCtrl #define wxUSE_FONTPICKERCTRL 1 // wxFontPickerCtrl #define wxUSE_GAUGE 1 // wxGauge #define wxUSE_HEADERCTRL 1 // wxHeaderCtrl #define wxUSE_HYPERLINKCTRL 1 // wxHyperlinkCtrl #define wxUSE_LISTBOX 1 // wxListBox #define wxUSE_LISTCTRL 1 // wxListCtrl #define wxUSE_RADIOBOX 1 // wxRadioBox #define wxUSE_RADIOBTN 1 // wxRadioButton #define wxUSE_RICHMSGDLG 1 // wxRichMessageDialog #define wxUSE_SCROLLBAR 1 // wxScrollBar #define wxUSE_SEARCHCTRL 1 // wxSearchCtrl #define wxUSE_SLIDER 1 // wxSlider #define wxUSE_SPINBTN 1 // wxSpinButton #define wxUSE_SPINCTRL 1 // wxSpinCtrl #define wxUSE_STATBOX 1 // wxStaticBox #define wxUSE_STATLINE 1 // wxStaticLine #define wxUSE_STATTEXT 1 // wxStaticText #define wxUSE_STATBMP 1 // wxStaticBitmap #define wxUSE_TEXTCTRL 1 // wxTextCtrl #define wxUSE_TIMEPICKCTRL 1 // wxTimePickerCtrl #define wxUSE_TOGGLEBTN 1 // requires wxButton #define wxUSE_TREECTRL 1 // wxTreeCtrl #define wxUSE_TREELISTCTRL 1 // wxTreeListCtrl // Use a status bar class? Depending on the value of wxUSE_NATIVE_STATUSBAR // below either wxStatusBar95 or a generic wxStatusBar will be used. // // Default is 1 // // Recommended setting: 1 #define wxUSE_STATUSBAR 1 // Two status bar implementations are available under Win32: the generic one // or the wrapper around native control. For native look and feel the native // version should be used. // // Default is 1 for the platforms where native status bar is supported. // // Recommended setting: 1 (there is no advantage in using the generic one) #define wxUSE_NATIVE_STATUSBAR 1 // wxToolBar related settings: if wxUSE_TOOLBAR is 0, don't compile any toolbar // classes at all. Otherwise, use the native toolbar class unless // wxUSE_TOOLBAR_NATIVE is 0. // // Default is 1 for all settings. // // Recommended setting: 1 for wxUSE_TOOLBAR and wxUSE_TOOLBAR_NATIVE. #define wxUSE_TOOLBAR 1 #define wxUSE_TOOLBAR_NATIVE 1 // wxNotebook is a control with several "tabs" located on one of its sides. It // may be used to logically organise the data presented to the user instead of // putting everything in one huge dialog. It replaces wxTabControl and related // classes of wxWin 1.6x. // // Default is 1. // // Recommended setting: 1 #define wxUSE_NOTEBOOK 1 // wxListbook control is similar to wxNotebook but uses wxListCtrl instead of // the tabs // // Default is 1. // // Recommended setting: 1 #define wxUSE_LISTBOOK 1 // wxChoicebook control is similar to wxNotebook but uses wxChoice instead of // the tabs // // Default is 1. // // Recommended setting: 1 #define wxUSE_CHOICEBOOK 1 // wxTreebook control is similar to wxNotebook but uses wxTreeCtrl instead of // the tabs // // Default is 1. // // Recommended setting: 1 #define wxUSE_TREEBOOK 1 // wxToolbook control is similar to wxNotebook but uses wxToolBar instead of // tabs // // Default is 1. // // Recommended setting: 1 #define wxUSE_TOOLBOOK 1 // wxTaskBarIcon is a small notification icon shown in the system toolbar or // dock. // // Default is 1. // // Recommended setting: 1 (but can be set to 0 if you don't need it) #define wxUSE_TASKBARICON 1 // wxGrid class // // Default is 1, set to 0 to cut down compilation time and binaries size if you // don't use it. // // Recommended setting: 1 // #define wxUSE_GRID 1 // wxMiniFrame class: a frame with narrow title bar // // Default is 1. // // Recommended setting: 1 (it doesn't cost almost anything) #define wxUSE_MINIFRAME 1 // wxComboCtrl and related classes: combobox with custom popup window and // not necessarily a listbox. // // Default is 1. // // Recommended setting: 1 but can be safely set to 0 except for wxUniv where it // it used by wxComboBox #define wxUSE_COMBOCTRL 1 // wxOwnerDrawnComboBox is a custom combobox allowing to paint the combobox // items. // // Default is 1. // // Recommended setting: 1 but can be safely set to 0, except where it is // needed as a base class for generic wxBitmapComboBox. #define wxUSE_ODCOMBOBOX 1 // wxBitmapComboBox is a combobox that can have images in front of text items. // // Default is 1. // // Recommended setting: 1 but can be safely set to 0 #define wxUSE_BITMAPCOMBOBOX 1 // wxRearrangeCtrl is a wxCheckListBox with two buttons allowing to move items // up and down in it. It is also used as part of wxRearrangeDialog. // // Default is 1. // // Recommended setting: 1 but can be safely set to 0 (currently used only by // wxHeaderCtrl) #define wxUSE_REARRANGECTRL 1 // wxAddRemoveCtrl is a composite control containing a control showing some // items (e.g. wxListBox, wxListCtrl, wxTreeCtrl, wxDataViewCtrl, ...) and "+"/ // "-" buttons allowing to add and remove items to/from the control. // // Default is 1. // // Recommended setting: 1 but can be safely set to 0 if you don't need it (not // used by the library itself). #define wxUSE_ADDREMOVECTRL 1 // ---------------------------------------------------------------------------- // Miscellaneous GUI stuff // ---------------------------------------------------------------------------- // wxAcceleratorTable/Entry classes and support for them in wxMenu(Bar) #define wxUSE_ACCEL 1 // Use the standard art provider. The icons returned by this provider are // embedded into the library as XPMs so disabling it reduces the library size // somewhat but this should only be done if you use your own custom art // provider returning the icons or never use any icons not provided by the // native art provider (which might not be implemented at all for some // platforms) or by the Tango icons provider (if it's not itself disabled // below). // // Default is 1. // // Recommended setting: 1 unless you use your own custom art provider. #define wxUSE_ARTPROVIDER_STD 1 // Use art provider providing Tango icons: this art provider has higher quality // icons than the default ones using smaller size XPM icons without // transparency but the embedded PNG icons add to the library size. // // Default is 1 under non-GTK ports. Under wxGTK the native art provider using // the GTK+ stock icons replaces it so it is normally not necessary. // // Recommended setting: 1 but can be turned off to reduce the library size. #define wxUSE_ARTPROVIDER_TANGO 1 // Hotkey support (currently Windows only) #define wxUSE_HOTKEY 1 // Use wxCaret: a class implementing a "cursor" in a text control (called caret // under Windows). // // Default is 1. // // Recommended setting: 1 (can be safely set to 0, not used by the library) #define wxUSE_CARET 1 // Use wxDisplay class: it allows enumerating all displays on a system and // their geometries as well as finding the display on which the given point or // window lies. // // Default is 1. // // Recommended setting: 1 if you need it, can be safely set to 0 otherwise #define wxUSE_DISPLAY 1 // Miscellaneous geometry code: needed for Canvas library #define wxUSE_GEOMETRY 1 // Use wxImageList. This class is needed by wxNotebook, wxTreeCtrl and // wxListCtrl. // // Default is 1. // // Recommended setting: 1 (set it to 0 if you don't use any of the controls // enumerated above, then this class is mostly useless too) #define wxUSE_IMAGLIST 1 // Use wxInfoBar class. // // Default is 1. // // Recommended setting: 1 (but can be disabled without problems as nothing // depends on it) #define wxUSE_INFOBAR 1 // Use wxMenu, wxMenuBar, wxMenuItem. // // Default is 1. // // Recommended setting: 1 (can't be disabled under MSW) #define wxUSE_MENUS 1 // Use wxNotificationMessage. // // wxNotificationMessage allows to show non-intrusive messages to the user // using balloons, banners, popups or whatever is the appropriate method for // the current platform. // // Default is 1. // // Recommended setting: 1 #define wxUSE_NOTIFICATION_MESSAGE 1 // wxPreferencesEditor provides a common API for different ways of presenting // the standard "Preferences" or "Properties" dialog under different platforms // (e.g. some use modal dialogs, some use modeless ones; some apply the changes // immediately while others require an explicit "Apply" button). // // Default is 1. // // Recommended setting: 1 (but can be safely disabled if you don't use it) #define wxUSE_PREFERENCES_EDITOR 1 // wxFont::AddPrivateFont() allows to use fonts not installed on the system by // loading them from font files during run-time. // // Default is 1 except under Unix where it will be turned off by configure if // the required libraries are not available or not new enough. // // Recommended setting: 1 (but can be safely disabled if you don't use it and // want to avoid extra dependencies under Linux, for example). #define wxUSE_PRIVATE_FONTS 1 // wxRichToolTip is a customizable tooltip class which has more functionality // than the stock (but native, unlike this class) wxToolTip. // // Default is 1. // // Recommended setting: 1 (but can be safely set to 0 if you don't need it) #define wxUSE_RICHTOOLTIP 1 // Use wxSashWindow class. // // Default is 1. // // Recommended setting: 1 #define wxUSE_SASH 1 // Use wxSplitterWindow class. // // Default is 1. // // Recommended setting: 1 #define wxUSE_SPLITTER 1 // Use wxToolTip and wxWindow::Set/GetToolTip() methods. // // Default is 1. // // Recommended setting: 1 #define wxUSE_TOOLTIPS 1 // wxValidator class and related methods #define wxUSE_VALIDATORS 1 // Use reference counted ID management: this means that wxWidgets will track // the automatically allocated ids (those used when you use wxID_ANY when // creating a window, menu or toolbar item &c) instead of just supposing that // the program never runs out of them. This is mostly useful only under wxMSW // where the total ids range is limited to SHRT_MIN..SHRT_MAX and where // long-running programs can run into problems with ids reuse without this. On // the other platforms, where the ids have the full int range, this shouldn't // be necessary. #ifdef __WXMSW__ #define wxUSE_AUTOID_MANAGEMENT 1 #else #define wxUSE_AUTOID_MANAGEMENT 0 #endif // ---------------------------------------------------------------------------- // common dialogs // ---------------------------------------------------------------------------- // On rare occasions (e.g. using DJGPP) may want to omit common dialogs (e.g. // file selector, printer dialog). Switching this off also switches off the // printing architecture and interactive wxPrinterDC. // // Default is 1 // // Recommended setting: 1 (unless it really doesn't work) #define wxUSE_COMMON_DIALOGS 1 // wxBusyInfo displays window with message when app is busy. Works in same way // as wxBusyCursor #define wxUSE_BUSYINFO 1 // Use single/multiple choice dialogs. // // Default is 1 // // Recommended setting: 1 (used in the library itself) #define wxUSE_CHOICEDLG 1 // Use colour picker dialog // // Default is 1 // // Recommended setting: 1 #define wxUSE_COLOURDLG 1 // wxDirDlg class for getting a directory name from user #define wxUSE_DIRDLG 1 // TODO: setting to choose the generic or native one // Use file open/save dialogs. // // Default is 1 // // Recommended setting: 1 (used in many places in the library itself) #define wxUSE_FILEDLG 1 // Use find/replace dialogs. // // Default is 1 // // Recommended setting: 1 (but may be safely set to 0) #define wxUSE_FINDREPLDLG 1 // Use font picker dialog // // Default is 1 // // Recommended setting: 1 (used in the library itself) #define wxUSE_FONTDLG 1 // Use wxMessageDialog and wxMessageBox. // // Default is 1 // // Recommended setting: 1 (used in the library itself) #define wxUSE_MSGDLG 1 // progress dialog class for lengthy operations #define wxUSE_PROGRESSDLG 1 // Set to 0 to disable the use of the native progress dialog (currently only // available under MSW and suffering from some bugs there, hence this option). #define wxUSE_NATIVE_PROGRESSDLG 1 // support for startup tips (wxShowTip &c) #define wxUSE_STARTUP_TIPS 1 // text entry dialog and wxGetTextFromUser function #define wxUSE_TEXTDLG 1 // number entry dialog #define wxUSE_NUMBERDLG 1 // splash screen class #define wxUSE_SPLASH 1 // wizards #define wxUSE_WIZARDDLG 1 // Compile in wxAboutBox() function showing the standard "About" dialog. // // Default is 1 // // Recommended setting: 1 but can be set to 0 to save some space if you don't // use this function #define wxUSE_ABOUTDLG 1 // wxFileHistory class // // Default is 1 // // Recommended setting: 1 #define wxUSE_FILE_HISTORY 1 // ---------------------------------------------------------------------------- // Metafiles support // ---------------------------------------------------------------------------- // Windows supports the graphics format known as metafile which, though not // portable, is widely used under Windows and so is supported by wxWidgets // (under Windows only, of course). Both the so-called "Window MetaFiles" or // WMFs, and "Enhanced MetaFiles" or EMFs are supported in wxWin and, by // default, EMFs will be used. This may be changed by setting // wxUSE_WIN_METAFILES_ALWAYS to 1 and/or setting wxUSE_ENH_METAFILE to 0. // You may also set wxUSE_METAFILE to 0 to not compile in any metafile // related classes at all. // // Default is 1 for wxUSE_ENH_METAFILE and 0 for wxUSE_WIN_METAFILES_ALWAYS. // // Recommended setting: default or 0 for everything for portable programs. #define wxUSE_METAFILE 1 #define wxUSE_ENH_METAFILE 1 #define wxUSE_WIN_METAFILES_ALWAYS 0 // ---------------------------------------------------------------------------- // Big GUI components // ---------------------------------------------------------------------------- // Set to 0 to disable MDI support. // // Requires wxUSE_NOTEBOOK under platforms other than MSW. // // Default is 1. // // Recommended setting: 1, can be safely set to 0. #define wxUSE_MDI 1 // Set to 0 to disable document/view architecture #define wxUSE_DOC_VIEW_ARCHITECTURE 1 // Set to 0 to disable MDI document/view architecture // // Requires wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE #define wxUSE_MDI_ARCHITECTURE 1 // Set to 0 to disable print/preview architecture code #define wxUSE_PRINTING_ARCHITECTURE 1 // wxHTML sublibrary allows to display HTML in wxWindow programs and much, // much more. // // Default is 1. // // Recommended setting: 1 (wxHTML is great!), set to 0 if you want compile a // smaller library. #define wxUSE_HTML 1 // Setting wxUSE_GLCANVAS to 1 enables OpenGL support. You need to have OpenGL // headers and libraries to be able to compile the library with wxUSE_GLCANVAS // set to 1 and, under Windows, also to add opengl32.lib and glu32.lib to the // list of libraries used to link your application (although this is done // implicitly for Microsoft Visual C++ users). // // Default is 1. // // Recommended setting: 1 if you intend to use OpenGL, can be safely set to 0 // otherwise. #define wxUSE_GLCANVAS 1 // wxRichTextCtrl allows editing of styled text. // // Default is 1. // // Recommended setting: 1, set to 0 if you want compile a // smaller library. #define wxUSE_RICHTEXT 1 // ---------------------------------------------------------------------------- // Data transfer // ---------------------------------------------------------------------------- // Use wxClipboard class for clipboard copy/paste. // // Default is 1. // // Recommended setting: 1 #define wxUSE_CLIPBOARD 1 // Use wxDataObject and related classes. Needed for clipboard and OLE drag and // drop // // Default is 1. // // Recommended setting: 1 #define wxUSE_DATAOBJ 1 // Use wxDropTarget and wxDropSource classes for drag and drop (this is // different from "built in" drag and drop in wxTreeCtrl which is always // available). Requires wxUSE_DATAOBJ. // // Default is 1. // // Recommended setting: 1 #define wxUSE_DRAG_AND_DROP 1 // Use wxAccessible for enhanced and customisable accessibility. // Depends on wxUSE_OLE on MSW. // // Default is 1 on MSW, 0 elsewhere. // // Recommended setting (at present): 1 (MSW-only) #ifdef __WXMSW__ #define wxUSE_ACCESSIBILITY 1 #else #define wxUSE_ACCESSIBILITY 0 #endif // ---------------------------------------------------------------------------- // miscellaneous settings // ---------------------------------------------------------------------------- // wxSingleInstanceChecker class allows to verify at startup if another program // instance is running. // // Default is 1 // // Recommended setting: 1 (the class is tiny, disabling it won't save much // space) #define wxUSE_SNGLINST_CHECKER 1 #define wxUSE_DRAGIMAGE 1 #define wxUSE_IPC 1 // 0 for no interprocess comms #define wxUSE_HELP 1 // 0 for no help facility // Should we use MS HTML help for wxHelpController? If disabled, neither // wxCHMHelpController nor wxBestHelpController are available. // // Default is 1 under MSW, 0 is always used for the other platforms. // // Recommended setting: 1, only set to 0 if you have trouble compiling // wxCHMHelpController (could be a problem with really ancient compilers) #define wxUSE_MS_HTML_HELP 1 // Use wxHTML-based help controller? #define wxUSE_WXHTML_HELP 1 #define wxUSE_CONSTRAINTS 1 // 0 for no window layout constraint system #define wxUSE_SPLINES 1 // 0 for no splines #define wxUSE_MOUSEWHEEL 1 // Include mouse wheel support // Compile wxUIActionSimulator class? #define wxUSE_UIACTIONSIMULATOR 1 // ---------------------------------------------------------------------------- // wxDC classes for various output formats // ---------------------------------------------------------------------------- // Set to 1 for PostScript device context. #define wxUSE_POSTSCRIPT 0 // Set to 1 to use font metric files in GetTextExtent #define wxUSE_AFM_FOR_POSTSCRIPT 1 // Set to 1 to compile in support for wxSVGFileDC, a wxDC subclass which allows // to create files in SVG (Scalable Vector Graphics) format. #define wxUSE_SVG 1 // Should wxDC provide SetTransformMatrix() and related methods? // // Default is 1 but can be set to 0 if this functionality is not used. Notice // that currently wxMSW, wxGTK3 support this for wxDC and all platforms support // this for wxGCDC so setting this to 0 doesn't change much if neither of these // is used (although it will still save a few bytes probably). // // Recommended setting: 1. #define wxUSE_DC_TRANSFORM_MATRIX 1 // ---------------------------------------------------------------------------- // image format support // ---------------------------------------------------------------------------- // wxImage supports many different image formats which can be configured at // compile-time. BMP is always supported, others are optional and can be safely // disabled if you don't plan to use images in such format sometimes saving // substantial amount of code in the final library. // // Some formats require an extra library which is included in wxWin sources // which is mentioned if it is the case. // Set to 1 for wxImage support (recommended). #define wxUSE_IMAGE 1 // Set to 1 for PNG format support (requires libpng). Also requires wxUSE_ZLIB. #define wxUSE_LIBPNG 1 // Set to 1 for JPEG format support (requires libjpeg) #define wxUSE_LIBJPEG 1 // Set to 1 for TIFF format support (requires libtiff) #define wxUSE_LIBTIFF 1 // Set to 1 for TGA format support (loading only) #define wxUSE_TGA 1 // Set to 1 for GIF format support #define wxUSE_GIF 1 // Set to 1 for PNM format support #define wxUSE_PNM 1 // Set to 1 for PCX format support #define wxUSE_PCX 1 // Set to 1 for IFF format support (Amiga format) #define wxUSE_IFF 0 // Set to 1 for XPM format support #define wxUSE_XPM 1 // Set to 1 for MS Icons and Cursors format support #define wxUSE_ICO_CUR 1 // Set to 1 to compile in wxPalette class #define wxUSE_PALETTE 1 // ---------------------------------------------------------------------------- // wxUniversal-only options // ---------------------------------------------------------------------------- // Set to 1 to enable compilation of all themes, this is the default #define wxUSE_ALL_THEMES 1 // Set to 1 to enable the compilation of individual theme if wxUSE_ALL_THEMES // is unset, if it is set these options are not used; notice that metal theme // uses Win32 one #define wxUSE_THEME_GTK 0 #define wxUSE_THEME_METAL 0 #define wxUSE_THEME_MONO 0 #define wxUSE_THEME_WIN32 0 /* --- end common options --- */ /* --- start MSW options --- */ // ---------------------------------------------------------------------------- // Windows-only settings // ---------------------------------------------------------------------------- // Set this to 1 for generic OLE support: this is required for drag-and-drop, // clipboard, OLE Automation. Only set it to 0 if your compiler is very old and // can't compile/doesn't have the OLE headers. // // Default is 1. // // Recommended setting: 1 #define wxUSE_OLE 1 // Set this to 1 to enable wxAutomationObject class. // // Default is 1. // // Recommended setting: 1 if you need to control other applications via OLE // Automation, can be safely set to 0 otherwise #define wxUSE_OLE_AUTOMATION 1 // Set this to 1 to enable wxActiveXContainer class allowing to embed OLE // controls in wx. // // Default is 1. // // Recommended setting: 1, required by wxMediaCtrl #define wxUSE_ACTIVEX 1 // wxDC caching implementation #define wxUSE_DC_CACHEING 1 // Set this to 1 to enable wxDIB class used internally for manipulating // wxBitmap data. // // Default is 1, set it to 0 only if you don't use wxImage neither // // Recommended setting: 1 (without it conversion to/from wxImage won't work) #define wxUSE_WXDIB 1 // Set to 0 to disable PostScript print/preview architecture code under Windows // (just use Windows printing). #define wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW 1 // Set this to 1 to compile in wxRegKey class. // // Default is 1 // // Recommended setting: 1, this is used internally by wx in a few places #define wxUSE_REGKEY 1 // Set this to 1 to use RICHEDIT controls for wxTextCtrl with style wxTE_RICH // which allows to put more than ~32Kb of text in it even under Win9x (NT // doesn't have such limitation). // // Default is 1 for compilers which support it // // Recommended setting: 1, only set it to 0 if your compiler doesn't have // or can't compile <richedit.h> #define wxUSE_RICHEDIT 1 // Set this to 1 to use extra features of richedit v2 and later controls // // Default is 1 for compilers which support it // // Recommended setting: 1 #define wxUSE_RICHEDIT2 1 // Set this to 1 to enable support for the owner-drawn menu and listboxes. This // is required by wxUSE_CHECKLISTBOX. // // Default is 1. // // Recommended setting: 1, set to 0 for a small library size reduction #define wxUSE_OWNER_DRAWN 1 // Set this to 1 to enable MSW-specific wxTaskBarIcon::ShowBalloon() method. It // is required by native wxNotificationMessage implementation. // // Default is 1 but disabled in wx/msw/chkconf.h if SDK is too old to contain // the necessary declarations. // // Recommended setting: 1, set to 0 for a tiny library size reduction #define wxUSE_TASKBARICON_BALLOONS 1 // Set to 1 to compile MS Windows XP theme engine support #define wxUSE_UXTHEME 1 // Set to 1 to use InkEdit control (Tablet PC), if available #define wxUSE_INKEDIT 0 // Set to 1 to enable .INI files based wxConfig implementation (wxIniConfig) // // Default is 0. // // Recommended setting: 0, nobody uses .INI files any more #define wxUSE_INICONF 0 // ---------------------------------------------------------------------------- // Generic versions of native controls // ---------------------------------------------------------------------------- // Set this to 1 to be able to use wxDatePickerCtrlGeneric in addition to the // native wxDatePickerCtrl // // Default is 0. // // Recommended setting: 0, this is mainly used for testing #define wxUSE_DATEPICKCTRL_GENERIC 0 // ---------------------------------------------------------------------------- // Crash debugging helpers // ---------------------------------------------------------------------------- // Set this to 1 to be able to use wxCrashReport::Generate() to create mini // dumps of your program when it crashes (or at any other moment) // // Default is 1 if supported by the compiler (VC++ and recent BC++ only). // // Recommended setting: 1, set to 0 if your programs never crash #define wxUSE_CRASHREPORT 1 /* --- end MSW options --- */ /* --- start wxUniv options --- */ // ---------------------------------------------------------------------------- // wxUniversal-only options // ---------------------------------------------------------------------------- // Set to 1 to enable compilation of all themes, this is the default #define wxUSE_ALL_THEMES 1 // Set to 1 to enable the compilation of individual theme if wxUSE_ALL_THEMES // is unset, if it is set these options are not used; notice that metal theme // uses Win32 one #define wxUSE_THEME_GTK 0 #define wxUSE_THEME_METAL 0 #define wxUSE_THEME_MONO 0 #define wxUSE_THEME_WIN32 0 /* --- end wxUniv options --- */ #endif // _WX_SETUP_H_
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/univ/app.h
/////////////////////////////////////////////////////////////////////////////// // Name: wx/univ/app.h // Purpose: wxUniversalApp class extends wxApp for wxUniv port // Author: Vadim Zeitlin // Modified by: // Created: 06.08.00 // Copyright: (c) 2000 SciTech Software, Inc. (www.scitechsoft.com) // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// #ifndef _WX_UNIX_APP_H_ #define _WX_UNIX_APP_H_ class WXDLLIMPEXP_CORE wxUniversalApp : public wxApp { public: }; #endif // _WX_UNIX_APP_H_
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/univ/anybutton.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/univ/anybutton.h // Purpose: wxAnyButton class // Author: Vadim Zeitlin // Created: 2000-08-15 (extracted from button.h) // Copyright: (c) 2000 SciTech Software, Inc. (www.scitechsoft.com) // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef _WX_UNIV_ANYBUTTON_H_ #define _WX_UNIV_ANYBUTTON_H_ #include "wx/univ/inphand.h" // ---------------------------------------------------------------------------- // Common button functionality // ---------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxAnyButton : public wxAnyButtonBase { public: wxAnyButton() {} virtual ~wxAnyButton() {} // wxAnyButton actions virtual void Toggle(); virtual void Press(); virtual void Release(); virtual void Click(){} virtual bool PerformAction(const wxControlAction& action, long numArg = -1, const wxString& strArg = wxEmptyString) wxOVERRIDE; static wxInputHandler *GetStdInputHandler(wxInputHandler *handlerDef); virtual wxInputHandler *DoGetStdInputHandler(wxInputHandler *handlerDef) wxOVERRIDE { return GetStdInputHandler(handlerDef); } protected: // choose the default border for this window virtual wxBorder GetDefaultBorder() const wxOVERRIDE { return wxBORDER_STATIC; } virtual wxSize DoGetBestClientSize() const wxOVERRIDE; virtual bool DoDrawBackground(wxDC& dc) wxOVERRIDE; virtual void DoDraw(wxControlRenderer *renderer) wxOVERRIDE; // current state bool m_isPressed, m_isDefault; // the (optional) image to show and the margins around it wxBitmap m_bitmap; wxCoord m_marginBmpX, m_marginBmpY; private: wxDECLARE_NO_COPY_CLASS(wxAnyButton); }; // ---------------------------------------------------------------------------- // wxStdAnyButtonInputHandler: translates SPACE and ENTER keys and the left mouse // click into button press/release actions // ---------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxStdAnyButtonInputHandler : public wxStdInputHandler { public: wxStdAnyButtonInputHandler(wxInputHandler *inphand); virtual bool HandleKey(wxInputConsumer *consumer, const wxKeyEvent& event, bool pressed) wxOVERRIDE; virtual bool HandleMouse(wxInputConsumer *consumer, const wxMouseEvent& event) wxOVERRIDE; virtual bool HandleMouseMove(wxInputConsumer *consumer, const wxMouseEvent& event) wxOVERRIDE; virtual bool HandleFocus(wxInputConsumer *consumer, const wxFocusEvent& event) wxOVERRIDE; virtual bool HandleActivation(wxInputConsumer *consumer, bool activated) wxOVERRIDE; private: // the window (button) which has capture or NULL and the flag telling if // the mouse is inside the button which captured it or not wxWindow *m_winCapture; bool m_winHasMouse; }; #endif // _WX_UNIV_ANYBUTTON_H_
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/univ/toplevel.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/univ/toplevel.h // Purpose: Top level window, abstraction of wxFrame and wxDialog // Author: Vaclav Slavik // Copyright: (c) 2001-2002 SciTech Software, Inc. (www.scitechsoft.com) // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef __WX_UNIV_TOPLEVEL_H__ #define __WX_UNIV_TOPLEVEL_H__ #include "wx/univ/inpcons.h" #include "wx/univ/inphand.h" #include "wx/icon.h" // ---------------------------------------------------------------------------- // constants // ---------------------------------------------------------------------------- // frame decorations type flags used in wxRenderer and wxColourScheme enum { wxTOPLEVEL_ACTIVE = 0x00000001, wxTOPLEVEL_MAXIMIZED = 0x00000002, wxTOPLEVEL_TITLEBAR = 0x00000004, wxTOPLEVEL_ICON = 0x00000008, wxTOPLEVEL_RESIZEABLE = 0x00000010, wxTOPLEVEL_BORDER = 0x00000020, wxTOPLEVEL_BUTTON_CLOSE = 0x01000000, wxTOPLEVEL_BUTTON_MAXIMIZE = 0x02000000, wxTOPLEVEL_BUTTON_ICONIZE = 0x04000000, wxTOPLEVEL_BUTTON_RESTORE = 0x08000000, wxTOPLEVEL_BUTTON_HELP = 0x10000000 }; // frame hit test return values: enum { wxHT_TOPLEVEL_NOWHERE = 0x00000000, wxHT_TOPLEVEL_CLIENT_AREA = 0x00000001, wxHT_TOPLEVEL_ICON = 0x00000002, wxHT_TOPLEVEL_TITLEBAR = 0x00000004, wxHT_TOPLEVEL_BORDER_N = 0x00000010, wxHT_TOPLEVEL_BORDER_S = 0x00000020, wxHT_TOPLEVEL_BORDER_E = 0x00000040, wxHT_TOPLEVEL_BORDER_W = 0x00000080, wxHT_TOPLEVEL_BORDER_NE = wxHT_TOPLEVEL_BORDER_N | wxHT_TOPLEVEL_BORDER_E, wxHT_TOPLEVEL_BORDER_SE = wxHT_TOPLEVEL_BORDER_S | wxHT_TOPLEVEL_BORDER_E, wxHT_TOPLEVEL_BORDER_NW = wxHT_TOPLEVEL_BORDER_N | wxHT_TOPLEVEL_BORDER_W, wxHT_TOPLEVEL_BORDER_SW = wxHT_TOPLEVEL_BORDER_S | wxHT_TOPLEVEL_BORDER_W, wxHT_TOPLEVEL_ANY_BORDER = 0x000000F0, wxHT_TOPLEVEL_BUTTON_CLOSE = /*0x01000000*/ wxTOPLEVEL_BUTTON_CLOSE, wxHT_TOPLEVEL_BUTTON_MAXIMIZE = /*0x02000000*/ wxTOPLEVEL_BUTTON_MAXIMIZE, wxHT_TOPLEVEL_BUTTON_ICONIZE = /*0x04000000*/ wxTOPLEVEL_BUTTON_ICONIZE, wxHT_TOPLEVEL_BUTTON_RESTORE = /*0x08000000*/ wxTOPLEVEL_BUTTON_RESTORE, wxHT_TOPLEVEL_BUTTON_HELP = /*0x10000000*/ wxTOPLEVEL_BUTTON_HELP, wxHT_TOPLEVEL_ANY_BUTTON = 0x1F000000 }; // Flags for interactive frame manipulation functions (only in wxUniversal): enum { wxINTERACTIVE_MOVE = 0x00000001, wxINTERACTIVE_RESIZE = 0x00000002, wxINTERACTIVE_RESIZE_S = 0x00000010, wxINTERACTIVE_RESIZE_N = 0x00000020, wxINTERACTIVE_RESIZE_W = 0x00000040, wxINTERACTIVE_RESIZE_E = 0x00000080, wxINTERACTIVE_WAIT_FOR_INPUT = 0x10000000 }; // ---------------------------------------------------------------------------- // the actions supported by this control // ---------------------------------------------------------------------------- #define wxACTION_TOPLEVEL_ACTIVATE wxT("activate") // (de)activate the frame #define wxACTION_TOPLEVEL_BUTTON_PRESS wxT("pressbtn") // press titlebar btn #define wxACTION_TOPLEVEL_BUTTON_RELEASE wxT("releasebtn") // press titlebar btn #define wxACTION_TOPLEVEL_BUTTON_CLICK wxT("clickbtn") // press titlebar btn #define wxACTION_TOPLEVEL_MOVE wxT("move") // move the frame #define wxACTION_TOPLEVEL_RESIZE wxT("resize") // resize the frame //----------------------------------------------------------------------------- // wxTopLevelWindow //----------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxTopLevelWindow : public wxTopLevelWindowNative, public wxInputConsumer { public: // construction wxTopLevelWindow() { Init(); } wxTopLevelWindow(wxWindow *parent, wxWindowID id, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE, const wxString& name = wxFrameNameStr) { Init(); Create(parent, id, title, pos, size, style, name); } bool Create(wxWindow *parent, wxWindowID id, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE, const wxString& name = wxFrameNameStr); // wxUniv-specific methods: do [not] use native decorations for this (or // all) window(s) // // notice that this has no effect if the system doesn't support any native // decorations anyhow and that by default native decorations are used // // if UseNativeDecorations() is used, it must be called before Create() static void UseNativeDecorationsByDefault(bool native = true); void UseNativeDecorations(bool native = true); bool IsUsingNativeDecorations() const; // implement base class pure virtuals virtual bool ShowFullScreen(bool show, long style = wxFULLSCREEN_ALL) wxOVERRIDE; virtual wxPoint GetClientAreaOrigin() const wxOVERRIDE; virtual void SetIcons(const wxIconBundle& icons) wxOVERRIDE; // implementation from now on // -------------------------- // tests for frame's part at given point long HitTest(const wxPoint& pt) const; virtual bool PerformAction(const wxControlAction& action, long numArg = -1, const wxString& strArg = wxEmptyString) wxOVERRIDE; static wxInputHandler *GetStdInputHandler(wxInputHandler *handlerDef); virtual wxInputHandler *DoGetStdInputHandler(wxInputHandler *handlerDef) wxOVERRIDE { return GetStdInputHandler(handlerDef); } // move/resize the frame interactively, i.e. let the user do it virtual void InteractiveMove(int flags = wxINTERACTIVE_MOVE); virtual wxSize GetMinSize() const wxOVERRIDE; virtual wxWindow *GetInputWindow() const wxOVERRIDE { return const_cast<wxTopLevelWindow*>(this); } protected: virtual void DoGetClientSize(int *width, int *height) const wxOVERRIDE; virtual void DoSetClientSize(int width, int height) wxOVERRIDE; // handle titlebar button click event virtual void ClickTitleBarButton(long button); // return wxTOPLEVEL_xxx combination based on current state of the frame long GetDecorationsStyle() const; // common part of all ctors void Init(); void RefreshTitleBar(); void OnNcPaint(wxNcPaintEvent& event); void OnSystemMenu(wxCommandEvent& event); // true if wxTLW should render decorations (aka titlebar) itself static int ms_drawDecorations; // true if wxTLW can be iconized static int ms_canIconize; // true if we're using native decorations bool m_usingNativeDecorations; // true for currently active frame bool m_isActive; // version of icon for titlebar (16x16) wxIcon m_titlebarIcon; // saved window style in fullscreen mdoe long m_fsSavedStyle; // currently pressed titlebar button long m_pressedButton; wxDECLARE_DYNAMIC_CLASS(wxTopLevelWindow); wxDECLARE_EVENT_TABLE(); WX_DECLARE_INPUT_CONSUMER() }; #endif // __WX_UNIV_TOPLEVEL_H__
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/univ/stattext.h
///////////////////////////////////////////////////////////////////////////// // Name: wx/univ/stattext.h // Purpose: wxStaticText // Author: Vadim Zeitlin // Modified by: // Created: 14.08.00 // Copyright: (c) 2000 SciTech Software, Inc. (www.scitechsoft.com) // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef _WX_UNIV_STATTEXT_H_ #define _WX_UNIV_STATTEXT_H_ #include "wx/generic/stattextg.h" class WXDLLIMPEXP_CORE wxStaticText : public wxGenericStaticText { public: wxStaticText() { } // usual ctor wxStaticText(wxWindow *parent, const wxString& label, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize) { Create(parent, wxID_ANY, label, pos, size, 0, wxStaticTextNameStr); } // full form wxStaticText(wxWindow *parent, wxWindowID id, const wxString& label, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxString &name = wxStaticTextNameStr) { Create(parent, id, label, pos, size, style, name); } // function ctor bool Create(wxWindow *parent, wxWindowID id, const wxString &label, const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize, long style = 0, const wxString &name = wxStaticTextNameStr); // implementation only from now on virtual void SetLabel(const wxString& label) wxOVERRIDE; virtual bool IsFocused() const wxOVERRIDE { return false; } protected: // draw the control virtual void DoDraw(wxControlRenderer *renderer) wxOVERRIDE; virtual void DoSetLabel(const wxString& str) wxOVERRIDE; virtual wxString DoGetLabel() const wxOVERRIDE; wxDECLARE_DYNAMIC_CLASS(wxStaticText); }; #endif // _WX_UNIV_STATTEXT_H_
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/univ/statusbr.h
/////////////////////////////////////////////////////////////////////////////// // Name: wx/univ/statusbr.h // Purpose: wxStatusBarUniv: wxStatusBar for wxUniversal declaration // Author: Vadim Zeitlin // Modified by: // Created: 14.10.01 // Copyright: (c) 2001 SciTech Software, Inc. (www.scitechsoft.com) // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// #ifndef _WX_UNIV_STATUSBR_H_ #define _WX_UNIV_STATUSBR_H_ #include "wx/univ/inpcons.h" #include "wx/arrstr.h" // ---------------------------------------------------------------------------- // wxStatusBarUniv: a window near the bottom of the frame used for status info // ---------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxStatusBarUniv : public wxStatusBarBase { public: wxStatusBarUniv() { Init(); } wxStatusBarUniv(wxWindow *parent, wxWindowID id = wxID_ANY, long style = wxSTB_DEFAULT_STYLE, const wxString& name = wxPanelNameStr) { Init(); (void)Create(parent, id, style, name); } bool Create(wxWindow *parent, wxWindowID id = wxID_ANY, long style = wxSTB_DEFAULT_STYLE, const wxString& name = wxPanelNameStr); // implement base class methods virtual void SetFieldsCount(int number = 1, const int *widths = NULL) wxOVERRIDE; virtual void SetStatusWidths(int n, const int widths[]) wxOVERRIDE; virtual bool GetFieldRect(int i, wxRect& rect) const wxOVERRIDE; virtual void SetMinHeight(int height) wxOVERRIDE; virtual int GetBorderX() const wxOVERRIDE; virtual int GetBorderY() const wxOVERRIDE; // wxInputConsumer pure virtual virtual wxWindow *GetInputWindow() const wxOVERRIDE { return const_cast<wxStatusBar*>(this); } protected: virtual void DoUpdateStatusText(int i) wxOVERRIDE; // recalculate the field widths void OnSize(wxSizeEvent& event); // draw the statusbar virtual void DoDraw(wxControlRenderer *renderer) wxOVERRIDE; // tell them about our preferred height virtual wxSize DoGetBestSize() const wxOVERRIDE; // override DoSetSize() to prevent the status bar height from changing virtual void DoSetSize(int x, int y, int width, int height, int sizeFlags = wxSIZE_AUTO) wxOVERRIDE; // get the (fixed) status bar height wxCoord GetHeight() const; // get the rectangle containing all the fields and the border between them // // also updates m_widthsAbs if necessary wxRect GetTotalFieldRect(wxCoord *borderBetweenFields); // get the rect for this field without ani side effects (see code) wxRect DoGetFieldRect(int n) const; // common part of all ctors void Init(); private: // the current status fields strings //wxArrayString m_statusText; // the absolute status fields widths wxArrayInt m_widthsAbs; wxDECLARE_DYNAMIC_CLASS(wxStatusBarUniv); wxDECLARE_EVENT_TABLE(); WX_DECLARE_INPUT_CONSUMER() }; #endif // _WX_UNIV_STATUSBR_H_
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/univ/scrarrow.h
/////////////////////////////////////////////////////////////////////////////// // Name: wx/univ/scrarrow.h // Purpose: wxScrollArrows class // Author: Vadim Zeitlin // Modified by: // Created: 22.01.01 // Copyright: (c) 2001 SciTech Software, Inc. (www.scitechsoft.com) // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// #ifndef _WX_UNIV_SCRARROW_H_ #define _WX_UNIV_SCRARROW_H_ #if wxUSE_SCROLLBAR // ---------------------------------------------------------------------------- // wxScrollArrows is not a control but just a class containing the common // functionality of scroll arrows, whether part of scrollbars, spin ctrls or // anything else. // // To customize its behaviour, wxScrollArrows doesn't use any virtual methods // but instead a callback pointer to a wxControlWithArrows object which is used // for all control-dependent stuff. Thus, to use wxScrollArrows, you just need // to derive from the wxControlWithArrows interface and implement its methods. // ---------------------------------------------------------------------------- class WXDLLIMPEXP_FWD_CORE wxControlWithArrows; class WXDLLIMPEXP_FWD_CORE wxDC; class WXDLLIMPEXP_FWD_CORE wxMouseEvent; class WXDLLIMPEXP_FWD_CORE wxRect; class WXDLLIMPEXP_FWD_CORE wxRenderer; // ---------------------------------------------------------------------------- // wxScrollArrows: an abstraction of scrollbar arrow // ---------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxScrollArrows { public: enum Arrow { Arrow_None = -1, Arrow_First, // left or top Arrow_Second, // right or bottom Arrow_Max }; // ctor requires a back pointer to wxControlWithArrows wxScrollArrows(wxControlWithArrows *control); // draws the arrow on the given DC in the given rectangle, uses // wxControlWithArrows::GetArrowState() to get its current state void DrawArrow(Arrow arrow, wxDC& dc, const wxRect& rect, bool scrollbarLike = false) const; // process a mouse move, enter or leave event, possibly calling // wxControlWithArrows::SetArrowState() if // wxControlWithArrows::HitTestArrow() says that the mouse has left/entered // an arrow bool HandleMouseMove(const wxMouseEvent& event) const; // process a mouse click event bool HandleMouse(const wxMouseEvent& event) const; // dtor ~wxScrollArrows(); private: // set or clear the wxCONTROL_CURRENT flag for the arrow void UpdateCurrentFlag(Arrow arrow, Arrow arrowCur) const; // the main control wxControlWithArrows *m_control; // the data for the mouse capture struct wxScrollArrowCaptureData *m_captureData; }; // ---------------------------------------------------------------------------- // wxControlWithArrows: interface implemented by controls using wxScrollArrows // ---------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxControlWithArrows { public: virtual ~wxControlWithArrows() {} // get the renderer to use for drawing the arrows virtual wxRenderer *GetRenderer() const = 0; // get the controls window (used for mouse capturing) virtual wxWindow *GetWindow() = 0; // get the orientation of the arrows (vertical or horizontal) virtual bool IsVertical() const = 0; // get the state of this arrow as combination of wxCONTROL_XXX flags virtual int GetArrowState(wxScrollArrows::Arrow arrow) const = 0; // set or clear the specified flag in the arrow state: this function is // responsible for refreshing the control virtual void SetArrowFlag(wxScrollArrows::Arrow arrow, int flag, bool set = true) = 0; // hit testing: return on which arrow the point is (or Arrow_None) virtual wxScrollArrows::Arrow HitTestArrow(const wxPoint& pt) const = 0; // called when the arrow is pressed, return true to continue scrolling and // false to stop it virtual bool OnArrow(wxScrollArrows::Arrow arrow) = 0; }; #endif // wxUSE_SCROLLBAR #endif // _WX_UNIV_SCRARROW_H_
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/univ/radiobut.h
/////////////////////////////////////////////////////////////////////////////// // Name: wx/univ/radiobut.h // Purpose: wxRadioButton declaration // Author: Vadim Zeitlin // Modified by: // Created: 10.09.00 // Copyright: (c) 2000 SciTech Software, Inc. (www.scitechsoft.com) // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// #ifndef _WX_UNIV_RADIOBUT_H_ #define _WX_UNIV_RADIOBUT_H_ #include "wx/checkbox.h" // ---------------------------------------------------------------------------- // wxRadioButton // ---------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxRadioButton : public wxCheckBox { public: // constructors wxRadioButton() { Init(); } wxRadioButton(wxWindow *parent, wxWindowID id, const wxString& label, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxRadioButtonNameStr) { Init(); Create(parent, id, label, pos, size, style, validator, name); } bool Create(wxWindow *parent, wxWindowID id, const wxString& label, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxRadioButtonNameStr); // override some base class methods virtual void ChangeValue(bool value) wxOVERRIDE; protected: virtual wxBorder GetDefaultBorder() const wxOVERRIDE { return wxBORDER_NONE; } // implement our own drawing virtual void DoDraw(wxControlRenderer *renderer) wxOVERRIDE; // we use the radio button bitmaps for size calculation virtual wxSize GetBitmapSize() const wxOVERRIDE; // the radio button can only be cleared using this method, not // ChangeValue() above - and it is protected as it can only be called by // another radiobutton void ClearValue(); // called when the radio button becomes checked: we clear all the buttons // in the same group with us here virtual void OnCheck() wxOVERRIDE; // send event about radio button selection virtual void SendEvent() wxOVERRIDE; private: wxDECLARE_DYNAMIC_CLASS(wxRadioButton); }; #endif // _WX_UNIV_RADIOBUT_H_
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/univ/radiobox.h
/////////////////////////////////////////////////////////////////////////////// // Name: wx/univ/radiobox.h // Purpose: wxRadioBox declaration // Author: Vadim Zeitlin // Modified by: // Created: 11.09.00 // Copyright: (c) 2000 SciTech Software, Inc. (www.scitechsoft.com) // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// #ifndef _WX_UNIV_RADIOBOX_H_ #define _WX_UNIV_RADIOBOX_H_ class WXDLLIMPEXP_FWD_CORE wxRadioButton; #include "wx/statbox.h" #include "wx/dynarray.h" WX_DEFINE_EXPORTED_ARRAY_PTR(wxRadioButton *, wxArrayRadioButtons); // ---------------------------------------------------------------------------- // wxRadioBox: a box full of radio buttons // ---------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxRadioBox : public wxStaticBox, public wxRadioBoxBase { public: // wxRadioBox construction wxRadioBox() { Init(); } wxRadioBox(wxWindow *parent, wxWindowID id, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, int n = 0, const wxString *choices = NULL, int majorDim = 0, long style = wxRA_SPECIFY_COLS, const wxValidator& val = wxDefaultValidator, const wxString& name = wxRadioBoxNameStr) { Init(); (void)Create(parent, id, title, pos, size, n, choices, majorDim, style, val, name); } wxRadioBox(wxWindow *parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, const wxArrayString& choices, int majorDim = 0, long style = wxRA_SPECIFY_COLS, const wxValidator& val = wxDefaultValidator, const wxString& name = wxRadioBoxNameStr); bool Create(wxWindow *parent, wxWindowID id, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, int n = 0, const wxString *choices = NULL, int majorDim = 0, long style = wxRA_SPECIFY_COLS, const wxValidator& val = wxDefaultValidator, const wxString& name = wxRadioBoxNameStr); bool Create(wxWindow *parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, const wxArrayString& choices, int majorDim = 0, long style = wxRA_SPECIFY_COLS, const wxValidator& val = wxDefaultValidator, const wxString& name = wxRadioBoxNameStr); virtual ~wxRadioBox(); // implement wxRadioBox interface virtual void SetSelection(int n) wxOVERRIDE; virtual int GetSelection() const wxOVERRIDE; virtual unsigned int GetCount() const wxOVERRIDE { return (unsigned int)m_buttons.GetCount(); } virtual wxString GetString(unsigned int n) const wxOVERRIDE; virtual void SetString(unsigned int n, const wxString& label) wxOVERRIDE; virtual bool Enable(unsigned int n, bool enable = true) wxOVERRIDE; virtual bool Show(unsigned int n, bool show = true) wxOVERRIDE; virtual bool IsItemEnabled(unsigned int n) const wxOVERRIDE; virtual bool IsItemShown(unsigned int n) const wxOVERRIDE; // we also override the wxControl methods to avoid virtual function hiding virtual bool Enable(bool enable = true) wxOVERRIDE; virtual bool Show(bool show = true) wxOVERRIDE; virtual wxString GetLabel() const wxOVERRIDE; virtual void SetLabel(const wxString& label) wxOVERRIDE; // we inherit a version always returning false from wxStaticBox, override // it to behave normally virtual bool AcceptsFocus() const wxOVERRIDE { return wxControl::AcceptsFocus(); } #if wxUSE_TOOLTIPS virtual void DoSetToolTip( wxToolTip *tip ); #endif // wxUSE_TOOLTIPS // wxUniversal-only methods // another Append() version void Append(int n, const wxString *choices); // implementation only: called by wxRadioHookHandler void OnRadioButton(wxEvent& event); bool OnKeyDown(wxKeyEvent& event); protected: virtual wxBorder GetDefaultBorder() const wxOVERRIDE { return wxBORDER_NONE; } // override the base class methods dealing with window positioning/sizing // as we must move/size the buttons as well virtual void DoMoveWindow(int x, int y, int width, int height) wxOVERRIDE; virtual wxSize DoGetBestClientSize() const wxOVERRIDE; // generate a radiobutton click event for the current item void SendRadioEvent(); // common part of all ctors void Init(); // calculate the max size of all buttons wxSize GetMaxButtonSize() const; // the currently selected radio button or -1 int m_selection; // all radio buttons wxArrayRadioButtons m_buttons; // the event handler which is used to translate radiobutton events into // radiobox one wxEvtHandler *m_evtRadioHook; private: wxDECLARE_DYNAMIC_CLASS(wxRadioBox); }; #endif // _WX_UNIV_RADIOBOX_H_
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/univ/checklst.h
/////////////////////////////////////////////////////////////////////////////// // Name: wx/univ/checklst.h // Purpose: wxCheckListBox class for wxUniversal // Author: Vadim Zeitlin // Modified by: // Created: 12.09.00 // Copyright: (c) Vadim Zeitlin // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// #ifndef _WX_UNIV_CHECKLST_H_ #define _WX_UNIV_CHECKLST_H_ // ---------------------------------------------------------------------------- // actions // ---------------------------------------------------------------------------- #define wxACTION_CHECKLISTBOX_TOGGLE wxT("toggle") // ---------------------------------------------------------------------------- // wxCheckListBox // ---------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxCheckListBox : public wxCheckListBoxBase { public: // ctors wxCheckListBox() { Init(); } wxCheckListBox(wxWindow *parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, int nStrings = 0, const wxString choices[] = NULL, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxListBoxNameStr) { Init(); Create(parent, id, pos, size, nStrings, choices, style, validator, name); } wxCheckListBox(wxWindow *parent, wxWindowID id, const wxPoint& pos, const wxSize& size, const wxArrayString& choices, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxListBoxNameStr); bool Create(wxWindow *parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, int nStrings = 0, const wxString choices[] = (const wxString *) NULL, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxListBoxNameStr); bool Create(wxWindow *parent, wxWindowID id, const wxPoint& pos, const wxSize& size, const wxArrayString& choices, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxListBoxNameStr); // implement check list box methods virtual bool IsChecked(unsigned int item) const wxOVERRIDE; virtual void Check(unsigned int item, bool check = true) wxOVERRIDE; // and input handling virtual bool PerformAction(const wxControlAction& action, long numArg = -1l, const wxString& strArg = wxEmptyString) wxOVERRIDE; static wxInputHandler *GetStdInputHandler(wxInputHandler *handlerDef); virtual wxInputHandler *DoGetStdInputHandler(wxInputHandler *handlerDef) wxOVERRIDE { return GetStdInputHandler(handlerDef); } protected: // override all methods which add/delete items to update m_checks array as // well virtual void OnItemInserted(unsigned int pos) wxOVERRIDE; virtual void DoDeleteOneItem(unsigned int n) wxOVERRIDE; virtual void DoClear() wxOVERRIDE; // draw the check items instead of the usual ones virtual void DoDrawRange(wxControlRenderer *renderer, int itemFirst, int itemLast) wxOVERRIDE; // take them also into account for size calculation virtual wxSize DoGetBestClientSize() const wxOVERRIDE; // common part of all ctors void Init(); private: // the array containing the checked status of the items wxArrayInt m_checks; wxDECLARE_DYNAMIC_CLASS(wxCheckListBox); }; #endif // _WX_UNIV_CHECKLST_H_
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/univ/listbox.h
/////////////////////////////////////////////////////////////////////////////// // Name: wx/univ/listbox.h // Purpose: the universal listbox // Author: Vadim Zeitlin // Modified by: // Created: 30.08.00 // Copyright: (c) 2000 Vadim Zeitlin <[email protected]> // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// #ifndef _WX_UNIV_LISTBOX_H_ #define _WX_UNIV_LISTBOX_H_ #include "wx/scrolwin.h" // for wxScrollHelper #include "wx/dynarray.h" #include "wx/arrstr.h" // ---------------------------------------------------------------------------- // the actions supported by this control // ---------------------------------------------------------------------------- // change the current item #define wxACTION_LISTBOX_SETFOCUS wxT("setfocus") // select the item #define wxACTION_LISTBOX_MOVEDOWN wxT("down") // select item below #define wxACTION_LISTBOX_MOVEUP wxT("up") // select item above #define wxACTION_LISTBOX_PAGEDOWN wxT("pagedown") // go page down #define wxACTION_LISTBOX_PAGEUP wxT("pageup") // go page up #define wxACTION_LISTBOX_START wxT("start") // go to first item #define wxACTION_LISTBOX_END wxT("end") // go to last item #define wxACTION_LISTBOX_FIND wxT("find") // find item by 1st letter // do something with the current item #define wxACTION_LISTBOX_ACTIVATE wxT("activate") // activate (choose) #define wxACTION_LISTBOX_TOGGLE wxT("toggle") // togglee selected state #define wxACTION_LISTBOX_SELECT wxT("select") // sel this, unsel others #define wxACTION_LISTBOX_SELECTADD wxT("selectadd") // add to selection #define wxACTION_LISTBOX_UNSELECT wxT("unselect") // unselect #define wxACTION_LISTBOX_ANCHOR wxT("selanchor") // anchor selection // do something with the selection globally (not for single selection ones) #define wxACTION_LISTBOX_SELECTALL wxT("selectall") // select all items #define wxACTION_LISTBOX_UNSELECTALL wxT("unselectall") // unselect all items #define wxACTION_LISTBOX_SELTOGGLE wxT("togglesel") // invert the selection #define wxACTION_LISTBOX_EXTENDSEL wxT("extend") // extend to item // ---------------------------------------------------------------------------- // wxListBox: a list of selectable items // ---------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxListBox : public wxListBoxBase, public wxScrollHelper { public: // ctors and such wxListBox() : wxScrollHelper(this) { Init(); } wxListBox(wxWindow *parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, int n = 0, const wxString choices[] = (const wxString *) NULL, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxListBoxNameStr ) : wxScrollHelper(this) { Init(); Create(parent, id, pos, size, n, choices, style, validator, name); } wxListBox(wxWindow *parent, wxWindowID id, const wxPoint& pos, const wxSize& size, const wxArrayString& choices, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxListBoxNameStr ); virtual ~wxListBox(); bool Create(wxWindow *parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, int n = 0, const wxString choices[] = (const wxString *) NULL, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxListBoxNameStr); bool Create(wxWindow *parent, wxWindowID id, const wxPoint& pos, const wxSize& size, const wxArrayString& choices, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxListBoxNameStr); // implement the listbox interface defined by wxListBoxBase virtual void DoClear() wxOVERRIDE; virtual void DoDeleteOneItem(unsigned int n) wxOVERRIDE; virtual unsigned int GetCount() const wxOVERRIDE; virtual wxString GetString(unsigned int n) const wxOVERRIDE; virtual void SetString(unsigned int n, const wxString& s) wxOVERRIDE; virtual int FindString(const wxString& s, bool bCase = false) const wxOVERRIDE; virtual bool IsSelected(int n) const wxOVERRIDE { return m_selections.Index(n) != wxNOT_FOUND; } virtual int GetSelection() const wxOVERRIDE; virtual int GetSelections(wxArrayInt& aSelections) const wxOVERRIDE; protected: virtual void DoSetSelection(int n, bool select) wxOVERRIDE; virtual int DoInsertItems(const wxArrayStringsAdapter& items, unsigned int pos, void **clientData, wxClientDataType type) wxOVERRIDE; virtual int DoListHitTest(const wxPoint& point) const wxOVERRIDE; // universal wxComboBox implementation internally uses wxListBox friend class WXDLLIMPEXP_FWD_CORE wxComboBox; virtual void DoSetFirstItem(int n) wxOVERRIDE; virtual void DoSetItemClientData(unsigned int n, void* clientData) wxOVERRIDE; virtual void* DoGetItemClientData(unsigned int n) const wxOVERRIDE; public: // override some more base class methods virtual bool SetFont(const wxFont& font) wxOVERRIDE; // the wxUniversal-specific methods // -------------------------------- // the current item is the same as the selected one for wxLB_SINGLE // listboxes but for the other ones it is just the focused item which may // be selected or not int GetCurrentItem() const { return m_current; } void SetCurrentItem(int n); // select the item which is diff items below the current one void ChangeCurrent(int diff); // activate (i.e. send a LISTBOX_DOUBLECLICKED message) the specified or // current (if -1) item void Activate(int item = -1); // select or unselect the specified or current (if -1) item void DoSelect(int item = -1, bool sel = true); // more readable wrapper void DoUnselect(int item) { DoSelect(item, false); } // select an item and send a notification about it void SelectAndNotify(int item); // ensure that the given item is visible by scrolling it into view virtual void EnsureVisible(int n) wxOVERRIDE; // find the first item [strictly] after the current one which starts with // the given string and make it the current one, return true if the current // item changed bool FindItem(const wxString& prefix, bool strictlyAfter = false); bool FindNextItem(const wxString& prefix) { return FindItem(prefix, true); } // extend the selection to span the range from the anchor (see below) to // the specified or current item void ExtendSelection(int itemTo = -1); // make this item the new selection anchor: extending selection with // ExtendSelection() will work with it void AnchorSelection(int itemFrom) { m_selAnchor = itemFrom; } // get, calculating it if necessary, the number of items per page, the // height of each line and the max width of an item int GetItemsPerPage() const; wxCoord GetLineHeight() const; wxCoord GetMaxWidth() const; // override the wxControl virtual methods virtual bool PerformAction(const wxControlAction& action, long numArg = 0l, const wxString& strArg = wxEmptyString) wxOVERRIDE; static wxInputHandler *GetStdInputHandler(wxInputHandler *handlerDef); virtual wxInputHandler *DoGetStdInputHandler(wxInputHandler *handlerDef) wxOVERRIDE { return GetStdInputHandler(handlerDef); } // idle processing virtual void OnInternalIdle() wxOVERRIDE; protected: // geometry virtual wxSize DoGetBestClientSize() const wxOVERRIDE; virtual void DoSetSize(int x, int y, int width, int height, int sizeFlags = wxSIZE_AUTO) wxOVERRIDE; virtual void DoDraw(wxControlRenderer *renderer) wxOVERRIDE; virtual wxBorder GetDefaultBorder() const wxOVERRIDE; // special hook for wxCheckListBox which allows it to update its internal // data when a new item is inserted into the listbox virtual void OnItemInserted(unsigned int WXUNUSED(pos)) { } // common part of all ctors void Init(); // event handlers void OnSize(wxSizeEvent& event); // refresh the given item(s) or everything void RefreshItems(int from, int count); void RefreshItem(int n); void RefreshFromItemToEnd(int n); void RefreshAll(); // send an event of the given type (using m_current by default) bool SendEvent(wxEventType type, int item = -1); // calculate the number of items per page using our current size void CalcItemsPerPage(); // can/should we have a horz scrollbar? bool HasHorzScrollbar() const { return (m_windowStyle & wxLB_HSCROLL) != 0; } // redraw the items in the given range only: called from DoDraw() virtual void DoDrawRange(wxControlRenderer *renderer, int itemFirst, int itemLast); // update the scrollbars and then ensure that the item is visible void DoEnsureVisible(int n); // mark horz scrollbar for updating void RefreshHorzScrollbar(); // update (show/hide/adjust) the scrollbars void UpdateScrollbars(); // refresh the items specified by m_updateCount and m_updateFrom void UpdateItems(); // the array containing all items (it is sorted if the listbox has // wxLB_SORT style) union { wxArrayString *unsorted; wxSortedArrayString *sorted; } m_strings; // this array contains the indices of the selected items (for the single // selection listboxes only the first element of it is used and contains // the current selection) wxArrayInt m_selections; // and this one the client data (either void or wxClientData) wxArrayPtrVoid m_itemsClientData; // this is hold the input handler type. the input handler is different // between ListBox and its subclass--CheckListbox wxString m_inputHandlerType; // the current item int m_current; private: // the range of elements which must be updated: if m_updateCount is 0 no // update is needed, if it is -1 everything must be updated, otherwise // m_updateCount items starting from m_updateFrom have to be redrawn int m_updateFrom, m_updateCount; // the height of one line in the listbox (all lines have the same height) wxCoord m_lineHeight; // the maximal width of a listbox item and the item which has it wxCoord m_maxWidth; int m_maxWidthItem; // the extents of horz and vert scrollbars int m_scrollRangeX, m_scrollRangeY; // the number of items per page size_t m_itemsPerPage; // if the number of items has changed we may need to show/hide the // scrollbar bool m_updateScrollbarX, m_updateScrollbarY, m_showScrollbarX, m_showScrollbarY; // if the current item has changed, we might need to scroll if it went out // of the window bool m_currentChanged; // the anchor from which the selection is extended for the listboxes with // wxLB_EXTENDED style - this is set to the last item which was selected // by not extending the selection but by choosing it directly int m_selAnchor; wxDECLARE_EVENT_TABLE(); wxDECLARE_DYNAMIC_CLASS(wxListBox); }; #endif // _WX_UNIV_LISTBOX_H_
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/univ/spinbutt.h
/////////////////////////////////////////////////////////////////////////////// // Name: wx/univ/spinbutt.h // Purpose: universal version of wxSpinButton // Author: Vadim Zeitlin // Modified by: // Created: 21.01.01 // Copyright: (c) 2001 SciTech Software, Inc. (www.scitechsoft.com) // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// #ifndef _WX_UNIV_SPINBUTT_H_ #define _WX_UNIV_SPINBUTT_H_ #include "wx/univ/scrarrow.h" // ---------------------------------------------------------------------------- // wxSpinButton // ---------------------------------------------------------------------------- // actions supported by this control #define wxACTION_SPIN_INC wxT("inc") #define wxACTION_SPIN_DEC wxT("dec") class WXDLLIMPEXP_CORE wxSpinButton : public wxSpinButtonBase, public wxControlWithArrows { public: wxSpinButton(); wxSpinButton(wxWindow *parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxSP_VERTICAL | wxSP_ARROW_KEYS, const wxString& name = wxSPIN_BUTTON_NAME); bool Create(wxWindow *parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxSP_VERTICAL | wxSP_ARROW_KEYS, const wxString& name = wxSPIN_BUTTON_NAME); // implement wxSpinButtonBase methods virtual int GetValue() const wxOVERRIDE; virtual void SetValue(int val) wxOVERRIDE; virtual void SetRange(int minVal, int maxVal) wxOVERRIDE; // implement wxControlWithArrows methods virtual wxRenderer *GetRenderer() const wxOVERRIDE { return m_renderer; } virtual wxWindow *GetWindow() wxOVERRIDE { return this; } virtual bool IsVertical() const wxOVERRIDE { return wxSpinButtonBase::IsVertical(); } virtual int GetArrowState(wxScrollArrows::Arrow arrow) const wxOVERRIDE; virtual void SetArrowFlag(wxScrollArrows::Arrow arrow, int flag, bool set) wxOVERRIDE; virtual bool OnArrow(wxScrollArrows::Arrow arrow) wxOVERRIDE; virtual wxScrollArrows::Arrow HitTestArrow(const wxPoint& pt) const wxOVERRIDE; // for wxStdSpinButtonInputHandler const wxScrollArrows& GetArrows() { return m_arrows; } virtual bool PerformAction(const wxControlAction& action, long numArg = 0, const wxString& strArg = wxEmptyString) wxOVERRIDE; static wxInputHandler *GetStdInputHandler(wxInputHandler *handlerDef); virtual wxInputHandler *DoGetStdInputHandler(wxInputHandler *handlerDef) wxOVERRIDE { return GetStdInputHandler(handlerDef); } protected: virtual wxSize DoGetBestClientSize() const wxOVERRIDE; virtual void DoDraw(wxControlRenderer *renderer) wxOVERRIDE; virtual wxBorder GetDefaultBorder() const wxOVERRIDE { return wxBORDER_NONE; } // the common part of all ctors void Init(); // normalize the value to fit into min..max range int NormalizeValue(int value) const; // change the value by +1/-1 and send the event, return true if value was // changed bool ChangeValue(int inc); // get the rectangles for our 2 arrows void CalcArrowRects(wxRect *rect1, wxRect *rect2) const; // the current controls value int m_value; private: // the object which manages our arrows wxScrollArrows m_arrows; // the state (combination of wxCONTROL_XXX flags) of the arrows int m_arrowsState[wxScrollArrows::Arrow_Max]; wxDECLARE_DYNAMIC_CLASS(wxSpinButton); }; // ---------------------------------------------------------------------------- // wxStdSpinButtonInputHandler: manages clicks on them (use arrows like // wxStdScrollBarInputHandler) and processes keyboard events too // ---------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxStdSpinButtonInputHandler : public wxStdInputHandler { public: wxStdSpinButtonInputHandler(wxInputHandler *inphand); virtual bool HandleKey(wxInputConsumer *consumer, const wxKeyEvent& event, bool pressed) wxOVERRIDE; virtual bool HandleMouse(wxInputConsumer *consumer, const wxMouseEvent& event) wxOVERRIDE; virtual bool HandleMouseMove(wxInputConsumer *consumer, const wxMouseEvent& event) wxOVERRIDE; }; #endif // _WX_UNIV_SPINBUTT_H_
h
rticonnextdds-usecases
data/projects/rticonnextdds-usecases/VehicleTracking/ExampleCode/thirdparty/wxWidgets-3.1.2/Linux/include/wx/univ/renderer.h
/////////////////////////////////////////////////////////////////////////////// // Name: wx/univ/renderer.h // Purpose: wxRenderer class declaration // Author: Vadim Zeitlin // Modified by: // Created: 06.08.00 // Copyright: (c) 2000 SciTech Software, Inc. (www.scitechsoft.com) // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// #ifndef _WX_UNIV_RENDERER_H_ #define _WX_UNIV_RENDERER_H_ /* wxRenderer class is used to draw all wxWidgets controls. This is an ABC and the look of the application is determined by the concrete derivation of wxRenderer used in the program. It also contains a few static methods which may be used by the concrete renderers and provide the functionality which is often similar or identical in all renderers (using inheritance here would be more restrictive as the given concrete renderer may need an arbitrary subset of the base class methods). Finally note that wxRenderer supersedes wxRendererNative in wxUniv build and includes the latters functionality (which it may delegate to the generic implementation of the latter or reimplement itself). */ #include "wx/renderer.h" class WXDLLIMPEXP_FWD_CORE wxWindow; class WXDLLIMPEXP_FWD_CORE wxDC; class WXDLLIMPEXP_FWD_CORE wxCheckListBox; #if wxUSE_LISTBOX class WXDLLIMPEXP_FWD_CORE wxListBox; #endif // wxUSE_LISTBOX #if wxUSE_MENUS class WXDLLIMPEXP_FWD_CORE wxMenu; class WXDLLIMPEXP_FWD_CORE wxMenuGeometryInfo; #endif // wxUSE_MENUS class WXDLLIMPEXP_FWD_CORE wxScrollBar; #if wxUSE_TEXTCTRL class WXDLLIMPEXP_FWD_CORE wxTextCtrl; #endif #if wxUSE_GAUGE class WXDLLIMPEXP_FWD_CORE wxGauge; #endif // wxUSE_GAUGE #include "wx/string.h" #include "wx/gdicmn.h" #include "wx/icon.h" // helper class used by wxMenu-related functions class WXDLLIMPEXP_CORE wxMenuGeometryInfo { public: // get the total size of the menu virtual wxSize GetSize() const = 0; virtual ~wxMenuGeometryInfo(); }; // ---------------------------------------------------------------------------- // wxRenderer: abstract renderers interface // ---------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxRenderer : public wxDelegateRendererNative { public: // drawing functions // ----------------- // draw the controls background virtual void DrawBackground(wxDC& dc, const wxColour& col, const wxRect& rect, int flags, wxWindow *window = NULL) = 0; // draw the button surface virtual void DrawButtonSurface(wxDC& dc, const wxColour& col, const wxRect& rect, int flags) = 0; // draw the label inside the given rectangle with the specified alignment // and optionally emphasize the character with the given index virtual void DrawLabel(wxDC& dc, const wxString& label, const wxRect& rect, int flags = 0, int alignment = wxALIGN_LEFT | wxALIGN_TOP, int indexAccel = -1, wxRect *rectBounds = NULL) = 0; // same but also draw a bitmap if it is valid virtual void DrawButtonLabel(wxDC& dc, const wxString& label, const wxBitmap& image, const wxRect& rect, int flags = 0, int alignment = wxALIGN_LEFT | wxALIGN_TOP, int indexAccel = -1, wxRect *rectBounds = NULL) = 0; // draw the border and optionally return the rectangle containing the // region inside the border virtual void DrawBorder(wxDC& dc, wxBorder border, const wxRect& rect, int flags = 0, wxRect *rectIn = NULL) = 0; // draw text control border (I hate to have a separate method for this but // it is needed to accommodate GTK+) virtual void DrawTextBorder(wxDC& dc, wxBorder border, const wxRect& rect, int flags = 0, wxRect *rectIn = NULL) = 0; // draw push button border and return the rectangle left for the label virtual void DrawButtonBorder(wxDC& dc, const wxRect& rect, int flags = 0, wxRect *rectIn = NULL) = 0; // draw a horizontal line virtual void DrawHorizontalLine(wxDC& dc, wxCoord y, wxCoord x1, wxCoord x2) = 0; // draw a vertical line virtual void DrawVerticalLine(wxDC& dc, wxCoord x, wxCoord y1, wxCoord y2) = 0; // draw a frame with the label (horizontal alignment can be specified) virtual void DrawFrame(wxDC& dc, const wxString& label, const wxRect& rect, int flags = 0, int alignment = wxALIGN_LEFT, int indexAccel = -1) = 0; // draw an arrow in the given direction virtual void DrawArrow(wxDC& dc, wxDirection dir, const wxRect& rect, int flags = 0) = 0; // draw a scrollbar arrow (may be the same as arrow but may be not) virtual void DrawScrollbarArrow(wxDC& dc, wxDirection dir, const wxRect& rect, int flags = 0) = 0; // draw the scrollbar thumb virtual void DrawScrollbarThumb(wxDC& dc, wxOrientation orient, const wxRect& rect, int flags = 0) = 0; // draw a (part of) scrollbar shaft virtual void DrawScrollbarShaft(wxDC& dc, wxOrientation orient, const wxRect& rect, int flags = 0) = 0; // draw the rectangle in the corner between two scrollbars virtual void DrawScrollCorner(wxDC& dc, const wxRect& rect) = 0; // draw an item of a wxListBox virtual void DrawItem(wxDC& dc, const wxString& label, const wxRect& rect, int flags = 0) = 0; // draw an item of a wxCheckListBox virtual void DrawCheckItem(wxDC& dc, const wxString& label, const wxBitmap& bitmap, const wxRect& rect, int flags = 0) = 0; // draw a checkbutton (bitmap may be invalid to use default one) virtual void DrawCheckButton(wxDC& dc, const wxString& label, const wxBitmap& bitmap, const wxRect& rect, int flags = 0, wxAlignment align = wxALIGN_LEFT, int indexAccel = -1) = 0; // draw a radio button virtual void DrawRadioButton(wxDC& dc, const wxString& label, const wxBitmap& bitmap, const wxRect& rect, int flags = 0, wxAlignment align = wxALIGN_LEFT, int indexAccel = -1) = 0; #if wxUSE_TOOLBAR // draw a toolbar button (label may be empty, bitmap may be invalid, if // both conditions are true this function draws a separator) virtual void DrawToolBarButton(wxDC& dc, const wxString& label, const wxBitmap& bitmap, const wxRect& rect, int flags = 0, long style = 0, int tbarStyle = 0) = 0; #endif // wxUSE_TOOLBAR #if wxUSE_TEXTCTRL // draw a (part of) line in the text control virtual void DrawTextLine(wxDC& dc, const wxString& text, const wxRect& rect, int selStart = -1, int selEnd = -1, int flags = 0) = 0; // draw a line wrap indicator virtual void DrawLineWrapMark(wxDC& dc, const wxRect& rect) = 0; #endif // wxUSE_TEXTCTRL #if wxUSE_NOTEBOOK // draw a notebook tab virtual void DrawTab(wxDC& dc, const wxRect& rect, wxDirection dir, const wxString& label, const wxBitmap& bitmap = wxNullBitmap, int flags = 0, int indexAccel = -1) = 0; #endif // wxUSE_NOTEBOOK #if wxUSE_SLIDER // draw the slider shaft virtual void DrawSliderShaft(wxDC& dc, const wxRect& rect, int lenThumb, wxOrientation orient, int flags = 0, long style = 0, wxRect *rectShaft = NULL) = 0; // draw the slider thumb virtual void DrawSliderThumb(wxDC& dc, const wxRect& rect, wxOrientation orient, int flags = 0, long style = 0) = 0; // draw the slider ticks virtual void DrawSliderTicks(wxDC& dc, const wxRect& rect, int lenThumb, wxOrientation orient, int start, int end, int step = 1, int flags = 0, long style = 0) = 0; #endif // wxUSE_SLIDER #if wxUSE_MENUS // draw a menu bar item virtual void DrawMenuBarItem(wxDC& dc, const wxRect& rect, const wxString& label, int flags = 0, int indexAccel = -1) = 0; // draw a menu item (also used for submenus if flags has ISSUBMENU flag) // // the geometryInfo is calculated by GetMenuGeometry() function from below virtual void DrawMenuItem(wxDC& dc, wxCoord y, const wxMenuGeometryInfo& geometryInfo, const wxString& label, const wxString& accel, const wxBitmap& bitmap = wxNullBitmap, int flags = 0, int indexAccel = -1) = 0; // draw a menu bar separator virtual void DrawMenuSeparator(wxDC& dc, wxCoord y, const wxMenuGeometryInfo& geomInfo) = 0; #endif // wxUSE_MENUS #if wxUSE_STATUSBAR // draw a status bar field: wxCONTROL_ISDEFAULT bit in the flags is // interpreted specially and means "draw the status bar grip" here virtual void DrawStatusField(wxDC& dc, const wxRect& rect, const wxString& label, int flags = 0, int style = 0) = 0; #endif // wxUSE_STATUSBAR // draw complete frame/dialog titlebar virtual void DrawFrameTitleBar(wxDC& dc, const wxRect& rect, const wxString& title, const wxIcon& icon, int flags, int specialButton = 0, int specialButtonFlags = 0) = 0; // draw frame borders virtual void DrawFrameBorder(wxDC& dc, const wxRect& rect, int flags) = 0; // draw frame titlebar background virtual void DrawFrameBackground(wxDC& dc, const wxRect& rect, int flags) = 0; // draw frame title virtual void DrawFrameTitle(wxDC& dc, const wxRect& rect, const wxString& title, int flags) = 0; // draw frame icon virtual void DrawFrameIcon(wxDC& dc, const wxRect& rect, const wxIcon& icon, int flags) = 0; // draw frame buttons virtual void DrawFrameButton(wxDC& dc, wxCoord x, wxCoord y, int button, int flags = 0) = 0; // misc functions // -------------- #if wxUSE_COMBOBOX // return the bitmaps to use for combobox button virtual void GetComboBitmaps(wxBitmap *bmpNormal, wxBitmap *bmpFocus, wxBitmap *bmpPressed, wxBitmap *bmpDisabled) = 0; #endif // wxUSE_COMBOBOX // geometry functions // ------------------ // get the dimensions of the border: rect.x/y contain the width/height of // the left/top side, width/heigh - of the right/bottom one virtual wxRect GetBorderDimensions(wxBorder border) const = 0; // the scrollbars may be drawn either inside the window border or outside // it - this function is used to decide how to draw them virtual bool AreScrollbarsInsideBorder() const = 0; // adjust the size of the control of the given class: for most controls, // this just takes into account the border, but for some (buttons, for // example) it is more complicated - the result being, in any case, that // the control looks "nice" if it uses the adjusted rectangle virtual void AdjustSize(wxSize *size, const wxWindow *window) = 0; #if wxUSE_SCROLLBAR // get the size of a scrollbar arrow virtual wxSize GetScrollbarArrowSize() const = 0; #endif // wxUSE_SCROLLBAR // get the height of a listbox item from the base font height virtual wxCoord GetListboxItemHeight(wxCoord fontHeight) = 0; // get the size of a checkbox/radio button bitmap virtual wxSize GetCheckBitmapSize() const = 0; virtual wxSize GetRadioBitmapSize() const = 0; virtual wxCoord GetCheckItemMargin() const = 0; #if wxUSE_TOOLBAR // get the standard size of a toolbar button and also return the size of // a toolbar separator in the provided pointer virtual wxSize GetToolBarButtonSize(wxCoord *separator) const = 0; // get the margins between/around the toolbar buttons virtual wxSize GetToolBarMargin() const = 0; #endif // wxUSE_TOOLBAR #if wxUSE_TEXTCTRL // convert between text rectangle and client rectangle for text controls: // the former is typicall smaller to leave margins around text virtual wxRect GetTextTotalArea(const wxTextCtrl *text, const wxRect& rectText) const = 0; // extra space is for line indicators virtual wxRect GetTextClientArea(const wxTextCtrl *text, const wxRect& rectTotal, wxCoord *extraSpaceBeyond) const = 0; #endif // wxUSE_TEXTCTRL #if wxUSE_NOTEBOOK // get the overhang of a selected tab virtual wxSize GetTabIndent() const = 0; // get the padding around the text in a tab virtual wxSize GetTabPadding() const = 0; #endif // wxUSE_NOTEBOOK #if wxUSE_SLIDER // get the default size of the slider in lesser dimension (i.e. height of a // horizontal slider or width of a vertical one) virtual wxCoord GetSliderDim() const = 0; // get the length of the slider ticks displayed along side slider virtual wxCoord GetSliderTickLen() const = 0; // get the slider shaft rect from the total slider rect virtual wxRect GetSliderShaftRect(const wxRect& rect, int lenThumb, wxOrientation orient, long style = 0) const = 0; // get the size of the slider thumb for the given total slider rect virtual wxSize GetSliderThumbSize(const wxRect& rect, int lenThumb, wxOrientation orient) const = 0; #endif // wxUSE_SLIDER // get the size of one progress bar step (in horz and vertical directions) virtual wxSize GetProgressBarStep() const = 0; #if wxUSE_MENUS // get the size of rectangle to use in the menubar for the given text rect virtual wxSize GetMenuBarItemSize(const wxSize& sizeText) const = 0; // get the struct storing all layout info needed to draw all menu items // (this can't be calculated for each item separately as they should be // aligned) // // the returned pointer must be deleted by the caller virtual wxMenuGeometryInfo *GetMenuGeometry(wxWindow *win, const wxMenu& menu) const = 0; #endif // wxUSE_MENUS #if wxUSE_STATUSBAR // get the borders around the status bar fields (x and y fields of the // return value) virtual wxSize GetStatusBarBorders() const = 0; // get the border between the status bar fields virtual wxCoord GetStatusBarBorderBetweenFields() const = 0; // get the mergin between a field and its border virtual wxSize GetStatusBarFieldMargins() const = 0; #endif // wxUSE_STATUSBAR // get client area rectangle of top level window (i.e. subtract // decorations from given rectangle) virtual wxRect GetFrameClientArea(const wxRect& rect, int flags) const = 0; // get size of whole top level window, given size of its client area size virtual wxSize GetFrameTotalSize(const wxSize& clientSize, int flags) const = 0; // get the minimal size of top level window virtual wxSize GetFrameMinSize(int flags) const = 0; // get titlebar icon size virtual wxSize GetFrameIconSize() const = 0; // returns one of wxHT_TOPLEVEL_XXX constants virtual int HitTestFrame(const wxRect& rect, const wxPoint& pt, int flags = 0) const = 0; // virtual dtor for any base class virtual ~wxRenderer(); }; // ---------------------------------------------------------------------------- // wxDelegateRenderer: it is impossible to inherit from any of standard // renderers as their declarations are in private code, but you can use this // class to override only some of the Draw() functions - all the other ones // will be left to the original renderer // ---------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxDelegateRenderer : public wxRenderer { public: wxDelegateRenderer(wxRenderer *renderer) : m_renderer(renderer) { } virtual void DrawBackground(wxDC& dc, const wxColour& col, const wxRect& rect, int flags, wxWindow *window = NULL ) wxOVERRIDE { m_renderer->DrawBackground(dc, col, rect, flags, window ); } virtual void DrawButtonSurface(wxDC& dc, const wxColour& col, const wxRect& rect, int flags) wxOVERRIDE { m_renderer->DrawButtonSurface(dc, col, rect, flags); } virtual void DrawFocusRect(wxWindow* win, wxDC& dc, const wxRect& rect, int flags = 0) wxOVERRIDE { m_renderer->DrawFocusRect(win, dc, rect, flags); } virtual void DrawLabel(wxDC& dc, const wxString& label, const wxRect& rect, int flags = 0, int align = wxALIGN_LEFT | wxALIGN_TOP, int indexAccel = -1, wxRect *rectBounds = NULL) wxOVERRIDE { m_renderer->DrawLabel(dc, label, rect, flags, align, indexAccel, rectBounds); } virtual void DrawButtonLabel(wxDC& dc, const wxString& label, const wxBitmap& image, const wxRect& rect, int flags = 0, int align = wxALIGN_LEFT | wxALIGN_TOP, int indexAccel = -1, wxRect *rectBounds = NULL) wxOVERRIDE { m_renderer->DrawButtonLabel(dc, label, image, rect, flags, align, indexAccel, rectBounds); } virtual void DrawBorder(wxDC& dc, wxBorder border, const wxRect& rect, int flags = 0, wxRect *rectIn = NULL) wxOVERRIDE { m_renderer->DrawBorder(dc, border, rect, flags, rectIn); } virtual void DrawTextBorder(wxDC& dc, wxBorder border, const wxRect& rect, int flags = 0, wxRect *rectIn = NULL) wxOVERRIDE { m_renderer->DrawTextBorder(dc, border, rect, flags, rectIn); } virtual void DrawButtonBorder(wxDC& dc, const wxRect& rect, int flags = 0, wxRect *rectIn = NULL) wxOVERRIDE { m_renderer->DrawButtonBorder(dc, rect, flags, rectIn); } virtual void DrawFrame(wxDC& dc, const wxString& label, const wxRect& rect, int flags = 0, int align = wxALIGN_LEFT, int indexAccel = -1) wxOVERRIDE { m_renderer->DrawFrame(dc, label, rect, flags, align, indexAccel); } virtual void DrawHorizontalLine(wxDC& dc, wxCoord y, wxCoord x1, wxCoord x2) wxOVERRIDE { m_renderer->DrawHorizontalLine(dc, y, x1, x2); } virtual void DrawVerticalLine(wxDC& dc, wxCoord x, wxCoord y1, wxCoord y2) wxOVERRIDE { m_renderer->DrawVerticalLine(dc, x, y1, y2); } virtual void DrawArrow(wxDC& dc, wxDirection dir, const wxRect& rect, int flags = 0) wxOVERRIDE { m_renderer->DrawArrow(dc, dir, rect, flags); } virtual void DrawScrollbarArrow(wxDC& dc, wxDirection dir, const wxRect& rect, int flags = 0) wxOVERRIDE { m_renderer->DrawScrollbarArrow(dc, dir, rect, flags); } virtual void DrawScrollbarThumb(wxDC& dc, wxOrientation orient, const wxRect& rect, int flags = 0) wxOVERRIDE { m_renderer->DrawScrollbarThumb(dc, orient, rect, flags); } virtual void DrawScrollbarShaft(wxDC& dc, wxOrientation orient, const wxRect& rect, int flags = 0) wxOVERRIDE { m_renderer->DrawScrollbarShaft(dc, orient, rect, flags); } virtual void DrawScrollCorner(wxDC& dc, const wxRect& rect) wxOVERRIDE { m_renderer->DrawScrollCorner(dc, rect); } virtual void DrawItem(wxDC& dc, const wxString& label, const wxRect& rect, int flags = 0) wxOVERRIDE { m_renderer->DrawItem(dc, label, rect, flags); } virtual void DrawCheckItem(wxDC& dc, const wxString& label, const wxBitmap& bitmap, const wxRect& rect, int flags = 0) wxOVERRIDE { m_renderer->DrawCheckItem(dc, label, bitmap, rect, flags); } virtual void DrawCheckButton(wxDC& dc, const wxString& label, const wxBitmap& bitmap, const wxRect& rect, int flags = 0, wxAlignment align = wxALIGN_LEFT, int indexAccel = -1) wxOVERRIDE { m_renderer->DrawCheckButton(dc, label, bitmap, rect, flags, align, indexAccel); } virtual void DrawRadioButton(wxDC& dc, const wxString& label, const wxBitmap& bitmap, const wxRect& rect, int flags = 0, wxAlignment align = wxALIGN_LEFT, int indexAccel = -1) wxOVERRIDE { m_renderer->DrawRadioButton(dc, label, bitmap, rect, flags, align, indexAccel); } #if wxUSE_TOOLBAR virtual void DrawToolBarButton(wxDC& dc, const wxString& label, const wxBitmap& bitmap, const wxRect& rect, int flags = 0, long style = 0, int tbarStyle = 0) wxOVERRIDE { m_renderer->DrawToolBarButton(dc, label, bitmap, rect, flags, style, tbarStyle); } #endif // wxUSE_TOOLBAR #if wxUSE_TEXTCTRL virtual void DrawTextLine(wxDC& dc, const wxString& text, const wxRect& rect, int selStart = -1, int selEnd = -1, int flags = 0) wxOVERRIDE { m_renderer->DrawTextLine(dc, text, rect, selStart, selEnd, flags); } virtual void DrawLineWrapMark(wxDC& dc, const wxRect& rect) wxOVERRIDE { m_renderer->DrawLineWrapMark(dc, rect); } #endif // wxUSE_TEXTCTRL #if wxUSE_NOTEBOOK virtual void DrawTab(wxDC& dc, const wxRect& rect, wxDirection dir, const wxString& label, const wxBitmap& bitmap = wxNullBitmap, int flags = 0, int accel = -1) wxOVERRIDE { m_renderer->DrawTab(dc, rect, dir, label, bitmap, flags, accel); } #endif // wxUSE_NOTEBOOK #if wxUSE_SLIDER virtual void DrawSliderShaft(wxDC& dc, const wxRect& rect, int lenThumb, wxOrientation orient, int flags = 0, long style = 0, wxRect *rectShaft = NULL) wxOVERRIDE { m_renderer->DrawSliderShaft(dc, rect, lenThumb, orient, flags, style, rectShaft); } virtual void DrawSliderThumb(wxDC& dc, const wxRect& rect, wxOrientation orient, int flags = 0, long style = 0) wxOVERRIDE { m_renderer->DrawSliderThumb(dc, rect, orient, flags, style); } virtual void DrawSliderTicks(wxDC& dc, const wxRect& rect, int lenThumb, wxOrientation orient, int start, int end, int WXUNUSED(step) = 1, int flags = 0, long style = 0) wxOVERRIDE { m_renderer->DrawSliderTicks(dc, rect, lenThumb, orient, start, end, start, flags, style); } #endif // wxUSE_SLIDER #if wxUSE_MENUS virtual void DrawMenuBarItem(wxDC& dc, const wxRect& rect, const wxString& label, int flags = 0, int indexAccel = -1) wxOVERRIDE { m_renderer->DrawMenuBarItem(dc, rect, label, flags, indexAccel); } virtual void DrawMenuItem(wxDC& dc, wxCoord y, const wxMenuGeometryInfo& gi, const wxString& label, const wxString& accel, const wxBitmap& bitmap = wxNullBitmap, int flags = 0, int indexAccel = -1) wxOVERRIDE { m_renderer->DrawMenuItem(dc, y, gi, label, accel, bitmap, flags, indexAccel); } virtual void DrawMenuSeparator(wxDC& dc, wxCoord y, const wxMenuGeometryInfo& geomInfo) wxOVERRIDE { m_renderer->DrawMenuSeparator(dc, y, geomInfo); } #endif // wxUSE_MENUS #if wxUSE_STATUSBAR virtual void DrawStatusField(wxDC& dc, const wxRect& rect, const wxString& label, int flags = 0, int style = 0) wxOVERRIDE { m_renderer->DrawStatusField(dc, rect, label, flags, style); } #endif // wxUSE_STATUSBAR virtual void DrawFrameTitleBar(wxDC& dc, const wxRect& rect, const wxString& title, const wxIcon& icon, int flags, int specialButton = 0, int specialButtonFlag = 0) wxOVERRIDE { m_renderer->DrawFrameTitleBar(dc, rect, title, icon, flags, specialButton, specialButtonFlag); } virtual void DrawFrameBorder(wxDC& dc, const wxRect& rect, int flags) wxOVERRIDE { m_renderer->DrawFrameBorder(dc, rect, flags); } virtual void DrawFrameBackground(wxDC& dc, const wxRect& rect, int flags) wxOVERRIDE { m_renderer->DrawFrameBackground(dc, rect, flags); } virtual void DrawFrameTitle(wxDC& dc, const wxRect& rect, const wxString& title, int flags) wxOVERRIDE { m_renderer->DrawFrameTitle(dc, rect, title, flags); } virtual void DrawFrameIcon(wxDC& dc, const wxRect& rect, const wxIcon& icon, int flags) wxOVERRIDE { m_renderer->DrawFrameIcon(dc, rect, icon, flags); } virtual void DrawFrameButton(wxDC& dc, wxCoord x, wxCoord y, int button, int flags = 0) wxOVERRIDE { m_renderer->DrawFrameButton(dc, x, y, button, flags); } #if wxUSE_COMBOBOX virtual void GetComboBitmaps(wxBitmap *bmpNormal, wxBitmap *bmpFocus, wxBitmap *bmpPressed, wxBitmap *bmpDisabled) wxOVERRIDE { m_renderer->GetComboBitmaps(bmpNormal, bmpFocus, bmpPressed, bmpDisabled); } #endif // wxUSE_COMBOBOX virtual void AdjustSize(wxSize *size, const wxWindow *window) wxOVERRIDE { m_renderer->AdjustSize(size, window); } virtual wxRect GetBorderDimensions(wxBorder border) const wxOVERRIDE { return m_renderer->GetBorderDimensions(border); } virtual bool AreScrollbarsInsideBorder() const wxOVERRIDE { return m_renderer->AreScrollbarsInsideBorder(); } #if wxUSE_SCROLLBAR virtual wxSize GetScrollbarArrowSize() const wxOVERRIDE { return m_renderer->GetScrollbarArrowSize(); } #endif // wxUSE_SCROLLBAR virtual wxCoord GetListboxItemHeight(wxCoord fontHeight) wxOVERRIDE { return m_renderer->GetListboxItemHeight(fontHeight); } virtual wxSize GetCheckBitmapSize() const wxOVERRIDE { return m_renderer->GetCheckBitmapSize(); } virtual wxSize GetRadioBitmapSize() const wxOVERRIDE { return m_renderer->GetRadioBitmapSize(); } virtual wxCoord GetCheckItemMargin() const wxOVERRIDE { return m_renderer->GetCheckItemMargin(); } #if wxUSE_TOOLBAR virtual wxSize GetToolBarButtonSize(wxCoord *separator) const wxOVERRIDE { return m_renderer->GetToolBarButtonSize(separator); } virtual wxSize GetToolBarMargin() const wxOVERRIDE { return m_renderer->GetToolBarMargin(); } #endif // wxUSE_TOOLBAR #if wxUSE_TEXTCTRL virtual wxRect GetTextTotalArea(const wxTextCtrl *text, const wxRect& rect) const wxOVERRIDE { return m_renderer->GetTextTotalArea(text, rect); } virtual wxRect GetTextClientArea(const wxTextCtrl *text, const wxRect& rect, wxCoord *extraSpaceBeyond) const wxOVERRIDE { return m_renderer->GetTextClientArea(text, rect, extraSpaceBeyond); } #endif // wxUSE_TEXTCTRL #if wxUSE_NOTEBOOK virtual wxSize GetTabIndent() const wxOVERRIDE { return m_renderer->GetTabIndent(); } virtual wxSize GetTabPadding() const wxOVERRIDE { return m_renderer->GetTabPadding(); } #endif // wxUSE_NOTEBOOK #if wxUSE_SLIDER virtual wxCoord GetSliderDim() const wxOVERRIDE { return m_renderer->GetSliderDim(); } virtual wxCoord GetSliderTickLen() const wxOVERRIDE { return m_renderer->GetSliderTickLen(); } virtual wxRect GetSliderShaftRect(const wxRect& rect, int lenThumb, wxOrientation orient, long style = 0) const wxOVERRIDE { return m_renderer->GetSliderShaftRect(rect, lenThumb, orient, style); } virtual wxSize GetSliderThumbSize(const wxRect& rect, int lenThumb, wxOrientation orient) const wxOVERRIDE { return m_renderer->GetSliderThumbSize(rect, lenThumb, orient); } #endif // wxUSE_SLIDER virtual wxSize GetProgressBarStep() const wxOVERRIDE { return m_renderer->GetProgressBarStep(); } #if wxUSE_MENUS virtual wxSize GetMenuBarItemSize(const wxSize& sizeText) const wxOVERRIDE { return m_renderer->GetMenuBarItemSize(sizeText); } virtual wxMenuGeometryInfo *GetMenuGeometry(wxWindow *win, const wxMenu& menu) const wxOVERRIDE { return m_renderer->GetMenuGeometry(win, menu); } #endif // wxUSE_MENUS #if wxUSE_STATUSBAR virtual wxSize GetStatusBarBorders() const wxOVERRIDE { return m_renderer->GetStatusBarBorders(); } virtual wxCoord GetStatusBarBorderBetweenFields() const wxOVERRIDE { return m_renderer->GetStatusBarBorderBetweenFields(); } virtual wxSize GetStatusBarFieldMargins() const wxOVERRIDE { return m_renderer->GetStatusBarFieldMargins(); } #endif // wxUSE_STATUSBAR virtual wxRect GetFrameClientArea(const wxRect& rect, int flags) const wxOVERRIDE { return m_renderer->GetFrameClientArea(rect, flags); } virtual wxSize GetFrameTotalSize(const wxSize& clientSize, int flags) const wxOVERRIDE { return m_renderer->GetFrameTotalSize(clientSize, flags); } virtual wxSize GetFrameMinSize(int flags) const wxOVERRIDE { return m_renderer->GetFrameMinSize(flags); } virtual wxSize GetFrameIconSize() const wxOVERRIDE { return m_renderer->GetFrameIconSize(); } virtual int HitTestFrame(const wxRect& rect, const wxPoint& pt, int flags) const wxOVERRIDE { return m_renderer->HitTestFrame(rect, pt, flags); } virtual int DrawHeaderButton(wxWindow *win, wxDC& dc, const wxRect& rect, int flags = 0, wxHeaderSortIconType sortIcon = wxHDR_SORT_ICON_NONE, wxHeaderButtonParams* params = NULL) wxOVERRIDE { return m_renderer->DrawHeaderButton(win, dc, rect, flags, sortIcon, params); } virtual void DrawTreeItemButton(wxWindow *win, wxDC& dc, const wxRect& rect, int flags = 0) wxOVERRIDE { m_renderer->DrawTreeItemButton(win, dc, rect, flags); } protected: wxRenderer *m_renderer; }; // ---------------------------------------------------------------------------- // wxControlRenderer: wraps the wxRenderer functions in a form easy to use from // OnPaint() // ---------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxControlRenderer { public: // create a renderer for this dc with this "fundamental" renderer wxControlRenderer(wxWindow *control, wxDC& dc, wxRenderer *renderer); // operations void DrawLabel(); void DrawButtonLabel(const wxBitmap& bitmap = wxNullBitmap, wxCoord marginX = 0, wxCoord marginY = 0); #if wxUSE_LISTBOX void DrawItems(const wxListBox *listbox, size_t itemFirst, size_t itemLast); #endif // wxUSE_LISTBOX #if wxUSE_CHECKLISTBOX void DrawCheckItems(const wxCheckListBox *listbox, size_t itemFirst, size_t itemLast); #endif // wxUSE_CHECKLISTBOX void DrawButtonBorder(); // the line must be either horizontal or vertical void DrawLine(wxCoord x1, wxCoord y1, wxCoord x2, wxCoord y2); void DrawFrame(); void DrawBitmap(const wxBitmap& bitmap); void DrawBackgroundBitmap(); void DrawScrollbar(const wxScrollBar *scrollbar, int thumbPosOld); #if wxUSE_GAUGE void DrawProgressBar(const wxGauge *gauge); #endif // wxUSE_GAUGE // accessors wxWindow *GetWindow() const { return m_window; } wxRenderer *GetRenderer() const { return m_renderer; } wxDC& GetDC() { return m_dc; } const wxRect& GetRect() const { return m_rect; } wxRect& GetRect() { return m_rect; } // static helpers static void DrawBitmap(wxDC &dc, const wxBitmap& bitmap, const wxRect& rect, int alignment = wxALIGN_CENTRE | wxALIGN_CENTRE_VERTICAL, wxStretch stretch = wxSTRETCH_NOT); private: #if wxUSE_LISTBOX // common part of DrawItems() and DrawCheckItems() void DoDrawItems(const wxListBox *listbox, size_t itemFirst, size_t itemLast, bool isCheckLbox = false); #endif // wxUSE_LISTBOX wxWindow *m_window; wxRenderer *m_renderer; wxDC& m_dc; wxRect m_rect; }; #endif // _WX_UNIV_RENDERER_H_
h