~ubuntu-branches/ubuntu/trusty/ginkgocadx/trusty

« back to all changes in this revision

Viewing changes to src/cadxcore/main/tools/openginkgocloudlinktool.cpp

  • Committer: Package Import Robot
  • Author(s): Dmitry Smirnov
  • Date: 2013-07-21 11:58:53 UTC
  • mfrom: (7.2.1 sid)
  • Revision ID: package-import@ubuntu.com-20130721115853-44e7n1xujqglu78e
Tags: 3.4.0.928.29+dfsg-1
* New upstream release [July 2013]
  + new B-D: "libjsoncpp-dev".
  + new patch "unbundle-libjsoncpp.patch" to avoid building bundled
    "libjsoncpp-dev".
  + new patch "fix-wx.patch" to avoid FTBFS due to missing
    "-lwx_gtk2u_html-2.8".
* Removed unnecessary versioned Build-Depends.
* Removed obsolete lintian override.
* Reference get-orig-source implementation for orig.tar clean-up and
  DFSG-repackaging.
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *  
 
3
 *  $Id: openfiletool.cpp $
 
4
 *  Ginkgo CADx Project
 
5
 *
 
6
 *  Copyright 2008-12 MetaEmotion S.L. All rights reserved.
 
7
 *  http://ginkgo-cadx.com
 
8
 *
 
9
 *  This file is licensed under LGPL v3 license.
 
10
 *  See License.txt for details
 
11
 *
 
12
 *
 
13
 */
 
14
 
 
15
#include "openginkgocloudlinktool.h"
 
16
 
 
17
#include <api/controllers/icontroladorpermisos.h>
 
18
#include <main/gui/ginkgocloud/openginkgoclouddialog.h>
 
19
#include <resources/ginkgoresourcesmanager.h>
 
20
#include <main/controllers/historytoolscontroller.h>
 
21
 
 
22
 
 
23
#include <api/internationalization/internationalization.h>
 
24
 
 
25
//----------------------------------------------------------------------
 
26
 
 
27
GNC::OpenGinkgoCloudLinkTool::OpenGinkgoCloudLinkTool(): GNC::GCS::IHistoryTool(ID,GNC::GCS::IHistoryTool::TFamily_Open, _Std("Open Ginkgo Cloud link"), _Std("Open Ginkgo Cloud link"), GinkgoResourcesManager::ToolIcons::GetIcoDownloadCloud()) 
 
28
{
 
29
}
 
30
 
 
31
GNC::OpenGinkgoCloudLinkTool::~OpenGinkgoCloudLinkTool()
 
32
{
 
33
}
 
34
 
 
35
bool GNC::OpenGinkgoCloudLinkTool::Enabled() 
 
36
{
 
37
        return GNC::GCS::IControladorPermisos::Instance()->Get("core.restrictions","acquire") && GNC::GCS::IControladorPermisos::Instance()->Get("ginkgocloud","download");
 
38
}
 
39
 
 
40
void GNC::OpenGinkgoCloudLinkTool::Execute()
 
41
{
 
42
        GNC::GUI::OpenGinkgoCloudDialog* dlg = new GNC::GUI::OpenGinkgoCloudDialog(GNC::HistoryToolsController::Instance()->GetHistoryPanel()->GetWxWindow());
 
43
        dlg->Show();
 
44
        dlg->Raise();
 
45
}
 
46
 
 
47
 
 
48