~ubuntu-branches/ubuntu/oneiric/codeblocks/oneiric

« back to all changes in this revision

Viewing changes to src/plugins/projectsimporter/projectsimporter.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Casadevall
  • Date: 2008-07-17 04:39:23 UTC
  • Revision ID: james.westby@ubuntu.com-20080717043923-gmsy5cwkdjswghkm
Tags: upstream-8.02
ImportĀ upstreamĀ versionĀ 8.02

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * This file is part of the Code::Blocks IDE and licensed under the GNU General Public License, version 3
 
3
 * http://www.gnu.org/licenses/gpl-3.0.html
 
4
 */
 
5
 
 
6
#ifndef PROJECTSIMPORTER_H
 
7
#define PROJECTSIMPORTER_H
 
8
 
 
9
#include "cbplugin.h" // the base class we 're inheriting
 
10
 
 
11
class ProjectsImporter : public cbMimePlugin
 
12
{
 
13
    public:
 
14
        ProjectsImporter();
 
15
        ~ProjectsImporter();
 
16
        int Configure();
 
17
        int GetConfigurationGroup() const { return cgCorePlugin; }
 
18
        cbConfigurationPanel* GetConfigurationPanel(wxWindow* parent);
 
19
        bool HandlesEverything() const { return false; }
 
20
        bool CanHandleFile(const wxString& filename) const;
 
21
        int OpenFile(const wxString& filename);
 
22
        void OnAttach(); // fires when the plugin is attached to the application
 
23
        void OnRelease(bool appShutDown); // fires when the plugin is released from the application
 
24
        void BuildMenu(wxMenuBar* menuBar);
 
25
    private:
 
26
        int LoadProject(const wxString& filename);
 
27
        int LoadWorkspace(const wxString& filename);
 
28
 
 
29
        wxMenu* m_Menu;
 
30
};
 
31
 
 
32
#endif // PROJECTSIMPORTER_H
 
33