#include <vtkKWMostRecentFilesManager.h>
Inheritance diagram for vtkKWMostRecentFilesManager:
Public Member Functions | |
vtkTypeRevisionMacro (vtkKWMostRecentFilesManager, vtkKWObject) | |
void | PrintSelf (ostream &os, vtkIndent indent) |
vtkKWMenu * | GetMenu () |
virtual void | UpdateMenuStateInParent () |
virtual void | PopulateMenu (vtkKWMenu *, int max_nb) |
virtual void | AddFile (const char *filename, vtkObject *target_object=NULL, const char *target_command=NULL) |
virtual vtkObject * | GetDefaultTargetObject () |
virtual void | SetDefaultTargetObject (vtkObject *) |
virtual char * | GetDefaultTargetCommand () |
virtual void | SetDefaultTargetCommand (const char *) |
virtual void | RestoreFilesListFromRegistry () |
virtual void | SaveFilesToRegistry () |
virtual void | RestoreFilesListFromRegistry (const char *reg_key, int max_nb) |
virtual void | SaveFilesToRegistry (const char *reg_key, int max_nb) |
virtual char * | GetRegistryKey () |
virtual void | SetRegistryKey (const char *) |
virtual int | GetMaximumNumberOfFilesInRegistry () |
virtual void | SetMaximumNumberOfFilesInRegistry (int) |
virtual int | GetMaximumNumberOfFilesInMenu () |
virtual void | SetMaximumNumberOfFilesInMenu (int) |
Static Public Member Functions | |
vtkKWMostRecentFilesManager * | New () |
Protected Member Functions | |
vtkKWMostRecentFilesManager () | |
~vtkKWMostRecentFilesManager () | |
virtual void | UpdateMenu () |
virtual void | AddFileInternal (const char *filename, vtkObject *target_object=NULL, const char *target_command=NULL) |
Protected Attributes | |
char * | DefaultTargetCommand |
vtkObject * | DefaultTargetObject |
char * | RegistryKey |
int | MaximumNumberOfFilesInRegistry |
int | MaximumNumberOfFilesInMenu |
vtkKWMostRecentFilesManagerInternals * | Internals |
Friends | |
class | vtkKWMostRecentFilesManagerInternals |
This class is basically a manager that acts as a container for a set of most recent files. It provides methods to manipulate them, load/save them from/to the registry, and display them as entries in a menu. An instance of this class is created in vtkKWWindowBase
Definition at line 40 of file vtkKWMostRecentFilesManager.h.
|
|
|
|
|
Reimplemented from vtkKWObject. |
|
|
|
Reimplemented from vtkKWObject. |
|
Add a most recent file to the list. Each most recent file is associated to a target object and a target command: when a most recent file is invoked (either programmatically or using the most recent files menu), the associated target commmand is invoked on the associated target object. If one and/or the other was not specified when the most recent file was added, the default target object and/or default target command are used. |
|
Set/Get the default target object and command. Each most recent file is associated to a target object and a target command: when a most recent file is invoked (either programmatically or using the most recent files menu), the associated target commmand is invoked on the associated target object. If one and/or the other was not specified when the most recent file was added, the default target object and default target command are used. |
|
Set/Get the default target object and command. Each most recent file is associated to a target object and a target command: when a most recent file is invoked (either programmatically or using the most recent files menu), the associated target commmand is invoked on the associated target object. If one and/or the other was not specified when the most recent file was added, the default target object and default target command are used. |
|
Set/Get the default target object and command. Each most recent file is associated to a target object and a target command: when a most recent file is invoked (either programmatically or using the most recent files menu), the associated target commmand is invoked on the associated target object. If one and/or the other was not specified when the most recent file was added, the default target object and default target command are used. |
|
Set/Get the default target object and command. Each most recent file is associated to a target object and a target command: when a most recent file is invoked (either programmatically or using the most recent files menu), the associated target commmand is invoked on the associated target object. If one and/or the other was not specified when the most recent file was added, the default target object and default target command are used. |
|
Load/Save up to 'max_nb' most recent files from/to the registry under the application's 'reg_key' key. The parameter-less methods use DefaultRegistryKey as 'reg_key' and MaximumNumberOfFilesInRegistry as 'max_nb'. Only the filename and target command are saved. When entries are loaded make sure DefaultTargetObject is set to a valid object. |
|
Load/Save up to 'max_nb' most recent files from/to the registry under the application's 'reg_key' key. The parameter-less methods use DefaultRegistryKey as 'reg_key' and MaximumNumberOfFilesInRegistry as 'max_nb'. Only the filename and target command are saved. When entries are loaded make sure DefaultTargetObject is set to a valid object. |
|
Load/Save up to 'max_nb' most recent files from/to the registry under the application's 'reg_key' key. The parameter-less methods use DefaultRegistryKey as 'reg_key' and MaximumNumberOfFilesInRegistry as 'max_nb'. Only the filename and target command are saved. When entries are loaded make sure DefaultTargetObject is set to a valid object. |
|
Load/Save up to 'max_nb' most recent files from/to the registry under the application's 'reg_key' key. The parameter-less methods use DefaultRegistryKey as 'reg_key' and MaximumNumberOfFilesInRegistry as 'max_nb'. Only the filename and target command are saved. When entries are loaded make sure DefaultTargetObject is set to a valid object. |
|
Set/Get the default registry key the most recent files are saved to or loaded from when it is not specified explicitly while calling load/save. |
|
Set/Get the default registry key the most recent files are saved to or loaded from when it is not specified explicitly while calling load/save. |
|
Set/Get the default maximum number of recent files in the registry when this number is not specified explicitly while calling load/save. |
|
Set/Get the default maximum number of recent files in the registry when this number is not specified explicitly while calling load/save. |
|
Get a convenience most recent files menu object. This menu is updated automatically as entries are added and removed, up to MaximumNumberOfFilesInMenu entries. It is up to the caller to set its parent, and it should be done as soon as possible if there is a need to use this menu. |
|
Set/Get the maximum number of recent files in the internal most recent files menu object (see GetMenu()). |
|
Set/Get the maximum number of recent files in the internal most recent files menu object (see GetMenu()). |
|
Disable/Enable the most recent files menu if it is a cascade in its parent. If the menu is empty, it will be disabled. |
|
Convenience method to populate a given menu with up to 'max_nb' most recent files entries. You do not need to call this method on GetMenu(), the internal menu is updated automatically. |
|
Add a most recent file to the list (internal, do not update the menu or save to the registry). |
|
Update the most recent files menu |
|
Definition at line 143 of file vtkKWMostRecentFilesManager.h. |
|
Definition at line 132 of file vtkKWMostRecentFilesManager.h. |
|
Definition at line 133 of file vtkKWMostRecentFilesManager.h. |
|
Definition at line 134 of file vtkKWMostRecentFilesManager.h. |
|
Definition at line 135 of file vtkKWMostRecentFilesManager.h. |
|
Definition at line 136 of file vtkKWMostRecentFilesManager.h. |
|
Definition at line 142 of file vtkKWMostRecentFilesManager.h. |