mpviewplugins/mpsettingsviewplugin/src/mpsettingsview.cpp
changeset 29 8192e5b5c935
parent 25 3ec52facab4d
child 37 eb79a7c355bf
equal deleted inserted replaced
25:3ec52facab4d 29:8192e5b5c935
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 #include <hbmainwindow.h>
    18 #include <hbmainwindow.h>
    19 #include <hbaction.h>
    19 #include <hbaction.h>
    20 #include <mpxaudioeffectproperties.h>
       
    21 #include <hbapplication.h>
    20 #include <hbapplication.h>
    22 #include <QTranslator>
    21 #include <QTranslator>
    23 #include <QLocale>
    22 #include <QLocale>
    24 
    23 
    25 #include "mpsettingsview.h"
    24 #include "mpsettingsview.h"
    44 /*!
    43 /*!
    45  Constructs the settings view.
    44  Constructs the settings view.
    46  */
    45  */
    47 MpSettingsView::MpSettingsView()
    46 MpSettingsView::MpSettingsView()
    48     : mWindow(0),
    47     : mWindow(0),
    49       mNavigationBack(0),
    48       mSoftKeyBack(0),
    50       mAudioEffectsWidget(0)
    49       mAudioEffectsWidget(0)
    51 {
    50 {
    52     TX_LOG
    51     TX_LOG
    53 }
    52 }
    54 
    53 
    56  Destructs the settings view.
    55  Destructs the settings view.
    57  */
    56  */
    58 MpSettingsView::~MpSettingsView()
    57 MpSettingsView::~MpSettingsView()
    59 {
    58 {
    60     TX_ENTRY
    59     TX_ENTRY
    61     delete mNavigationBack;
    60     delete mSoftKeyBack;
    62     TX_EXIT
    61     TX_EXIT
    63 }
    62 }
    64 
    63 
    65 /*!
    64 /*!
    66  Initializes the settings view.
    65  Initializes the settings view.
    81         qApp->installTranslator( &translator );
    80         qApp->installTranslator( &translator );
    82 
    81 
    83     }
    82     }
    84 
    83 
    85     mWindow = mainWindow();
    84     mWindow = mainWindow();
    86     mNavigationBack = new HbAction(Hb::BackNaviAction, this);
    85     mSoftKeyBack = new HbAction(Hb::BackNaviAction, this);
    87     mAudioEffectsWidget = new MpSettingsAudioEffectsWidget(this);
    86     mAudioEffectsWidget = new MpSettingsAudioEffectsWidget(this);
    88     mAudioEffectsWidget->initialize();
    87     mAudioEffectsWidget->initialize();
    89     setWidget( mAudioEffectsWidget );
    88     setWidget( mAudioEffectsWidget );
    90 
    89 
    91     connect( mNavigationBack,
    90     connect( mSoftKeyBack,
    92                 SIGNAL(triggered()),
    91                 SIGNAL(triggered()),
    93                 this,
    92                 this,
    94                 SLOT(back()) );
    93                 SLOT(back()) );
    95 
    94 
    96     connect( mNavigationBack,
    95     connect( mSoftKeyBack,
    97                 SIGNAL(triggered()),
    96                 SIGNAL(triggered()),
    98                 mAudioEffectsWidget,
    97                 mAudioEffectsWidget,
    99                 SLOT(persistBalance()) );
    98                 SLOT(persistBalance()) );
   100     TX_EXIT
    99     TX_EXIT
   101 }
   100 }
   104  Activates the settings view.
   103  Activates the settings view.
   105  */
   104  */
   106 void MpSettingsView::activateView()
   105 void MpSettingsView::activateView()
   107 {
   106 {
   108     TX_ENTRY
   107     TX_ENTRY
   109     setNavigationAction( mNavigationBack );
   108     setNavigationAction( mSoftKeyBack );
   110     TX_EXIT
   109     TX_EXIT
   111 }
   110 }
   112 
   111 
   113 /*!
   112 /*!
   114  Deactivates the settings view.
   113  Deactivates the settings view.