Skip to content

Commit

Permalink
cli_tool replaced by main and changes for merge done
Browse files Browse the repository at this point in the history
  • Loading branch information
Preetam-Das26 committed Oct 3, 2024
1 parent 67db980 commit d1cd55c
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 38 deletions.
6 changes: 1 addition & 5 deletions mslib/msui/linearview.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,17 +81,13 @@ class MSUILinearViewWindow(MSUIMplViewWindow, ui.Ui_LinearWindow):
"""
name = "Linear View"

<<<<<<< HEAD
refresh_signal_send = QtCore.pyqtSignal()
refresh_signal_emit = QtCore.pyqtSignal()
item_selected = QtCore.pyqtSignal(str, str, str, str)
vtime_vals = QtCore.pyqtSignal([list])
itemSecs_selected = QtCore.pyqtSignal(str)

def __init__(self, parent=None, model=None, _id=None, config_settings=None):
=======
def __init__(self, parent=None, model=None, _id=None, tutorial_mode=False):
>>>>>>> 54854e1c408b7dd47889a575b83015260275af87
def __init__(self, parent=None, model=None, _id=None, config_settings=None, tutorial_mode=False):
"""
Set up user interface, connect signal/slots.
"""
Expand Down
24 changes: 6 additions & 18 deletions mslib/msui/msui_mainwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,9 @@
from mslib.msui.icons import icons, python_powered
from mslib.utils.qt import get_open_filenames, get_save_filename, show_popup
from mslib.utils.config import read_config_file, config_loader
<<<<<<< HEAD
from PyQt5 import QtGui, QtCore, QtWidgets, QtTest
=======
from mslib.utils import release_info
from PyQt5 import QtGui, QtCore, QtWidgets
>>>>>>> 54854e1c408b7dd47889a575b83015260275af87
from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas

# Add config path to PYTHONPATH so plugins located there may be found
Expand Down Expand Up @@ -1045,25 +1042,19 @@ def create_view(self, _type, model):
view_window = topview.MSUITopViewWindow(parent=self, mainwindow=self, model=model,
active_flighttrack=self.active_flight_track,
mscolab_server_url=self.mscolab.mscolab_server_url,
<<<<<<< HEAD
token=self.mscolab.token,
config_settings=self.config_for_gui)
config_settings=self.config_for_gui,
tutorial_mode=self.tutorial_mode)
view_window.refresh_signal_emit.connect(self.refresh_signal_connect.emit)
=======
token=self.mscolab.token, tutorial_mode=self.tutorial_mode)
>>>>>>> 54854e1c408b7dd47889a575b83015260275af87
view_window.mpl.resize(layout['topview'][0], layout['topview'][1])
if layout["immutable"]:
view_window.mpl.setFixedSize(layout['topview'][0], layout['topview'][1])
elif _type == "sideview":
# Side view.
<<<<<<< HEAD
view_window = sideview.MSUISideViewWindow(model=model, parent=self,
config_settings=self.config_for_gui)
config_settings=self.config_for_gui,
tutorial_mode=self.tutorial_mode)
view_window.refresh_signal_emit.connect(self.refresh_signal_connect.emit)
=======
view_window = sideview.MSUISideViewWindow(model=model, tutorial_mode=self.tutorial_mode)
>>>>>>> 54854e1c408b7dd47889a575b83015260275af87
view_window.mpl.resize(layout['sideview'][0], layout['sideview'][1])
if layout["immutable"]:
view_window.mpl.setFixedSize(layout['sideview'][0], layout['sideview'][1])
Expand All @@ -1073,13 +1064,10 @@ def create_view(self, _type, model):
view_window.centralwidget.resize(layout['tableview'][0], layout['tableview'][1])
elif _type == "linearview":
# Linear view.
<<<<<<< HEAD
view_window = linearview.MSUILinearViewWindow(model=model,
parent=self, config_settings=self.config_for_gui)
parent=self, config_settings=self.config_for_gui,
tutorial_mode=self.tutorial_mode)
view_window.refresh_signal_emit.connect(self.refresh_signal_connect.emit)
=======
view_window = linearview.MSUILinearViewWindow(model=model, tutorial_mode=self.tutorial_mode)
>>>>>>> 54854e1c408b7dd47889a575b83015260275af87
view_window.mpl.resize(layout['linearview'][0], layout['linearview'][1])
if layout["immutable"]:
view_window.mpl.setFixedSize(layout['linearview'][0], layout['linearview'][1])
Expand Down
6 changes: 1 addition & 5 deletions mslib/msui/sideview.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,17 +254,13 @@ class MSUISideViewWindow(MSUIMplViewWindow, ui.Ui_SideViewWindow):
"""
name = "Side View"

<<<<<<< HEAD
refresh_signal_send = QtCore.pyqtSignal()
refresh_signal_emit = QtCore.pyqtSignal()
item_selected = QtCore.pyqtSignal(str, str, str, str)
vtime_vals = QtCore.pyqtSignal([list])
itemSecs_selected = QtCore.pyqtSignal(str)

def __init__(self, parent=None, model=None, _id=None, config_settings=None):
=======
def __init__(self, parent=None, model=None, _id=None, tutorial_mode=False):
>>>>>>> 54854e1c408b7dd47889a575b83015260275af87
def __init__(self, parent=None, model=None, _id=None, config_settings=None, tutorial_mode=False):
"""
Set up user interface, connect signal/slots.
"""
Expand Down
7 changes: 2 additions & 5 deletions mslib/msui/topview.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,11 +195,8 @@ class MSUITopViewWindow(MSUIMplViewWindow, ui.Ui_TopViewWindow):
vtime_vals = QtCore.pyqtSignal([list])

def __init__(self, parent=None, mainwindow=None, model=None, _id=None,
<<<<<<< HEAD
active_flighttrack=None, mscolab_server_url=None, token=None, config_settings=None):
=======
active_flighttrack=None, mscolab_server_url=None, token=None, tutorial_mode=False):
>>>>>>> 54854e1c408b7dd47889a575b83015260275af87
active_flighttrack=None, mscolab_server_url=None, token=None, config_settings=None,
tutorial_mode=False):
"""
Set up user interface, connect signal/slots.
"""
Expand Down
5 changes: 4 additions & 1 deletion mslib/utils/mssautoplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,5 +548,8 @@ def draw(no_of_plots):
)


if __name__ == '__main__':
def main():
cli_tool()

if __name__ == '__main__':
main()
4 changes: 0 additions & 4 deletions mslib/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,4 @@
See the License for the specific language governing permissions and
limitations under the License.
"""
<<<<<<< HEAD
__version__ = u'9.1.0'
=======
__version__ = u'9.2.0'
>>>>>>> 54854e1c408b7dd47889a575b83015260275af87

0 comments on commit d1cd55c

Please sign in to comment.