in class info initialisation
Mmedia: compiles agin
Plot: corrected VC++ project settings
Simple toolbar: should draw a highlight again now
Generic dir control: moved control ids to header for apps that
need to get hold of the individual controls
Scintilla: unconditionally compile Scintilla_LinkLexers() to correct
link error in sample
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15016
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
12 files changed:
// alteration of a wxCanvasObject functionality
class wxCanvasObject: public wxEvtHandler
{
// alteration of a wxCanvasObject functionality
class wxCanvasObject: public wxEvtHandler
{
+ DECLARE_CLASS(wxCanvasObject)
public:
wxCanvasObject();
public:
wxCanvasObject();
// The group has a matrix to position/rotate/scale the group.
class wxCanvasObjectGroup: public wxCanvasObject
{
// The group has a matrix to position/rotate/scale the group.
class wxCanvasObjectGroup: public wxCanvasObject
{
+ DECLARE_CLASS(wxCanvasObjectGroup)
public:
wxCanvasObjectGroup(double x, double y);
virtual ~wxCanvasObjectGroup();
public:
wxCanvasObjectGroup(double x, double y);
virtual ~wxCanvasObjectGroup();
// The position/matrix of the referenced Object is accumulated with the one here.
class wxCanvasObjectRef: public wxCanvasObject
{
// The position/matrix of the referenced Object is accumulated with the one here.
class wxCanvasObjectRef: public wxCanvasObject
{
+ DECLARE_CLASS(wxCanvasObjectRef)
public:
wxCanvasObjectRef(double x, double y,wxCanvasObject* obj);
public:
wxCanvasObjectRef(double x, double y,wxCanvasObject* obj);
// wxCanvasRect
class wxCanvasRect: public wxCanvasObject
{
// wxCanvasRect
class wxCanvasRect: public wxCanvasObject
{
+ DECLARE_CLASS(wxCanvasRect)
public:
wxCanvasRect( double x, double y, double w, double h , double radius=0 );
void SetBrush( const wxBrush& brush) { m_brush = brush; };
public:
wxCanvasRect( double x, double y, double w, double h , double radius=0 );
void SetBrush( const wxBrush& brush) { m_brush = brush; };
// Bunch of rects and images.
wxBitmap bitmap( smile_xpm );
// Bunch of rects and images.
wxBitmap bitmap( smile_xpm );
- wxImage image( bitmap );
+ wxImage image( bitmap.ConvertToImage() );
m_smile1 = new wxCanvasImage( image, 0,70,32,32 );
root->Append( m_smile1 );
m_smile1 = new wxCanvasImage( image, 0,70,32,32 );
root->Append( m_smile1 );
m_datatree->SetAdmin(&m_canvasadmin);
wxBitmap bitmap( smile_xpm );
m_datatree->SetAdmin(&m_canvasadmin);
wxBitmap bitmap( smile_xpm );
- wxImage image( bitmap );
+ wxImage image( bitmap.ConvertToImage() );
// m_sm1 = new wxCanvasImage( image, 0,70,32,32 );
// m_datatree->Append( m_sm1 );
// m_sm1 = new wxCanvasImage( image, 0,70,32,32 );
// m_datatree->Append( m_sm1 );
// Bitmap button panel
wxBoxSizer *buttonSizer = new wxBoxSizer(wxHORIZONTAL);
// Bitmap button panel
wxBoxSizer *buttonSizer = new wxBoxSizer(wxHORIZONTAL);
- wxBitmap *play_bmp = new wxBitmap(play_back_xpm);
- wxBitmap *stop_bmp = new wxBitmap(stop_back_xpm);
- wxBitmap *eject_bmp = new wxBitmap(eject_xpm);
- wxBitmap *pause_bmp = new wxBitmap(pause_xpm);
+ wxBitmap play_bmp(play_back_xpm);
+ wxBitmap stop_bmp(stop_back_xpm);
+ wxBitmap eject_bmp(eject_xpm);
+ wxBitmap pause_bmp(pause_xpm);
- m_playButton = new wxBitmapButton(m_panel, MMBoard_PlayButton, *play_bmp);
+ m_playButton = new wxBitmapButton(m_panel, MMBoard_PlayButton, play_bmp);
m_playButton->Enable(FALSE);
m_playButton->Enable(FALSE);
- m_pauseButton = new wxBitmapButton(m_panel, MMBoard_PauseButton, *pause_bmp);
+ m_pauseButton = new wxBitmapButton(m_panel, MMBoard_PauseButton, pause_bmp);
m_pauseButton->Enable(FALSE);
m_pauseButton->Enable(FALSE);
- m_stopButton = new wxBitmapButton(m_panel, MMBoard_StopButton, *stop_bmp);
+ m_stopButton = new wxBitmapButton(m_panel, MMBoard_StopButton, stop_bmp);
m_stopButton->Enable(FALSE);
m_stopButton->Enable(FALSE);
- m_ejectButton = new wxBitmapButton(m_panel, MMBoard_EjectButton, *eject_bmp);
+ m_ejectButton = new wxBitmapButton(m_panel, MMBoard_EjectButton, eject_bmp);
m_ejectButton->Enable(FALSE);
buttonSizer->Add(m_playButton, 0, wxALL, 2);
m_ejectButton->Enable(FALSE);
buttonSizer->Add(m_playButton, 0, wxALL, 2);
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
-# ADD CPP /nologo /MD /W3 /GX /O1 /Ob2 /I "../../../include" /I "../../../contrib/include" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /FD /c
+# ADD CPP /nologo /MD /W3 /GX /O1 /Ob2 /I "../../../include" /I "../../../contrib/include" /I "../../../lib/mswd" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /FD /c
# SUBTRACT CPP /YX
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
# SUBTRACT CPP /YX
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c
-# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "../../../include" /I "../../../contrib/include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D DEBUG=1 /D "__WXDEBUG__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /FD /c
+# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "../../../include" /I "../../../contrib/include" /I "../../../lib/mswd" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D DEBUG=1 /D "__WXDEBUG__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /FD /c
# SUBTRACT CPP /YX /Yc /Yu
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
# SUBTRACT CPP /YX /Yc /Yu
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
// wxCanvasObject
//----------------------------------------------------------------------------
// wxCanvasObject
//----------------------------------------------------------------------------
+IMPLEMENT_CLASS(wxCanvasObject, wxEvtHandler)
+
wxCanvasObject::wxCanvasObject()
{
// the default event handler is just this object
wxCanvasObject::wxCanvasObject()
{
// the default event handler is just this object
// wxCanvasObjectGroup
//----------------------------------------------------------------------------
// wxCanvasObjectGroup
//----------------------------------------------------------------------------
+IMPLEMENT_CLASS(wxCanvasObjectGroup, wxCanvasObject)
+
wxCanvasObjectGroup::wxCanvasObjectGroup(double x, double y)
{
lworld.Translate(x,y);
wxCanvasObjectGroup::wxCanvasObjectGroup(double x, double y)
{
lworld.Translate(x,y);
// wxCanvasObjectRef
//----------------------------------------------------------------------------
// wxCanvasObjectRef
//----------------------------------------------------------------------------
+IMPLEMENT_CLASS(wxCanvasObjectRef, wxCanvasObject)
+
wxCanvasObjectRef::wxCanvasObjectRef(double x, double y, wxCanvasObject* obj)
: wxCanvasObject()
{
wxCanvasObjectRef::wxCanvasObjectRef(double x, double y, wxCanvasObject* obj)
: wxCanvasObject()
{
// wxCanvasRect
//----------------------------------------------------------------------------
// wxCanvasRect
//----------------------------------------------------------------------------
+IMPLEMENT_CLASS(wxCanvasRect, wxCanvasObject)
+
wxCanvasRect::wxCanvasRect( double x, double y, double w, double h , double radius )
: wxCanvasObject()
{
wxCanvasRect::wxCanvasRect( double x, double y, double w, double h , double radius )
: wxCanvasObject()
{
LexerModule lmNull(SCLEX_NULL, ColouriseNullDoc, "null");
LexerModule lmNull(SCLEX_NULL, ColouriseNullDoc, "null");
#define LINK_LEXERS
#endif
#define LINK_LEXERS
#endif
-BMROOT=c:\wx2dev\wxwind~1\docs/latex/wx ; Assume that bitmaps are where the source is
+BMROOT=c:\wx2dev\wxWind~1\docs\latex\wx
TITLE=wxWindows Manual
CONTENTS=Contents
COMPRESS=HIGH
TITLE=wxWindows Manual
CONTENTS=Contents
COMPRESS=HIGH
#define wxDirCtrl wxGenericDirCtrl
#endif
#define wxDirCtrl wxGenericDirCtrl
#endif
+// Symbols for accessing individual controls
+#define wxID_TREECTRL 7000
+#define wxID_FILTERLISTCTRL 7001
+
#endif // wxUSE_DIRDLG
#endif
#endif // wxUSE_DIRDLG
#endif
-#define wxID_TREECTRL 7000
-#define wxID_FILTERLISTCTRL 7001
-
#if defined(__DOS__)
bool wxIsDriveAvailable(const wxString& dirName)
#if defined(__DOS__)
bool wxIsDriveAvailable(const wxString& dirName)
wxPen white_pen(wxT("WHITE"), 1, wxSOLID);
wxPen black_pen(wxT("BLACK"), 1, wxSOLID);
wxPen white_pen(wxT("WHITE"), 1, wxSOLID);
wxPen black_pen(wxT("BLACK"), 1, wxSOLID);
- wxBitmap bitmap = tool->GetBitmap();
+ wxBitmap bitmap = tool->GetNormalBitmap();
+ if (!bitmap.Ok())
+ return;
+ if ( !tool->IsToggled() )
{
#if wxUSE_PALETTE
#ifndef __WXGTK__
{
#if wxUSE_PALETTE
#ifndef __WXGTK__
LexerModule lmNull(SCLEX_NULL, ColouriseNullDoc, "null");
LexerModule lmNull(SCLEX_NULL, ColouriseNullDoc, "null");
#define LINK_LEXERS
#endif
#define LINK_LEXERS
#endif