controlpanelui/src/cpplugins/personalizationplugin/src/cppersonalizationadvanceview.cpp
branchRCL_3
changeset 35 5f281e37a2f5
parent 34 90fe62538f66
child 46 ed95320285d0
--- a/controlpanelui/src/cpplugins/personalizationplugin/src/cppersonalizationadvanceview.cpp	Tue Aug 31 15:15:28 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,64 +0,0 @@
-/*
- * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
- * All rights reserved.
- * This component and the accompanying materials are made available
- * under the terms of "Eclipse Public License v1.0""
- * which accompanies this distribution, and is available
- * at the URL "http://www.eclipse.org/legal/epl-v10.html".
- *
- * Initial Contributors:
- * Nokia Corporation - initial contribution.
- *
- * Contributors:
- *
- * Description:  
- *
- */
-#include "cppersonalizationadvanceview.h"
-#include <cpcategorysettingformitemdata.h>
-#include <cpitemdatahelper.h>
-/*#include <hbdataformmodel.h>
-#include <hbdataform.h>
-#include <hblineedit.h>
-#include <hbdataformmodelitem.h>
-*/
-#include "cpprofilesettingform.h"
-#include "cpprofilenameeditdialog.h"
-
-#include <cppluginutility.h>
-#include <hbaction.h>
-#include <hbmenu.h>
-CpPersonalizationAdvanceView::CpPersonalizationAdvanceView(QGraphicsItem *parent /*=0*/):
-    CpBaseSettingView(0,parent)
-{
-    // 1.init the dataform for advance settings here
-    // 2.please modify the cpprofilesettingform.h/ cpp according to current ui spec
-    // 3.NOTICE! you can get controlpanel's text map from the controlpanel ui wiki, use current text id for strings
-    // 4.use cppersonalizationentryitemdata class to create ringtone, message tone...
-    // 5.ignore cpmastervolumeslider class, please use default slideritem to create keyandscreen slider, new property added in slider, if any question, please contact me.
-    // 6. don't forget the cfg file in data folder, you can try to add the profile activator plugin and ringtone plugin here
-    HbDataForm *form = new CpProfileSettingForm();
-    setWidget( form );
-    CpPluginUtility::addCpItemPrototype(form);
-    initMenu();
-}
-CpPersonalizationAdvanceView::~CpPersonalizationAdvanceView()
-{
-    
-}
-
-void CpPersonalizationAdvanceView::initMenu()
-{
-    HbAction *editNameAction = new HbAction( this );
-    editNameAction->setObjectName( "editNameAction" );
-    editNameAction->setText( hbTrId( "txt_cp_list_edit_name" ) );
-    
-    menu()->addAction( editNameAction );
-    connect( editNameAction, SIGNAL( triggered() ), this, SLOT( on_editNameAction_triggered() ));
-}
-
-void CpPersonalizationAdvanceView::on_editNameAction_triggered()
-{
-    QString string = QString( "general" );
-    bool ret = CpProfileNameEditDialog::launchProfileNameEditDialog( string );
-}