MainWindow#

class hdf5view.mainwindow.MainWindow(app)#

Bases: QMainWindow

Define the main window of the hdf5view application.

Attributes

Methods

MainWindow.closeEvent(event)

Tidy up onclosing the application.

MainWindow.dragEnterEvent(event)

Accept any dropped files.

MainWindow.dropEvent(event)

Open dropped files.

MainWindow.get_dropped_files(event)

Get a list of files dropped onto the application.

MainWindow.handle_add_image()

Display an image window.

MainWindow.handle_add_plot()

Display a plot window.

MainWindow.handle_close_all_files()

Close all open files.

MainWindow.handle_close_file([index])

Close a file.

MainWindow.handle_open_about()

Show the about dialog.

MainWindow.handle_open_docs()

Link to the hdf5view documentation.

MainWindow.handle_open_file()

Open a file.

MainWindow.handle_open_prefs()

Show the prefs dialog.

MainWindow.handle_open_recent_file()

Open a file from the recent files list.

MainWindow.handle_tab_changed(index)

Set the views in the dock widgets appropriately.

MainWindow.handle_tree_selection_changed()

Enable/disable the plots toolbar when the tree selection changes.

MainWindow.init_actions()

Initialise actions.

MainWindow.init_central_widget()

Initialise the central widget.

MainWindow.init_dock_widgets()

Initialise the dock widgets.

MainWindow.init_menus()

Initialise menus.

MainWindow.init_statusbar()

Initialise statusbar.

MainWindow.init_toolbars()

Initialise the toobars.

MainWindow.load_settings()

Load application settings from settings file.

MainWindow.open_file(filename)

Open an hdf5 file.

MainWindow.save_settings()

Save applications settings to file.

MainWindow.update_file_menus()

Update the files menus, enabling/disabling options.