#include <vtkPVLookmarkManager.h>
Inheritance diagram for vtkPVLookmarkManager:
This class manages interactions with lookmarks.
The menu bar contains the following menus: File Menu -> Lookmark File manipulations Edit Menu -> Performs operations on lookmarks and folders Help -> Brings up help dialog boxes
Definition at line 59 of file vtkPVLookmarkManager.h.
|
|
|
|
|
Reimplemented from vtkKWTopLevel. |
|
|
|
Reimplemented from vtkKWTopLevel. |
|
Create the widget. Reimplemented from vtkKWTopLevel. |
|
Display the toplevel. Reimplemented from vtkKWTopLevel. |
|
Close the toplevel. Reimplemented from vtkKWTopLevel. |
|
Get the trace helper framework. |
|
Returns the first lookmark found with the given name |
|
Called from File --> Import --> Replace/Append Takes the user specified .lmk file and parses it to populate the panel with its contents |
|
Called from File --> Import --> Replace/Append Takes the user specified .lmk file and parses it to populate the panel with its contents |
|
Called from File --> Import --> Replace/Append Takes the user specified .lmk file and parses it to populate the panel with its contents |
|
Create either a Lookmark or a Lookmark Macro. Adds a vtkKWLookmark widget to the lookmark manager with a default name of the form "Lookmark#". Saves the state of the visible sources in the SourceList and their inputs. |
|
Create either a Lookmark or a Lookmark Macro. Adds a vtkKWLookmark widget to the lookmark manager with a default name of the form "Lookmark#". Saves the state of the visible sources in the SourceList and their inputs. |
|
This saves the current state of the lookmark manager, hierarchy and all to the user specified .lmk file |
|
This saves the current state of the lookmark manager, hierarchy and all to the user specified .lmk file |
|
This is called when File --> Export Folder is selected Only one folder can be selected (except for folders nested in the selected folder) |
|
This updates the lookmark's thumbnail, statescript, and dataset, while maintaining its name, comments, and location in the lookmark manager |
|
This removes the selected lookmarks and/or folders from the lookmark manager |
|
Add an empty folder to the bottom of the lookmark manager named "New Folder" You can then drag items into it |
|
Add an empty folder to the bottom of the lookmark manager named "New Folder" You can then drag items into it |
|
Check/Uncheck the boxes of all lookmarks and folders |
|
This uses the backup file to repopulate the lookmark manager, bringing it up to the point just before the last operation |
|
This uses the backup file to repopulate the lookmark manager, bringing it up to the point just before the last operation |
|
Only one lookmark/folder can be selected/checked when this is called. It will display a text widget in which to type the new name. |
|
Only one lookmark/folder can be selected/checked when this is called. It will display a text widget in which to type the new name. |
|
Access to the specialized vtkKWLookmarkFolder that holds the lookmark macros |
|
When the manager is created, this looks for a file called #LookmarkMacros# or .LookmarkMacros in the users home directory If found, this lookmark file is used to populate the Edit --> Add Macro Example menu. The idea is to have a way to distribute pre-defined macros with paraview that users might find useful for the type of data they work with. |
|
Callback when an entry is selected in the Edit menu. Adds the selection to the "Macros" folder and to the Lookmark toolbar if enabled |
|
Callback added to all lookmark and folder checkboxes. This does some bookkeeping like making sure that if an item nested in a selected folder is deselected, the folder is also deselected |
|
Callbacks for the help menu |
|
Callbacks for the help menu |
|
Called when a lookmark item (lookmark or folder) is being dragged. If the mouse is over the first frame in the lookmark manager before the first lookmark item (so that user can drag to the top of the lookmark manager) |
|
All lookmark items (lookmarks and folders) in the manager are assigned this end command when the left button is release after it has been dragging a lookmark item |
|
Update the "enable" state of the object and its internal parts. Depending on different Ivars (this->Enabled, the application's Limited Edition Mode, etc.), the "enable" state of the object is updated and propagated to its internal parts/subwidgets. This will, for example, enable/disable parts of the widget UI, enable/disable the visibility of 3D widgets, etc. Reimplemented from vtkKWTopLevel. |
|
|
|
|
|
|
|
Helper function to construct path to file in user's home directory |
|
|
|
|
|
Sets up the drag and drop targets for each lookmark and folder in manager. Often called after a change to the lookmark manager (such as Add, Remove, etc.) |
|
Perform the actual D&D given a widget and its target location. It will call AddDragAndDropEntry() and pack the widget to its new location |
|
When a lookmark or folder is deleted need to remove it as a target for all other widgets |
|
Helper functions for drag and drop capability |
|
Helper functions for drag and drop capability |
|
Helper functions for drag and drop capability |
|
These methods reassign the stored location values for all child lmk widgets or containers that are siblings in the lookmark manager hierarchy depending on whether we are inserting or removing a lmk item used in conjunction with Move and Remove callbacks |
|
These methods reassign the stored location values for all child lmk widgets or containers that are siblings in the lookmark manager hierarchy depending on whether we are inserting or removing a lmk item used in conjunction with Move and Remove callbacks |
|
Just what the name implies - pack the lookmark items (lookmarks or folders) that are children of parent using their location values |
|
helper function for removing checked lookmarks and folders that are children of parent |
|
Recursively visit each xml element of the lookmark file, creating, packing, and storing vtkPVLookmarks and vtkKWLookmarkFolders as appropriate |
|
Recursively visit each xml element of the lookmark file, creatings entries in the "Add Macro Examples" menu |
|
|
|
Convenience method for creating a Load/Save dialog box and returning the filename chosen by the user 0 for load, 1 for save |
|
Takes a vtkKWLookmarkElement and uses its attributes to initialize and return a new vtkPVLookmark |
|
Necessary to encode/decode newlines in the comments text and image data before/after being written/read to/from a lookmark file since they get lost in the call to WriteObject() uses a '~' to encode |
|
Necessary to encode/decode newlines in the comments text and image data before/after being written/read to/from a lookmark file since they get lost in the call to WriteObject() uses a '~' to encode |
|
called before and after certain callbacks that launch dialog boxes because when the user presses OK or Cancel the lookmark mgr panel is also getting the mouse down event (which causes unexpected behavior) |
|
prints the root and all its elements to the file |
|
takes a filename and folder widget, writes out an empty lookmark file, parses to get at the root element, recursively calls CreateNestedXMLElement and prints the folder and all its elements to the file |
|
|
|
Check to see if lookmark item is a descendant of container |
|
Before any action that changes the state of the lookmark manager (Add,Update,etc), this method is called to write out a lookmark file in the current directory of the current state of the lookmark manager. The file name is "LookmarkManager.lmk" by default until a lookmark file is imported or one is saved out |
|
Undo and redo share same underlying function |