fixed wxUSE_TABDIALOG/TAB_DIALOG confusion and other fixes to prevent wxTabCtrl from being built into the library unnecessarily (patch 1416049)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37400 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -530,7 +530,7 @@ if test $DEBUG_CONFIGURE = 1; then
|
|||||||
DEFAULT_wxUSE_STATLINE=no
|
DEFAULT_wxUSE_STATLINE=no
|
||||||
DEFAULT_wxUSE_STATTEXT=no
|
DEFAULT_wxUSE_STATTEXT=no
|
||||||
DEFAULT_wxUSE_STATUSBAR=yes
|
DEFAULT_wxUSE_STATUSBAR=yes
|
||||||
DEFAULT_wxUSE_TABDIALOG=no
|
DEFAULT_wxUSE_TAB_DIALOG=no
|
||||||
DEFAULT_wxUSE_TEXTCTRL=no
|
DEFAULT_wxUSE_TEXTCTRL=no
|
||||||
DEFAULT_wxUSE_TOGGLEBTN=no
|
DEFAULT_wxUSE_TOGGLEBTN=no
|
||||||
DEFAULT_wxUSE_TOOLBAR=no
|
DEFAULT_wxUSE_TOOLBAR=no
|
||||||
@@ -732,7 +732,7 @@ else
|
|||||||
DEFAULT_wxUSE_STATLINE=yes
|
DEFAULT_wxUSE_STATLINE=yes
|
||||||
DEFAULT_wxUSE_STATTEXT=yes
|
DEFAULT_wxUSE_STATTEXT=yes
|
||||||
DEFAULT_wxUSE_STATUSBAR=yes
|
DEFAULT_wxUSE_STATUSBAR=yes
|
||||||
DEFAULT_wxUSE_TABDIALOG=no
|
DEFAULT_wxUSE_TAB_DIALOG=no
|
||||||
DEFAULT_wxUSE_TEXTCTRL=yes
|
DEFAULT_wxUSE_TEXTCTRL=yes
|
||||||
DEFAULT_wxUSE_TOGGLEBTN=yes
|
DEFAULT_wxUSE_TOGGLEBTN=yes
|
||||||
DEFAULT_wxUSE_TOOLBAR=yes
|
DEFAULT_wxUSE_TOOLBAR=yes
|
||||||
@@ -1129,7 +1129,7 @@ WX_ARG_ENABLE(statbox, [ --enable-statbox use wxStaticBox class], wx
|
|||||||
WX_ARG_ENABLE(statline, [ --enable-statline use wxStaticLine class], wxUSE_STATLINE)
|
WX_ARG_ENABLE(statline, [ --enable-statline use wxStaticLine class], wxUSE_STATLINE)
|
||||||
WX_ARG_ENABLE(stattext, [ --enable-stattext use wxStaticText class], wxUSE_STATTEXT)
|
WX_ARG_ENABLE(stattext, [ --enable-stattext use wxStaticText class], wxUSE_STATTEXT)
|
||||||
WX_ARG_ENABLE(statusbar, [ --enable-statusbar use wxStatusBar class], wxUSE_STATUSBAR)
|
WX_ARG_ENABLE(statusbar, [ --enable-statusbar use wxStatusBar class], wxUSE_STATUSBAR)
|
||||||
WX_ARG_ENABLE(tabdialog, [ --enable-tabdialog use wxTabControl class], wxUSE_TABDIALOG)
|
WX_ARG_ENABLE(tabdialog, [ --enable-tabdialog use wxTabControl class], wxUSE_TAB_DIALOG)
|
||||||
WX_ARG_ENABLE(textctrl, [ --enable-textctrl use wxTextCtrl class], wxUSE_TEXTCTRL)
|
WX_ARG_ENABLE(textctrl, [ --enable-textctrl use wxTextCtrl class], wxUSE_TEXTCTRL)
|
||||||
WX_ARG_ENABLE(togglebtn, [ --enable-togglebtn use wxToggleButton class], wxUSE_TOGGLEBTN)
|
WX_ARG_ENABLE(togglebtn, [ --enable-togglebtn use wxToggleButton class], wxUSE_TOGGLEBTN)
|
||||||
WX_ARG_ENABLE(toolbar, [ --enable-toolbar use wxToolBar class], wxUSE_TOOLBAR)
|
WX_ARG_ENABLE(toolbar, [ --enable-toolbar use wxToolBar class], wxUSE_TOOLBAR)
|
||||||
@@ -6412,7 +6412,7 @@ if test "$wxUSE_STATUSBAR" = "yes"; then
|
|||||||
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
|
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$wxUSE_TABDIALOG" = "yes"; then
|
if test "$wxUSE_TAB_DIALOG" = "yes"; then
|
||||||
AC_DEFINE(wxUSE_TAB_DIALOG)
|
AC_DEFINE(wxUSE_TAB_DIALOG)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@@ -12,7 +12,11 @@
|
|||||||
#ifndef _WX_TAB_H_BASE_
|
#ifndef _WX_TAB_H_BASE_
|
||||||
#define _WX_TAB_H_BASE_
|
#define _WX_TAB_H_BASE_
|
||||||
|
|
||||||
|
#include "wx/defs.h"
|
||||||
|
|
||||||
|
#if wxUSE_TAB_DIALOG
|
||||||
#include "wx/generic/tabg.h"
|
#include "wx/generic/tabg.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
// _WX_TAB_H_BASE_
|
// _WX_TAB_H_BASE_
|
||||||
|
@@ -12,6 +12,10 @@
|
|||||||
#ifndef _WX_TABCTRL_H_BASE_
|
#ifndef _WX_TABCTRL_H_BASE_
|
||||||
#define _WX_TABCTRL_H_BASE_
|
#define _WX_TABCTRL_H_BASE_
|
||||||
|
|
||||||
|
#include "wx/defs.h"
|
||||||
|
|
||||||
|
#if wxUSE_TAB_DIALOG
|
||||||
|
|
||||||
BEGIN_DECLARE_EVENT_TYPES()
|
BEGIN_DECLARE_EVENT_TYPES()
|
||||||
DECLARE_EVENT_TYPE(wxEVT_COMMAND_TAB_SEL_CHANGED, 800)
|
DECLARE_EVENT_TYPE(wxEVT_COMMAND_TAB_SEL_CHANGED, 800)
|
||||||
DECLARE_EVENT_TYPE(wxEVT_COMMAND_TAB_SEL_CHANGING, 801)
|
DECLARE_EVENT_TYPE(wxEVT_COMMAND_TAB_SEL_CHANGING, 801)
|
||||||
@@ -28,5 +32,6 @@ END_DECLARE_EVENT_TYPES()
|
|||||||
#include "wx/os2/tabctrl.h"
|
#include "wx/os2/tabctrl.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif // wxUSE_TAB_DIALOG
|
||||||
#endif
|
#endif
|
||||||
// _WX_TABCTRL_H_BASE_
|
// _WX_TABCTRL_H_BASE_
|
||||||
|
@@ -11,6 +11,8 @@
|
|||||||
|
|
||||||
#include "wx/wxprec.h"
|
#include "wx/wxprec.h"
|
||||||
|
|
||||||
|
#if wxUSE_TAB_DIALOG
|
||||||
|
|
||||||
#include "wx/control.h"
|
#include "wx/control.h"
|
||||||
#include "wx/tabctrl.h"
|
#include "wx/tabctrl.h"
|
||||||
#include "wx/mac/uma.h"
|
#include "wx/mac/uma.h"
|
||||||
@@ -196,3 +198,4 @@ void wxTabCtrl::SetPadding(const wxSize& padding)
|
|||||||
// TODO:
|
// TODO:
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // wxUSE_TAB_DIALOG
|
||||||
|
@@ -11,6 +11,8 @@
|
|||||||
|
|
||||||
#include "wx/defs.h"
|
#include "wx/defs.h"
|
||||||
|
|
||||||
|
#if wxUSE_TAB_DIALOG
|
||||||
|
|
||||||
#include "wx/control.h"
|
#include "wx/control.h"
|
||||||
#include "wx/tabctrl.h"
|
#include "wx/tabctrl.h"
|
||||||
#include "wx/mac/uma.h"
|
#include "wx/mac/uma.h"
|
||||||
@@ -198,3 +200,4 @@ wxTabEvent::wxTabEvent(wxEventType commandType, int id):
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // wxUSE_TAB_DIALOG
|
||||||
|
@@ -16,6 +16,8 @@
|
|||||||
#pragma hdrstop
|
#pragma hdrstop
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if wxUSE_TAB_DIALOG
|
||||||
|
|
||||||
#ifndef WX_PRECOMP
|
#ifndef WX_PRECOMP
|
||||||
#include "wx/wx.h"
|
#include "wx/wx.h"
|
||||||
#endif
|
#endif
|
||||||
@@ -428,3 +430,5 @@ void wxMapBitmap(HBITMAP hBitmap, int width, int height)
|
|||||||
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif // wxUSE_TAB_DIALOG
|
||||||
|
@@ -12,6 +12,8 @@
|
|||||||
// For compilers that support precompilation, includes "wx.h".
|
// For compilers that support precompilation, includes "wx.h".
|
||||||
#include "wx/wxprec.h"
|
#include "wx/wxprec.h"
|
||||||
|
|
||||||
|
#if wxUSE_TAB_DIALOG
|
||||||
|
|
||||||
#ifndef WX_PRECOMP
|
#ifndef WX_PRECOMP
|
||||||
#include "wx/wx.h"
|
#include "wx/wx.h"
|
||||||
#endif
|
#endif
|
||||||
@@ -354,3 +356,5 @@ wxTabEvent::wxTabEvent(wxEventType commandType, int id)
|
|||||||
:wxCommandEvent(commandType, id)
|
:wxCommandEvent(commandType, id)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // wxUSE_TAB_DIALOG
|
||||||
|
@@ -16,6 +16,8 @@
|
|||||||
#pragma hdrstop
|
#pragma hdrstop
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if wxUSE_TAB_DIALOG
|
||||||
|
|
||||||
#ifndef WX_PRECOMP
|
#ifndef WX_PRECOMP
|
||||||
#include "wx/wx.h"
|
#include "wx/wx.h"
|
||||||
#endif
|
#endif
|
||||||
@@ -177,3 +179,4 @@ void wxTabCtrl::SetPadding(const wxSize& padding)
|
|||||||
#endif
|
#endif
|
||||||
// __WIN95__
|
// __WIN95__
|
||||||
|
|
||||||
|
#endif // wxUSE_TAB_DIALOG
|
||||||
|
Reference in New Issue
Block a user