cp Makefile.in ~/wxgtk_dist/wxGTK/include/wx/generic
cd ..
+mkdir ~/wxgtk_dist/wxGTK/include/wx/html
+cd html
+cp *.h ~/wxgtk_dist/wxGTK/include/wx/html
+cp Makefile.am ~/wxgtk_dist/wxGTK/include/wx/html
+cp Makefile.in ~/wxgtk_dist/wxGTK/include/wx/html
+cd ..
+
mkdir ~/wxgtk_dist/wxGTK/include/wx/unix
cd unix
cp *.h ~/wxgtk_dist/wxGTK/include/wx/unix
cp *.cpp ~/wxgtk_dist/wxGTK/src/unix
cd ..
+cd html
+mkdir ~/wxgtk_dist/wxGTK/src/html
+cp *.cpp ~/wxgtk_dist/wxGTK/src/html
+cp *.h ~/wxgtk_dist/wxGTK/src/html
+cd bitmaps
+mkdir ~/wxgtk_dist/wxGTK/src/html/bitmaps
+cp *.xpm ~/wxgtk_dist/wxGTK/src/html/bitmaps
+cd ../..
+
cd generic
mkdir ~/wxgtk_dist/wxGTK/src/generic
cp *.cpp ~/wxgtk_dist/wxGTK/src/generic
cp Setup ~/wxgtk_dist/wxGTK/utils/wxPython/src
cd ~/wxgtk_dist
-tar ch wxGTK | gzip -f9 > wxGTK-2.1.0-b7.tgz
+tar ch wxGTK | gzip -f9 > wxGTK-2.1.0-b7b.tgz
cp Makefile.in ~/wxmotif_dist/wxMotif/include/wx/generic
cd ..
+mkdir ~/wxgtk_dist/wxGTK/include/wx/html
+cd html
+cp *.h ~/wxgtk_dist/wxGTK/include/wx/html
+cp Makefile.am ~/wxgtk_dist/wxGTK/include/wx/html
+cp Makefile.in ~/wxgtk_dist/wxGTK/include/wx/html
+cd ..
+
mkdir ~/wxmotif_dist/wxMotif/include/wx/unix
cd unix
cp *.h ~/wxmotif_dist/wxMotif/include/wx/unix
cp *.cpp ~/wxmotif_dist/wxMotif/src/common
cd ..
+cd html
+mkdir ~/wxgtk_dist/wxGTK/src/html
+cp *.cpp ~/wxgtk_dist/wxGTK/src/html
+cp *.h ~/wxgtk_dist/wxGTK/src/html
+cd bitmaps
+mkdir ~/wxgtk_dist/wxGTK/src/html/bitmaps
+cp *.xpm ~/wxgtk_dist/wxGTK/src/html/bitmaps
+cd ../..
+
cd unix
mkdir ~/wxmotif_dist/wxMotif/src/unix
cp *.cpp ~/wxmotif_dist/wxMotif/src/unix
cp Makefile.in ~/wxwine_dist/wxWINE/include/wx/generic
cd ..
+mkdir ~/wxgtk_dist/wxGTK/include/wx/html
+cd html
+cp *.h ~/wxgtk_dist/wxGTK/include/wx/html
+cp Makefile.am ~/wxgtk_dist/wxGTK/include/wx/html
+cp Makefile.in ~/wxgtk_dist/wxGTK/include/wx/html
+cd ..
+
mkdir ~/wxwine_dist/wxWINE/include/wx/unix
cd unix
cp *.h ~/wxwine_dist/wxWINE/include/wx/unix
cp *.cpp ~/wxwine_dist/wxWINE/src/common
cd ..
+cd html
+mkdir ~/wxgtk_dist/wxGTK/src/html
+cp *.cpp ~/wxgtk_dist/wxGTK/src/html
+cp *.h ~/wxgtk_dist/wxGTK/src/html
+cd bitmaps
+mkdir ~/wxgtk_dist/wxGTK/src/html/bitmaps
+cp *.xpm ~/wxgtk_dist/wxGTK/src/html/bitmaps
+cd ../..
+
cd unix
mkdir ~/wxwine_dist/wxWINE/src/unix
cp *.cpp ~/wxwine_dist/wxWINE/src/unix
// Purpose: Information window (when app is busy)
// Author: Vaclav Slavik
// Copyright: (c) 1999 Vaclav Slavik
+// RCS-ID: $Id$
// Licence: wxWindows Licence
/////////////////////////////////////////////////////////////////////////////
#define __INFOWIN_H__
#ifdef __GNUG__
-#pragma implementation
+#pragma interface
#endif
-#include <wx/wxprec.h>
+#include "wx/wxprec.h"
#ifdef __BORDLANDC__
#pragma hdrstop
#endif
-#ifndef WXPRECOMP
-#include <wx/wx.h>
-#endif
+#include "wx/frame.h"
#if wxUSE_BUSYINFO
-#include <wx/dialog.h>
-
-
-
-
class wxInfoFrame : public wxFrame
{
public:
htmltag.h \
htmlwin.h \
htmlwinparser.h \
-mod_templ.h \
-msw \
-version.h
+mod_templ.h
#endif
#include "wx/setup.h"
+#include "wx/string.h"
// ----------------------------------------------------------------------------
// forward declarations
#define wxRELEASE_NUMBER 0
#define wxVERSION_STRING "wxWindows 2.1.0"
#define wxVERSION_NUMBER (wxMAJOR_VERSION * 1000) + (wxMINOR_VERSION * 100) + wxRELEASE_NUMBER
-#define wxBETA_NUMBER 7
+#define wxBETA_NUMBER 8
#define wxVERSION_FLOAT wxMAJOR_VERSION + (wxMINOR_VERSION/10.0) + (wxRELEASE_NUMBER/100.0) + (wxBETA_NUMBER/10000.0)
#endif
#pragma interface
#endif
-#if wxUSE_ZLIB && wxUSE_STREAMS && wxUSE_ZIPSTREAM
+#include "wx/defs.h"
-#include <wx/stream.h>
+#if wxUSE_STREAMS && wxUSE_ZIPSTREAM && wxUSE_ZLIB
+
+#include "wx/stream.h"
//--------------------------------------------------------------------------------
// wxZipInputStream
};
-#endif //
+#endif
+ // wxUSE_STREAMS && wxUSE_ZIPSTREAM && wxUSE_ZLIB
-#endif // __ZIPSTREAM_H__
+#endif
+ // __ZIPSTREAM_H__
#pragma hdrstop
#endif
-#ifndef WX_PRECOMP
- #include "wx/defs.h"
-#endif
-
#if wxUSE_VALIDATORS
#ifndef WX_PRECOMP
#pragma hdrstop
#endif
-#ifndef WX_PRECOMP
- #include "wx/defs.h"
-#endif
-
#if wxUSE_STREAMS && wxUSE_FILE
#include <stdio.h>
-#include <wx/stream.h>
-#include <wx/wfstream.h>
+#include "wx/stream.h"
+#include "wx/wfstream.h"
// ----------------------------------------------------------------------------
// wxFileInputStream
/////////////////////////////////////////////////////////////////////////////
#ifdef __GNUG__
-#pragma implementation
+#pragma implementation "zipstream.h"
#endif
-#include <wx/wxprec.h>
+// For compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
-#ifdef __BORDLANDC__
-#pragma hdrstop
+#ifdef __BORLANDC__
+ #pragma hdrstop
#endif
-#ifndef WXPRECOMP
-#include <wx/wx.h>
-#endif
-
-#if wxUSE_ZLIB && wxUSE_STREAMS && wxUSE_ZIPSTREAM
+#if wxUSE_STREAMS && wxUSE_ZIPSTREAM && wxUSE_ZLIB
-#include <wx/stream.h>
-#include <wx/wfstream.h>
-#include <wx/zipstream.h>
+#include "wx/log.h"
+#include "wx/intl.h"
+#include "wx/stream.h"
+#include "wx/wfstream.h"
+#include "wx/zipstream.h"
#include "unzip.h"
-
-
-
wxZipInputStream::wxZipInputStream(const wxString& archive, const wxString& file) : wxInputStream()
{
unz_file_info zinfo;
m_Pos = 0;
m_Size = 0;
m_Archive = (void*) unzOpen(archive);
- if (m_Archive == NULL) {
+ if (m_Archive == NULL)
+ {
m_lasterror = wxStream_READ_ERR;
return;
}
- if (unzLocateFile((unzFile)m_Archive, file, 0) != UNZ_OK) {
+ if (unzLocateFile((unzFile)m_Archive, file, 0) != UNZ_OK)
+ {
m_lasterror = wxStream_READ_ERR;
return;
}
- unzGetCurrentFileInfo((unzFile)m_Archive, &zinfo, NULL, 0, NULL, 0, NULL, 0);
+
+ unzGetCurrentFileInfo((unzFile)m_Archive, &zinfo, (char*) NULL, 0, (void*) NULL, 0, (char*) NULL, 0);
- if (unzOpenCurrentFile((unzFile)m_Archive) != UNZ_OK) {
+ if (unzOpenCurrentFile((unzFile)m_Archive) != UNZ_OK)
+ {
m_lasterror = wxStream_READ_ERR;
return;
}
wxZipInputStream::~wxZipInputStream()
{
- if (m_Archive) {
+ if (m_Archive)
+ {
if (m_Size != 0)
unzCloseCurrentFile((unzFile)m_Archive);
unzClose((unzFile)m_Archive);
off_t nextpos;
void *buf;
- switch (mode) {
+ switch (mode)
+ {
case wxFromCurrent : nextpos = seek + m_Pos; break;
case wxFromStart : nextpos = seek; break;
case wxFromEnd : nextpos = m_Size - 1 + seek; break;
}
// cheated seeking :
- if (nextpos > m_Pos) {
+ if (nextpos > m_Pos)
+ {
buf = malloc(nextpos - m_Pos);
unzReadCurrentFile((unzFile)m_Archive, buf, nextpos - m_Pos);
free(buf);
}
else if (nextpos < m_Pos) {
unzCloseCurrentFile((unzFile)m_Archive);
- if (unzOpenCurrentFile((unzFile)m_Archive) != UNZ_OK) {
+ if (unzOpenCurrentFile((unzFile)m_Archive) != UNZ_OK)
+ {
m_lasterror = wxStream_READ_ERR;
return m_Pos;
}
}
#endif
+ // wxUSE_STREAMS && wxUSE_ZIPSTREAM && wxUSE_ZLIB
#pragma hdrstop
#endif
-#ifndef WX_PRECOMP
- #include "wx/defs.h"
-#endif
-
#if wxUSE_ZLIB && wxUSE_STREAMS
#include "wx/zstream.h"
#include "wx/utils.h"
#include "wx/intl.h"
#include "wx/log.h"
-#include "../zlib/zlib.h"
+
+// When using configure, the path must be "zlib.h" I don't know
+// what other ports (wxMac, wxMotif without configure) need here.
+
+#ifdef __WXMSW__
+ #include "..\zlib\zlib.h"
+#else
+ #include "zlib.h"
+#endif
#define ZSTREAM_BUFFER_SIZE 1024
/////////////////////////////////////////////////////////////////////////////
#ifdef __GNUG__
-#pragma implementation
+#pragma implementation "busyinfo.h"
#endif
-#include <wx/wxprec.h>
+#include "wx/wxprec.h"
#ifdef __BORDLANDC__
#pragma hdrstop
#endif
-#ifndef WXPRECOMP
-#include <wx/wx.h>
-#endif
-
#if wxUSE_BUSYINFO
#include "wx/busyinfo.h"
-
-
-
+#include "wx/stattext.h"
+#include "wx/panel.h"
+#include "wx/utils.h"
wxInfoFrame::wxInfoFrame(wxWindow *parent, const wxString& message)
: wxFrame(parent, -1, "", wxPoint(0, 0), wxSize(400, 80), wxTHICK_FRAME | wxSIMPLE_BORDER | wxFRAME_TOOL_WINDOW)
{
- wxPanel *p = new wxPanel(this);
- wxStaticText *s = new wxStaticText(p, -1, message, wxPoint(20, 20), wxSize(360, 40), wxALIGN_CENTER);
+ wxPanel *p = new wxPanel( this );
+ wxStaticText *s = new wxStaticText( p, -1, message, wxPoint(20, 20), wxSize(360, 40), wxALIGN_CENTER );
Centre(wxBOTH);
- p -> SetCursor(*wxHOURGLASS_CURSOR);
- s -> SetCursor(*wxHOURGLASS_CURSOR);
+ p->SetCursor(*wxHOURGLASS_CURSOR);
+ s->SetCursor(*wxHOURGLASS_CURSOR);
}
-
-
-
wxBusyInfo::wxBusyInfo(const wxString& message) : wxObject()
{
- m_InfoFrame = new wxInfoFrame(NULL, message);
- m_InfoFrame -> Show(TRUE);
+ m_InfoFrame = new wxInfoFrame( (wxWindow*) NULL, message);
+ m_InfoFrame->Show(TRUE);
wxYield();
- m_InfoFrame -> Refresh();
+ m_InfoFrame->Refresh();
wxYield();
}
-
-
wxBusyInfo::~wxBusyInfo()
{
- m_InfoFrame -> Show(FALSE);
- m_InfoFrame -> Close();
+ m_InfoFrame->Show(FALSE);
+ m_InfoFrame->Close();
wxYield();
}
-
-
#endif
+ // wxUSE_BUSYINFO
\ No newline at end of file
gtk_widget_show( pixmap );
gtk_container_add( GTK_CONTAINER(m_widget), pixmap );
+
+ int border = 10;
+ if (style & wxNO_BORDER) border = 4;
+ if (newSize.x == -1) newSize.x = m_bitmap.GetWidth()+border;
+ if (newSize.y == -1) newSize.y = m_bitmap.GetHeight()+border;
+ SetSize( newSize.x, newSize.y );
}
- int border = 10;
- if (style & wxNO_BORDER) border = 4;
- if (newSize.x == -1) newSize.x = m_bitmap.GetWidth()+border;
- if (newSize.y == -1) newSize.y = m_bitmap.GetHeight()+border;
- SetSize( newSize.x, newSize.y );
-
gtk_signal_connect( GTK_OBJECT(m_widget), "clicked",
GTK_SIGNAL_FUNC(gtk_bmpbutton_clicked_callback), (gpointer*)this );
page->m_box = gtk_hbox_new( FALSE, 0 );
gtk_container_border_width( GTK_CONTAINER(page->m_box), 2 );
+ gtk_signal_connect( GTK_OBJECT(win->m_widget), "size_allocate",
+ GTK_SIGNAL_FUNC(gtk_page_size_callback), (gpointer)win );
+
if (position < 0)
gtk_notebook_append_page( notebook, win->m_widget, page->m_box );
else
page->m_page = (GtkNotebookPage*) g_list_last(notebook->children)->data;
- gtk_signal_connect( GTK_OBJECT(win->m_widget), "size_allocate",
- GTK_SIGNAL_FUNC(gtk_page_size_callback), (gpointer)win );
-
/* set the label image */
page->m_image = imageId;
#include "wx/gtk/win_gtk.h"
#include "gtk/gtksignal.h"
#include "gtk/gtknotebook.h"
+#include "gtk/gtktable.h"
#ifdef __cplusplus
extern "C" {
if (GTK_WIDGET_VISIBLE (widget) && GTK_WIDGET_VISIBLE (myfixed))
{
- if ((child->width > 1) && (child->height > 1) && (GTK_WIDGET_REALIZED(widget)))
+ if ( ((child->width > 1) && (child->height > 1) && (GTK_WIDGET_REALIZED(widget))) ||
+ /* I don't know why GtkTable is different */
+ GTK_IS_TABLE(widget))
{
child_allocation.x = child->x;
child_allocation.y = child->y;
gtk_widget_show( pixmap );
gtk_container_add( GTK_CONTAINER(m_widget), pixmap );
+
+ int border = 10;
+ if (style & wxNO_BORDER) border = 4;
+ if (newSize.x == -1) newSize.x = m_bitmap.GetWidth()+border;
+ if (newSize.y == -1) newSize.y = m_bitmap.GetHeight()+border;
+ SetSize( newSize.x, newSize.y );
}
- int border = 10;
- if (style & wxNO_BORDER) border = 4;
- if (newSize.x == -1) newSize.x = m_bitmap.GetWidth()+border;
- if (newSize.y == -1) newSize.y = m_bitmap.GetHeight()+border;
- SetSize( newSize.x, newSize.y );
-
gtk_signal_connect( GTK_OBJECT(m_widget), "clicked",
GTK_SIGNAL_FUNC(gtk_bmpbutton_clicked_callback), (gpointer*)this );
page->m_box = gtk_hbox_new( FALSE, 0 );
gtk_container_border_width( GTK_CONTAINER(page->m_box), 2 );
+ gtk_signal_connect( GTK_OBJECT(win->m_widget), "size_allocate",
+ GTK_SIGNAL_FUNC(gtk_page_size_callback), (gpointer)win );
+
if (position < 0)
gtk_notebook_append_page( notebook, win->m_widget, page->m_box );
else
page->m_page = (GtkNotebookPage*) g_list_last(notebook->children)->data;
- gtk_signal_connect( GTK_OBJECT(win->m_widget), "size_allocate",
- GTK_SIGNAL_FUNC(gtk_page_size_callback), (gpointer)win );
-
/* set the label image */
page->m_image = imageId;
#include "wx/gtk/win_gtk.h"
#include "gtk/gtksignal.h"
#include "gtk/gtknotebook.h"
+#include "gtk/gtktable.h"
#ifdef __cplusplus
extern "C" {
if (GTK_WIDGET_VISIBLE (widget) && GTK_WIDGET_VISIBLE (myfixed))
{
- if ((child->width > 1) && (child->height > 1) && (GTK_WIDGET_REALIZED(widget)))
+ if ( ((child->width > 1) && (child->height > 1) && (GTK_WIDGET_REALIZED(widget))) ||
+ /* I don't know why GtkTable is different */
+ GTK_IS_TABLE(widget))
{
child_allocation.x = child->x;
child_allocation.y = child->y;