introduced common base class GuiObject for Dialog/Widget -> step towards making it possible to nest widgets (needed for TabWidget)
svn-id: r11052
This commit is contained in:
parent
70a1d43815
commit
e9ae86bb76
17 changed files with 125 additions and 75 deletions
|
@ -19,16 +19,19 @@
|
|||
*/
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "gui/message.h"
|
||||
#include "gui/newgui.h"
|
||||
#include "common/str.h"
|
||||
#include "common/list.h"
|
||||
#include "gui/message.h"
|
||||
#include "gui/newgui.h"
|
||||
#include "gui/widget.h"
|
||||
|
||||
enum {
|
||||
kOkCmd = 'OK ',
|
||||
kCancelCmd = 'CNCL'
|
||||
};
|
||||
|
||||
// TODO: The default button should be visibly distinct from the alternate button
|
||||
|
||||
MessageDialog::MessageDialog(const String &message, const char *defaultButton, const char *altButton)
|
||||
: Dialog(30, 20, 260, 124) {
|
||||
// First, determine the size the dialog needs. For this we have to break
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue