widget_factory.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef _WIDGET_FACTORY_H_
00023 #define _WIDGET_FACTORY_H_
00024
00025 #include <memory>
00026
00027 #include <dcl/dialogs.h>
00028 #include <dcl/plugin.h>
00029
00030 namespace dbp {
00031
00032 class application_int;
00033
00035
00040 class widget_factory: public disposable {
00041 public:
00042 typedef std::auto_ptr<application_int> gui_application_ptr;
00044 virtual gui_application_ptr create_application() = 0;
00045 typedef std::auto_ptr<message_box> message_box_ptr;
00047 virtual message_box_ptr create_message_box(
00048 const std::string &title, const std::string &message,
00049 message_type::message_type type = message_type::error,
00050 message_buttons::message_buttons buttons = message_buttons::ok) = 0;
00051 };
00052
00053 }
00054
00055 #endif