← Back to team overview

linuxdcpp-team team mailing list archive

[Branch ~dcplusplus-team/dcplusplus/trunk] Rev 2506: better base class for PropPage

 

------------------------------------------------------------
revno: 2506
committer: poy <poy@xxxxxxxxxx>
branch nick: trunk
timestamp: Sat 2011-04-23 15:04:47 +0200
message:
  better base class for PropPage
modified:
  win32/PropPage.cpp
  win32/PropPage.h


--
lp:dcplusplus
https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk

Your team Dcplusplus-team is subscribed to branch lp:dcplusplus.
To unsubscribe from this branch go to https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk/+edit-subscription
=== modified file 'win32/PropPage.cpp'
--- win32/PropPage.cpp	2011-04-11 21:26:22 +0000
+++ win32/PropPage.cpp	2011-04-23 13:04:47 +0000
@@ -30,13 +30,11 @@
 
 const dwt::Rectangle padding(7, 4, 14, 21);
 
-PropPage::PropPage(dwt::Widget* parent, int rows, int cols) : dwt::ModelessDialog(parent), grid(0) {
-	create();
+PropPage::PropPage(dwt::Widget* parent, int rows, int cols) : dwt::Container(parent), grid(0) {
+	create(Seed(0, WS_EX_CONTROLPARENT));
 
 	grid = addChild(Grid::Seed(rows, cols));
 	grid->setSpacing(10);
-
-	onWindowPosChanged([this](const dwt::Rectangle &) { layout(); });
 }
 
 PropPage::~PropPage() {

=== modified file 'win32/PropPage.h'
--- win32/PropPage.h	2011-04-11 20:39:22 +0000
+++ win32/PropPage.h	2011-04-23 13:04:47 +0000
@@ -19,11 +19,7 @@
 #ifndef DCPLUSPLUS_WIN32_PROP_PAGE_H
 #define DCPLUSPLUS_WIN32_PROP_PAGE_H
 
-#define SETTINGS_BUF_LEN 1024
-
-#include <dwt/aspects/AspectChild.h>
-
-class PropPage : public dwt::ModelessDialog
+class PropPage : public dwt::Container
 {
 public:
 	PropPage(dwt::Widget* parent, int rows, int cols);