|
From: andrew7 <bd...@us...> - 2007-06-09 17:12:32
|
Update of /cvsroot/smartwin/SmartWin/include/io In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv27718 Modified Files: InDialog.h Log Message: Added alternate constructor InDialog( SmartUtil::tstring inTitle ) which allows InDialog to exist standalone. Index: InDialog.h =================================================================== RCS file: /cvsroot/smartwin/SmartWin/include/io/InDialog.h,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- InDialog.h 10 Dec 2006 22:24:08 -0000 1.13 +++ InDialog.h 9 Jun 2007 17:12:29 -0000 1.14 @@ -121,6 +121,18 @@ setFont = true; } + /// Constructor InDialog( "Title" ) uses a default font. + /// and can exist outside of awidget derived class. + InDialog( SmartUtil::tstring inTitle ) + : Widget( NULL ), + itsTitle( inTitle ) + { + onInitDialog( & InDialog::initDialog ); // Mandatory + setFont = false; + } + + + /// prepare the dialog with same title to be used again. void clear() { |