Logo Search packages:      
Sourcecode: karchiver version File versions  Download package

void KarchiveurApp::initActions (  )  [protected]

Initialize the actions and the GUI

Definition at line 1607 of file karchiveur.cpp.

References slotAddFiles(), slotCopy(), slotCryptArchive(), slotCutt(), slotDiskCutUncut(), slotDisplayArchiveInfos(), slotDisplayFile(), slotDisplayFileProprieties(), slotDisplaySelectedFiles(), slotExtractArchive(), slotFileClose(), slotFileNew(), slotFileNewWindow(), slotFileOpen(), slotFileOpenRecent(), slotFilePrint(), slotFileQuit(), slotFileSaveAs(), slotFileSearch(), slotMakeSfxArchive(), slotPaste(), slotRedo(), slotRemoveToTrashSelectedFiles(), slotRemoveWithUndoSelectedFiles(), slotScanArchive(), slotSelectAll(), slotSetOptions(), slotTestArchive(), slotUndo(), slotUnselectAll(), slotUseFind(), slotViewButineur(), slotViewStatusBar(), slotViewToolBar(), and slotWizard().

Referenced by KarchiveurApp().

                               {
  fileNewWindow=new KAction( i18n("New &Window"), kapp->miniIcon(), 0, this, SLOT(slotFileNewWindow()), actionCollection(),"file_new_window");
  fileNewArchive=new KAction( i18n("Create &new Archive"), "karchiver", 0, this, SLOT(slotFileNew()), actionCollection(),"file_new_archive" );
  fileOpenArchive=new KAction( i18n("&Open..."), "fileopen", 0, this, SLOT(slotFileOpen()), actionCollection(),"file_open_archive" );
  fileSearchArchive=new KAction( i18n("&Search for Archives"), "find", 0, this, SLOT(slotFileSearch()), actionCollection(),"file_search_archive" );
  fileCryptArchive=new KAction( i18n("&Encrypt Current Archive"), "encrypted", 0, this, SLOT(slotCryptArchive()), actionCollection(), "file_crypt_archive" );
  fileMailArchive=new KAction( i18n("&Mail To..."), "mail_generic", 0, this, SLOT(slotMailArchive()), actionCollection(), "file_mail_archive" );
  fileOpenRecent = KStdAction::openRecent( this, SLOT(slotFileOpenRecent(const KURL&)), actionCollection(), "file_open_recent_kar");
  fileConvertArchive=new KAction( i18n("Convert &As"), "filesave", 0, this, SLOT(slotFileSaveAs()), actionCollection(),"file_convert_archive" );
  fileMakeSfxArchive=new KAction( i18n("Make exe archive"), "exec", 0, this, SLOT(slotMakeSfxArchive()), actionCollection(),"file_sfx_archive" );
  fileInfosArchive=new KAction( i18n("&View Archive Info"), "documentinfo", 0, this, SLOT( slotDisplayArchiveInfos()), actionCollection(),"file_infos_archive" );
  filePrint = KStdAction::print( this, SLOT(slotFilePrint()), actionCollection(), "file_print_kar");
  fileCloseArchive=new KAction( i18n("C&lose Window"), "fileclose", 0, this, SLOT( slotFileClose()), actionCollection(),"file_close_archive" );
  fileQuit = KStdAction::quit(this, SLOT(slotFileQuit()), actionCollection());

  ///////////////////////////////////////////////////////////////////
  // menuBar entry archiveMenu
  archiveExtract=new CAnimatedAction(i18n("E&xtract To"), "extract", 0, this, SLOT( slotExtractArchive()), actionCollection(),"archive_extract" );
  archiveAdd=new KAction(i18n("&Add Files"), "compress", 0, this, SLOT( slotAddFiles()), actionCollection(),"archive_add" );
  archiveView=new KAction(i18n("&View File"), "exec", 0, this, SLOT( slotDisplayFile()), actionCollection(),"archive_view" );
  archiveViewSelection=new KAction(i18n("View &Selected"), "view", 0, this, SLOT( slotDisplaySelectedFiles()), actionCollection(),"archive_view_selection" );
  archiveDeleteSelection=new KAction(i18n("&Delete Files"), "editcut", 0, this, SLOT( slotRemoveWithUndoSelectedFiles()), actionCollection(),"archive_delete_selection" );
  archiveSetPassword=new KAction(i18n("Set &Password"), "encrypted", 0, this, SLOT( slotSetPassword()), actionCollection(),"archive_password" );
  archiveDeleteToTrashSelection=new KAction(i18n("&Move to Trash"), "edittrash", 0, this, SLOT( slotRemoveToTrashSelectedFiles()), actionCollection(),"archive_delete_to_trash_selection" );
  archiveWizard=new KAction(i18n("Launch the &Wizard"), "wizard", 0, this, SLOT( slotWizard()), actionCollection(),"archive_wizard" );
  archiveProprieties=new KAction(i18n("&Properties"), 0, this, SLOT( slotDisplayFileProprieties()), actionCollection(),"archive_proprieties" );
  archiveScan=new KAction( i18n("&Scan for viruses"), "find", 0, this, SLOT( slotScanArchive()), actionCollection(),"archive_scan" );
  archiveTest=new KAction(i18n("&Test and repair Archive"), "documentinfo", 0, this, SLOT( slotTestArchive()), actionCollection(),"archive_test" );

  ///////////////////////////////////////////////////////////////////
  // menuBar entry editMenu
  editUndo=KStdAction::undo( this, SLOT( slotUndo()), actionCollection(),"edit_undo_kar" );
  editRedo=KStdAction::redo( this, SLOT( slotRedo()), actionCollection(),"edit_redo_kar" );
  editCut=KStdAction::cut( this, SLOT( slotCutt()), actionCollection(),"edit_cut_kar" );
  editCopy=KStdAction::copy( this, SLOT( slotCopy()), actionCollection(),"edit_copy_kar" );
  editPaste=KStdAction::paste( this, SLOT( slotPaste()), actionCollection(),"edit_paste_kar" );
  editSelectAll=KStdAction::selectAll( this, SLOT( slotSelectAll()), actionCollection(),"edit_select_all_kar" );
  editUnselectAll=new KAction(i18n("Select &None"), 0, this, SLOT( slotUnselectAll()), actionCollection(),"edit_unselect_all" );
  editFind=new KAction(i18n("&Find..."), "find", 0, this, SLOT( slotUseFind()), actionCollection(),"edit_find_kar" );

  ///////////////////////////////////////////////////////////////////
  // menuBar entry diskMenu
      diskSplit=new KAction(i18n("&Split/Unsplit"), 0, this, SLOT(slotDiskCutUncut()), actionCollection(), "disk_split");

  ///////////////////////////////////////////////////////////////////
  // menuBar entry viewMenu
  viewToolbar=new KToggleAction(i18n("&Toolbar"), 0, this, SLOT(slotViewToolBar()), actionCollection(), "view_toolbar" );
  viewStatusbar=new KToggleAction(i18n("&Statusbar"), 0, this, SLOT(slotViewStatusBar()), actionCollection(), "view_statusbar" );
  viewArchiveBrowser=new KToggleAction(i18n("&File Browser"), 0, this, SLOT(slotViewButineur()), actionCollection(), "view_archive_browser" );
  KStdAction::configureToolbars(this, SLOT(slotEditToolbars()), actionCollection(), "view_edit_toolbar" );
  viewUpdate=new KAction(i18n("Check for &Updates"), kapp->miniIcon(), 0, this, SLOT(slotCheckUpdate()), actionCollection(), "view_update" );
  viewPreferences=new KAction(i18n("&Configure KArchiver"), "configure", 0, this, SLOT(slotSetOptions()), actionCollection(), "view_preferences" );

  fileNewWindow->setToolTip(i18n("Open a new application window"));
  fileNewArchive->setToolTip(i18n("Create a new archive"));
  fileOpenArchive->setToolTip(i18n("Open an archive"));
  fileSearchArchive->setToolTip(i18n("Search for an existing archive"));
  fileConvertArchive->setToolTip(i18n("Convert the current archive format to..."));
  fileMakeSfxArchive->setToolTip(i18n("Make a multi-platform self-extractible archive"));
  archiveDeleteSelection->setToolTip(i18n("Delete the selected files"));
  archiveSetPassword->setToolTip(i18n("Set a password for this archive"));
  archiveExtract->setToolTip(i18n("Extract to..."));
  archiveAdd->setToolTip(i18n("Add files to this archive"));
  archiveView->setToolTip(i18n("View the current file"));
  archiveViewSelection->setToolTip(i18n("View all selected files"));
  fileInfosArchive->setToolTip(i18n("Display info about the current archive"));
  archiveWizard->setToolTip(i18n("Launch a wizard to configure & compile this archive..."));
  diskSplit->setToolTip(i18n("Split archive into 1.4Mb blocks"));
  viewArchiveBrowser->setToolTip(i18n("Enable / disable the file browser"));
  viewPreferences->setToolTip(i18n("Modify the options of KArchiver"));
  editCut->setToolTip(i18n("Move the files that were copied to the clipboard"));
  editCopy->setToolTip(i18n("Extract selected files and copy them to the clipboard"));
  editPaste->setToolTip(i18n("Add the files that were copied to the clipboard"));
  editFind->setToolTip(i18n("Find a filename in this archive"));
  editUndo->setToolTip(i18n("Undo the last operation"));
  editRedo->setToolTip(i18n("Redo the last operation"));

  createGUI();
}


Generated by  Doxygen 1.6.0   Back to index