12 * Contributors: |
12 * Contributors: |
13 * |
13 * |
14 * Description: Menu Application Library state. |
14 * Description: Menu Application Library state. |
15 * |
15 * |
16 */ |
16 */ |
17 #include <hbmainwindow.h> |
17 |
18 #include <hbview.h> |
18 #include <HbAction> |
19 #include <hbaction.h> |
|
20 #include <HbToolBar> |
19 #include <HbToolBar> |
21 #include <HbIcon> |
|
22 #include <hbinstance.h> |
|
23 #include <hblistview.h> |
|
24 #include <hbsearchpanel.h> |
|
25 #include <HbToolBarExtension> |
20 #include <HbToolBarExtension> |
26 #include <HbStyleLoader> |
21 #include <HbStyleLoader> |
27 #include <hsmenueventtransition.h> |
|
28 |
|
29 |
22 |
30 #include "hstest_global.h" |
23 #include "hstest_global.h" |
31 #include "hsapplibrarystate.h" |
24 #include "hsapplibrarystate.h" |
32 #include "hsallappsstate.h" |
25 #include "hsallappsstate.h" |
33 #include "hsallcollectionsstate.h" |
26 #include "hsallcollectionsstate.h" |
34 #include "hscollectionstate.h" |
27 #include "hscollectionstate.h" |
35 #include "hsinstalledappsstate.h" |
28 #include "hsinstalledappsstate.h" |
36 #include "hsoperatorhandler.h" |
29 #include "hsoperatorhandler.h" |
37 #include "hsmenuview.h" |
30 #include "hsmenueventtransition.h" |
38 #include "hsmenumodetransition.h" |
31 #include "hsmenumodetransition.h" |
39 |
32 |
40 |
33 |
41 /*! |
34 /*! |
42 \class HsAppLibraryState |
35 \class HsAppLibraryState |
177 new HsMenuEventTransition(HsMenuEvent::OpenInstalledView, |
170 new HsMenuEventTransition(HsMenuEvent::OpenInstalledView, |
178 mAllAppsState, mInstalledAppsState); |
171 mAllAppsState, mInstalledAppsState); |
179 mAllAppsState->addTransition(allViewToInstalledTransition); |
172 mAllAppsState->addTransition(allViewToInstalledTransition); |
180 |
173 |
181 constructToolbar(); |
174 constructToolbar(); |
182 |
|
183 connect(mAllCollectionsState, SIGNAL(sortOrderChanged(HsSortAttribute)), |
|
184 mAllAppsState, SLOT(collectionsSortOrder(HsSortAttribute))); |
|
185 connect(mAllCollectionsState, SIGNAL(sortOrderChanged(HsSortAttribute)), |
|
186 mCollectionState, SLOT(collectionsSortOrder(HsSortAttribute))); |
|
187 |
175 |
188 connect(mAllAppsState, SIGNAL(entered()), |
176 connect(mAllAppsState, SIGNAL(entered()), |
189 this, SLOT(allAppsStateEntered())); |
177 this, SLOT(allAppsStateEntered())); |
190 |
178 |
191 connect(mAllAppsState, SIGNAL(toAppLibraryState()), |
179 connect(mAllAppsState, SIGNAL(toAppLibraryState()), |