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

« back to all changes in this revision

Viewing changes to src/cadxcore/commands/openremovableunit.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: sendhl7command.h 4099 2011-08-29 11:27:03Z tovar $
 
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/icomando.h>
 
15
 
 
16
namespace GADAPI {
 
17
        class  OpenRemovableUnitCommandParams: public GNC::GCS::IComandoParams {
 
18
        public:
 
19
                typedef struct TRemovableUnit {
 
20
                        std::string displayName;
 
21
                        std::string path;
 
22
                        bool hasDicomDir;
 
23
                }TRemovableUnit;
 
24
 
 
25
                OpenRemovableUnitCommandParams(wxWindow* pParent)
 
26
                {
 
27
                        m_pParent = pParent;
 
28
                }
 
29
                virtual ~OpenRemovableUnitCommandParams()
 
30
                {
 
31
                }
 
32
        public:
 
33
                typedef std::list<TRemovableUnit> TListOfUnits;
 
34
                TListOfUnits units;             
 
35
                wxWindow* m_pParent;
 
36
        };
 
37
 
 
38
        
 
39
        class OpenRemovableUnitCommand : public GNC::GCS::IComando {
 
40
        public:
 
41
                OpenRemovableUnitCommand(OpenRemovableUnitCommandParams* pParams);
 
42
 
 
43
    protected:
 
44
                virtual void Execute();
 
45
                virtual void Update();
 
46
                bool OpenDicomDir();
 
47
                bool ScanRecursively();
 
48
                void SelectDrive(bool hasDicomDir);
 
49
                void LaunchOpenRecursively(const std::string& path);
 
50
                void LaunchOpenDicomDir(const std::string& path);
 
51
    protected:
 
52
 
 
53
                OpenRemovableUnitCommandParams* m_pOpenParams;
 
54
        };
 
55
}