'Return current window settings
Symetric to the \'set_window_settings\' setter'

def get_window_settings(self):

    window_size = (self.window_size.width(), self.window_size.height())
    is_fullscreen = self.isFullScreen()
    if is_fullscreen:
        is_maximized = self.maximized_flag
    else:
        is_maximized = self.isMaximized()
    pos = (self.window_position.x(), self.window_position.y())
    prefs_dialog_size = (self.prefs_dialog_size.width(), self.prefs_dialog_size.height())
    hexstate = qbytearray_to_str(self.saveState())
    return (hexstate, window_size, prefs_dialog_size, pos, is_maximized, is_fullscreen)
