sckfile.cpp Common Socket,Base
sckipc.cpp Common Socket,Base
sckstrm.cpp Common Socket,Base
+settcmn.cpp Common
sizer.cpp Common
socket.cpp Common Socket,Base
statbar.cpp Common
case $tname in
b32.t)
echo "Generating $mswdir/makefile.b32 for Borland C++ (32 bits)..."
- tmake -t b32 wxwin.pro -o $mswdir/makefile.b32 ;;
+ ./tmake -t b32 wxwin.pro -o $mswdir/makefile.b32 ;;
bcc.t)
echo "Generating $mswdir/makefile.bcc for Borland C++ (16 bits)..."
- tmake -t bcc wxwin.pro -o $mswdir/makefile.bcc;;
+ ./tmake -t bcc wxwin.pro -o $mswdir/makefile.bcc;;
dos.t)
echo "Generating $mswdir/makefile.dos for Visual C++ 1.52..."
- tmake -t dos wxwin.pro -o $mswdir/makefile.dos;;
+ ./tmake -t dos wxwin.pro -o $mswdir/makefile.dos;;
g95.t)
echo "Generating $mswdir/makefile.g95 for Cygwin/Mingw32..."
- tmake -t g95 wxwin.pro -o $mswdir/makefile.g95;;
+ ./tmake -t g95 wxwin.pro -o $mswdir/makefile.g95;;
sc.t)
echo "Generating $mswdir/makefile.sc for Symantec C++..."
- tmake -t sc wxwin.pro -o $mswdir/makefile.sc;;
+ ./tmake -t sc wxwin.pro -o $mswdir/makefile.sc;;
vc.t)
echo "Generating $mswdir/makefile.vc for Visual C++ 4.0..."
- tmake -t vc wxwin.pro -o $mswdir/makefile.vc;;
+ ./tmake -t vc wxwin.pro -o $mswdir/makefile.vc;;
vc6msw.t)
echo "Generating $srcdir/wxWindows.dsp for Visual C++ 6.0..."
- tmake -t vc6msw wxwin.pro -o $srcdir/wxWindows.dsp;;
+ ./tmake -t vc6msw wxwin.pro -o $srcdir/wxWindows.dsp;;
vc6base.t)
echo "Generating $srcdir/wxBase.dsp for Visual C++ 6.0..."
- tmake -t vc6base wxwin.pro -o $srcdir/wxBase.dsp;;
+ ./tmake -t vc6base wxwin.pro -o $srcdir/wxBase.dsp;;
vc6univ.t)
echo "Generating $srcdir/wxUniv.dsp for Visual C++ 6.0..."
- tmake -t vc6univ wxwin.pro -o $srcdir/wxUniv.dsp;;
+ ./tmake -t vc6univ wxwin.pro -o $srcdir/wxUniv.dsp;;
wat.t)
echo "Generating $mswdir/makefile.wat for Watcom C++..."
- tmake -t wat wxwin.pro -o $mswdir/makefile.wat;;
+ ./tmake -t wat wxwin.pro -o $mswdir/makefile.wat;;
base.t)
echo "Generating $topdir/src/files.lst for Configure..."
- tmake -t base wxwin.pro -o $topdir/src/files.lst ;;
+ ./tmake -t base wxwin.pro -o $topdir/src/files.lst ;;
gtk.t)
echo "Generating $topdir/src/gtk/files.lst for GTK and Configure..."
- tmake -t gtk wxwin.pro -o $topdir/src/gtk/files.lst;;
+ ./tmake -t gtk wxwin.pro -o $topdir/src/gtk/files.lst;;
mgl.t)
echo "Generating $topdir/src/mgl/files.lst for MGL and Configure..."
- tmake -t mgl wxwin.pro -o $topdir/src/mgl/files.lst;;
+ ./tmake -t mgl wxwin.pro -o $topdir/src/mgl/files.lst;;
micro.t)
echo "Generating $topdir/src/micro/files.lst for MicroWindows and Configure..."
- tmake -t micro wxwin.pro -o $topdir/src/microwin/files.lst;;
+ ./tmake -t micro wxwin.pro -o $topdir/src/microwin/files.lst;;
msw.t)
echo "Generating $topdir/src/msw/files.lst for MSW and Configure..."
- tmake -t msw wxwin.pro -o $topdir/src/msw/files.lst;;
+ ./tmake -t msw wxwin.pro -o $topdir/src/msw/files.lst;;
mac.t)
echo "Generating $topdir/src/mac/files.lst for Mac and Configure..."
- tmake -t mac wxwin.pro -o $topdir/src/mac/files.lst;;
+ ./tmake -t mac wxwin.pro -o $topdir/src/mac/files.lst;;
motif.t)
echo "Generating $topdir/src/motif/files.lst for Motif and Configure..."
- tmake -t motif wxwin.pro -o $topdir/src/motif/files.lst;;
+ ./tmake -t motif wxwin.pro -o $topdir/src/motif/files.lst;;
univ.t)
echo "Generating $topdir/src/univ/files.lst for wxUniversal..."
- tmake -t univ wxwin.pro -o $topdir/src/univ/files.lst;;
+ ./tmake -t univ wxwin.pro -o $topdir/src/univ/files.lst;;
unx.t)
echo "Generating $topdir/src/os2/files.lst for OS/2 PM and Configure..."
- tmake -t os2 wxwin.pro -o $topdir/src/os2/files.lst;;
+ ./tmake -t os2 wxwin.pro -o $topdir/src/os2/files.lst;;
mgl.t)
echo "Generating $topdir/src/mgl/files.lst for MGL and Configure..."
- tmake -t mgl wxwin.pro -o $topdir/src/mgl/files.lst;;
+ ./tmake -t mgl wxwin.pro -o $topdir/src/mgl/files.lst;;
x11.t)
echo "Generating $topdir/src/x11/files.lst for X11 and Configure..."
- tmake -t x11 wxwin.pro -o $topdir/src/x11/files.lst;;
+ ./tmake -t x11 wxwin.pro -o $topdir/src/x11/files.lst;;
watmgl.t)
echo "Generating $topdir/src/mgl/makefile.wat for Watcom C++ and MGL+DOS..."
- tmake -t watmgl wxwin.pro -o $topdir/src/mgl/makefile.wat;;
+ ./tmake -t watmgl wxwin.pro -o $topdir/src/mgl/makefile.wat;;
esac
done
wxSYS_CAN_ICONIZE_FRAME
};
+// values for different screen designs
+enum wxSystemScreen
+{
+ wxSYS_SCREEN_NONE = 0, // not yet defined
+ wxSYS_SCREEN_DESKTOP, // >= 800x600
+ wxSYS_SCREEN_SMALL, // >= 640x480
+ wxSYS_SCREEN_PDA, // >= 320x240
+ wxSYS_SCREEN_TINY // <
+};
+
// ----------------------------------------------------------------------------
// wxSystemSettingsNative: defines the API for wxSystemSettings class
// ----------------------------------------------------------------------------
static wxColour GetColour(wxSystemColour index);
#endif // __WXUNIVERSAL__
+ // Get system screen design (desktop, pda, ..) used for
+ // laying out various dialogs.
+ static wxSystemScreen GetScreen();
+
+ // Override default.
+ static void SetScreen( wxSystemScreen screen );
+
+ // Value
+ static wxSystemScreen ms_screen;
+
// the backwards compatible versions of wxSystemSettingsNative functions,
// don't use these methods in the new code!
--- /dev/null
+/////////////////////////////////////////////////////////////////////////////
+// Name: common/settcmn.cpp
+// Purpose: common (to all ports) wxWindow functions
+// Author: Robert Roebling
+// RCS-ID: $Id$
+// Copyright: (c) wxWindows team
+// Licence: wxWindows license
+/////////////////////////////////////////////////////////////////////////////
+
+// ============================================================================
+// declarations
+// ============================================================================
+
+// ----------------------------------------------------------------------------
+// headers
+// ----------------------------------------------------------------------------
+
+#ifdef __GNUG__
+ #pragma implementation "settings.h"
+#endif
+
+// For compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
+
+#ifdef __BORLANDC__
+ #pragma hdrstop
+#endif
+
+#ifndef WX_PRECOMP
+ #include "wx/defs.h"
+ #include "wx/utils.h"
+ #include "wx/settings.h"
+#endif //WX_PRECOMP
+
+// ----------------------------------------------------------------------------
+// static data
+// ----------------------------------------------------------------------------
+
+wxSystemScreen wxSystemSettings::ms_screen = wxSYS_SCREEN_NONE;
+
+// ----------------------------------------------------------------------------
+// ----------------------------------------------------------------------------
+
+wxSystemScreen wxSystemSettings::GetScreen()
+{
+ if (ms_screen == wxSYS_SCREEN_NONE)
+#ifndef __WXUNIV__
+ {
+ // As a start, all GUI are desktops.
+ ms_screen = wxSYS_SCREEN_DESKTOP;
+ }
+#else
+ {
+ // wxUniv will be used on small devices, too.
+ int x = 0;
+ int y = 0;
+ wxGetDisplaySize( &x, &y );
+
+ ms_screen = wxSYS_SCREEN_DESKTOP;
+
+ if (x < 800)
+ ms_screen = wxSYS_SCREEN_SMALL;
+
+ if (x < 640)
+ ms_screen = wxSYS_SCREEN_PDA;
+
+ if (x < 200)
+ ms_screen = wxSYS_SCREEN_TINY;
+ }
+#endif
+
+ return ms_screen;
+}
+
+void wxSystemSettings::SetScreen( wxSystemScreen screen )
+{
+ ms_screen = screen;
+}
+
hashmap.h \
intl.h \
ioswrap.h \
+ ipc.h \
ipcbase.h \
isql.h \
isqlext.h \
#endif
buttonsizer->Add( butNewDir, 0, wxALL, 5 );
-#ifdef __WXX11__
- mainsizer->Add( buttonsizer, 0, wxALL | wxEXPAND, 0 );
-#else
- mainsizer->Add( buttonsizer, 0, wxALL | wxEXPAND, 5 );
-#endif
+ if (wxSystemSettings::GetScreen() >= wxSYS_SCREEN_PDA)
+ mainsizer->Add( buttonsizer, 0, wxALL | wxEXPAND, 0 );
+ else
+ mainsizer->Add( buttonsizer, 0, wxALL | wxEXPAND, 5 );
wxBoxSizer *staticsizer = new wxBoxSizer( wxHORIZONTAL );
-#ifndef __WXX11__
- staticsizer->Add( new wxStaticText( this, -1, _("Current directory:") ), 0, wxRIGHT, 10 );
-#endif
+ if (wxSystemSettings::GetScreen() < wxSYS_SCREEN_PDA)
+ staticsizer->Add( new wxStaticText( this, -1, _("Current directory:") ), 0, wxRIGHT, 10 );
m_static = new wxStaticText( this, -1, m_dir );
staticsizer->Add( m_static, 1 );
mainsizer->Add( staticsizer, 0, wxEXPAND | wxLEFT|wxRIGHT|wxBOTTOM, 10 );
m_list->SetNewDirControl(butNewDir);
m_list->SetGoToParentControl(butDirUp);
-#ifdef __WXX11__
+ if (wxSystemSettings::GetScreen() >= wxSYS_SCREEN_PDA)
+ {
// PDAs have a different screen layout
mainsizer->Add( m_list, 1, wxEXPAND | wxLEFT|wxRIGHT, 5 );
buttonsizer->Add( new wxButton( this, wxID_OK, _("OK") ), 0, wxCENTER | wxALL, 5 );
buttonsizer->Add( new wxButton( this, wxID_CANCEL, _("Cancel") ), 0, wxCENTER | wxALL, 5 );
mainsizer->Add( buttonsizer, 0, wxALIGN_RIGHT );
-
-#else
+ }
+ else
+ {
mainsizer->Add( m_list, 1, wxEXPAND | wxLEFT|wxRIGHT, 10 );
wxBoxSizer *textsizer = new wxBoxSizer( wxHORIZONTAL );
choicesizer->Add( m_check, 0, wxCENTER|wxALL, 10 );
choicesizer->Add( new wxButton( this, wxID_CANCEL, _("Cancel") ), 0, wxCENTER | wxALL, 10 );
mainsizer->Add( choicesizer, 0, wxEXPAND );
-
-#endif
+ }
m_choice->Append( firstWildText, (void*) new wxString( firstWild ) );
while (tokens.HasMoreTokens())
common/sckfile.cpp \
common/sckipc.cpp \
common/sckstrm.cpp \
+ common/settcmn.cpp \
common/sizer.cpp \
common/socket.cpp \
common/statbar.cpp \
sckfile.o \
sckipc.o \
sckstrm.o \
+ settcmn.o \
sizer.o \
socket.o \
statbar.o \
common/sckfile.cpp \
common/sckipc.cpp \
common/sckstrm.cpp \
+ common/settcmn.cpp \
common/sizer.cpp \
common/socket.cpp \
common/statbar.cpp \
sckfile.o \
sckipc.o \
sckstrm.o \
+ settcmn.o \
sizer.o \
socket.o \
statbar.o \
common/sckfile.cpp \
common/sckipc.cpp \
common/sckstrm.cpp \
+ common/settcmn.cpp \
common/sizer.cpp \
common/socket.cpp \
common/statbar.cpp \
sckfile.o \
sckipc.o \
sckstrm.o \
+ settcmn.o \
sizer.o \
socket.o \
statbar.o \
common/sckfile.cpp \
common/sckipc.cpp \
common/sckstrm.cpp \
+ common/settcmn.cpp \
common/sizer.cpp \
common/socket.cpp \
common/statbar.cpp \
sckfile.o \
sckipc.o \
sckstrm.o \
+ settcmn.o \
sizer.o \
socket.o \
statbar.o \
common/sckfile.cpp \
common/sckipc.cpp \
common/sckstrm.cpp \
+ common/settcmn.cpp \
common/sizer.cpp \
common/socket.cpp \
common/statbar.cpp \
sckfile.o \
sckipc.o \
sckstrm.o \
+ settcmn.o \
sizer.o \
socket.o \
statbar.o \
sckfile.obj &
sckipc.obj &
sckstrm.obj &
+ settcmn.obj &
sizer.obj &
socket.obj &
statbar.obj &
sckstrm.obj: $(COMMDIR)\sckstrm.cpp
*$(CCC) $(CPPFLAGS) $(IFLAGS) $<
+settcmn.obj: $(COMMDIR)\settcmn.cpp
+ *$(CCC) $(CPPFLAGS) $(IFLAGS) $<
+
sizer.obj: $(COMMDIR)\sizer.cpp
*$(CCC) $(CPPFLAGS) $(IFLAGS) $<
common/sckfile.cpp \
common/sckipc.cpp \
common/sckstrm.cpp \
+ common/settcmn.cpp \
common/sizer.cpp \
common/socket.cpp \
common/statbar.cpp \
sckfile.o \
sckipc.o \
sckstrm.o \
+ settcmn.o \
sizer.o \
socket.o \
statbar.o \
common/sckfile.cpp \
common/sckipc.cpp \
common/sckstrm.cpp \
+ common/settcmn.cpp \
common/sizer.cpp \
common/socket.cpp \
common/statbar.cpp \
sckfile.o \
sckipc.o \
sckstrm.o \
+ settcmn.o \
sizer.o \
socket.o \
statbar.o \
common/sckfile.cpp \
common/sckipc.cpp \
common/sckstrm.cpp \
+ common/settcmn.cpp \
common/sizer.cpp \
common/socket.cpp \
common/statbar.cpp \
sckfile.o \
sckipc.o \
sckstrm.o \
+ settcmn.o \
sizer.o \
socket.o \
statbar.o \
# Makefile : Builds wxWindows library wx.lib for MS Windows,
# and Borland C++ (32-bit).
-#BCCDIR now defined in ../makeb32.env
+# BCCDIR now defined in ../makeb32.env
!if "$(WXWIN)" == ""
!error You must define the WXWIN variable in autoexec.bat, e.g. WXWIN=c:\wx
$(MSWDIR)\sckfile.obj \
$(MSWDIR)\sckipc.obj \
$(MSWDIR)\sckstrm.obj \
+ $(MSWDIR)\settcmn.obj \
$(MSWDIR)\sizer.obj \
$(MSWDIR)\socket.obj \
$(MSWDIR)\statbar.obj \
$(MSWDIR)\sckstrm.obj: $(COMMDIR)\sckstrm.$(SRCSUFF)
+$(MSWDIR)\settcmn.obj: $(COMMDIR)\settcmn.$(SRCSUFF)
+
$(MSWDIR)\sizer.obj: $(COMMDIR)\sizer.$(SRCSUFF)
$(MSWDIR)\socket.obj: $(COMMDIR)\socket.$(SRCSUFF)
$(MSWDIR)\radiocmn.obj \
$(MSWDIR)\regex.obj \
$(MSWDIR)\resource.obj \
+ $(MSWDIR)\settcmn.obj \
$(MSWDIR)\sizer.obj \
$(MSWDIR)\statbar.obj \
$(MSWDIR)\strconv.obj \
$(MSWDIR)\resource.obj: $(COMMDIR)\resource.$(SRCSUFF)
+$(MSWDIR)\settcmn.obj: $(COMMDIR)\settcmn.$(SRCSUFF)
+
$(MSWDIR)\sizer.obj: $(COMMDIR)\sizer.$(SRCSUFF)
$(MSWDIR)\statbar.obj: $(COMMDIR)\statbar.$(SRCSUFF)
$(COMMDIR)\radiocmn.obj \
$(COMMDIR)\regex.obj \
$(COMMDIR)\resource.obj \
+ $(COMMDIR)\settcmn.obj \
$(COMMDIR)\sizer.obj \
$(COMMDIR)\statbar.obj \
$(COMMDIR)\strconv.obj \
$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
<<
+$(COMMDIR)/settcmn.obj: $*.$(SRCSUFF)
+ cl @<<
+$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
+<<
+
$(COMMDIR)/sizer.obj: $*.$(SRCSUFF)
cl @<<
$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
$(COMMDIR)/quantize.$(OBJSUFF) \
$(COMMDIR)/radiocmn.$(OBJSUFF) \
$(COMMDIR)/resource.$(OBJSUFF) \
+ $(COMMDIR)/settcmn.$(OBJSUFF) \
$(COMMDIR)/sizer.$(OBJSUFF) \
$(COMMDIR)/statbar.$(OBJSUFF) \
$(COMMDIR)/tbarbase.$(OBJSUFF) \
$(COMMDIR)\sckfile.obj \
$(COMMDIR)\sckipc.obj \
$(COMMDIR)\sckstrm.obj \
+ $(COMMDIR)\settcmn.obj \
$(COMMDIR)\sizer.obj \
$(COMMDIR)\socket.obj \
$(COMMDIR)\statbar.obj \
$(COMMDIR)\$D\sckfile.obj \
$(COMMDIR)\$D\sckipc.obj \
$(COMMDIR)\$D\sckstrm.obj \
+ $(COMMDIR)\$D\settcmn.obj \
$(COMMDIR)\$D\sizer.obj \
$(COMMDIR)\$D\socket.obj \
$(COMMDIR)\$D\statbar.obj \
sckfile.obj &
sckipc.obj &
sckstrm.obj &
+ settcmn.obj &
sizer.obj &
socket.obj &
statbar.obj &
sckstrm.obj: $(COMMDIR)\sckstrm.cpp
*$(CCC) $(CPPFLAGS) $(IFLAGS) $<
+settcmn.obj: $(COMMDIR)\settcmn.cpp
+ *$(CCC) $(CPPFLAGS) $(IFLAGS) $<
+
sizer.obj: $(COMMDIR)\sizer.cpp
*$(CCC) $(CPPFLAGS) $(IFLAGS) $<
#include "wx/dcscreen.h"
#include "wx/button.h"
#include "wx/validate.h"
+ #include "wx/settings.h"
#endif
#include "wx/univ/renderer.h"
}
// for compatibility with other ports, the buttons default size is never
- // less than the standard one
-#ifndef __WXX11__
- if ( !(GetWindowStyle() & wxBU_EXACTFIT) )
+ // less than the standard one, but not when display not PDAs.
+ if (wxSystemSettings::GetScreen() < wxSYS_SCREEN_PDA)
{
- wxSize szDef = GetDefaultSize();
- if ( width < szDef.x )
- width = szDef.x;
+ if ( !(GetWindowStyle() & wxBU_EXACTFIT) )
+ {
+ wxSize szDef = GetDefaultSize();
+ if ( width < szDef.x )
+ width = szDef.x;
+ }
}
-#endif
return wxSize(width, height);
}
# End Source File
# Begin Source File
+SOURCE=.\common\settcmn.cpp
+# End Source File
+# Begin Source File
+
SOURCE=.\common\sizer.cpp
# End Source File
# Begin Source File
# End Source File
# Begin Source File
+SOURCE=.\common\settcmn.cpp
+# End Source File
+# Begin Source File
+
SOURCE=.\common\sizer.cpp
# End Source File
# Begin Source File
common/sckfile.cpp \
common/sckipc.cpp \
common/sckstrm.cpp \
+ common/settcmn.cpp \
common/sizer.cpp \
common/socket.cpp \
common/statbar.cpp \
sckfile.o \
sckipc.o \
sckstrm.o \
+ settcmn.o \
sizer.o \
socket.o \
statbar.o \