Module implementing the TR Previewer main window.
noTranslationName |
TRPreviewer | Class implementing the UI Previewer main window. |
Translation | Class to store the properties of a translation |
TranslationsDict | Class to store all loaded translations. |
WidgetView | Class to show a dynamically loaded widget (or dialog). |
WidgetWorkspace | Specialized workspace to show the loaded widgets. |
_filename | Protected module function to chop off the path. |
Class implementing the UI Previewer main window.
None |
None |
TRPreviewer | Constructor |
__about | Private slot to show the about information. |
__aboutQt | Private slot to show info about Qt. |
__initActions | Private method to define the user interface actions. |
__initMenus | Private method to create the menus. |
__initToolbars | Private method to create the toolbars. |
__openTranslation | Private slot to handle the Open Translation action. |
__openWidget | Private slot to handle the Open Dialog action. |
__showWindowMenu | Private slot to handle the aboutToShow signal of the window menu. |
__updateActions | Private slot to update the actions state. |
__whatsThis | Private slot called in to enter Whats This mode. |
closeEvent | Private event handler for the close event. |
reloadTranslations | Public slot to reload all translations. |
setTranslation | Public slot to activate a translation. |
show | Public slot to show this dialog. |
None |
Constructor
Private slot to show the about information.
Private slot to show info about Qt.
Private method to define the user interface actions.
Private method to create the menus.
Private method to create the toolbars.
Private slot to handle the Open Translation action.
Private slot to handle the Open Dialog action.
Private slot to handle the aboutToShow signal of the window menu.
Private slot to update the actions state.
Private slot called in to enter Whats This mode.
Private event handler for the close event.
Public slot to reload all translations.
Public slot to activate a translation.
Public slot to show this dialog.
This overloaded slot loads a UI file to be previewed after the main window has been shown. This way, previewing a dialog doesn't interfere with showing the main window.
Class to store the properties of a translation
None |
None |
Translation | Constructor |
None |
Constructor
Class to store all loaded translations.
None |
None |
TranslationsDict | Constructor |
__del | Private method to delete a translator from the list of available translators. |
__findFileName | Private method to find a translation by file name. |
__findName | Private method to find a translation by name. |
__haveFileName | Private method to check for the presence of a translation. |
__haveName | Private method to check for the presence of a named translation. |
__uniqueName | Private method to generate a unique name. |
add | Public method to add a translation to the list. |
hasTranslations | Public method to check for loaded translations. |
loadTransFile | Public slot to load a translation file. |
reload | Public method to reload all translators. |
set | Public slot to set a translator by name. |
None |
Constructor
Private method to delete a translator from the list of available translators.
Private method to find a translation by file name.
Private method to find a translation by name.
Private method to check for the presence of a translation.
Private method to check for the presence of a named translation.
Private method to generate a unique name.
Public method to add a translation to the list.
If the translation file (*.qm) has not been loaded yet, it will be loaded automatically.
Public method to check for loaded translations.
Public slot to load a translation file.
Public method to reload all translators.
Public slot to set a translator by name.
Class to show a dynamically loaded widget (or dialog).
None |
None |
WidgetView | Constructor |
__rebuildWidget | Private method to schedule a rebuild of the widget. |
buildWidget | Public slot to load a UI file. |
isValid | Public method to return the validity of this widget view. |
uiFileName | Public method to retrieve the name of the UI file. |
None |
Constructor
Private method to schedule a rebuild of the widget.
Public slot to load a UI file.
Public method to return the validity of this widget view.
Public method to retrieve the name of the UI file.
Specialized workspace to show the loaded widgets.
None |
None |
WidgetWorkspace | Constructor |
__findWidget | Private method to find a specific widget view. |
__toggleWidget | Private method to toggle a workspace window. |
closeAllWidgets | Public slot to close all windows. |
closeWidget | Public slot to close the active window. |
eventFilter | Protected method called to filter an event. |
hasWidgets | Public method to check for loaded widgets. |
loadWidget | Public slot to load a UI file. |
showWindowMenu | Public method to set up the widgets part of the Window menu. |
toggleSelectedWidget | Public method to handle the toggle of a window. |
None |
Constructor
Private method to find a specific widget view.
Private method to toggle a workspace window.
Public slot to close all windows.
Public slot to close the active window.
Protected method called to filter an event.
Public method to check for loaded widgets.
Public slot to load a UI file.
Public method to set up the widgets part of the Window menu.
Public method to handle the toggle of a window.
Protected module function to chop off the path.