Author: jackburton Date: 2009-10-25 11:45:42 +0100 (Sun, 25 Oct 2009) New Revision: 33756 Changeset: http://dev.haiku-os.org/changeset/33756/haiku Modified: haiku/trunk/headers/os/interface/OptionControl.h haiku/trunk/src/kits/interface/OptionControl.cpp Log: Added layout friendly constructor for BOptionControl Modified: haiku/trunk/headers/os/interface/OptionControl.h =================================================================== --- haiku/trunk/headers/os/interface/OptionControl.h 2009-10-25 03:34:24 UTC (rev 33755) +++ haiku/trunk/headers/os/interface/OptionControl.h 2009-10-25 10:45:42 UTC (rev 33756) @@ -21,6 +21,10 @@ uint32 resizeMask = B_FOLLOW_LEFT | B_FOLLOW_TOP, uint32 flags = B_WILL_DRAW); + BOptionControl(const char* name, + const char* label, BMessage* message, + uint32 flags = B_WILL_DRAW); + virtual ~BOptionControl(); virtual void MessageReceived(BMessage* message); Modified: haiku/trunk/src/kits/interface/OptionControl.cpp =================================================================== --- haiku/trunk/src/kits/interface/OptionControl.cpp 2009-10-25 03:34:24 UTC (rev 33755) +++ haiku/trunk/src/kits/interface/OptionControl.cpp 2009-10-25 10:45:42 UTC (rev 33756) @@ -30,6 +30,14 @@ } +BOptionControl::BOptionControl(const char *name, const char *label, + BMessage *message, uint32 flags) + : + BControl(name, label, message, flags) +{ +} + + /*! \brief Destructor It does nothing. */