Beispiel #1
0
    def _initToolBarActions(self, toolbar):
        actions_group = QActionGroup(self)
        show_source_action = ActionFactory.createAction(
            toolbar,
            "Source",
            "Show LaTeX source editor",
            shortcut=QKeySequence.SelectStartOfLine,
            slot=self.showSourceView,
            checkable=True)
        show_preamble_action = ActionFactory.createAction(
            toolbar,
            "Preamble",
            "Show LaTeX preamble editor",
            shortcut=QKeySequence.SelectEndOfLine,
            slot=self.showPreambleView,
            checkable=True)
        self.actions[actions.SHOW_SOURCE] = show_source_action
        self.actions[actions.SHOW_PREAMBLE] = show_preamble_action

        show_source_action.setChecked(True)
        actions_group.addAction(show_source_action)
        actions_group.addAction(show_preamble_action)

        ToolBarFactory.addItemsToToolBar(
            (self.app_controller.actions[actions.PREVIEW],
             ("Copy", self.app_controller.actions[actions.COPY_MENU]),
             ("Snippets", self.app_controller.actions[actions.SNIPPETS_MENU]),
             None, show_source_action, show_preamble_action, QLabel()),
            toolbar)
Beispiel #2
0
	def _initToolBarActions(self, toolbar):
		actions_group = QActionGroup(self)
		show_logs_action = ActionFactory.createAction(toolbar, "Logs", "Show LaTeX preview logs", shortcut="Ctrl+L", slot=self.showLogsView, checkable=True)
		show_errors_action = ActionFactory.createAction(toolbar, "Errors", "Show LaTeX preview errors", shortcut="Ctrl+E", slot=self.showErrorsView, checkable=True)
		self.actions[actions.SHOW_LOGS] = show_logs_action
		self.actions[actions.SHOW_ERRORS] = show_errors_action

		actions_group.addAction(show_logs_action)
		actions_group.addAction(show_errors_action)
		ToolBarFactory.addItemsToToolBar((None, show_logs_action, show_errors_action, QLabel()), toolbar)
Beispiel #3
0
	def _initToolBarActions(self, toolbar):
		actions_group = QActionGroup(self)
		show_source_action = ActionFactory.createAction(toolbar, "Source", "Show LaTeX source editor", shortcut=QKeySequence.SelectStartOfLine, slot=self.showSourceView, checkable=True)
		show_preamble_action = ActionFactory.createAction(toolbar, "Preamble", "Show LaTeX preamble editor", shortcut=QKeySequence.SelectEndOfLine, slot=self.showPreambleView, checkable=True)
		self.actions[actions.SHOW_SOURCE] = show_source_action
		self.actions[actions.SHOW_PREAMBLE] = show_preamble_action

		show_source_action.setChecked(True)
		actions_group.addAction(show_source_action)
		actions_group.addAction(show_preamble_action)

		ToolBarFactory.addItemsToToolBar((
			self.app_controller.actions[actions.PREVIEW],
			("Copy", self.app_controller.actions[actions.COPY_MENU]),
			("Snippets", self.app_controller.actions[actions.SNIPPETS_MENU]),
			None, show_source_action, show_preamble_action,
			QLabel()), toolbar)
Beispiel #4
0
	def _initToolBarActions(self):
		show_editor_action = ActionFactory.createAction(self.toolbar, "Editor", "Show editor's preferences", shortcut=None, slot=self.showEditorPreferences, checkable=True)
		show_document_action = ActionFactory.createAction(self.toolbar, "Document", "Show document's preferences", shortcut=None, slot=self.showDocumentPreferences, checkable=True)
		show_preview_action = ActionFactory.createAction(self.toolbar, "Preview", "Show preview's preferences", shortcut=None, slot=self.showPreviewPreferences, checkable=True)
		show_snippets_action = ActionFactory.createAction(self.toolbar, "Snippets", "Show snippets preferences", shortcut=None, slot=self.showSnippetsPreferences, checkable=True)
		self.actions[PreferencesView.SHOW_EDITOR_ACTION] = show_editor_action
		self.actions[PreferencesView.SHOW_DOCUMENT_ACTION] = show_document_action
		self.actions[PreferencesView.SHOW_PREVIEW_ACTION] = show_preview_action
		self.actions[PreferencesView.SHOW_SNIPPETS_ACTION] = show_snippets_action

		actions_group = QActionGroup(self)
		actions_group.addAction(show_editor_action)
		actions_group.addAction(show_document_action)
		actions_group.addAction(show_preview_action)
		actions_group.addAction(show_snippets_action)
		ToolBarFactory.addItemsToToolBar(
			(None, show_editor_action, show_document_action, show_preview_action, show_snippets_action, None),
			self.toolbar)
