Patch #2565 2008-09-19 20:24
stahta01
Patch to remove wxADJUST_MINSIZE for wxW28 with disable_comp- Download
- 2565-Patch_to_remov.patch (15.3 KB)
Index: src/plugins/contrib/ThreadSearch/SearchInPanel.cpp
===================================================================
--- src/plugins/contrib/ThreadSearch/SearchInPanel.cpp (revision 5207)
+++ src/plugins/contrib/ThreadSearch/SearchInPanel.cpp (working copy)
@@ -157,11 +157,11 @@
{
// begin wxGlade: SearchInPanel::do_layout
wxBoxSizer* SizerTop = new wxBoxSizer(wxHORIZONTAL);
- SizerTop->Add(m_pChkSearchOpenFiles, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxADJUST_MINSIZE, 4);
- SizerTop->Add(m_pChkSearchTargetFiles, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxADJUST_MINSIZE, 4);
- SizerTop->Add(m_pChkSearchProjectFiles, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxADJUST_MINSIZE, 4);
- SizerTop->Add(m_pChkSearchWorkspaceFiles, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxADJUST_MINSIZE, 4);
- SizerTop->Add(m_pChkSearchDir, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxADJUST_MINSIZE, 4);
+ SizerTop->Add(m_pChkSearchOpenFiles, 0, wxALL|wxALIGN_CENTER_VERTICAL, 4);
+ SizerTop->Add(m_pChkSearchTargetFiles, 0, wxALL|wxALIGN_CENTER_VERTICAL, 4);
+ SizerTop->Add(m_pChkSearchProjectFiles, 0, wxALL|wxALIGN_CENTER_VERTICAL, 4);
+ SizerTop->Add(m_pChkSearchWorkspaceFiles, 0, wxALL|wxALIGN_CENTER_VERTICAL, 4);
+ SizerTop->Add(m_pChkSearchDir, 0, wxALL|wxALIGN_CENTER_VERTICAL, 4);
SetAutoLayout(true);
SetSizer(SizerTop);
SizerTop->Fit(this);
Index: src/plugins/contrib/ThreadSearch/ThreadSearchView.cpp
===================================================================
--- src/plugins/contrib/ThreadSearch/ThreadSearchView.cpp (revision 5207)
+++ src/plugins/contrib/ThreadSearch/ThreadSearchView.cpp (working copy)
@@ -291,25 +291,25 @@
wxBoxSizer* m_pSizerSearchPreview = new wxBoxSizer(wxHORIZONTAL);
m_pSizerSearchDirItems = new wxStaticBoxSizer(m_pSizerSearchDirItems_staticbox, wxHORIZONTAL);
m_pSizerSearchItems = new wxBoxSizer(wxHORIZONTAL);
- m_pSizerSearchItems->Add(m_pCboSearchExpr, 2, wxALL|wxALIGN_CENTER_VERTICAL|wxADJUST_MINSIZE, 4);
- m_pSizerSearchItems->Add(m_pBtnSearch, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxADJUST_MINSIZE, 4);
- m_pSizerSearchItems->Add(m_pBtnOptions, 0, wxALL|wxADJUST_MINSIZE, 4);
- m_pSizerSearchItems->Add(30, 20, 0, wxADJUST_MINSIZE, 0);
- m_pSizerSearchItems->Add(m_pStaTxtSearchIn, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxADJUST_MINSIZE, 4);
- m_pSizerSearchItems->Add(m_pPnlSearchIn, 0, wxALIGN_CENTER_VERTICAL|wxADJUST_MINSIZE, 0);
- m_pSizerSearchItems->Add(30, 20, 0, wxADJUST_MINSIZE, 0);
- m_pSizerSearchItems->Add(m_pBtnShowDirItems, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxADJUST_MINSIZE, 4);
+ m_pSizerSearchItems->Add(m_pCboSearchExpr, 2, wxALL|wxALIGN_CENTER_VERTICAL, 4);
+ m_pSizerSearchItems->Add(m_pBtnSearch, 0, wxALL|wxALIGN_CENTER_VERTICAL, 4);
+ m_pSizerSearchItems->Add(m_pBtnOptions, 0, wxALL, 4);
+ m_pSizerSearchItems->Add(30, 20, 0, 0, 0);
+ m_pSizerSearchItems->Add(m_pStaTxtSearchIn, 0, wxALL|wxALIGN_CENTER_VERTICAL, 4);
+ m_pSizerSearchItems->Add(m_pPnlSearchIn, 0, wxALIGN_CENTER_VERTICAL, 0);
+ m_pSizerSearchItems->Add(30, 20, 0, 0, 0);
+ m_pSizerSearchItems->Add(m_pBtnShowDirItems, 0, wxALL|wxALIGN_CENTER_VERTICAL, 4);
m_pSizerTop->Add(m_pSizerSearchItems, 0, wxEXPAND|wxALIGN_CENTER_VERTICAL, 0);
m_pSizerSearchDirItems->Add(m_pPnlDirParams, 1, wxALIGN_CENTER_VERTICAL, 0);
m_pSizerTop->Add(m_pSizerSearchDirItems, 0, wxBOTTOM|wxEXPAND, 4);
- m_pSizerSearchPreview->Add(m_pSearchPreview, 1, wxEXPAND|wxADJUST_MINSIZE, 0);
+ m_pSizerSearchPreview->Add(m_pSearchPreview, 1, wxEXPAND, 0);
m_pPnlPreview->SetAutoLayout(true);
m_pPnlPreview->SetSizer(m_pSizerSearchPreview);
m_pSizerListLog->Add(m_pLogger->GetWindow(), 1, wxEXPAND|wxFIXED_MINSIZE, 0);
m_pPnlListLog->SetAutoLayout(true);
m_pPnlListLog->SetSizer(m_pSizerListLog);
m_pSplitter->SplitVertically(m_pPnlPreview, m_pPnlListLog);
- m_pSizerSplitter->Add(m_pSplitter, 1, wxEXPAND|wxADJUST_MINSIZE, 0);
+ m_pSizerSplitter->Add(m_pSplitter, 1, wxEXPAND, 0);
m_pSizerTop->Add(m_pSizerSplitter, 1, wxEXPAND, 0);
SetAutoLayout(true);
SetSizer(m_pSizerTop);
Index: src/plugins/contrib/ThreadSearch/DirectoryParamsPanel.cpp
===================================================================
--- src/plugins/contrib/ThreadSearch/DirectoryParamsPanel.cpp (revision 5207)
+++ src/plugins/contrib/ThreadSearch/DirectoryParamsPanel.cpp (working copy)
@@ -101,13 +101,13 @@
{
// begin wxGlade: DirectoryParamsPanel::do_layout
wxBoxSizer* SizerTop = new wxBoxSizer(wxHORIZONTAL);
- SizerTop->Add(m_pTxtSearchDirPath, 2, wxALL|wxALIGN_CENTER_VERTICAL|wxADJUST_MINSIZE, 4);
- SizerTop->Add(m_pBtnSelectDir, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxADJUST_MINSIZE, 4);
- SizerTop->Add(m_pChkSearchDirRecursively, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxADJUST_MINSIZE, 4);
- SizerTop->Add(m_pChkSearchDirHiddenFiles, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxADJUST_MINSIZE, 4);
- SizerTop->Add(m_pTxtMa
download for full patch...
History
stahta01 2008-09-19 20:29
This patch removes the macro wxADJUST_MINSIZE.
This macro is not define when wx26 compatible mode is off.
Current Code::Blocks build defaults to having wx26 compatible mode is on.
But, it can be turn off when wxWidgets 2.8 or 2.9 is compiled.
Tim S