Interface used to receive notifications related to files and contexts.
Many notifications include the ability to modify the behavior of the context.
Public Member Functions | |
virtual void | OnContextOpen (UIContext *context) |
Callback after a UIContext is opened (eg MainWindow) More... | |
virtual void | OnContextClose (UIContext *context) |
Callback right before closing a UIContext. More... | |
virtual bool | OnBeforeOpenDatabase (UIContext *context, FileMetadataRef metadata) |
Callback before a database (specifically a database, not a raw file) is opened. More... | |
virtual bool | OnAfterOpenDatabase (UIContext *context, FileMetadataRef metadata, BinaryViewRef data) |
Callback after a database (specifically a database, not a raw file) is opened. More... | |
virtual bool | OnBeforeOpenFile (UIContext *context, FileContext *file) |
Callback before a file (raw or database) is opened (after OnAfterOpenDatabase if opening a database) More... | |
virtual void | OnAfterOpenFile (UIContext *context, FileContext *file, ViewFrame *frame) |
Callback after a file (raw or database) is opened. More... | |
virtual bool | OnBeforeSaveFile (UIContext *context, FileContext *file, ViewFrame *frame) |
Callback before a file is saved (either as a database or raw) More... | |
virtual void | OnAfterSaveFile (UIContext *context, FileContext *file, ViewFrame *frame) |
Callback after a file is saved (either as a database or raw) More... | |
virtual bool | OnBeforeCloseFile (UIContext *context, FileContext *file, ViewFrame *frame) |
Callback before a file is closed. More... | |
virtual void | OnAfterCloseFile (UIContext *context, FileContext *file, ViewFrame *frame) |
Callback after a file is closed. More... | |
virtual void | OnViewChange (UIContext *context, ViewFrame *frame, const QString &type) |
Callback when the ui changes views. More... | |
virtual void | OnAddressChange (UIContext *context, ViewFrame *frame, View *view, const ViewLocation &location) |
Callback when the ui changes address. More... | |
virtual bool | GetNameForFile (UIContext *context, FileContext *file, QString &name) |
Callback to modify the displayed file name for a FileContext (eg in the window title or tab title) Note: Due to the out param &name, this is not usable from Python with PySide. More... | |
virtual bool | GetNameForPath (UIContext *context, const QString &path, QString &name) |
Callback to modify the displayed file name for a file path (eg in the new tab widget) Note: Due to the out param &name, this is not usable from Python with PySide. More... | |
virtual void | OnNewSelectionForXref (UIContext *context, ViewFrame *frame, View *view, const SelectionInfoForXref &selection) |
Callback when the ui changes selection and should update cross references. More... | |
|
inlinevirtual |
Callback to modify the displayed file name for a FileContext (eg in the window title or tab title) Note: Due to the out param &name, this is not usable from Python with PySide.
context | Context which will display this name |
file | File whose name to get |
name | [Out] Name to be displayed |
|
inlinevirtual |
Callback to modify the displayed file name for a file path (eg in the new tab widget) Note: Due to the out param &name, this is not usable from Python with PySide.
context | Context which will display this name |
path | Path to file whose name to get |
name | [Out] Name to be displayed |
|
inlinevirtual |
|
inlinevirtual |
Callback after a file is closed.
context | Context which closed the file |
file | Context with the file and ui views |
frame | ViewFrame which former showed the file (will be deleted after this) |
|
inlinevirtual |
Callback after a database (specifically a database, not a raw file) is opened.
context | Context which opened the database |
metadata | Object with info about the database file |
data | Raw data which is backed by the database |
|
inlinevirtual |
Callback after a file (raw or database) is opened.
context | Context which opened the file |
file | Context with the file and ui views |
frame | ViewFrame constructed to display the file |
|
inlinevirtual |
Callback after a file is saved (either as a database or raw)
context | Context which saved the file |
file | Context with the file and ui views |
frame | ViewFrame for the file |
|
inlinevirtual |
Callback before a file is closed.
context | Context which is closing the file |
file | Context with the file and ui views |
frame | ViewFrame for the file |
|
inlinevirtual |
Callback before a database (specifically a database, not a raw file) is opened.
context | Context opening the database |
metadata | Object with info about the database file |
|
inlinevirtual |
Callback before a file (raw or database) is opened (after OnAfterOpenDatabase if opening a database)
context | Context opening the file |
file | Context with the file and ui views |
|
inlinevirtual |
Callback before a file is saved (either as a database or raw)
context | Context which is saving the file |
file | Context with the file and ui views |
frame | ViewFrame for the file |
|
inlinevirtual |
Callback right before closing a UIContext.
context | Closing context |
|
inlinevirtual |
Callback after a UIContext is opened (eg MainWindow)
context | Opened context |
|
inlinevirtual |
Callback when the ui changes selection and should update cross references.
context | Context changing selection |
frame | ViewFrame which changed selection |
view | View that changed selection |
selection | New selection |
Reimplemented in CrossReferenceWidget.