Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Instead wxToolBar by wxAuiToolBar ?
Loaden:
In Ubuntu 10.4, the wxToolBar is very ugly.
So, why not instead by wxAuiToolBar ?
Any comments are welcome ?
thynson:
Agreed. I remember that I used to complained for it in "Using codeblocks" forum.
MortenMacFly:
--- Quote from: Loaden on August 22, 2010, 03:00:44 pm ---So, why not instead by wxAuiToolBar ?
Any comments are welcome ?
--- End quote ---
That would be OK, however, it requires re-writing quite some portions, not to forget plugins (probably not in our own repo).
Loaden:
I am trying, but is seems so hard! Because since there is currently no XRC handler for wxAuiToolBar.
My current thinking like this.
include/cbtoolbar.h
--- Code: ---/*
* This file is part of the Code::Blocks IDE and licensed under the GNU Lesser General Public License, version 3
* http://www.gnu.org/licenses/lgpl-3.0.html
*/
#ifndef CBTOOLBAR_H
#define CBTOOLBAR_H
#define CB_USE_WXAUITOOLBAR
#ifdef CB_USE_WXTOOLBAR
#undef CB_USE_WXAUITOOLBAR
#endif
#ifdef CB_USE_WXAUITOOLBAR
#include <wx/aui/aui.h>
#else
#include <wx/toolbar.h>
#endif
class DLLIMPORT cbToolBar :
#ifdef CB_USE_WXAUITOOLBAR
public wxAuiToolBar
#else
public wxToolBar
#endif
{
public:
cbToolBar(wxWindow* parent,
wxWindowID id = wxID_ANY,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
#ifdef CB_USE_WXAUITOOLBAR
long style = wxAUI_TB_DEFAULT_STYLE
#else
long style = wxNO_BORDER | wxTB_HORIZONTAL
#endif
) :
#ifdef CB_USE_WXAUITOOLBAR
wxAuiToolBar(parent, id, pos, size, style)
#else
wxToolBar(parent, id, pos, size, style, wxToolBarNameStr)
#endif
{
}
};
#endif // CBTOOLBAR_H
--- End code ---
I need more help, or any good idea.
This patch *JUST* for trying, and it's can not build success.
Jenna:
Creating an xrc-handler should not be too hard, I will try it, if I find the time.
Navigation
[0] Message Index
[#] Next page
Go to full version