Module implementing the TR Previewer main window.
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 | Private module function to chop off the path. |
Class implementing the UI Previewer main window.
TRPreviewer | Constructor |
closeEvent | Private event handler for the close event. |
handleAbout | Private slot to show the about information. |
handleAboutQt | Private slot to show info about Qt. |
handleOpenTranslation | Private slot to handle the Open Translation action. |
handleOpenWidget | Private slot to handle the Open Dialog action. |
handleShowWindowMenu | Private slot to handle the aboutToShow signal of the window menu. |
initActions | Private method to define the user interface actions. |
initMenus | Private method to create the menus. |
initToolbars | Private method to create the toolbars. |
reloadTranslations | Public slot to reload all translations. |
setTranslation | Public slot to activate a translation. |
show | Public slot to show this dialog. |
updateActions | Private slot to update the actions state. |
Constructor
Private event handler for the close event.
This event handler saves the preferences.
Private slot to show the about information.
Private slot to show info about Qt.
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 method to define the user interface actions.
Private method to create the menus.
Private method to create the toolbars.
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.
Private slot to update the actions state.
Class to store the properties of a translation
Translation | Constructor |
Constructor
Class to store all loaded translations.
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. |
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).
WidgetView | Constructor |
__rebuildWidget | Private method to schedule a rebuild of the widget. |
buildWidget | Public slot to load a UI file. |
eventFilter | Protected method called to filter an event. |
isValid | Public method to return the validity of this widget view. |
uiFileName | Public method to retrieve the name of the UI file. |
Constructor
Private method to schedule a rebuild of the widget.
Public slot to load a UI file.
Protected method called to filter an event.
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.
WidgetWorkspace | Constructor |
__findWidget | Private method to find a specific widget view. |
eventFilter | Protected method called to filter an event. |
handleClose | Public slot to close the active window. |
handleCloseAll | Public slot to close all windows. |
handleShowWindowMenu | Public method to set up the widgets part of the Window menu. |
handleWidget | Private method to handle the toggle of a window. |
hasWidgets | Public method to check for loaded widgets. |
loadWidget | Public slot to load a UI file. |
toggleWidget | Private method to toggle a workspace window. |
Constructor
Private method to find a specific widget view.
Protected method called to filter an event.
Public slot to close the active window.
Public slot to close all windows.
Public method to set up the widgets part of the Window menu.
Private method to handle the toggle of a window.
Public method to check for loaded widgets.
Public slot to load a UI file.
Private method to toggle a workspace window.
Private module function to chop off the path.