equal
deleted
inserted
replaced
20 |
20 |
21 //User Includes |
21 //User Includes |
22 #include "glxview.h" |
22 #include "glxview.h" |
23 #include "glxviewids.h" |
23 #include "glxviewids.h" |
24 #include "glxgridview.h" |
24 #include "glxgridview.h" |
|
25 #include "glxslideshowsettingsview.h" |
25 #include "glxlistview.h" |
26 #include "glxlistview.h" |
26 #include "glxdetailsview.h" |
27 #include "glxdetailsview.h" |
27 #include "glxviewsfactory.h" |
28 #include "glxviewsfactory.h" |
28 #include "glxviewdocloader.h" |
29 #include "glxviewdocloader.h" |
29 #include "glxslideshowview.h" |
30 #include "glxslideshowview.h" |
39 case GLX_LISTVIEW_ID : |
40 case GLX_LISTVIEW_ID : |
40 return new GlxListView ( window ); |
41 return new GlxListView ( window ); |
41 |
42 |
42 case GLX_FULLSCREENVIEW_ID : |
43 case GLX_FULLSCREENVIEW_ID : |
43 { |
44 { |
44 GlxFullScreenView *fullscreenView; |
45 GlxFullScreenView *fullscreenView = NULL; |
45 bool isloaded; |
46 bool isloaded; |
46 |
47 |
47 GlxFullscreenViewDocLoader *docLoader = new GlxFullscreenViewDocLoader(); |
48 GlxFullscreenViewDocLoader *docLoader = new GlxFullscreenViewDocLoader(); |
48 // Load the docml file. |
49 // Load the docml file. |
49 docLoader->load(GLXFULLSCREENDOCMLPATH, &isloaded); |
50 docLoader->load(GLXFULLSCREENDOCMLPATH, &isloaded); |
59 case GLX_DETAILSVIEW_ID : |
60 case GLX_DETAILSVIEW_ID : |
60 return new GlxDetailsView( window ); |
61 return new GlxDetailsView( window ); |
61 |
62 |
62 case GLX_SLIDESHOWVIEW_ID : |
63 case GLX_SLIDESHOWVIEW_ID : |
63 { |
64 { |
64 GlxSlideShowView *slideShowView; |
65 GlxSlideShowView *slideShowView = NULL; |
65 bool isloaded; |
66 bool isloaded; |
66 |
67 |
67 GlxSlideShowViewDocLoader *docLoader = new GlxSlideShowViewDocLoader(); |
68 GlxSlideShowViewDocLoader *docLoader = new GlxSlideShowViewDocLoader(); |
68 // Load the docml file. |
69 // Load the docml file. |
69 docLoader->load(GLXSLIDESHOW_PATH, &isloaded); |
70 docLoader->load(GLXSLIDESHOW_PATH, &isloaded); |
73 slideShowView = static_cast<GlxSlideShowView *> (docLoader->findWidget(GLXSLIDESHOW_VIEW)); |
74 slideShowView = static_cast<GlxSlideShowView *> (docLoader->findWidget(GLXSLIDESHOW_VIEW)); |
74 } |
75 } |
75 return slideShowView; |
76 return slideShowView; |
76 } |
77 } |
77 |
78 |
|
79 case GLX_SLIDESHOWSETTINGSVIEW_ID : |
|
80 return new GlxSlideShowSettingsView ( window ); |
78 default : |
81 default : |
79 return 0; |
82 return 0; |
80 } |
83 } |
81 } |
84 } |