~ubuntu-branches/ubuntu/karmic/codelite/karmic

« back to all changes in this revision

Viewing changes to Plugin/project.h

  • Committer: Bazaar Package Importer
  • Author(s): Chow Loong Jin
  • Date: 2009-08-15 17:42:43 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20090815174243-nlb9ikgigbiybz12
Tags: 1.0.2893+dfsg-0ubuntu1
* debian/rules:
  + Tidy up get-orig-source rule
* debian/control:
  + Bump Standards-Version
  + Change Maintainer email address to @ubuntu.com
  + Drop cdbs build-dependency
* debian/copyright:
  + Update to DEP-5 format
* debian/patches/00_add-fPIC.patch:
  + Dropped, fix upstream
* Closes LP: #413992

Show diffs side-by-side

added added

removed removed

Lines of Context:
180
180
        bool m_tranActive;
181
181
        bool m_isModified;
182
182
        std::map<wxString, wxXmlNode*> m_vdCache;
 
183
        time_t m_modifyTime;
183
184
 
184
185
public:
185
186
        const wxFileName &GetFileName() const {
417
418
         */
418
419
        wxString GetProjectInternalType() const;
419
420
 
 
421
        /**
 
422
         * @brief return the plugins' data. This data is copied when using 'save project as template' functionality
 
423
         * @param plugin plugin name
 
424
         * @return plugins data or wxEmptyString
 
425
         */
 
426
        wxString GetPluginData(const wxString &pluginName);
 
427
 
 
428
        /**
 
429
         * @brief set the plugin data. This data is copied when using 'save project as template' functionality
 
430
         * @param plugin the plugins' name
 
431
         * @param data the data
 
432
         */
 
433
        void SetPluginData(const wxString &pluginName, const wxString &data);
 
434
 
 
435
        /**
 
436
         * @brief get all plugins data as map of plugin=value pair
 
437
         * @param pluginsDataMap [output]
 
438
         */
 
439
        void GetAllPluginsData(std::map<wxString, wxString> &pluginsDataMap);
 
440
 
 
441
        /**
 
442
         * @brief set all plugins data as map of plugin=value pair
 
443
         * @param pluginsDataMap
 
444
         */
 
445
        void SetAllPluginsData(const std::map<wxString, wxString> &pluginsDataMap);
 
446
 
 
447
        //----------------------------------
 
448
        //File modifications
 
449
        //----------------------------------
 
450
 
 
451
        /**
 
452
         * return the last modification time (on disk) of editor's underlying file
 
453
         */
 
454
        time_t GetFileLastModifiedTime() const;
 
455
 
 
456
        /**
 
457
         * return/set the last modification time that was made by the editor
 
458
         */
 
459
        time_t GetProjectLastModifiedTime() const {
 
460
                return m_modifyTime;
 
461
        }
 
462
        void SetProjectLastModifiedTime(time_t modificationTime) {
 
463
                m_modifyTime = modificationTime;
 
464
        }
 
465
 
420
466
private:
 
467
 
421
468
        void DoGetVirtualDirectories(wxXmlNode* parent, TreeNode<wxString, VisualWorkspaceNode>* tree);
422
469
        wxXmlNode *FindFile(wxXmlNode* parent, const wxString &file);
423
470
 
437
484
         * Return list of projects that this projects depends on
438
485
         */
439
486
        wxArrayString GetDependencies() const;
 
487
 
 
488
        bool SaveXmlFile();
440
489
};
441
490
 
442
491
class ProjectData