#include <projecttree.h>
Public Member Functions | |
| projecttree (wxWindow *parent, wxWindowID id=-1) | |
| Constuctor. | |
| void | onExpand (wxTreeEvent &evt) |
| Expands the current node. | |
| void | onSelect (wxTreeEvent &evt) |
| user has selected a node action. | |
| void | onRightClick (wxTreeEvent &evt) |
| Called when user right-clicks on a node. | |
| void | onLabelEdit (wxCommandEvent &evt) |
| Allows user to rename a node. | |
| void | onEndLabelEdit (wxTreeEvent &evt) |
| Called when the user has finsihed editing a node label. | |
| void | onProperties (wxCommandEvent &evt) |
| Allow user to view the properties of the selected node. | |
| void | onRemove (wxCommandEvent &evt) |
| Removes a node from the tree. | |
| void | onAddSource (wxCommandEvent &evt) |
| Queries the user to add a source element to the tree. | |
| void | onAddGroup (wxCommandEvent &evt) |
| Queries the user to add a group element to the tree. | |
| void | onAddTool (wxCommandEvent &evt) |
| Queries the user to add a tool to the tree. | |
| void | onEditScript (wxCommandEvent &evt) |
| Opens a script in the editor. | |
| void | onCopy (wxCommandEvent &evt) |
| Copy a disk file. | |
| void | onMove (wxCommandEvent &evt) |
| Move a disk file to another place. | |
| void | onRename (wxCommandEvent &evt) |
| Renames a node. | |
| void | onDelete (wxCommandEvent &evt) |
| Delete a node from the tree. | |
| void | onEditFile (wxCommandEvent &evt) |
| Attempt to open the file on the editor. | |
| void | onMkDir (wxCommandEvent &evt) |
| Ask the user about creating a new folder on disk. | |
| void | onNew (wxCommandEvent &evt) |
| Create a new project. | |
| void | doNew () |
| This creates a new project without regard, erasing the old, if any. | |
| void | doNewFromTemplate () |
| Open a new project template. | |
| void | onOpen (wxCommandEvent &evt) |
| Opens a new project, querying about saving first. | |
| void | onSave (wxCommandEvent &evt) |
| Calls doSave to save the current project. | |
| void | doSave () |
| Calls saveProject or doSaveAs if the project has yet to be saved. | |
| void | onSaveAs (wxCommandEvent &evt) |
| Calls doSaveAs. | |
| bool | doSaveAs () |
| Names and saves the project to disk setting the work dir. | |
| void | onNewFile (wxCommandEvent &evt) |
| Create a new file under the parent node and in the editor. | |
| void | onNewFileFromTemplate (wxCommandEvent &evt) |
| Create a new file from a template. | |
| void | doRunTool (const wxString &path) |
| Attempt to execute the tool at tree path. | |
| void | onScm (wxCommandEvent &evt) |
| Handle SCM operations. | |
| void | onClose (wxCloseEvent &evt) |
| Called when the project window is about to be destroyed. | |
| void | onBeginDrag (wxTreeEvent &evt) |
| User has started an internal drag operation. | |
| void | onEndDrag (wxTreeEvent &evt) |
| User has finished the internal drag operation. | |
| bool | askSaveNewProject () |
| Ask if the user wants to save this project. | |
| bool | addToProject (wxString fname) |
| Adds a file or dir to the sources or a group element. | |
| bool | openProject (wxString fname) |
| Opens a new project. | |
| bool | saveProject () |
| Saves the current project to disk. | |
| int | getFileType (const wxString &fname) |
| Return the index into the image list for tree node bitmaps based on the file type. | |
| void | addChildren (const wxString &rootPath, TiXmlElement *item, wxTreeItemId &id) |
| Recursive method to add children to the tree while reading proj file. | |
| void | writeProjectTree (const wxTreeItemId &idParent, wxTreeItemIdValue cookie, wxTextOutputStream &outp, int depth) |
| Traverse the project tree, writing xml elements. | |
| bool | isDirty () |
|
||||||||||||
|
Constuctor.
|
|
||||||||||||||||
|
Recursive method to add children to the tree while reading proj file.
|
|
|
Adds a file or dir to the sources or a group element.
|
|
|
Ask if the user wants to save this project. This is not used anymore I think. |
|
|
This creates a new project without regard, erasing the old, if any.
|
|
|
Open a new project template. Project templates are simply zip files that get decompressed somewhere chosen by the user. A simple gsub takes place as the files are being decompressed, subbing MF_PROJECT_NAME with the project name.
|
|
|
Attempt to execute the tool at tree path. Navigates the tree and locates the tool named. If found, sends an ITEM_ACTIVATED event to itself.
|
|
|
Calls saveProject or doSaveAs if the project has yet to be saved.
|
|
|
Names and saves the project to disk setting the work dir.
|
|
|
Return the index into the image list for tree node bitmaps based on the file type.
|
|
|
|
|
|
Queries the user to add a group element to the tree.
|
|
|
Queries the user to add a source element to the tree.
|
|
|
Queries the user to add a tool to the tree.
|
|
|
User has started an internal drag operation.
|
|
|
Called when the project window is about to be destroyed.
|
|
|
Copy a disk file.
|
|
|
Delete a node from the tree. If this is a file or dir node, delete from disk as well.
|
|
|
Attempt to open the file on the editor.
|
|
|
Opens a script in the editor.
|
|
|
User has finished the internal drag operation.
|
|
|
Called when the user has finsihed editing a node label. May just change the label or perhaps the file or dir name as well, if applicable.
|
|
|
Expands the current node.
|
|
|
Allows user to rename a node.
|
|
|
Ask the user about creating a new folder on disk.
|
|
|
Move a disk file to another place.
|
|
|
Create a new project. If a project is currently open and has been modified, asks about a save.
|
|
|
Create a new file under the parent node and in the editor.
|
|
|
Create a new file from a template.
|
|
|
Opens a new project, querying about saving first.
|
|
|
Allow user to view the properties of the selected node.
|
|
|
Removes a node from the tree.
|
|
|
Renames a node. This may also rename the associated file on disk.
|
|
|
Called when user right-clicks on a node. Creates a relevant popup menu.
|
|
|
Calls doSave to save the current project.
|
|
|
Calls doSaveAs.
|
|
|
Handle SCM operations.
|
|
|
user has selected a node action.
|
|
|
Opens a new project.
|
|
|
Saves the current project to disk.
|
|
||||||||||||||||||||
|
Traverse the project tree, writing xml elements.
|
1.4.4