~ubuntu-branches/ubuntu/wily/ginkgocadx/wily-proposed

« back to all changes in this revision

Viewing changes to src/fooextension/fooextension.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Tille
  • Date: 2011-05-02 08:09:26 UTC
  • Revision ID: james.westby@ubuntu.com-20110502080926-bql5wep49c7hg91t
Tags: upstream-2.4.1.1
ImportĀ upstreamĀ versionĀ 2.4.1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *  $Id: gnkvideo.cpp 3681 2011-04-12 10:53:31Z tovar $
 
3
 *  Proyecto Ginkgo
 
4
 *
 
5
 *  Copyright 2008 MetaEmotion S.L. All rights reserved.
 
6
 *
 
7
 */
 
8
#include "fooextension.h"
 
9
#include "fooextension/controllers/fooextensioncontroller.h"
 
10
#include <api/ientorno.h>
 
11
#include <api/internacionalizacion.h>
 
12
#include <iostream>
 
13
#include <wx/config.h>
 
14
#include <wx/msgdlg.h>
 
15
#include "fooextension/license.h"
 
16
 
 
17
 
 
18
//it's required to call this macro
 
19
IMPLEMENT_PrivateExtension(GnkFooExtension)
 
20
 
 
21
//parameters are related with provider, version... sid is the extension id, it's used to know if a file has been imported by this extension
 
22
//this information will be used in viewer open preference
 
23
GnkFooExtension::GnkFooExtension(): PrivateExtension(FOO_EXTENSION_SID, FOO_EXTENSION_PROVIDER, FOO_EXTENSION_DESCRIPTION, FOO_EXTENSION_VERSION, FOO_EXTENSION_SUB_VERSION, FOO_EXTENSION_SUB_RELEASE)
 
24
{
 
25
}
 
26
 
 
27
GnkFooExtension::~GnkFooExtension()
 
28
{
 
29
}
 
30
 
 
31
//returns extension controller module
 
32
GNC::GCS::IControladorModulo* GnkFooExtension::InitializeLibrary(GNC::GCS::IEntorno* pEntorno)
 
33
{
 
34
        return new FooExtension::FooExtensionController(pEntorno);
 
35
}
 
36
 
 
37
//here you can implement your own security policy
 
38
bool GnkFooExtension::IsActivated()
 
39
{
 
40
        return true;
 
41
}
 
42
 
 
43
//this extension is free to use
 
44
void GnkFooExtension::ShowActivationDialog(wxWindow* pParent)
 
45
{       
 
46
        wxMessageBox(_("FooExtension is Open Source"), _("Info"));
 
47
}
 
48