fixes YUIComponent.cc(createUI):93 createUI() called before
authordmacvicar <dmacvicar@e0cc52ee-31ee-0310-8b87-e83c4596d67c>
Mon, 12 Nov 2007 15:36:39 +0000 (15:36 +0000)
committerdmacvicar <dmacvicar@e0cc52ee-31ee-0310-8b87-e83c4596d67c>
Mon, 12 Nov 2007 15:36:39 +0000 (15:36 +0000)
setServerOptions()

git-svn-id: http://svn.opensuse.org/svn/yast/branches/tmp/sh/mod-ui/web-wt@41980 e0cc52ee-31ee-0310-8b87-e83c4596d67c

src/Makefile.am
src/YWebApplication.cc [new file with mode: 0644]
src/YWebApplication.h [new file with mode: 0644]
src/YWebUI_core.cc

index 1fdcf84..e03555b 100644 (file)
@@ -29,7 +29,8 @@ libpy2web_la_SOURCES =                                \
        YWebUI_widgets.cc                       \
        YWebUI_builtins.cc                      \
        YWebWidgetFactory.cc                    \
-       YWebDialog.cc
+       YWebDialog.cc \
+  YWebApplication.cc
 
 
 #      YQPackageSelectorPlugin.cc              \
diff --git a/src/YWebApplication.cc b/src/YWebApplication.cc
new file mode 100644 (file)
index 0000000..233fbb5
--- /dev/null
@@ -0,0 +1,15 @@
+
+#include "YWebApplication.h"
+
+
+YWebApplication::YWebApplication()
+{
+
+}
+
+
+YWebApplication::~YWebApplication()
+{
+    
+}
+
diff --git a/src/YWebApplication.h b/src/YWebApplication.h
new file mode 100644 (file)
index 0000000..8807523
--- /dev/null
@@ -0,0 +1,27 @@
+
+#ifndef YWebApplication_h
+#define YWebApplication_h
+
+#include "YApplication.h"
+
+
+class YWebApplication: public YApplication
+{
+protected:
+
+    friend class YWebUI;
+    
+    /**
+     * Constructor.
+     *
+     * Use YUI::app() to get the singleton for this class.
+     **/
+    YWebApplication();
+
+    /**
+     * Destructor.
+     **/
+    virtual ~YWebApplication();
+};
+
+#endif // YWebApplication_h
index 8ed20a1..9eb0662 100644 (file)
 #define y2log_component "web-ui"
 #include <ycp/y2log.h>
 
-#include <yui/YApplication.h>
 #include <WApplication>
 
 #include "YWebUI.h"
+#include "YWebApplication.h"
 #include "YWebWidgetFactory.h"
 #include "YWebOptionalWidgetFactory.h"
 #include "YEvent.h"
@@ -103,10 +103,9 @@ YWebUI::createOptionalWidgetFactory()
 YApplication *
 YWebUI::createApplication()
 {
-//    YApplication * app = new YApplication();
-//    YUI_CHECK_NEW( app );
-// FIXME
-    return 0L;
+    YWebApplication * app = new YWebApplication();
+               YUI_CHECK_NEW( app );
+               return app;
 }