Guiliani  Version 2.6 revision 7293 (documentation build 12)
GUILoadDialogCmd.h
1/*
2* Copyright (C) TES Electronic Solutions GmbH,
3* All Rights Reserved.
4* Contact: info@guiliani.de
5*
6* This file is part of the Guiliani HMI framework
7* for the development of graphical user interfaces on embedded systems.
8*/
9
10#if !defined(GUI_LOAD_DIALOG_CMD_H)
11#define GUI_LOAD_DIALOG_CMD_H
12
13#include "GUICommand.h"
15
17
31{
32public:
33#if defined(GUILIANI_STREAM_GUI) || defined(GUILIANI_WRITE_GUI)
35 static const eC_Char XMLTAG_DESTDIALOGFILENAME[];
36#endif
37
39
49 CGUILoadDialogCmd(const eC_String& rkFileName,
50 ObjectHandle_t eParent = NO_HANDLE,
51 ObjectHandle_t eDelete = NO_HANDLE);
52
53#if defined(GUILIANI_STREAM_GUI)
56
57 virtual void ReadFromStream();
58#endif
59
60#if defined(GUILIANI_WRITE_GUI)
61 virtual void WriteToStream(const eC_Bool bWriteClassID = false);
62#endif
63
64protected:
66 virtual void Do();
67
69 eC_String m_kFileName;
70
73
76
79};
80
81#endif // GUI_LOAD_DIALOG_CMD_H
Helper Macros in Guiliani
ObjectHandle_t
List of object resource ids.
Definition: GUIObjectHandleResource.h:55
Command object base class.
Definition: GUICommand.h:127
Loads a GUI definition from a file.
Definition: GUILoadDialogCmd.h:31
CGUILoadDialogCmd()
Constructor for factory. Do not use this constructor in user code.
CGUIObject * m_pkLoadedDialog
temporary pointer which is set when the dialog is loaded. Use carefully.
Definition: GUILoadDialogCmd.h:78
virtual void WriteToStream(const eC_Bool bWriteClassID=false)
virtual void ReadFromStream()
ObjectHandle_t m_eDelete
ID of object to be deleted.
Definition: GUILoadDialogCmd.h:75
eC_String m_kFileName
File name of the dialog to be loaded.
Definition: GUILoadDialogCmd.h:69
virtual void Do()
static const eC_Char XMLTAG_DESTDIALOGFILENAME[]
Definition: GUILoadDialogCmd.h:35
CGUILoadDialogCmd(const eC_String &rkFileName, ObjectHandle_t eParent=NO_HANDLE, ObjectHandle_t eDelete=NO_HANDLE)
Constructs a LoadDialogCmd.
ObjectHandle_t m_eParent
ID of the designated parent object of the new dialog.
Definition: GUILoadDialogCmd.h:72
This is the Guiliani base class all controls are derived from.
Definition: GUIObject.h:81