Beispiel #5
0
    def _initToolBarActions(self):
        show_editor_action = ActionFactory.createAction(
            self.toolbar,
            "Editor",
            "Show editor's preferences",
            shortcut=None,
            slot=self.showEditorPreferences,
            checkable=True)
        show_document_action = ActionFactory.createAction(
            self.toolbar,
            "Document",
            "Show document's preferences",
            shortcut=None,
            slot=self.showDocumentPreferences,
            checkable=True)
        show_preview_action = ActionFactory.createAction(
            self.toolbar,
            "Preview",
            "Show preview's preferences",
            shortcut=None,
            slot=self.showPreviewPreferences,
            checkable=True)
        show_snippets_action = ActionFactory.createAction(
            self.toolbar,
            "Snippets",
            "Show snippets preferences",
            shortcut=None,
            slot=self.showSnippetsPreferences,
            checkable=True)
        self.actions[PreferencesView.SHOW_EDITOR_ACTION] = show_editor_action
        self.actions[
            PreferencesView.SHOW_DOCUMENT_ACTION] = show_document_action
        self.actions[PreferencesView.SHOW_PREVIEW_ACTION] = show_preview_action
        self.actions[
            PreferencesView.SHOW_SNIPPETS_ACTION] = show_snippets_action

        actions_group = QActionGroup(self)
        actions_group.addAction(show_editor_action)
        actions_group.addAction(show_document_action)
        actions_group.addAction(show_preview_action)
        actions_group.addAction(show_snippets_action)
        ToolBarFactory.addItemsToToolBar(
            (None, show_editor_action, show_document_action,
             show_preview_action, show_snippets_action, None), self.toolbar)
Beispiel #6
0
    def _initToolBarActions(self, toolbar):
        actions_group = QActionGroup(self)
        show_logs_action = ActionFactory.createAction(
            toolbar,
            "Logs",
            "Show LaTeX preview logs",
            shortcut="Ctrl+L",
            slot=self.showLogsView,
            checkable=True)
        show_errors_action = ActionFactory.createAction(
            toolbar,
            "Errors",
            "Show LaTeX preview errors",
            shortcut="Ctrl+E",
            slot=self.showErrorsView,
            checkable=True)
        self.actions[actions.SHOW_LOGS] = show_logs_action
        self.actions[actions.SHOW_ERRORS] = show_errors_action

        actions_group.addAction(show_logs_action)
        actions_group.addAction(show_errors_action)
        ToolBarFactory.addItemsToToolBar(
            (None, show_logs_action, show_errors_action, QLabel()), toolbar)
Beispiel #7
0
 def _initToolBar(self):
     toolbar = ToolBarFactory.createToolBar(self, "Content")
     self._initToolBarActions(toolbar)
Beispiel #8
0
 def _initToolBar(self):
     toolbar = ToolBarFactory.createToolBar(self, "Feedback")
     self._initToolBarActions(toolbar)
Beispiel #9
0
 def _initToolBar(self):
     self.toolbar = ToolBarFactory.createToolBar(self, "Preferences")
     self._initToolBarActions()
Beispiel #10
0
	def _initToolBar(self):
		toolbar = ToolBarFactory.createToolBar(self, "Feedback")
		self._initToolBarActions(toolbar)
Beispiel #11
0
	def _initToolBar(self):
		toolbar = ToolBarFactory.createToolBar(self, "Content")
		self._initToolBarActions(toolbar)
Beispiel #12
0
	def _initToolBar(self):
		self.toolbar = ToolBarFactory.createToolBar(self, "Preferences")
		self._initToolBarActions()