diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-19 23:56:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-20 13:55:42 +0300 |
commit | d59cd9111c1e86b224ea62cc975c49b157e2b3cf (patch) | |
tree | d7186479633c0269573e92b5a5213d04b84b3995 /src/gui/debugwindow.cpp | |
parent | 71d2b482d84246b8456ea863f94a9a766d33f197 (diff) | |
download | plus-d59cd9111c1e86b224ea62cc975c49b157e2b3cf.tar.gz plus-d59cd9111c1e86b224ea62cc975c49b157e2b3cf.tar.bz2 plus-d59cd9111c1e86b224ea62cc975c49b157e2b3cf.tar.xz plus-d59cd9111c1e86b224ea62cc975c49b157e2b3cf.zip |
Add to some controls palette inheritance from other controls.
Diffstat (limited to 'src/gui/debugwindow.cpp')
-rw-r--r-- | src/gui/debugwindow.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/gui/debugwindow.cpp b/src/gui/debugwindow.cpp index a163ac1c6..120195aef 100644 --- a/src/gui/debugwindow.cpp +++ b/src/gui/debugwindow.cpp @@ -48,10 +48,10 @@ DebugWindow::DebugWindow(): Window(_("Debug"), false, nullptr, "debug.xml"), - mTabs(new TabbedArea), - mMapWidget(new MapDebugTab), - mTargetWidget(new TargetDebugTab), - mNetWidget(new NetDebugTab) + mTabs(new TabbedArea(this)), + mMapWidget(new MapDebugTab(this)), + mTargetWidget(new TargetDebugTab(this)), + mNetWidget(new NetDebugTab(this)) { setWindowName("Debug"); if (setupWindow) @@ -134,8 +134,8 @@ void DebugWindow::widgetResized(const gcn::Event &event) mTabs->setDimension(gcn::Rectangle(0, 0, getWidth(), getHeight())); } -MapDebugTab::MapDebugTab() : - DebugTab(), +MapDebugTab::MapDebugTab(const Widget2 *const widget) : + DebugTab(widget), mMusicFileLabel(new Label(strprintf(_("Music:")))), mMapLabel(new Label(strprintf(_("Map:")))), mMinimapLabel(new Label(strprintf(_("Minimap:")))), @@ -258,8 +258,8 @@ void MapDebugTab::logic() mLPSLabel->setCaption(strprintf(_("%d LPS"), lps)); } -TargetDebugTab::TargetDebugTab() : - DebugTab(), +TargetDebugTab::TargetDebugTab(const Widget2 *const widget) : + DebugTab(widget), mTargetLabel(new Label(strprintf("%s ?", _("Target:")))), mTargetIdLabel(new Label(strprintf("%s ? ", _("Target Id:")))), mTargetLevelLabel(new Label(strprintf("%s ?", _("Target level:")))), @@ -362,8 +362,8 @@ void TargetDebugTab::logic() mAttackDelayLabel->adjustSize(); } -NetDebugTab::NetDebugTab() : - DebugTab(), +NetDebugTab::NetDebugTab(const Widget2 *const widget) : + DebugTab(widget), mPingLabel(new Label(" ")), mInPackets1Label(new Label(" ")), mOutPackets1Label(new Label(" ")) |