My last patch for status bar size events wasn't perfect
Added wxPython to the wxGTK dist script docs for wxPrivateDataObject Corrected penguin makefile git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1528 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -230,7 +230,21 @@ cp winstyle.h ~/wxgtk_dist/wxGTK/utils/dialoged
|
|||||||
cd bitmaps
|
cd bitmaps
|
||||||
mkdir ~/wxgtk_dist/wxGTK/utils/dialoged/bitmaps
|
mkdir ~/wxgtk_dist/wxGTK/utils/dialoged/bitmaps
|
||||||
cp *.xpm ~/wxgtk_dist/wxGTK/utils/dialoged/bitmaps
|
cp *.xpm ~/wxgtk_dist/wxGTK/utils/dialoged/bitmaps
|
||||||
cd ../../../..
|
cd ../../..
|
||||||
|
|
||||||
|
cd wxPython
|
||||||
|
mkdir ~/wxgtk_dist/wxGTK/utils/wxPython
|
||||||
|
cp README.txt ~/wxgtk_dist/wxGTK/utils/wxPython
|
||||||
|
cp TODO.txt ~/wxgtk_dist/wxGTK/utils/wxPython
|
||||||
|
mkdir ~/wxgtk_dist/wxGTK/utils/wxPython/src
|
||||||
|
cp ./src/* ~/wxgtk_dist/wxGTK/utils/wxPython/src
|
||||||
|
mkdir ~/wxgtk_dist/wxGTK/utils/wxPython/src/gtk
|
||||||
|
cp ./src/gtk/* ~/wxgtk_dist/wxGTK/utils/wxPython/src/gtk
|
||||||
|
mkdir ~/wxgtk_dist/wxGTK/utils/wxPython/tests
|
||||||
|
cp ./tests/*.py ~/wxgtk_dist/wxGTK/utils/wxPython/tests
|
||||||
|
mkdir ~/wxgtk_dist/wxGTK/utils/wxPython/tests/bitmaps
|
||||||
|
cp ./tests/bitmaps/* ~/wxgtk_dist/wxGTK/utils/wxPython/tests/bitmaps
|
||||||
|
cd ../..
|
||||||
|
|
||||||
echo Samples dir..
|
echo Samples dir..
|
||||||
|
|
||||||
|
@@ -335,15 +335,16 @@ The older classes are as follows:
|
|||||||
\overview{Drag and drop and clipboard overview}{wxdndoverview}
|
\overview{Drag and drop and clipboard overview}{wxdndoverview}
|
||||||
|
|
||||||
\begin{twocollist}\itemsep=0pt
|
\begin{twocollist}\itemsep=0pt
|
||||||
\twocolitem{\helpref{wxDropTarget}{wxdroptarget}}{Drop target class}
|
|
||||||
\twocolitem{\helpref{wxFileDropTarget}{wxfiledroptarget}}{File drop target class}
|
|
||||||
\twocolitem{\helpref{wxTextDropTarget}{wxtextdroptarget}}{Text drop target class}
|
|
||||||
\twocolitem{\helpref{wxDropSource}{wxdropsource}}{Drop source class}
|
|
||||||
\twocolitem{\helpref{wxDataObject}{wxdataobject}}{Data object class}
|
\twocolitem{\helpref{wxDataObject}{wxdataobject}}{Data object class}
|
||||||
\twocolitem{\helpref{wxTextDataObject}{wxtextdataobject}}{Text data object class}
|
\twocolitem{\helpref{wxTextDataObject}{wxtextdataobject}}{Text data object class}
|
||||||
\twocolitem{\helpref{wxFileDataObject}{wxtextdataobject}}{File data object class}
|
\twocolitem{\helpref{wxFileDataObject}{wxtextdataobject}}{File data object class}
|
||||||
\twocolitem{\helpref{wxBitmapDataObject}{wxbitmapdataobject}}{Bitmap data object class}
|
\twocolitem{\helpref{wxBitmapDataObject}{wxbitmapdataobject}}{Bitmap data object class}
|
||||||
|
\twocolitem{\helpref{wxPrivateDataObject}{wxprivatedataobject}}{Private data object class}
|
||||||
\twocolitem{\helpref{wxClipboard}{wxclipboard}}{Clipboard class}
|
\twocolitem{\helpref{wxClipboard}{wxclipboard}}{Clipboard class}
|
||||||
|
\twocolitem{\helpref{wxDropTarget}{wxdroptarget}}{Drop target class}
|
||||||
|
\twocolitem{\helpref{wxFileDropTarget}{wxfiledroptarget}}{File drop target class}
|
||||||
|
\twocolitem{\helpref{wxTextDropTarget}{wxtextdroptarget}}{Text drop target class}
|
||||||
|
\twocolitem{\helpref{wxDropSource}{wxdropsource}}{Drop source class}
|
||||||
\end{twocollist}
|
\end{twocollist}
|
||||||
|
|
||||||
{\large {\bf File related classes}}
|
{\large {\bf File related classes}}
|
||||||
|
@@ -1,6 +1,9 @@
|
|||||||
\section{\class{wxPrivateDataObject}}\label{wxprivatedataobject}
|
\section{\class{wxPrivateDataObject}}\label{wxprivatedataobject}
|
||||||
|
|
||||||
wxPrivateDataObject is a specialization of wxDataObject for application-specific data.
|
wxPrivateDataObject is a specialization of wxDataObject for application-specific or standard
|
||||||
|
format data. The format of the data contained in an instance of this class must be identified
|
||||||
|
with a string literal corresponding to the mime-type of the data. Typically this would be
|
||||||
|
"image/png" or "text/html" or "application/word".
|
||||||
|
|
||||||
\wxheading{Derived from}
|
\wxheading{Derived from}
|
||||||
|
|
||||||
@@ -20,17 +23,13 @@
|
|||||||
|
|
||||||
\func{}{\destruct{wxPrivateDataObject}}{\void}
|
\func{}{\destruct{wxPrivateDataObject}}{\void}
|
||||||
|
|
||||||
\membersection{wxPrivateDataObject::GetFormat}\label{wxprivatedataobjectgetformat}
|
|
||||||
|
|
||||||
\constfunc{virtual wxDataFormat}{GetFormat}{\void}
|
|
||||||
|
|
||||||
\membersection{wxPrivateDataObject::SetId}\label{wxprivatedataobjectsetid}
|
\membersection{wxPrivateDataObject::SetId}\label{wxprivatedataobjectsetid}
|
||||||
|
|
||||||
\func{virtual void}{SetId}{\param{const wxString\& }{id}}
|
\func{virtual void}{SetId}{\param{const wxString\& }{id}}
|
||||||
|
|
||||||
The string ID identifies the format of clipboard or DnD data. A word
|
The string ID identifies the format of clipboard or DnD data. A word
|
||||||
processor would e.g. add a wxTextDataObject and a wxPrivateDataObject
|
processor would e.g. add a wxTextDataObject and a wxPrivateDataObject
|
||||||
to the clipboard - the latter with the Id "WXWORD\_FORMAT".
|
to the clipboard - the latter with the Id "application/word".
|
||||||
|
|
||||||
\membersection{wxPrivateDataObject::GetId}\label{wxprivatedataobjectgetid}
|
\membersection{wxPrivateDataObject::GetId}\label{wxprivatedataobjectgetid}
|
||||||
|
|
||||||
@@ -42,9 +41,9 @@ Returns the ID of the clipboard or DnD data format.
|
|||||||
|
|
||||||
\func{virtual void}{SetData}{\param{const char }{*data}, \param{size\_t }{size}}
|
\func{virtual void}{SetData}{\param{const char }{*data}, \param{size\_t }{size}}
|
||||||
|
|
||||||
Set the data. The data object will make internal copy.
|
Set the data. The data object will make an internal copy.
|
||||||
|
|
||||||
\membersection{wxPrivateDataObject::GetDataSize}\label{wxprivatedataobjectgetdatasize}
|
\membersection{wxPrivateDataObject::GetSize}\label{wxprivatedataobjectgetsize}
|
||||||
|
|
||||||
\constfunc{virtual size\_t}{GetDataSize}{\void}
|
\constfunc{virtual size\_t}{GetDataSize}{\void}
|
||||||
|
|
||||||
@@ -54,5 +53,23 @@ Returns the data size.
|
|||||||
|
|
||||||
\func{virtual char*}{GetData}{\void}
|
\func{virtual char*}{GetData}{\void}
|
||||||
|
|
||||||
Returns the data.
|
Returns a pointer to the data.
|
||||||
|
|
||||||
|
\membersection{wxPrivateDataObject::WriteData}\label{wxprivatedataobjectwritedata}
|
||||||
|
|
||||||
|
\constfunc{virtual void}{WriteData}{\param{void}{*dest} }
|
||||||
|
|
||||||
|
Write the data owned by this class to {\it dest}. By default, this
|
||||||
|
calls \helpref{WriteData}{wxprivatedataobjectwritedata2} with data
|
||||||
|
set using \helpref{SetData}{wxprivatedataobjectsetdata}.
|
||||||
|
This can be overridden to provide data on-demand; in this case
|
||||||
|
\helpref{WriteData(data,dest)}{wxprivatedataobjectwritedata2} (see below) must be called from
|
||||||
|
within the overriding WriteData() method.
|
||||||
|
|
||||||
|
\membersection{wxPrivateDataObject::WriteData}\label{wxprivatedataobjectwritedata2}
|
||||||
|
|
||||||
|
\constfunc{void}{WriteData}{\param{const char* }{data}, \param{void}{*dest} }
|
||||||
|
|
||||||
|
Writes the data {\it data} to {\it dest}. This method must be called
|
||||||
|
from \helpref{WriteData}{wxprivatedataobjectwritedata}.
|
||||||
|
|
||||||
|
@@ -461,9 +461,12 @@ void wxFrame::GtkOnSize( int WXUNUSED(x), int WXUNUSED(y), int width, int height
|
|||||||
|
|
||||||
/* send size event to status bar */
|
/* send size event to status bar */
|
||||||
|
|
||||||
wxSizeEvent event2( wxSize(m_frameStatusBar->m_width,m_frameStatusBar->m_height), m_frameStatusBar->GetId() );
|
if (m_frameStatusBar)
|
||||||
event2.SetEventObject( m_frameStatusBar );
|
{
|
||||||
m_frameStatusBar->GetEventHandler()->ProcessEvent( event2 );
|
wxSizeEvent event2( wxSize(m_frameStatusBar->m_width,m_frameStatusBar->m_height), m_frameStatusBar->GetId() );
|
||||||
|
event2.SetEventObject( m_frameStatusBar );
|
||||||
|
m_frameStatusBar->GetEventHandler()->ProcessEvent( event2 );
|
||||||
|
}
|
||||||
|
|
||||||
m_resizing = FALSE;
|
m_resizing = FALSE;
|
||||||
}
|
}
|
||||||
|
@@ -461,9 +461,12 @@ void wxFrame::GtkOnSize( int WXUNUSED(x), int WXUNUSED(y), int width, int height
|
|||||||
|
|
||||||
/* send size event to status bar */
|
/* send size event to status bar */
|
||||||
|
|
||||||
wxSizeEvent event2( wxSize(m_frameStatusBar->m_width,m_frameStatusBar->m_height), m_frameStatusBar->GetId() );
|
if (m_frameStatusBar)
|
||||||
event2.SetEventObject( m_frameStatusBar );
|
{
|
||||||
m_frameStatusBar->GetEventHandler()->ProcessEvent( event2 );
|
wxSizeEvent event2( wxSize(m_frameStatusBar->m_width,m_frameStatusBar->m_height), m_frameStatusBar->GetId() );
|
||||||
|
event2.SetEventObject( m_frameStatusBar );
|
||||||
|
m_frameStatusBar->GetEventHandler()->ProcessEvent( event2 );
|
||||||
|
}
|
||||||
|
|
||||||
m_resizing = FALSE;
|
m_resizing = FALSE;
|
||||||
}
|
}
|
||||||
|
@@ -21,16 +21,16 @@ Penguin: penguin.o trackball.o lw.o glcanvas.o
|
|||||||
`wx-config --libs` -lMesaGL -lMesaGLU
|
`wx-config --libs` -lMesaGL -lMesaGLU
|
||||||
|
|
||||||
penguin.o: penguin.cpp
|
penguin.o: penguin.cpp
|
||||||
$(CPP) `wx-config --cflags` -I../../src -c penguin.cpp
|
$(CPP) `wx-config --cflags` -I../../gtk -c penguin.cpp
|
||||||
|
|
||||||
lw.o: lw.cpp
|
lw.o: lw.cpp
|
||||||
$(CPP) `wx-config --cflags` -I../../src -c lw.cpp
|
$(CPP) `wx-config --cflags` -I../../gtk -c lw.cpp
|
||||||
|
|
||||||
trackball.o: trackball.c
|
trackball.o: trackball.c
|
||||||
$(CC) `wx-config --cflags` -I../../src -c trackball.c
|
$(CC) `wx-config --cflags` -I../../gtk -c trackball.c
|
||||||
|
|
||||||
glcanvas.o: ../../src/glcanvas.cpp
|
glcanvas.o: ../../gtk/glcanvas.cpp
|
||||||
$(CPP) `wx-config --cflags` `gtk-config --cflags` -I../../src -c ../../src/glcanvas.cpp
|
$(CPP) `wx-config --cflags` `gtk-config --cflags` -I../../gtk -c ../../gtk/glcanvas.cpp
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.o Penguin
|
rm -f *.o Penguin
|
||||||
|
Reference in New Issue
Block a user