Ejemplo n.º 1
0
    def _create_toolbar(self):
        """ Simulate the creation of a toolbar. """

        toolbar = MainToolbarPanel(self, self._prefsIO)
        toolbar.AddButton(wx.ID_ADD,
                          ADD_FILE_ICON,
                          "Add files",
                          tooltip="Add files into the list.")
        toolbar.AddButton(ID_TB_ADDDIR,
                          ADD_DIR_ICON,
                          "Add dir",
                          tooltip="Add a folder into the list.")
        toolbar.AddButton(wx.ID_REMOVE,
                          REMOVE_ICON,
                          "Remove",
                          tooltip="Remove files of the list.")
        toolbar.AddButton(wx.ID_DELETE,
                          DELETE_ICON,
                          "Delete",
                          tooltip="Delete definitively files of the computer.")
        toolbar.AddButton(wx.ID_SAVEAS,
                          EXPORT_AS_ICON,
                          "Copy",
                          tooltip="Copy files.")
        toolbar.AddButton(wx.ID_SAVE,
                          EXPORT_ICON,
                          "Export",
                          tooltip="Export files.")
        return toolbar
Ejemplo n.º 2
0
    def _create_toolbar(self):

        self.toolbar = MainToolbarPanel(self, self.preferences)

        self.toolbar.AddButton(ID_ADD_LABEL,
                               FILTER_ADD_LABEL,
                               "+ Tag",
                               tooltip="Add a filter on the content of "
                               "each annotation of the tier.")

        self.toolbar.AddButton(ID_ADD_TIME,
                               FILTER_ADD_TIME,
                               "+ Loc",
                               tooltip="Add a localization to start or "
                               "to end filtering.")

        self.toolbar.AddButton(ID_ADD_DURATION,
                               FILTER_ADD_DURATION,
                               "+ Dur",
                               tooltip="Add a filter on the duration of "
                               "each annotations of the tier.")

        self.toolbar.AddSpacer()

        self.toolbar.AddButton(ID_CLEAR,
                               FILTER_REMOVE,
                               "- Remove",
                               tooltip="Remove checked filters of the list.")
Ejemplo n.º 3
0
    def _create_toolbar(self):
        """Creates a toolbar panel."""

        toolbar = MainToolbarPanel(self, self._prefsIO)

        toolbar.AddButton(FILTER_CHECK_ID, FILTER_CHECK,
                          'Check',
                          tooltip="Choose the tier(s) to check.")
        toolbar.AddButton(FILTER_UNCHECK_ID, FILTER_UNCHECK,
                          'Uncheck',
                          tooltip="Uncheck all the tier(s) of the page.")
        toolbar.AddButton(wx.ID_DELETE, TIER_DELETE,
                          'Delete',
                          tooltip="Delete all the checked tier(s) of the page.")
        toolbar.AddButton(PREVIEW_ID, TIER_PREVIEW,
                          'View',
                          tooltip="Preview a tier of the selected file.")
        toolbar.AddSpacer()

        toolbar.AddButton(FILTER_SEL_ID, FILTER_SINGLE,
                          'Single',
                          tooltip="Filter checked tier(s) depending on "
                                  "its annotations.")
        toolbar.AddButton(FILTER_REL_ID, FILTER_RELATION,
                          'Relation',
                          tooltip="Filter checked tier(s) depending on "
                                  "time-relations of its annotation with "
                                  "annotations of another tier.")
        toolbar.AddSpacer()

        return toolbar
Ejemplo n.º 4
0
    def _create_toolbar(self):
        """ Creates a toolbar panel. """

        toolbar = MainToolbarPanel(self, self._prefsIO)

        toolbar.AddButton(FILTER_CHECK_ID,
                          FILTER_CHECK,
                          'Check',
                          tooltip="Choose the tier(s) to check.")
        toolbar.AddButton(FILTER_UNCHECK_ID,
                          FILTER_UNCHECK,
                          'Uncheck',
                          tooltip="Uncheck all the tier(s) of the page.")
        toolbar.AddButton(
            PREVIEW_ID,
            TIER_PREVIEW,
            'View',
            tooltip="Preview one checked tier of the selected file.")
        toolbar.AddSpacer()
        toolbar.AddButton(
            DESCRIPTIVES_ID,
            SPREADSHEETS,
            'Statistics',
            tooltip="Estimates descriptive statistics of checked tier(s).")
        toolbar.AddButton(USERCHECK_ID,
                          USERCHECK,
                          'User\nAgreement',
                          tooltip="Estimates Kappa of checked tier(s).")
        toolbar.AddSpacer()

        return toolbar
