wxWidgets 高级框架wxAUI(以及相关类方法翻译)
wxwidgets吧
全部回复
仅看楼主
level 8
最近在使用wxAui 来做界面..由于官方文档,都是英文,实在是蛋疼.所以我做了最蛋疼的事情,
把wxAui方面的翻译了..........[大哭]
翻译内容全部由金山词典翻译~并适当的改正翻译错误.如还有错误,请大神们提出..
有部分代码是转的...
wxAUI是一个高级用户接口。最初由kirix Cprp提供。wxAUI尝试封装以下的UI:
l Frame管理。
l 工具条。
l 非模态控件
l L&F。
2013年08月19日 04点08分 1
level 8
wxAUI是wxWigdets的一个界面控件,在2.8.10后的版本中就已集成在整个套件中。
这个套件的使用主要按以下步骤进行:
首先确保 aui的静态库或者动态库存在..wxmsw29u_aui 2.9.4 版本的是这个名字
1、在主框架文件中包含头文件:
#include <wx/aui/aui.h>
2、在主框架类定义中增加wxAuiManager的私有变量:
wxAuiManager m_auiManager;
3、在主框架的构造函数中利用SetManagedWindow函数设置管理窗口:
m_auiManager.SetManagedWindow(this);
4、假定要在界面中增加一个文本控件窗口wxTextCtrl,则首先建立好这个控件:
wxTextCtrl* text = new wxTextCtrl(this, -1);
5、然后再在框架中把这个文本控件放进去:
m_auiManager.AddPane(text, wxLEFT, wxT("我的命令行窗口"));
6、为了使控件马上起作用,最好执行一下Update函数:
m_auiManager.Update();
7,最后在主框架析构函数中添加这句
m_auiManager.UnInit(); 卸载aui,否则会出问题让你蛋疼很久.
2013年08月19日 04点08分 3
level 8
相关类......
后面会陆续更新
class
wxAuiDockArt wxAuiDockArt的wxAui类框架的一部分。
class
wxAuiManager
wxAuiManager是wxAUI类框架的关键类。
class
wxAuiPaneInfo
wxAUIPaneInfo也是wxAUI类框架的一部分。
wxAuiPaneInfo指定了一个pane的所有参数。这些参数指定了pane在屏幕上的位置,是否docked或floating或hidden。另外,这些参数指定了pane的docked位置,floating位置,preferred size,minimum size,caption text等。
class
wxAuiManagerEvent aui管理器事件
class
wxAuiToolBarEvent aui工具条事件
class
wxAuiToolBarItem aui工具条项目
class
wxAuiToolBarArt (表示没使用过所以不大了解,以后补上)
class
wxAuiDefaultToolBarArt
class
wxAuiToolBar aui工具条
以下是wxAuiNotebook 书签控件,没有用过.
class
wxAuiNotebook 书签控件
class
wxAuiTabContainerButton \\ 是wxAuiNotebook 按钮标签和状态信息
class
wxAuiTabContainer \\ wxAuiNotebook 包含关于每个标签信息。
class
wxAuiTabArt 标签风格基类.....
class
wxAuiDefaultTabArt wxAuiNotebook默认的风格(我理解的)
class
wxAuiSimpleTabArt \\wxAuiNotebook 另一个标准选项卡风格
2013年08月19日 05点08分 6
level 4
[真棒]
2013年08月21日 11点08分 9
level 8
This class supports the following styles:
wxAUI_MGR_ALLOW_FLOATING:Allow a pane to be undocked to take the form of a.
允许一个窗格以 wxMiniFrame风格被移动.
wxAUI_MGR_ALLOW_ACTIVE_PANE:Change the color of the title bar of the pane when it is activated.
改变面板的标题栏的颜色时,它被激活。
wxAUI_MGR_TRANSPARENT_DRAG:Make the pane transparent during its movement.
在移动的过程中使窗格的透明。
wxAUI_MGR_TRANSPARENT_HINT:The possible location for docking is indicated by a translucent area.
对接的位置可能是一个半透明区域表示。
wxAUI_MGR_VENETIAN_BLINDS_HINT:The possible location for docking is indicated by gradually appearing partially transparent hint.
对接的位置可能是逐渐出现部分透明的提示显示。
wxAUI_MGR_RECTANGLE_HINT:The possible location for docking is indicated by a rectangular outline.
对接的可能的位置是由一个矩形轮廓显示。
wxAUI_MGR_HINT_FADE:The translucent area where the pane could be docked appears gradually.
半透明区域的窗格可以停靠逐渐出现。
wxAUI_MGR_NO_VENETIAN_BLINDS_FADE:Used in complement of wxAUI_MGR_VENETIAN_BLINDS_HINT to show the docking hint immediately.
用于补充wxAUI_MGR_VENETIAN_BLINDS_HINT立即显示对接的表示。
wxAUI_MGR_LIVE_RESIZE:When a docked pane is resized, its content is refreshed in live (instead of moving the border alone and refreshing the content at the end).
当一个停靠窗口的大小,其内容是理解刷新的(而不是拉动或者移动后刷新)。
wxAUI_MGR_DEFAULT:Default behavior, combines: wxAUI_MGR_ALLOW_FLOATING | wxAUI_MGR_TRANSPARENT_HINT | wxAUI_MGR_HINT_FADE | wxAUI_MGR_NO_VENETIAN_BLINDS_FADE.
默认风格
I
2013年10月10日 02点10分 10
你好,我是个wx的新手,希望能够向你学习,qq491267141。恳切盼望,望眼欲穿!!!
2018年12月10日 03点12分
level 1
wxAUI_MGR_ALLOW_ACTIVE_PANE,这个让标题栏颜色变更的方法是怎么使用啊,没找到更改颜色的相关方法,楼主能指点下不
2018年08月20日 01点08分 11
1