~ubuntu-branches/ubuntu/raring/ginkgocadx/raring-proposed

« back to all changes in this revision

Viewing changes to src/cadxcore/export/itoolslider.h

  • Committer: Package Import Robot
  • Author(s): Andreas Tille
  • Date: 2012-01-29 12:02:54 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20120129120254-nu7giync5p156icb
Tags: 2.8.0.4602-1
New upstream version (adapted patch, removed patch applied upstream)
Closes: #657827

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
*  
 
3
*  $Id: itoolslider.h 4468 2011-12-09 10:02:00Z carlos $
 
4
*  Ginkgo CADx Project
 
5
*
 
6
*  Copyright 2008-10 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
#pragma once
 
14
#include <api/iherramienta.h>
 
15
#include "icontratoscore.h"
 
16
#include "iherramientascore.h"
 
17
 
 
18
 
 
19
namespace GNC {
 
20
        namespace GCS {
 
21
 
 
22
                class EXTAPI IToolSlider: public IHerramienta, public IContratable<IContratoWidgets>, public IContratable<IContractSlider> {
 
23
                public:
 
24
                        typedef IContratoWidgets               TContratoWidgets;
 
25
                        typedef IContractSlider                TContractTool;
 
26
                        typedef IContratable<TContratoWidgets> TContractableWidgets;
 
27
                        typedef IContratable<TContractTool>    TContractableTool;
 
28
 
 
29
                        static const IHerramienta::UID ID = HCore_Slider;
 
30
                        IToolSlider() : IHerramienta(HCore_Slider,TFamiliaVisualizacion, "CoreSlider") {};
 
31
                        virtual ~IToolSlider() {};
 
32
 
 
33
                        virtual void SetVistaActiva(GNC::GCS::IVista* pVista) = 0;
 
34
 
 
35
                        virtual void ConectarContratos(bool) = 0;
 
36
 
 
37
                        virtual bool ValidaContratos(GNC::GCS::IVista* pVista) {
 
38
                                return TContractableWidgets::ValidaContrato(pVista) && TContractableTool::ValidaContrato(pVista);
 
39
                        }
 
40
                        
 
41
                };
 
42
        }
 
43
}