Ejemplo n.º 5
0
    def _create_toolbar(self):

        self.toolbar = MainToolbarPanel(self, self.preferences)
        self.toolbar.AddButton( ID_ADD_LABEL, FILTER_ADD_LABEL, "Label", tooltip="Add a filter on the content of each annotation of the tier.")
        self.toolbar.AddButton( ID_ADD_TIME, FILTER_ADD_TIME,   "Time",  tooltip="Add a filter to fix the time to start or to end to filter.")
        self.toolbar.AddButton( ID_ADD_DURATION, FILTER_ADD_DURATION, "Duration", tooltip="Add a filter on the duration of each annotations of the tier.")
        self.toolbar.AddSpacer()
        self.toolbar.AddButton( ID_CLEAR, FILTER_REMOVE, "Remove", tooltip="Remove checked filters of the list.")
Ejemplo n.º 6
0
    def _create_toolbar(self):
        """Creates a toolbar panel."""

        toolbar = MainToolbarPanel(self, self._prefsIO)

        toolbar.AddButton(RENAME_ID,
                          TIER_RENAME,
                          'Rename',
                          tooltip="Rename the selected tier.")

        toolbar.AddButton(wx.ID_DELETE,
                          TIER_DELETE,
                          'Delete',
                          tooltip="Delete the selected tier.")

        toolbar.AddButton(wx.ID_CUT,
                          TIER_CUT,
                          'Cut',
                          tooltip="Cut the selected tier.")

        toolbar.AddButton(wx.ID_COPY,
                          TIER_COPY,
                          "Copy",
                          tooltip="Copy the selected tier.")

        toolbar.AddButton(wx.ID_PASTE,
                          TIER_PASTE,
                          "Paste",
                          tooltip="Paste the selected tier.")

        toolbar.AddButton(DUPLICATE_ID,
                          TIER_DUPLICATE,
                          "Duplicate",
                          tooltip="Duplicate the selected tier.")

        toolbar.AddButton(wx.ID_UP,
                          TIER_MOVE_UP,
                          "Move Up",
                          tooltip="Move up the selected tier.")

        toolbar.AddButton(wx.ID_DOWN,
                          TIER_MOVE_DOWN,
                          "Move Down",
                          tooltip="Move down the selected tier.")

        toolbar.AddButton(TIER_RADIUS_ID,
                          TIER_RADIUS,
                          "Radius",
                          tooltip="Fix the vagueness of each boundary. "
                          "Useful only for .xra file format.")

        toolbar.AddButton(PREVIEW_ID,
                          TIER_PREVIEW,
                          "View",
                          tooltip="Preview of the selected tier.")

        return toolbar
Ejemplo n.º 7
0
    def _create_toolbar(self, parent):
        """Creates the default toolbar."""

        toolbar = MainToolbarPanel(parent, self._prefsIO)
        toolbar.AddButton(wx.ID_ADD,
                          ADD_FILE_ICON,
                          "Add files",
                          tooltip="Add files into the list.")
        toolbar.AddButton(wx.ID_REMOVE,
                          REMOVE_ICON,
                          "Remove",
                          tooltip="Remove files of the list.")
        toolbar.AddButton(ID_TB_NEWTAB,
                          TAB_NEW_ICON,
                          "New tab",
                          tooltip="Open a new page in the notebook.")
        toolbar.AddButton(ID_TB_CLOSETAB,
                          TAB_CLOSE_ICON,
                          "Close tab",
                          tooltip="Close the current page in the notebook.")
        toolbar.AddSpacer()
        return toolbar
Ejemplo n.º 8
0
    def _create_toolbar(self):
        """ Creates a toolbar panel. """

        activated = True
        if self._manager is None:
            activated = False

        toolbar = MainToolbarPanel(self, self._preferences)
        toolbar.AddSpacer()
        toolbar.AddButton(
            IMPORT_ID,
            PLUGIN_IMPORT_ICON,
            'Install',
            tooltip="Install a plugin in SPPAS plugins directory.",
            activated=activated)
        toolbar.AddButton(
            REMOVE_ID,
            PLUGIN_REMOVE_ICON,
            'Delete',
            tooltip="Delete a plugin of SPPAS plugins directory.",
            activated=activated)
        toolbar.AddSpacer()
        return toolbar