19 |
19 |
20 #include <QString> |
20 #include <QString> |
21 |
21 |
22 GlxTransitionEffectSetting::GlxTransitionEffectSetting(GlxEffect effect): mEffect(effect), mTransitionLater(false), mItem(0) |
22 GlxTransitionEffectSetting::GlxTransitionEffectSetting(GlxEffect effect): mEffect(effect), mTransitionLater(false), mItem(0) |
23 { |
23 { |
24 qDebug("GlxTransitionEffectSetting::GlxTransitionEffectSetting() effect id %d ", effect); |
24 qDebug( "GlxTransitionEffectSetting::GlxTransitionEffectSetting() effect id %d ", effect ); |
25 mEffectFileList.clear(); |
25 mEffectFileList.clear(); |
26 mItemType.clear(); |
26 mItemType.clear(); |
27 mEventType.clear(); |
27 mEventType.clear(); |
28 init(); |
28 init(); |
29 } |
29 } |
30 |
30 |
31 void GlxTransitionEffectSetting::init() |
31 void GlxTransitionEffectSetting::init() |
32 { |
32 { |
33 qDebug("GlxTransitionEffectSetting::init() effect id %d ", mEffect); |
33 qDebug( "GlxTransitionEffectSetting::init() effect id %d ", mEffect ); |
34 |
34 |
35 switch( mEffect ) { |
35 switch( mEffect ) { |
36 case GRID_TO_FULLSCREEN : |
36 case GRID_TO_FULLSCREEN : |
37 mEffectFileList.append( QString(":/data/gridtofullscreenhide.fxml")); |
37 mEffectFileList.append( QString( ":/data/gridtofullscreenhide.fxml" ) ); |
38 mItemType.append( QString("HbGridViewItem") ); |
38 mItemType.append( QString( "HbGridViewItem" ) ); |
39 mEventType.append(QString("click1") ); |
39 mEventType.append(QString( "gridtofshide" ) ); |
40 |
40 |
41 mEffectFileList.append( QString(":/data/gridtofullscreenshow.fxml")); |
41 mEffectFileList.append( QString( ":/data/gridtofullscreenshow.fxml" ) ); |
42 mItemType.append( QString("HbView") ); |
42 mItemType.append( QString( "HbView" ) ); |
43 mEventType.append(QString("click2") ); |
43 mEventType.append(QString( "gridtofsshow" ) ); |
44 break; |
44 break; |
45 |
45 |
46 case FULLSCREEN_TO_GRID : |
46 case FULLSCREEN_TO_GRID : |
47 mEffectFileList.append( QString(":/data/fullscreentogrid.fxml")); |
47 mEffectFileList.append( QString( ":/data/fullscreentogrid.fxml" ) ); |
48 mItemType.append( QString("HbGridView") ); |
48 mItemType.append( QString( "HbGridView" ) ); |
49 mEventType.append(QString("click3") ); |
49 mEventType.append(QString( "fstogrid" ) ); |
50 break; |
50 break; |
|
51 |
|
52 case FULLSCREEN_TO_GRID_PORTRAIT : |
|
53 mEffectFileList.append( QString( ":/data/fullscreentogridportrait.fxml" ) ); |
|
54 mItemType.append( QString( "HbGridView" ) ); |
|
55 mEventType.append( QString( "fstogridpt" ) ); |
|
56 break; |
51 |
57 |
52 case GRID_TO_ALBUMLIST: |
58 case GRID_TO_ALBUMLIST: |
53 mEffectFileList.append( QString( "view_hide_normal" ) ); |
59 mEffectFileList.append( QString( "view_hide_normal" ) ); |
54 mItemType.append( QString( "HbView" ) ); |
60 mItemType.append( QString( "HbView" ) ); |
55 mEventType.append(QString( "click4" ) ); |
61 mEventType.append( QString( "gridtolisthide" ) ); |
56 |
62 |
57 mEffectFileList.append( QString( "view_show_normal" ) ); |
63 mEffectFileList.append( QString( "view_show_normal" ) ); |
58 mItemType.append( QString( "HbListView" ) ); |
64 mItemType.append( QString( "HbListView" ) ); |
59 mEventType.append( QString( "click5" ) ); |
65 mEventType.append( QString( "gridtolistshow" ) ); |
60 break; |
66 break; |
61 |
67 |
62 case ALBUMLIST_TO_GRID: |
68 case ALBUMLIST_TO_GRID: |
63 mEffectFileList.append( QString( "view_hide_back" ) ); |
69 mEffectFileList.append( QString( "view_hide_back" ) ); |
64 mItemType.append( QString( "HbListView" ) ); |
70 mItemType.append( QString( "HbListView" ) ); |
65 mEventType.append( QString( "click6" ) ); |
71 mEventType.append( QString( "listtogridhide" ) ); |
66 |
72 |
67 mEffectFileList.append( QString( "view_show_back" ) ); |
73 mEffectFileList.append( QString( "view_show_back" ) ); |
68 mItemType.append( QString( "HbView" ) ); |
74 mItemType.append( QString( "HbView" ) ); |
69 mEventType.append( QString( "click7" ) ); |
75 mEventType.append( QString( "listtogridshow" ) ); |
70 break; |
76 break; |
71 |
77 |
72 case FULLSCREEN_TO_DETAIL : |
78 case FULLSCREEN_TO_DETAIL : |
73 mEffectFileList.append( QString( "view_hide_normal_alt" ) ); |
79 mEffectFileList.append( QString( "view_hide_normal_alt" ) ); |
74 mItemType.append( QString( "HbView" ) ); |
80 mItemType.append( QString( "HbView" ) ); |
75 mEventType.append( QString( "click8" ) ); |
81 mEventType.append( QString( "fstodetailhide" ) ); |
76 |
82 |
77 mEffectFileList.append( QString( "view_show_normal_alt" ) ); |
83 mEffectFileList.append( QString( "view_show_normal_alt" ) ); |
78 mItemType.append( QString( "HbView" ) ); |
84 mItemType.append( QString( "HbView" ) ); |
79 mEventType.append(QString( "click9" ) ); |
85 mEventType.append(QString( "fstodetailshow" ) ); |
80 mTransitionLater = true; |
86 mTransitionLater = true; |
81 break; |
87 break; |
82 |
88 |
83 case DETAIL_TO_FULLSCREEN : |
89 case DETAIL_TO_FULLSCREEN : |
84 mEffectFileList.append( "view_hide_back_alt" ); |
90 mEffectFileList.append( "view_hide_back_alt" ); |
85 mItemType.append( QString( "HbView" ) ); |
91 mItemType.append( QString( "HbView" ) ); |
86 mEventType.append( QString( "click10" ) ); |
92 mEventType.append( QString( "detailtofshide" ) ); |
87 |
93 |
88 mEffectFileList.append( "view_show_back_alt" ); |
94 mEffectFileList.append( "view_show_back_alt" ); |
89 mItemType.append( QString( "HbView" ) ); |
95 mItemType.append( QString( "HbView" ) ); |
90 mEventType.append( QString( "click11" ) ); |
96 mEventType.append( QString( "detailtofsshow" ) ); |
91 mTransitionLater = true; |
97 mTransitionLater = true; |
92 break; |
98 break; |
93 |
99 |
94 default : |
100 default : |
95 break; |
101 break; |
96 } |
102 } |
97 } |
103 } |
98 |
104 |
99 GlxTransitionEffectSetting::~GlxTransitionEffectSetting() |
105 GlxTransitionEffectSetting::~GlxTransitionEffectSetting() |
100 { |
106 { |
101 qDebug("GlxTransitionEffectSetting::~GlxTransitionEffectSetting() effect id %d ", mEffect); |
107 qDebug( "GlxTransitionEffectSetting::~GlxTransitionEffectSetting() effect id %d ", mEffect ); |
102 mEffectFileList.clear(); |
108 mEffectFileList.clear(); |
103 mItemType.clear(); |
109 mItemType.clear(); |
104 mEventType.clear(); |
110 mEventType.clear(); |
105 } |
111 } |
106 |
112 |