hlcc 2.0.0-beta2+pre1
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
telsimui.applicationwindow.ApplicationWindow Class Reference

Implementation of the mainwindow.ui file. More...

Inheritance diagram for telsimui.applicationwindow.ApplicationWindow:

Public Member Functions

def __init__ (self)
 Initialization and QMainWindow Methods ##.
 
def closeEvent (self, event)
 Not to be confused with actionExit, this method is special.
 
def on_actionExit_triggered (self)
 Action Slots implementation ##.
 
def on_actionManual_triggered (self)
 Slot that auto-connects to the actionManual.
 
def on_actionWhats_This_triggered (self)
 Slot that auto-connects to the actionWhats_This.
 
def on_actionAbout_Application_triggered (self)
 Slot that auto-connects to the actionAbout_Application.
 
def on_actionAbout_ESO_triggered (self)
 Slot that auto-connects to the actionAbout_ESO.
 
def on_actionLicenses_triggered (self)
 Slot that auto-connects to the actionLicenses.
 
def on_actionHmsDms_triggered (self)
 Slot that auto-connects to the actionHmsDms.
 
def on_actionDegrees_triggered (self)
 Slot that auto-connects to the actionDegrees.
 
def on_actionRadians_triggered (self)
 Slot that auto-connects to the actionRadians.
 
def on_actionTelescopeState_triggered (self)
 Slot that auto-connects to the actionTelescopeState.
 
def on_actionServerConnect_triggered (self)
 Server (dis)connection slots ##.
 
def on_actionServerDisconnect_triggered (self)
 Slot that auto-connects to the QAction actionServerDisconnect.
 
def on_actionServerAutoconnect_triggered (self)
 Slot that auto-connects to the QAction actionServerAutoconnect.
 
def on_server_connection_changed (self, state)
 Slot that connects to each QProcess instanciated based on the process configured.
 

Public Attributes

 ui
 
 active_tool_processes
 
 launcherMenu
 
 telescopeStateDialog
 

Protected Member Functions

def _init_gui (self)
 In some cases, widgets are not ready for modification until init is done.
 
def _init_polling (self)
 The widgets model do not update automatically, a polling option must be added as an attribute.
 

Detailed Description

Implementation of the mainwindow.ui file.

Since the UI file indicates that its root is a QMainWindow, then this class should also inherit from it. We should also call explicitly its parent constructors.

The implementation for this class also includes slots for actions, and management of the closeEvent.

Constructor & Destructor Documentation

◆ __init__()

def telsimui.applicationwindow.ApplicationWindow.__init__ (   self)

Initialization and QMainWindow Methods ##.

ApplicattionWindow/MainWindow main entrypoint

Member Function Documentation

◆ _init_gui()

def telsimui.applicationwindow.ApplicationWindow._init_gui (   self)
protected

In some cases, widgets are not ready for modification until init is done.

This can be workaround by invoking another method at the end of init.

◆ _init_polling()

def telsimui.applicationwindow.ApplicationWindow._init_polling (   self)
protected

The widgets model do not update automatically, a polling option must be added as an attribute.

Initialize the polling feature based on the configure URIs to be monitor

◆ closeEvent()

def telsimui.applicationwindow.ApplicationWindow.closeEvent (   self,
  event 
)

Not to be confused with actionExit, this method is special.

Instead of using signals to know when an application is closed, we can override the closeEvent method from the QApplication class, and determine here what will happen when the window is closed. In this case, we are just forwarding the event to its parent class. This is useful when disconnection from server or prevention of current work needs to be implemented.

Parameters
eventEvent received from Qt event pump
type of event: QtCore.QEvent

◆ on_actionAbout_Application_triggered()

def telsimui.applicationwindow.ApplicationWindow.on_actionAbout_Application_triggered (   self)

Slot that auto-connects to the actionAbout_Application.

actionAbout_Application is not declared in the code, but in the mainwindow.ui.

See
https://doc.qt.io/qt-5/designer-using-a-ui-file.html#widgets-and-dialogs-with-auto-connect

◆ on_actionAbout_ESO_triggered()

def telsimui.applicationwindow.ApplicationWindow.on_actionAbout_ESO_triggered (   self)

Slot that auto-connects to the actionAbout_ESO.

actionAbout_ESO is not declared in the code, but in the mainwindow.ui.

See
https://doc.qt.io/qt-5/designer-using-a-ui-file.html#widgets-and-dialogs-with-auto-connect

◆ on_actionDegrees_triggered()

def telsimui.applicationwindow.ApplicationWindow.on_actionDegrees_triggered (   self)

Slot that auto-connects to the actionDegrees.

actionDegrees is not declared in the code, but in the mainwindow.ui.

See
https://doc.qt.io/qt-5/designer-using-a-ui-file.html#widgets-and-dialogs-with-auto-connect

◆ on_actionExit_triggered()

def telsimui.applicationwindow.ApplicationWindow.on_actionExit_triggered (   self)

