filemanager/src/filemanager/src/fmdriverview.cpp
changeset 16 ada7962b4308
parent 14 1957042d8c7e
child 18 edd66bde63a4
child 25 b7bfdea70ca2
child 37 15bc28c9dd51
equal deleted inserted replaced
14:1957042d8c7e 16:ada7962b4308
    33 FmDriverView::FmDriverView() : FmViewBase( EDriverView )
    33 FmDriverView::FmDriverView() : FmViewBase( EDriverView )
    34 {
    34 {
    35     initMenu(); 
    35     initMenu(); 
    36     initToolBar();
    36     initToolBar();
    37     initDiskListWidget();
    37     initDiskListWidget();
       
    38 
    38     QMetaObject::connectSlotsByName( this );
    39     QMetaObject::connectSlotsByName( this );
    39 }
    40 }
    40 
    41 
    41 FmDriverView::~FmDriverView()
    42 FmDriverView::~FmDriverView()
    42 {
    43 {
    48     HbAction *action = 0;
    49     HbAction *action = 0;
    49 
    50 
    50 #ifdef FM_CHANGE_ORIENT_ENABLE
    51 #ifdef FM_CHANGE_ORIENT_ENABLE
    51     action = new HbAction( this );
    52     action = new HbAction( this );
    52     action->setObjectName( "rotateAction" );
    53     action->setObjectName( "rotateAction" );
    53     action->setText( tr( "Change orientation" ) );
    54     action->setText( hbTrId( "Change orientation" ) );
    54     menu()->addAction( action );
    55     menu()->addAction( action );
    55 #endif
    56 #endif
    56 
    57 
    57     action = new HbAction( this );
    58     action = new HbAction( this );
    58     action->setObjectName( "findAction" );
    59     action->setObjectName( "findAction" );
    59     action->setText( tr( "Find" ) );
    60     action->setText( hbTrId( "txt_fmgr_opt_find" ) );
    60     menu()->addAction( action );
    61     menu()->addAction( action );
    61 
    62 
    62     action = new HbAction( this );
    63     action = new HbAction( this );
    63     action->setObjectName( "backupAction" );
    64     action->setObjectName( "backupAction" );
    64     action->setText( tr( "Backup" ) );
    65     action->setText( hbTrId( "txt_fmgr_opt_backup" ) );
    65     menu()->addAction( action );
    66     menu()->addAction( action );
    66 
    67 
    67     action = new HbAction( this );
    68     action = new HbAction( this );
    68     action->setObjectName( "restoreAction" );
    69     action->setObjectName( "restoreAction" );
    69     action->setText( tr( "Restore" ) );
    70     action->setText( hbTrId( "txt_fmgr_opt_restore" )  );
    70     menu()->addAction( action );
    71     menu()->addAction( action );
    71    
    72    
    72     action = new HbAction( this );
    73     action = new HbAction( this );
    73     action->setObjectName( "exitAction" );
    74     action->setObjectName( "exitAction" );
    74     action->setText( tr( "Exit" ) );
    75     action->setText( hbTrId( "Exit" ) );
    75     menu()->addAction( action );
    76     menu()->addAction( action );
    76 
    77 
    77 }
    78 }
    78 
    79 
    79 void FmDriverView::initDiskListWidget()
    80 void FmDriverView::initDiskListWidget()