git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1588
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
33 files changed:
samples/proplist/*.xbm
samples/proplist/*.xpm
samples/proplist/*.ico
samples/proplist/*.xbm
samples/proplist/*.xpm
samples/proplist/*.ico
samples/proplist/*.rc
samples/layout/*.cpp
samples/proplist/*.rc
samples/layout/*.cpp
otherwise it is a status value. A zero value indicates that the command could not
be executed.
otherwise it is a status value. A zero value indicates that the command could not
be executed.
-If callback isn't NULL and if execution is asynchronous,
+If callback isn't NULL and if execution is asynchronous,
\helpref{wxProcess::OnTerminate}{wxprocessonterminate} will be called when
the process finishes.
\helpref{wxProcess::OnTerminate}{wxprocessonterminate} will be called when
the process finishes.
files to Unix format. Don't worry about files being
overwritten: they should be identical anyway.
files to Unix format. Don't worry about files being
overwritten: they should be identical anyway.
+- It is recommended that you install bison and flex; using yacc
+ and lex may require tweaking of the makefiles. You also need
+ Xpm (see comments in the Notes section below).
+
+- You now have the option of using the configure-based system,
+ or the simple makefile system. Configure is more hard to debug
+ if things go wrong, but may be easier to use if they go OK :-)
+ Makefiles are easier to tweak.
+
COMPILING USING CONFIGURE
COMPILING USING CONFIGURE
+=========================
- You can use the wxGTK configure system to make wxMotif, or
you can follow the following steps to use the simpler (but
- You can use the wxGTK configure system to make wxMotif, or
you can follow the following steps to use the simpler (but
where it will be found by the makefile.
COMPILING USING MAKEFILES
where it will be found by the makefile.
COMPILING USING MAKEFILES
+=========================
- Choose a .env file from src/makeenvs that matches your
environment, and copy it to src/make.env. These are the
- Choose a .env file from src/makeenvs that matches your
environment, and copy it to src/make.env. These are the
- Use wxImage to load other formats into wxBitmaps, such as PNG, BMP.
- Use wxImage to load other formats into wxBitmaps, such as PNG, BMP.
+- Implement scaled Blit as per John Price's impementation for 1.68.
+
Low Priority
------------
Low Priority
------------
LOW PRIORITY (MEDIUM TERM)
--------------------------
LOW PRIORITY (MEDIUM TERM)
--------------------------
+Get wxMSW's wxGLCanvas working with non-VC++ compilers.
+
+Generate VC++ lib project files and supply VC++ project
+generator utility.
+
Convert remaining utilities e.g. wxGraphLayout.
More wxSystemSettings (see comment in settings.cpp).
Convert remaining utilities e.g. wxGraphLayout.
More wxSystemSettings (see comment in settings.cpp).
- Fix TCP/IP mode in dde sample (how to use; why does it crash).
- Fix TCP/IP mode in dde sample (how to use; why does it crash).
-- Get Karsten to remove trashed CVS files:
+- Remove trashed CVS files:
include/wx/msw/magnif1.cur
src/msw/ctl3d/*
include/wx/msw/magnif1.cur
src/msw/ctl3d/*
+ utils/glcanvas/samples/isosurf/isosurf.dat.gz
PostgreSQL. Find out what Remstar uses and document
problems/restrictions.
PostgreSQL. Find out what Remstar uses and document
problems/restrictions.
+- In doc/view file selector, document type is selected by
+ extension, not the type selected in the (Windows) file selector.
+
- Complete this ToDo list :-)
- Complete this ToDo list :-)
~wxSizer();
bool Create(wxWindow *parent, wxSizerBehaviour behav = wxSizerNone);
~wxSizer();
bool Create(wxWindow *parent, wxSizerBehaviour behav = wxSizerNone);
virtual void SetSize(int x, int y, int w, int h, int flags = wxSIZE_AUTO);
virtual void SetSize(int x, int y, int w, int h, int flags = wxSIZE_AUTO);
+ virtual void SetSize(const wxRect& rect, int sizeFlags = wxSIZE_AUTO)
+ { wxWindow::SetSize(rect, sizeFlags); }
+ virtual void SetSize(const wxSize& size) { wxWindow::SetSize(size); }
+ virtual void SetSize(int width, int height) { SetSize(-1, -1, width, height, wxSIZE_USE_EXISTING); }
+
virtual void GetSize(int *w, int *h) const;
virtual void GetSize(int *w, int *h) const;
+ wxSize GetSize() const { return wxWindow::GetSize(); }
virtual void GetClientSize(int *w, int *h) const { GetSize(w, h); }
virtual void GetClientSize(int *w, int *h) const { GetSize(w, h); }
+ wxSize GetClientSize() const { return wxWindow::GetClientSize(); }
+
virtual void GetPosition(int *x, int *y) const;
virtual void GetPosition(int *x, int *y) const;
+ wxPoint GetPosition() const { return wxWindow::GetPosition(); }
inline void SizerSetSize(int x, int y, int w, int h)
{ SetSize(x, y, w, h); }
inline void SizerSetSize(int x, int y, int w, int h)
{ SetSize(x, y, w, h); }
virtual void SetSize(const wxSize& size) { wxWindow::SetSize(size); }
virtual void SetSize(int width, int height) { SetSize(-1, -1, width, height, wxSIZE_USE_EXISTING); }
virtual void SetSize(const wxSize& size) { wxWindow::SetSize(size); }
virtual void SetSize(int width, int height) { SetSize(-1, -1, width, height, wxSIZE_USE_EXISTING); }
- virtual void SetLabel(const wxBitmap *bitmap);
+ virtual void SetLabel(const wxBitmap& bitmap);
+ virtual void SetLabel(const wxString& label) { wxControl::SetLabel(label); };
};
#endif
// _WX_CHECKBOX_H_
};
#endif
// _WX_CHECKBOX_H_
// MDI operations
virtual void Maximize();
// MDI operations
virtual void Maximize();
+ virtual void Maximize(bool WXUNUSED(maximize)) { };
inline void Minimize() { Iconize(TRUE); };
virtual void Iconize(bool iconize);
virtual void Restore();
inline void Minimize() { Iconize(TRUE); };
virtual void Iconize(bool iconize);
virtual void Restore();
{ wxWindow::SetSize(rect, sizeFlags); }
void SetSize(const wxSize& size) { wxWindow::SetSize(size); }
{ wxWindow::SetSize(rect, sizeFlags); }
void SetSize(const wxSize& size) { wxWindow::SetSize(size); }
- virtual void SetLabel(const wxBitmap *bitmap);
+ virtual void SetLabel(const wxBitmap& bitmap);
};
#endif
// _WX_CHECKBOX_H_
};
#endif
// _WX_CHECKBOX_H_
+// Things that don't work for 16-bit compilation
#if defined(__WXMSW__) && !defined(__WIN32__)
#undef wxUSE_THREADS
#define wxUSE_THREADS 0
#if defined(__WXMSW__) && !defined(__WIN32__)
#undef wxUSE_THREADS
#define wxUSE_THREADS 0
+#undef wxUSE_TOOLTIPS
+#define wxUSE_TOOLTIPS 0
+
virtual void SetValue(bool);
virtual bool GetValue() const ;
virtual void SetSize(int x, int y, int width, int height, int sizeFlags = wxSIZE_AUTO);
virtual void SetValue(bool);
virtual bool GetValue() const ;
virtual void SetSize(int x, int y, int width, int height, int sizeFlags = wxSIZE_AUTO);
- virtual void SetLabel(const wxBitmap *bitmap);
+ virtual void SetLabel(const wxBitmap& bitmap);
};
#endif
// _WX_CHECKBOX_H_
};
#endif
// _WX_CHECKBOX_H_
m_checkbox = new wxCheckBox( panel, ID_LISTBOX_ENABLE, "Disable", wxPoint(20,130), wxSize(140,30) );
m_checkbox->SetValue(FALSE);
m_checkbox->SetToolTip( "Click here to disable the listbox" );
m_checkbox = new wxCheckBox( panel, ID_LISTBOX_ENABLE, "Disable", wxPoint(20,130), wxSize(140,30) );
m_checkbox->SetValue(FALSE);
m_checkbox->SetToolTip( "Click here to disable the listbox" );
- m_notebook->AddPage(panel, "wxList", TRUE, Image_List);
+ m_notebook->AddPage(panel, "wxListBox", TRUE, Image_List);
panel = new wxPanel(m_notebook);
m_choice = new wxChoice( panel, ID_CHOICE, wxPoint(10,10), wxSize(120,-1), 5, choices );
panel = new wxPanel(m_notebook);
m_choice = new wxChoice( panel, ID_CHOICE, wxPoint(10,10), wxSize(120,-1), 5, choices );
panel = new wxPanel(m_notebook);
m_textentry = new MyTextCtrl( panel, -1, "Write text here.", wxPoint(10,10), wxSize(320,28),
panel = new wxPanel(m_notebook);
m_textentry = new MyTextCtrl( panel, -1, "Write text here.", wxPoint(10,10), wxSize(320,28),
+// wxTE_PROCESS_ENTER);
+0);
+
(*m_textentry) << " More text."; // this text is appended
m_textentry->SetInsertionPoint(0);
m_textentry->WriteText("Less text."); // this text is prepended
(*m_textentry) << " More text."; // this text is appended
m_textentry->SetInsertionPoint(0);
m_textentry->WriteText("Less text."); // this text is prepended
+#ifdef __WXMOTIF__
+#error Sorry, drag and drop is not yet implemented on wxMotif.
+#endif
+
+#if defined(__WXGTK__) || defined(__WXMOTIF__)
#include "mondrian.xpm"
#endif
#include "mondrian.xpm"
#endif
wxMenu *editMenu;
MyFrame(wxDocManager *manager, wxFrame *frame, const wxString& title, const wxPoint& pos, const wxSize& size,
wxMenu *editMenu;
MyFrame(wxDocManager *manager, wxFrame *frame, const wxString& title, const wxPoint& pos, const wxSize& size,
void OnAbout(wxCommandEvent& event);
MyCanvas *CreateCanvas(wxView *view, wxFrame *parent);
void OnAbout(wxCommandEvent& event);
MyCanvas *CreateCanvas(wxView *view, wxFrame *parent);
END_EVENT_TABLE()
// Define a constructor for my canvas
END_EVENT_TABLE()
// Define a constructor for my canvas
-MyCanvas::MyCanvas(wxView *v, wxFrame *frame, const wxPoint& pos, const wxSize& size, const long style):
+MyCanvas::MyCanvas(wxView *v, wxFrame *frame, const wxPoint& pos, const wxSize& size, long style):
wxScrolledWindow(frame, -1, pos, size, style)
{
view = v;
wxScrolledWindow(frame, -1, pos, size, style)
{
view = v;
}
// Define a constructor for my text subwindow
}
// Define a constructor for my text subwindow
-MyTextWindow::MyTextWindow(wxView *v, wxFrame *frame, const wxPoint& pos, const wxSize& size, const long style):
+MyTextWindow::MyTextWindow(wxView *v, wxFrame *frame, const wxPoint& pos, const wxSize& size, long style):
wxTextCtrl(frame, -1, "", pos, size, style)
{
view = v;
wxTextCtrl(frame, -1, "", pos, size, style)
{
view = v;
- MyCanvas(wxView *v, wxFrame *frame, const wxPoint& pos, const wxSize& size, const long style);
+ MyCanvas(wxView *v, wxFrame *frame, const wxPoint& pos, const wxSize& size, long style);
virtual void OnDraw(wxDC& dc);
void OnMouseEvent(wxMouseEvent& event);
virtual void OnDraw(wxDC& dc);
void OnMouseEvent(wxMouseEvent& event);
- MyTextWindow(wxView *v, wxFrame *frame, const wxPoint& pos, const wxSize& size, const long style);
+ MyTextWindow(wxView *v, wxFrame *frame, const wxPoint& pos, const wxSize& size, long style);
};
class DrawingView: public wxView
};
class DrawingView: public wxView
EVT_PAINT(MyCanvas::OnPaint)
END_EVENT_TABLE()
EVT_PAINT(MyCanvas::OnPaint)
END_EVENT_TABLE()
-MyCanvas::MyCanvas( wxWindow *parent, const wxWindowID id,
+MyCanvas::MyCanvas( wxWindow *parent, wxWindowID id,
const wxPoint &pos, const wxSize &size )
: wxScrolledWindow( parent, id, pos, size, wxSUNKEN_BORDER )
{
const wxPoint &pos, const wxSize &size )
: wxScrolledWindow( parent, id, pos, size, wxSUNKEN_BORDER )
{
#include "wx/wx.h"
#endif
#include "wx/wx.h"
#endif
+#ifndef __WXMSW__
+#error Sorry, this sample is only appropriate under Windows.
+#endif
+
#include "wx/resource.h"
#include <ctype.h>
#include "wx/resource.h"
#include <ctype.h>
# Debug/trace mode. 1 or more for debugging.
DEBUG = 1
# Debug/trace mode. 1 or more for debugging.
DEBUG = 1
-GUI = -D__WXSTUBS__ -D__LINUX__ -D__UNIX__
+GUI = -D__WXSTUBS__ -D__UNIX__
GUISUFFIX = _stubs
########################## Compiler flags #############################
# Misc options
GUISUFFIX = _stubs
########################## Compiler flags #############################
# Misc options
+OPTIONS = -D__LINUX__ -D__WXDEBUG__
COPTIONS =
DEBUGFLAGS = -ggdb
INCLUDE =
COPTIONS =
DEBUGFLAGS = -ggdb
INCLUDE =
echo Use a target: one of motif, stubs
stubs:
echo Use a target: one of motif, stubs
stubs:
- make -f makefile.unx all GUI='-D__WXSTUBS__ -D__LINUX__ -D__UNIX__' GUISUFFIX='_stubs' GUILDLIBS='-lwx_stubs $(COMPLIBS) -lXm -lXmu -lXt -lX11 -lm'
+ make -f makefile.unx all GUI='-D__WXSTUBS__ -D__UNIX__' GUISUFFIX='_stubs' GUILDLIBS='-lwx_stubs $(COMPLIBS) -lXm -lXmu -lXt -lX11 -lm'
- make -f makefile.unx all GUI='-D__WXMOTIF__ -D__LINUX__ -D__UNIX__' GUISUFFIX='_motif' GUILDLIBS='-lwx_motif $(COMPLIBS) -lpng -lzlib -lXm -lXmu -lXt -lXpm -lX11 -lm'
+ make -f makefile.unx all GUI='-D__WXMOTIF__ -D__UNIX__' GUISUFFIX='_motif' GUILDLIBS='-lwx_motif $(COMPLIBS) -lpng -lzlib -lXm -lXmu -lXt -lXpm -lX11 -lm'
- make -f makefile.unx all GUI='-D__WXGTK__ -D__LINUX__ -D__UNIX__' GUISUFFIX='_gtk' GUILDLIBS='-lwx_gtk2 $(COMPLIBS) -ldl -lgtk -lgdk -lglib -lpng -lzlib -lX11 -lm -pthread'
+ make -f makefile.unx all GUI='-D__WXGTK__ -D__UNIX__' GUISUFFIX='_gtk' GUILDLIBS='-lwx_gtk2 $(COMPLIBS) -ldl -lgtk -lgdk -lglib -lpng -lzlib -lX11 -lm -pthread'
- make -f makefile.unx clean GUI='-D__WXSTUBS__ -D__LINUX__ -D__UNIX__' GUISUFFIX='_stubs' GUILDLIBS='-lwx_stubs $(COMPLIBS) -lXm -lXmu -lXt -lX11 -lm'
+ make -f makefile.unx clean GUI='-D__WXSTUBS__ -D__UNIX__' GUISUFFIX='_stubs' GUILDLIBS='-lwx_stubs $(COMPLIBS) -lXm -lXmu -lXt -lX11 -lm'
- make -f makefile.unx clean GUI='-D__WXMOTIF__ -D__LINUX__ -D__UNIX__' GUISUFFIX='_motif' GUILDLIBS='-lwx_motif $(COMPLIBS) -lXm -lXmu -lXt -lX11 -lm'
+ make -f makefile.unx clean GUI='-D__WXMOTIF__ -D__UNIX__' GUISUFFIX='_motif' GUILDLIBS='-lwx_motif $(COMPLIBS) -lXm -lXmu -lXt -lX11 -lm'
+
+cleangtk:
+ make -f makefile.unx clean GUI='-D__WXGTK__ -D__UNIX__' GUISUFFIX='_gtk'
$(OBJDIR):
mkdir $(OBJDIR)
$(OBJDIR):
mkdir $(OBJDIR)
############################ Switches #################################
# Debug/trace mode. 1 or more for debugging.
############################ Switches #################################
# Debug/trace mode. 1 or more for debugging.
-DEBUG = 0
-GUI = -D__WXSTUBS__ -D__LINUX__ -D__UNIX__
+DEBUG = 1
+GUI = -D__WXSTUBS__ -D__UNIX__
GUISUFFIX = _stubs
########################## Compiler flags #############################
# Misc options
GUISUFFIX = _stubs
########################## Compiler flags #############################
# Misc options
+OPTIONS = -D__LINUX__ -D__WXDEBUG__
COPTIONS =
DEBUGFLAGS = -ggdb
INCLUDE =
COPTIONS =
DEBUGFLAGS = -ggdb
INCLUDE =
echo Use a target: one of motif, stubs
stubs:
echo Use a target: one of motif, stubs
stubs:
- make -f makefile.unx all GUI='-D__WXSTUBS__ -D__LINUX__ -D__UNIX__' GUISUFFIX='_stubs' GUILDLIBS='-lwx_stubs $(COMPLIBS) -lXm -lXmu -lXt -lX11 -lm'
+ make -f makefile.unx all GUI='-D__WXSTUBS__ -D__UNIX__' GUISUFFIX='_stubs' GUILDLIBS='-lwx_stubs $(COMPLIBS) -lXm -lXmu -lXt -lX11 -lm'
- make -f makefile.unx all GUI='-D__WXMOTIF__ -D__LINUX__ -D__UNIX__' GUISUFFIX='_motif' GUILDLIBS='-lwx_motif $(COMPLIBS) -lXm -lXmu -lXt -lXpm -lX11 -lm'
+ make -f makefile.unx all GUI='-D__WXMOTIF__ -D__UNIX__' GUISUFFIX='_motif' GUILDLIBS='-lwx_motif $(COMPLIBS) -lpng -lzlib -lXm -lXmu -lXt -lXpm -lX11 -lm'
- make -f makefile.unx all GUI='-D__WXGTK__ -D__LINUX__ -D__UNIX__' GUISUFFIX='_gtk' GUILDLIBS='-lwx_gtk $(COMPLIBS) -lXm -lXmu -lXpm -lX11 -lm'
+ make -f makefile.unx all GUI='-D__WXGTK__ -D__UNIX__' GUISUFFIX='_gtk' GUILDLIBS='-lwx_gtk2 $(COMPLIBS) -ldl -lgtk -lgdk -lglib -lpng -lzlib -lX11 -lm -pthread'
- make -f makefile.unx clean GUI='-D__WXSTUBS__ -D__LINUX__ -D__UNIX__' GUISUFFIX='_stubs' GUILDLIBS='-lwx_stubs $(COMPLIBS) -lXm -lXmu -lXt -lX11 -lm'
+ make -f makefile.unx clean GUI='-D__WXSTUBS__ -D__UNIX__' GUISUFFIX='_stubs' GUILDLIBS='-lwx_stubs $(COMPLIBS) -lXm -lXmu -lXt -lX11 -lm'
- make -f makefile.unx clean GUI='-D__WXMOTIF__ -D__LINUX__ -D__UNIX__' GUISUFFIX='_motif' GUILDLIBS='-lwx_motif $(COMPLIBS) -lXm -lXmu -lXt -lX11 -lm'
+ make -f makefile.unx clean GUI='-D__WXMOTIF__ -D__UNIX__' GUISUFFIX='_motif' GUILDLIBS='-lwx_motif $(COMPLIBS) -lXm -lXmu -lXt -lX11 -lm'
+
+cleangtk:
+ make -f makefile.unx clean GUI='-D__WXGTK__ -D__UNIX__' GUISUFFIX='_gtk'
$(OBJDIR):
mkdir $(OBJDIR)
$(OBJDIR):
mkdir $(OBJDIR)
echo Use a target: one of motif, stubs
stubs:
echo Use a target: one of motif, stubs
stubs:
- make -f makefile.unx all GUI='-D__WXSTUBS__ -D__LINUX__ -D__UNIX__' GUISUFFIX='_stubs' GUILDLIBS='-lwx_stubs $(COMPLIBS) -lXm -lXmu -lXt -lX11 -lm'
+ make -f makefile.unx all GUI='-D__WXSTUBS__ -D__UNIX__' GUISUFFIX='_stubs' GUILDLIBS='-lwx_stubs $(COMPLIBS) -lXm -lXmu -lXt -lX11 -lm'
- make -f makefile.unx all GUI='-D__WXMOTIF__ -D__UNIX__' GUISUFFIX='_motif' GUILDLIBS='-lwx_motif $(COMPLIBS) -lXm -lXmu -lXt -lXpm -lX11 -lm'
+ make -f makefile.unx all GUI='-D__WXMOTIF__ -D__UNIX__' GUISUFFIX='_motif' GUILDLIBS='-lwx_motif $(COMPLIBS) -lpng -lzlib -lXm -lXmu -lXt -lXpm -lX11 -lm'
- make -f makefile.unx all GUI='-D__WXGTK__ -D__LINUX__ -D__UNIX__' GUISUFFIX='_gtk' GUILDLIBS='-lwx_gtk $(COMPLIBS) -lXm -lXmu -lXpm -lX11 -lm'
+ make -f makefile.unx all GUI='-D__WXGTK__ -D__UNIX__' GUISUFFIX='_gtk' GUILDLIBS='-lwx_gtk2 $(COMPLIBS) -ldl -lgtk -lgdk -lglib -lpng -lzlib -lX11 -lm -pthread'
- make -f makefile.unx clean GUI='-D__WXSTUBS__ -D__LINUX__ -D__UNIX__' GUISUFFIX='_stubs' GUILDLIBS='-lwx_stubs $(COMPLIBS) -lXm -lXmu -lXt -lX11 -lm'
+ make -f makefile.unx clean GUI='-D__WXSTUBS__ -D__UNIX__' GUISUFFIX='_stubs' GUILDLIBS='-lwx_stubs $(COMPLIBS) -lXm -lXmu -lXt -lX11 -lm'
- make -f makefile.unx clean GUI='-D__WXMOTIF__ -D__LINUX__ -D__UNIX__' GUISUFFIX='_motif' GUILDLIBS='-lwx_motif $(COMPLIBS) -lXm -lXmu -lXt -lX11 -lm'
+ make -f makefile.unx clean GUI='-D__WXMOTIF__ -D__UNIX__' GUISUFFIX='_motif' GUILDLIBS='-lwx_motif $(COMPLIBS) -lXm -lXmu -lXt -lX11 -lm'
+
+cleangtk:
+ make -f makefile.unx clean GUI='-D__WXGTK__ -D__UNIX__' GUISUFFIX='_gtk'
$(OBJDIR):
mkdir $(OBJDIR)
$(OBJDIR):
mkdir $(OBJDIR)
############################ Libraries ################################
COMPLIBS = -lgen -ldl -lsocket -lnsl
############################ Libraries ################################
COMPLIBS = -lgen -ldl -lsocket -lnsl
-GUILDLIBS = -lwx_motif $(COMPLIBS) -lXm -lXmu -lXt -lX11 -lm
+GUILDLIBS = -lwx_motif $(COMPLIBS) -lpng -lzlib -lXpm -lXm -lXmu -lXt -lX11 -lm
############################# Suffixes ################################
############################# Suffixes ################################
echo Use a target: one of motif, stubs
stubs:
echo Use a target: one of motif, stubs
stubs:
- make -f makefile.unx all GUI='-D__WXSTUBS__ -D__LINUX__ -D__UNIX__' GUISUFFIX='_stubs' GUILDLIBS='-lwx_stubs $(COMPLIBS) -lXm -lXmu -lXt -lX11 -lm'
+ make -f makefile.unx all GUI='-D__WXSTUBS__ -D__UNIX__' GUISUFFIX='_stubs' GUILDLIBS='-lwx_stubs $(COMPLIBS) -lXm -lXmu -lXt -lX11 -lm'
- make -f makefile.unx all GUI='-D__WXMOTIF__ -D__LINUX__ -D__UNIX__' GUISUFFIX='_motif' GUILDLIBS='-lwx_motif $(COMPLIBS) -lXm -lXmu -lXt -lX11 -lm'
+ make -f makefile.unx all GUI='-D__WXMOTIF__ -D__UNIX__' GUISUFFIX='_motif' GUILDLIBS='-lwx_motif $(COMPLIBS) -lpng -lzlib -lXm -lXmu -lXt -lXpm -lX11 -lm'
- make -f makefile.unx all GUI='-D__WXGTK__ -D__LINUX__ -D__UNIX__' GUISUFFIX='_gtk' GUILDLIBS='-lwx_gtk $(COMPLIBS) -lXm -lXmu -lXpm -lX11 -lm'
+ make -f makefile.unx all GUI='-D__WXGTK__ -D__UNIX__' GUISUFFIX='_gtk' GUILDLIBS='-lwx_gtk2 $(COMPLIBS) -ldl -lgtk -lgdk -lglib -lpng -lzlib -lX11 -lm -pthread'
- make -f makefile.unx clean GUI='-D__WXSTUBS__ -D__LINUX__ -D__UNIX__' GUISUFFIX='_stubs' GUILDLIBS='-lwx_stubs $(COMPLIBS) -lXm -lXmu -lXt -lX11 -lm'
+ make -f makefile.unx clean GUI='-D__WXSTUBS__ -D__UNIX__' GUISUFFIX='_stubs' GUILDLIBS='-lwx_stubs $(COMPLIBS) -lXm -lXmu -lXt -lX11 -lm'
- make -f makefile.unx clean GUI='-D__WXMOTIF__ -D__LINUX__ -D__UNIX__' GUISUFFIX='_motif' GUILDLIBS='-lwx_motif $(COMPLIBS) -lXm -lXmu -lXt -lX11 -lm'
+ make -f makefile.unx clean GUI='-D__WXMOTIF__ -D__UNIX__' GUISUFFIX='_motif' GUILDLIBS='-lwx_motif $(COMPLIBS) -lXm -lXmu -lXt -lX11 -lm'
+
+cleangtk:
+ make -f makefile.unx clean GUI='-D__WXGTK__ -D__UNIX__' GUISUFFIX='_gtk'
$(OBJDIR):
mkdir $(OBJDIR)
$(OBJDIR):
mkdir $(OBJDIR)
-void wxBitmapCheckBox::SetLabel(const wxBitmap *bitmap)
+void wxBitmapCheckBox::SetLabel(const wxBitmap& bitmap)
+// TODO: use scaled Blit e.g. as per John Price's implementation in Contrib/Utilities
bool wxWindowDC::Blit( long xdest, long ydest, long width, long height,
wxDC *source, long xsrc, long ysrc, int rop, bool useMask )
{
bool wxWindowDC::Blit( long xdest, long ydest, long width, long height,
wxDC *source, long xsrc, long ysrc, int rop, bool useMask )
{
-void wxBitmapCheckBox::SetLabel(const wxBitmap *bitmap)
+void wxBitmapCheckBox::SetLabel(const wxBitmap& bitmap)
$(MSWDIR)\tbarmsw.obj \
$(MSWDIR)\textctrl.obj \
$(MSWDIR)\timer.obj \
$(MSWDIR)\tbarmsw.obj \
$(MSWDIR)\textctrl.obj \
$(MSWDIR)\timer.obj \
- $(MSWDIR)\tooltip.obj \
$(MSWDIR)\utils.obj \
$(MSWDIR)\utilsexc.obj \
$(MSWDIR)\wave.obj \
$(MSWDIR)\utils.obj \
$(MSWDIR)\utilsexc.obj \
$(MSWDIR)\wave.obj \
# $(MSWDIR)\automtn.obj
# Not used for 16-bit compilation
# $(MSWDIR)\automtn.obj
# Not used for 16-bit compilation
+# $(MSWDIR)\tooltip.obj \
# $(MSWDIR)\gauge95.obj \
# $(MSWDIR)\treectrl.obj \
# $(MSWDIR)\oleutils.obj \
# $(MSWDIR)\gauge95.obj \
# $(MSWDIR)\treectrl.obj \
# $(MSWDIR)\oleutils.obj \
$(MSWDIR)\tbarmsw.obj \
$(MSWDIR)\textctrl.obj \
$(MSWDIR)\timer.obj \
$(MSWDIR)\tbarmsw.obj \
$(MSWDIR)\textctrl.obj \
$(MSWDIR)\timer.obj \
- $(MSWDIR)\tooltip.obj \
$(MSWDIR)\utils.obj \
$(MSWDIR)\utilsexc.obj \
$(MSWDIR)\wave.obj \
$(MSWDIR)\utils.obj \
$(MSWDIR)\utilsexc.obj \
$(MSWDIR)\wave.obj \
# $(OLEDIR)\dataobj.obj \
# $(OLEDIR)\oleutils.obj \
# $(OLEDIR)\uuid.obj
# $(OLEDIR)\dataobj.obj \
# $(OLEDIR)\oleutils.obj \
# $(OLEDIR)\uuid.obj
+# $(MSWDIR)\tooltip.obj \
# TODO: Implement XPM and PNG targets in this makefile!
# $(OLEDIR)\xpmhand \
# TODO: Implement XPM and PNG targets in this makefile!
# $(OLEDIR)\xpmhand \
<<
$(COMMDIR)/y_tab.c: $(COMMDIR)/dosyacc.c
<<
$(COMMDIR)/y_tab.c: $(COMMDIR)/dosyacc.c
- copy $(COMMDIR)\dosyacc.c $(COMMDIR)\y_tab.c
+ copy "$(COMMDIR)"\dosyacc.c "$(COMMDIR)"\y_tab.c
$(COMMDIR)/lex_yy.c: $(COMMDIR)/doslex.c
$(COMMDIR)/lex_yy.c: $(COMMDIR)/doslex.c
- copy $(COMMDIR)\doslex.c $(COMMDIR)\lex_yy.c
+ copy "$(COMMDIR)"\doslex.c "$(COMMDIR)"\lex_yy.c
########################################################
# Generic objects (not always compiled, depending on
########################################################
# Generic objects (not always compiled, depending on
void wxTextCtrl::Replace(long from, long to, const wxString& value)
{
void wxTextCtrl::Replace(long from, long to, const wxString& value)
{
HWND hWnd = (HWND) GetHWND();
long fromChar = from;
long toChar = to;
HWND hWnd = (HWND) GetHWND();
long fromChar = from;
long toChar = to;
// Paste into edit control
SendMessage(hWnd, WM_PASTE, (WPARAM)0, (LPARAM)0L);
// Paste into edit control
SendMessage(hWnd, WM_PASTE, (WPARAM)0, (LPARAM)0L);
+#else
+ wxFAIL_MSG("wxTextCtrl::Replace not implemented if wxUSE_CLIPBOARD is 0.");
+#endif
}
void wxTextCtrl::Remove(long from, long to)
}
void wxTextCtrl::Remove(long from, long to)
#include "wx/tooltip.h"
#include "wx/msw/private.h"
#include "wx/tooltip.h"
#include "wx/msw/private.h"
+#if (defined(__WIN95__) && !defined(__GNUWIN32__)) || defined(__TWIN32__)
// ----------------------------------------------------------------------------
// private classes
// ----------------------------------------------------------------------------
// private classes
#include <windowsx.h>
#endif
#include <windowsx.h>
#endif
+#if (defined(__WIN95__) && !defined(__GNUWIN32__)) || defined(__TWIN32__)
#ifndef __TWIN32__
#ifdef __GNUWIN32__
#ifndef __TWIN32__
#ifdef __GNUWIN32__
WXLPARAM lParam,
WXLPARAM* WXUNUSED(result))
{
WXLPARAM lParam,
WXLPARAM* WXUNUSED(result))
{
NMHDR* hdr = (NMHDR *)lParam;
if ( hdr->code == TTN_NEEDTEXT && m_tooltip )
{
NMHDR* hdr = (NMHDR *)lParam;
if ( hdr->code == TTN_NEEDTEXT && m_tooltip )
{
// processed
return TRUE;
}
// processed
return TRUE;
}
-void wxBitmapCheckBox::SetLabel(const wxBitmap *bitmap)
+void wxBitmapCheckBox::SetLabel(const wxBitmap& bitmap)