trigger.ui.main =============== .. py:module:: trigger.ui.main .. autoapi-nested-parse:: Main UI for trigger Attributes ---------- .. autoapisummary:: trigger.ui.main.WINDOW_NAME trigger.ui.main.db trigger.ui.main.log trigger.ui.main.qss Classes ------- .. autoapisummary:: trigger.ui.main.MainUI Functions --------- .. autoapisummary:: trigger.ui.main.launch Module Contents --------------- .. py:class:: MainUI(disable_version_control=False) Bases: :py:obj:`trigger.ui.Qt.QtWidgets.QMainWindow` .. py:method:: action_settings_menu() Builds the action settings depending on action type .. py:method:: actions_rc() .. py:method:: add_actions_menu() .. py:method:: block_all_signals(state) Blocks and Unblocks all signals for defined widgets inside function .. py:method:: build_bars_ui() .. py:method:: build_guides_ui() .. py:method:: build_rigging_ui() .. py:method:: build_tabs() .. py:method:: build_test_guides() .. py:method:: build_vcs_ui() Build the Version Control System UI .. py:method:: clearLayout(layout) .. py:method:: closeEvent(event) .. py:method:: delete_action() .. py:method:: draw_extra_property(property_dict, parent_form_layout, root_jnt) .. py:method:: export_guides() .. py:method:: force_update() .. py:method:: get_version() Return trigger version. .. py:method:: import_guides() .. py:method:: import_trigger(file_path=None) .. py:method:: increment_trigger() .. py:method:: keyPressEvent(e) .. py:method:: keyReleaseEvent(e) .. py:method:: list_to_text(list_item) :staticmethod: .. py:method:: move_action_down() .. py:method:: move_action_up() .. py:method:: new_trigger() .. py:method:: on_action_duplicate() .. py:method:: on_action_info() .. py:method:: on_action_rename() .. py:method:: on_action_toggle() .. py:method:: on_build_and_publish() Publish the rig. This will work only if there is an active version control system. .. py:method:: on_build_rig() .. py:method:: on_create_guide(limb_name, **kwargs) .. py:method:: on_guide_change(currentItem, previousItem) .. py:method:: on_makeup() :staticmethod: .. py:method:: on_mocap_mapper() :staticmethod: .. py:method:: on_rom_randomizer() :staticmethod: .. py:method:: on_run_action() .. py:method:: on_run_action_until() .. py:method:: open_trigger(file_path=None, force=False) .. py:method:: populate_actions() .. py:method:: populate_guides() .. py:method:: populate_properties() .. py:method:: populate_recents() Clears and reloads the recent sessions action menu item .. py:method:: progressBar() .. py:method:: refresh() .. py:method:: save_as_trigger() .. py:method:: save_trigger() .. py:method:: text_to_list(text_item) :staticmethod: .. py:method:: update_properties(property, value) .. py:method:: update_title() .. py:method:: vcs_save_session(path) Creates and saves a new session using the path coming from version control. This skips validations or error messages and just saves the session. .. py:attribute:: iconsPath .. py:function:: launch(force=False, disable_version_control=False) Launch the Trigger UI .. py:data:: WINDOW_NAME .. py:data:: db .. py:data:: log .. py:data:: qss :value: Multiline-String .. raw:: html
Show Value .. code-block:: python """ QPushButton { color: #b1b1b1; background-color: #404040; border-width: 1px; border-color: #1e1e1e; border-style: solid; padding: 5px; font-size: 12px; } QPushButton:hover { background-color: #505050; border: 1px solid #ff8d1c; } QPushButton:disabled { background-color: #303030; border: 1px solid #404040; color: #505050; padding: 5px; font-size: 12px; } QPushButton:pressed { background-color: #ff8d1c; border: 1px solid #ff8d1c; } QPushButton[override = "0"]{ border-color: #1e1e1e; } QPushButton[override = "1"]{ border-color: green; } QPushButton[menuButton=true] { min-width: 120; min-height: 45; } """ .. raw:: html