equal
deleted
inserted
replaced
162 HbStyleLoader::registerFilePath(":/data/photos.css"); |
162 HbStyleLoader::registerFilePath(":/data/photos.css"); |
163 GlxModelParm modelParm(KGlxCollectionPluginAllImplementationUid, 0); |
163 GlxModelParm modelParm(KGlxCollectionPluginAllImplementationUid, 0); |
164 mModel = new GlxMediaModel(modelParm); |
164 mModel = new GlxMediaModel(modelParm); |
165 |
165 |
166 if ( this->orientation() == Qt::Horizontal ) { |
166 if ( this->orientation() == Qt::Horizontal ) { |
167 mModel->setData(QModelIndex(), (int)GlxContextLsFs, GlxContextRole ); |
167 mModel->setData(QModelIndex(), (int)GlxContextLsGrid, GlxContextRole ); |
168 } |
168 } |
169 else { |
169 else { |
170 mModel->setData(QModelIndex(), (int)GlxContextPtFs, GlxContextRole ); |
170 mModel->setData(QModelIndex(), (int)GlxContextPtGrid, GlxContextRole ); |
171 } |
171 } |
172 |
172 |
173 mView = GlxViewsFactory::createView(GLX_GRIDVIEW_ID, this); |
173 mView = GlxViewsFactory::createView(GLX_GRIDVIEW_ID, this); |
174 mView->activate(); |
174 mView->activate(); |
175 mView->setModel(mModel); |
175 mView->setModel(mModel); |
202 mFetcherContextMenu = NULL; |
202 mFetcherContextMenu = NULL; |
203 } |
203 } |
204 |
204 |
205 void GlxAiwServiceHandler::openFSView() |
205 void GlxAiwServiceHandler::openFSView() |
206 { |
206 { |
|
207 if ( this->orientation() == Qt::Horizontal ) { |
|
208 mModel->setData(QModelIndex(), (int)GlxContextLsFs, GlxContextRole ); |
|
209 } |
|
210 else { |
|
211 mModel->setData(QModelIndex(), (int)GlxContextPtFs, GlxContextRole ); |
|
212 } |
207 HbAction* selectAction = new HbAction(GLX_BUTTON_SELECT); |
213 HbAction* selectAction = new HbAction(GLX_BUTTON_SELECT); |
208 connect(selectAction, SIGNAL(triggered()), this, SLOT(handleFSSelect())); |
214 connect(selectAction, SIGNAL(triggered()), this, SLOT(handleFSSelect())); |
209 HbToolBar* toolBar = new HbToolBar(); |
215 HbToolBar* toolBar = new HbToolBar(); |
210 toolBar->setOrientation( Qt::Horizontal ); |
216 toolBar->setOrientation( Qt::Horizontal ); |
211 toolBar->setVisible(true); |
217 toolBar->setVisible(true); |
522 mAsyncRequest = !info.isSynchronous(); |
528 mAsyncRequest = !info.isSynchronous(); |
523 if (!mImageViewerInstance) |
529 if (!mImageViewerInstance) |
524 { |
530 { |
525 mImageViewerInstance = CGlxImageViewerManager::InstanceL(); |
531 mImageViewerInstance = CGlxImageViewerManager::InstanceL(); |
526 } |
532 } |
527 QString filepath(QDir::toNativeSeparators(file.at(0))); |
533 QString filepath(QDir::toNativeSeparators(file)); |
528 TPtrC16 str(reinterpret_cast<const TUint16*> (filepath.utf16())); |
534 TPtrC16 str(reinterpret_cast<const TUint16*> (filepath.utf16())); |
529 HBufC* uri = str.Alloc(); |
535 HBufC* uri = str.Alloc(); |
530 |
536 |
531 mImageViewerInstance->SetImageUriL(*uri); |
537 mImageViewerInstance->SetImageUriL(*uri); |
532 if (mAsyncRequest) |
538 if (mAsyncRequest) |