@@ -81,6 +81,7 @@ class RemoteServer(QC.QThread):
8181 SIG_TOGGLE_AUTO_REFRESH = QC .Signal (bool )
8282 SIG_TOGGLE_SHOW_TITLES = QC .Signal (bool )
8383 SIG_RESET_ALL = QC .Signal ()
84+ SIG_REMOVE_OBJECT = QC .Signal (bool )
8485 SIG_SAVE_TO_H5 = QC .Signal (str )
8586 SIG_OPEN_H5 = QC .Signal (list , bool , bool )
8687 SIG_IMPORT_H5 = QC .Signal (str , bool )
@@ -111,6 +112,7 @@ def __init__(self, win: DLMainWindow) -> None:
111112 self .SIG_TOGGLE_AUTO_REFRESH .connect (win .toggle_auto_refresh )
112113 self .SIG_TOGGLE_SHOW_TITLES .connect (win .toggle_show_titles )
113114 self .SIG_RESET_ALL .connect (win .reset_all )
115+ self .SIG_REMOVE_OBJECT .connect (win .remove_object )
114116 self .SIG_SAVE_TO_H5 .connect (win .save_to_h5_file )
115117 self .SIG_OPEN_H5 .connect (win .open_h5_files )
116118 self .SIG_IMPORT_H5 .connect (win .import_h5_file )
@@ -230,6 +232,15 @@ def reset_all(self) -> None:
230232 """Reset all application data"""
231233 self .SIG_RESET_ALL .emit ()
232234
235+ @remote_call
236+ def remove_object (self , force : bool = False ) -> None :
237+ """Remove current object from current panel.
238+
239+ Args:
240+ force: if True, remove object without confirmation. Defaults to False.
241+ """
242+ self .SIG_REMOVE_OBJECT .emit (force )
243+
233244 @remote_call
234245 def save_to_h5_file (self , filename : str ) -> None :
235246 """Save to a DataLab HDF5 file.
0 commit comments