Action Slots implementation ##.

Slot that auto-connects to the actionExit. actionExit is not declared in the code, but in the mainwindow.ui.

See
https://doc.qt.io/qt-5/designer-using-a-ui-file.html#widgets-and-dialogs-with-auto-connect

It is up to the developer to implement its behaviour. In this case we call qApp.exit(), where qApp is a global reference to the TaurusApplication or QApplication.

The actionExit must be manually triggered by the user, through a menu, toolbar button.

◆ on_actionHmsDms_triggered()

def telsimui.applicationwindow.ApplicationWindow.on_actionHmsDms_triggered (   self)

Slot that auto-connects to the actionHmsDms.

actionHmsDms is not declared in the code, but in the mainwindow.ui.

See
https://doc.qt.io/qt-5/designer-using-a-ui-file.html#widgets-and-dialogs-with-auto-connect

◆ on_actionLicenses_triggered()

def telsimui.applicationwindow.ApplicationWindow.on_actionLicenses_triggered (   self)

Slot that auto-connects to the actionLicenses.

actionLicenses is not declared in the code, but in the mainwindow.ui.

See
https://doc.qt.io/qt-5/designer-using-a-ui-file.html#widgets-and-dialogs-with-auto-connect

◆ on_actionManual_triggered()

def telsimui.applicationwindow.ApplicationWindow.on_actionManual_triggered (   self)

Slot that auto-connects to the actionManual.

actionManual is not declared in the code, but in the mainwindow.ui.

See
https://doc.qt.io/qt-5/designer-using-a-ui-file.html#widgets-and-dialogs-with-auto-connect

◆ on_actionRadians_triggered()

def telsimui.applicationwindow.ApplicationWindow.on_actionRadians_triggered (   self)

Slot that auto-connects to the actionRadians.

actionRadians is not declared in the code, but in the mainwindow.ui.

See
https://doc.qt.io/qt-5/designer-using-a-ui-file.html#widgets-and-dialogs-with-auto-connect

◆ on_actionServerAutoconnect_triggered()

def telsimui.applicationwindow.ApplicationWindow.on_actionServerAutoconnect_triggered (   self)

Slot that auto-connects to the QAction actionServerAutoconnect.

actionServerAutoconnect is not declared in the code, but in the mainwindow.ui.

See
https://doc.qt.io/qt-5/designer-using-a-ui-file.html#widgets-and-dialogs-with-auto-connect

◆ on_actionServerConnect_triggered()

def telsimui.applicationwindow.ApplicationWindow.on_actionServerConnect_triggered (   self)

Server (dis)connection slots ##.

Slot that auto-connects to the QAction actionServerConnect. actionServerConnect is not declared in the code, but in the mainwindow.ui.

See
https://doc.qt.io/qt-5/designer-using-a-ui-file.html#widgets-and-dialogs-with-auto-connect

◆ on_actionServerDisconnect_triggered()

def telsimui.applicationwindow.ApplicationWindow.on_actionServerDisconnect_triggered (   self)

Slot that auto-connects to the QAction actionServerDisconnect.

actionServerDisconnect is not declared in the code, but in the mainwindow.ui.

See
https://doc.qt.io/qt-5/designer-using-a-ui-file.html#widgets-and-dialogs-with-auto-connect

◆ on_actionTelescopeState_triggered()

def telsimui.applicationwindow.ApplicationWindow.on_actionTelescopeState_triggered (   self)

Slot that auto-connects to the actionTelescopeState.

actionTelescopeState will create a new window with the QeStateList Widget inside.

See
https://doc.qt.io/qt-5/designer-using-a-ui-file.html#widgets-and-dialogs-with-auto-connect

◆ on_actionWhats_This_triggered()

def telsimui.applicationwindow.ApplicationWindow.on_actionWhats_This_triggered (   self)

Slot that auto-connects to the actionWhats_This.

actionWhats_This is not declared in the code, but in the mainwindow.ui.

See
https://doc.qt.io/qt-5/designer-using-a-ui-file.html#widgets-and-dialogs-with-auto-connect

◆ on_server_connection_changed()

def telsimui.applicationwindow.ApplicationWindow.on_server_connection_changed (   self,
  state 
)

Slot that connects to each QProcess instanciated based on the process configured.

It handles the visibility and permissions to change pages/widgets inside the main_window instance. All this analyses is based on all facades connections status.

Parameters
stateConnection status from the QProcess that emitted the signal

Member Data Documentation

◆ active_tool_processes

telsimui.applicationwindow.ApplicationWindow.active_tool_processes

◆ launcherMenu

telsimui.applicationwindow.ApplicationWindow.launcherMenu

◆ telescopeStateDialog

telsimui.applicationwindow.ApplicationWindow.telescopeStateDialog

◆ ui

telsimui.applicationwindow.ApplicationWindow.ui

The documentation for this class was generated from the following file: