# R Commander Menu Definitions

# last modified 4 Sept 2005 by J. Fox

#   type    menu/item      operation/parent  label                                          command/menu                activation  install?

    menu    fileMenu        topMenu         ""                                              ""                          ""          ""
    item    fileMenu        command         "Open script file..."                           loadLog                     ""          ""
    item    fileMenu        command         "Save script..."                                saveLog                     ""          ""
    item    fileMenu        command         "Save script as..."                             saveLogAs                   ""          ""
    item    fileMenu        command         "Save output..."                                saveOutput                  ""          ""
    item    fileMenu        command         "Save output as..."                             saveOutputAs                ""          ""
    item    fileMenu        command         "Save R workspace..."                           saveWorkspace               ""          ""
    item    fileMenu        command         "Save R workspace as..."                        saveWorkspaceAs             ""          ""
    menu    exitMenu        fileMenu        ""                                              ""                          ""          ""
    item    exitMenu        command         "From Commander"                                closeCommander              ""          ""
    item    exitMenu        command         "From Commander and R"                          closeCommanderAndR          ""          ""
    item    fileMenu        cascade         "Exit"                                          exitMenu                    ""          ""
    item    topMenu         cascade         "File"                                          fileMenu                    ""          ""
    menu    editMenu        topMenu         ""                                              ""                          ""          ""
    item    editMenu        command         "Clear window"                                  onClear                     ""          ""
    item    editMenu        command         "Cut"                                           onCut                       ""          ""
    item    editMenu        command         "Copy"                                          onCopy                      ""          ""
    item    editMenu        command         "Paste"                                         onPaste                     ""          ""
    item    editMenu        command         "Delete"                                        onDelete                    ""          ""
    item    editMenu        command         "Find..."                                       onFind                      ""          ""
    item    editMenu        command         "Select all"                                    onSelectAll                 ""          ""
    item    topMenu         cascade         "Edit"                                          editMenu                    ""          ""
    menu    dataMenu        topMenu         ""                                              ""                          ""          ""
    item    dataMenu        command         "New data set..."                               newDataSet                  ""          ""
    menu    importMenu      dataMenu        ""                                              ""                          ""          ""
    item    importMenu      command         "from text file..."                             readDataSet                 ""          ""
    item    importMenu      command         "from SPSS data set..."                         importSPSS                  ""          "packageAvailable('foreign')"
    item    importMenu      command         "from Minitab data set..."                      importMinitab               ""          "packageAvailable('foreign')"
    item    importMenu      command         "from STATA data set..."                        importSTATA                 ""          "packageAvailable('foreign')"
    item    importMenu      command         "from Tosmana XML file..."                      importTosmana               ""          "packageAvailable('QCA') && packageAvailable('XML')"
    item    dataMenu        cascade         "Import data"                                   importMenu                  ""          ""
    menu    packagesMenu    dataMenu        ""                                              ""                          ""          ""
    item    packagesMenu    command         "List data sets in packages"                    listDataSetsInPackages      ""          ""
    item    packagesMenu    command         "Read data set from an attached package..."     readDataFromPackage         ""          ""
    item    dataMenu        cascade         "Data in packages"                              packagesMenu                ""          ""
    menu    activeMenu      dataMenu        ""                                              ""                          ""          ""
    item    activeMenu      command         "Select active data set..."                     selectActiveDataSet         "dataSetsP()" ""
    item    activeMenu      command         "Help on active data set (if available)"        helpDataSet                 "activeDataSetP()" ""
    item    activeMenu      command         "Variables in active data set"                  variablesDataSet            "activeDataSetP()" ""
    item    activeMenu      command         "Set case names..."                             setCaseNames                "activeDataSetP()" ""
    item    activeMenu      command         "Subset active data set..."                     subsetDataSet               "activeDataSetP()" ""
    item    activeMenu      command         "Remove cases with missing data..."             filterNA                    "activeDataSetP()" ""
    item    activeMenu      command         "Export active data set..."                     exportDataSet               "activeDataSetP()" ""
    item    dataMenu        cascade         "Active data set"                               activeMenu                  ""          ""
    menu    variablesMenu   dataMenu        ""                                              ""                          ""          ""
    item    variablesMenu   command         "Recode variable..."                            Recode                      "activeDataSetP()" "packageAvailable('car')"
    item    variablesMenu   command         "Compute new variable..."                       Compute                     "activeDataSetP()" ""
    item    variablesMenu   command         "Convert numeric variable to factor..."         numericToFactor             "numericP()" ""
    item    variablesMenu   command         "Reorder factor levels..."                      reorderFactor               "factorsP()" ""
    item    variablesMenu   command         "Rename variables..."                           renameVariables             "activeDataSetP()" ""
    item    variablesMenu   command         "Delete variables from data set ..."            deleteVariable              "activeDataSetP()" ""
    item    dataMenu        cascade         "Manage variables in active data set"           variablesMenu               ""          ""
    item    topMenu         cascade         "Data"                                          dataMenu                    ""          ""
    menu    statisticsMenu  topMenu         ""                                              ""                          ""          ""
    menu    summariesMenu   statisticsMenu  ""                                              ""                          ""          ""
    item    summariesMenu   command         "Active data set"                               summarizeDataSet            "activeDataSetP()" ""
    item    summariesMenu   command         "Numerical summaries..."                        numericalSummaries          "numericP()" ""
    item    summariesMenu   command         "Frequency distribution..."                     frequencyDistribution       "numericP()" ""
    item    summariesMenu   command         "Table of statistics..."                        statisticsTable             "numericP()" ""
    item    summariesMenu   command         "Correlation matrix..."                         correlationMatrix           "numericP(2)" ""
    menu    tablesMenu      statisticsMenu  ""                                              ""                          ""          ""
    item    tablesMenu      command         "Two-way table..."                              twoWayTable                 "numericP(2)" "packageAvailable('abind')"
    item    tablesMenu      command         "Multi-way table..."                            multiWayTable               "numericP(2)" "packageAvailable('abind')"
    item    topMenu         cascade         "Statistics"                                    statisticsMenu              ""          ""
    item    statisticsMenu  cascade         "Summaries"                                     summariesMenu               ""          ""
    item    statisticsMenu  cascade         "Contingency tables"                            tablesMenu                  ""          ""
    menu    graphsMenu      topMenu         ""                                              ""                          ""          ""
    item    graphsMenu      command         "Histogram..."                                  Histogram                   "numericP()" ""
    item    graphsMenu      command         "Scatterplot..."                                scatterPlot                 "numericP(2)" "packageAvailable('car')"
    item    graphsMenu      command         "Scatterplot matrix..."                         scatterPlotMatrix           "numericP(3)" "packageAvailable('car')"
    item    graphsMenu      command         "Bar graph..."                                  barGraph                    "numericP()" ""
    item    graphsMenu      command         "Pie chart..."                                  pieChart                    "numericP()" ""
    menu    saveGraphsMenu  graphsMenu      ""                                              ""                          ""          ""
    item    saveGraphsMenu  command         "as bitmap..."                                  saveBitmap                  "dev.cur() != 1" ""
    item    saveGraphsMenu  command         "as PDF/Postscript/EPS..."                      savePDF                     "dev.cur() != 1" ""
    item    graphsMenu      cascade         "Save graph to file"                            saveGraphsMenu              ""          ""
    item    topMenu         cascade         "Graphs"                                        graphsMenu                  ""          ""
    menu    analyzeMenu     topMenu         ""                                              ""                          ""          ""
    item    analyzeMenu     command         "Truth table"                                   truth.table                 "activeDataSetP()" "packageAvailable('QCA')"
    item    analyzeMenu     command         "Quine-McCluskey"                               q.mc.c                      "activeDataSetP()" "packageAvailable('QCA')"
    item    analyzeMenu     command         "Factorize solution"                            Factorize                   ""          "packageAvailable('QCA')"
    item    topMenu         cascade         "Analyze"                                       analyzeMenu                 ""          ""
    menu    toolsMenu       topMenu         ""                                              ""                          ""          ""
    item    toolsMenu       command         "Load package(s)..."                            loadPackages                ""          ""
    item    toolsMenu       command         "Options..."                                    Options                     ""          ""
    item    topMenu         cascade         "Tools"                                         toolsMenu                   ""          ""
    menu    helpMenu        topMenu         ""                                              ""                          ""          ""
    item    helpMenu        command         "R Commander help"                              helpCommander               ""          ""
    item    helpMenu        command         "QCAGUI user manual"                            browseManual                ""          ""
    item    helpMenu        command         "Help on active data set (if available)"        helpDataSet                 "activeDataSetP()" ""
    item    helpMenu        command         "About QCAGUI"                                  helpAboutCommander          ""          ""
    item    topMenu         cascade         "Help"                                          helpMenu                    ""          ""
