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:
Vadim Zeitlin
2006-02-09 00:28:34 +00:00
parent 5489227348
commit db6d391891
8 changed files with 30 additions and 4 deletions

View File

@@ -530,7 +530,7 @@ if test $DEBUG_CONFIGURE = 1; then
DEFAULT_wxUSE_STATLINE=no
DEFAULT_wxUSE_STATTEXT=no
DEFAULT_wxUSE_STATUSBAR=yes
DEFAULT_wxUSE_TABDIALOG=no
DEFAULT_wxUSE_TAB_DIALOG=no
DEFAULT_wxUSE_TEXTCTRL=no
DEFAULT_wxUSE_TOGGLEBTN=no
DEFAULT_wxUSE_TOOLBAR=no
@@ -732,7 +732,7 @@ else
DEFAULT_wxUSE_STATLINE=yes
DEFAULT_wxUSE_STATTEXT=yes
DEFAULT_wxUSE_STATUSBAR=yes
DEFAULT_wxUSE_TABDIALOG=no
DEFAULT_wxUSE_TAB_DIALOG=no
DEFAULT_wxUSE_TEXTCTRL=yes
DEFAULT_wxUSE_TOGGLEBTN=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(stattext, [ --enable-stattext use wxStaticText class], wxUSE_STATTEXT)
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(togglebtn, [ --enable-togglebtn use wxToggleButton class], wxUSE_TOGGLEBTN)
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"
fi
if test "$wxUSE_TABDIALOG" = "yes"; then
if test "$wxUSE_TAB_DIALOG" = "yes"; then
AC_DEFINE(wxUSE_TAB_DIALOG)
fi

View File

@@ -12,7 +12,11 @@
#ifndef _WX_TAB_H_BASE_
#define _WX_TAB_H_BASE_
#include "wx/defs.h"
#if wxUSE_TAB_DIALOG
#include "wx/generic/tabg.h"
#endif
#endif
// _WX_TAB_H_BASE_

View File

@@ -12,6 +12,10 @@
#ifndef _WX_TABCTRL_H_BASE_
#define _WX_TABCTRL_H_BASE_
#include "wx/defs.h"
#if wxUSE_TAB_DIALOG
BEGIN_DECLARE_EVENT_TYPES()
DECLARE_EVENT_TYPE(wxEVT_COMMAND_TAB_SEL_CHANGED, 800)
DECLARE_EVENT_TYPE(wxEVT_COMMAND_TAB_SEL_CHANGING, 801)
@@ -28,5 +32,6 @@ END_DECLARE_EVENT_TYPES()
#include "wx/os2/tabctrl.h"
#endif
#endif // wxUSE_TAB_DIALOG
#endif
// _WX_TABCTRL_H_BASE_

View File

@@ -11,6 +11,8 @@
#include "wx/wxprec.h"
#if wxUSE_TAB_DIALOG
#include "wx/control.h"
#include "wx/tabctrl.h"
#include "wx/mac/uma.h"
@@ -196,3 +198,4 @@ void wxTabCtrl::SetPadding(const wxSize& padding)
// TODO:
}
#endif // wxUSE_TAB_DIALOG

View File

@@ -11,6 +11,8 @@
#include "wx/defs.h"
#if wxUSE_TAB_DIALOG
#include "wx/control.h"
#include "wx/tabctrl.h"
#include "wx/mac/uma.h"
@@ -198,3 +200,4 @@ wxTabEvent::wxTabEvent(wxEventType commandType, int id):
{
}
#endif // wxUSE_TAB_DIALOG

View File

@@ -16,6 +16,8 @@
#pragma hdrstop
#endif
#if wxUSE_TAB_DIALOG
#ifndef WX_PRECOMP
#include "wx/wx.h"
#endif
@@ -428,3 +430,5 @@ void wxMapBitmap(HBITMAP hBitmap, int width, int height)
}
#endif
#endif // wxUSE_TAB_DIALOG

View File

@@ -12,6 +12,8 @@
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
#if wxUSE_TAB_DIALOG
#ifndef WX_PRECOMP
#include "wx/wx.h"
#endif
@@ -354,3 +356,5 @@ wxTabEvent::wxTabEvent(wxEventType commandType, int id)
:wxCommandEvent(commandType, id)
{
}
#endif // wxUSE_TAB_DIALOG

View File

@@ -16,6 +16,8 @@
#pragma hdrstop
#endif
#if wxUSE_TAB_DIALOG
#ifndef WX_PRECOMP
#include "wx/wx.h"
#endif
@@ -177,3 +179,4 @@ void wxTabCtrl::SetPadding(const wxSize& padding)
#endif
// __WIN95__
#endif // wxUSE_TAB_DIALOG