6
* Copyright 2008-12 MetaEmotion S.L. All rights reserved.
7
* http://ginkgo-cadx.com
9
* This file is licensed under LGPL v3 license.
10
* See License.txt for details
13
#include <wx/string.h>
20
IPasoWizard::IPasoWizard(IWizard * pWizard) :
21
m_pListaFicheros(NULL),
26
IPasoWizard::~IPasoWizard()
30
bool IPasoWizard::Attach()
35
bool IPasoWizard::Detach()
40
std::string IPasoWizard::GetSubTitle()
45
bool IPasoWizard::AllowCancel()
50
void IPasoWizard::OnCancelled() {}
52
void IPasoWizard::AsignarListaFicheros(ListaFicheros &lista)
54
m_pListaFicheros=&lista;
57
void IPasoWizard::SiguientePaso(){
58
m_pWizard->SiguientePaso();
61
void IPasoWizard::EnableSiguiente(bool enable){
62
m_pWizard->EnableSiguiente(enable);
65
void IPasoWizard::EnableAnterior(bool enable){
66
m_pWizard->EnableAnterior(enable);
69
void IPasoWizard::EnableCancelar(bool enable){
70
m_pWizard->EnableCancelar(enable);
73
bool IPasoWizard::ValidarDouble(std::string strNumero, double min, double max, bool obligatorio, bool estricto){
75
wxString wxStr = wxString::FromUTF8(strNumero.c_str());
77
if(!wxStr.ToDouble(&valor)) {
81
if(valor <= min || valor >= max){
86
if(valor < min || valor > max){
101
bool IPasoWizard::ValidarLong(std::string strNumero, long min, long max, bool obligatorio, bool estricto){
103
wxString wxStr = wxString::FromUTF8(strNumero.c_str());
105
if(!wxStr.ToLong(&valor)) {
109
if(valor<=min || valor >=max){
114
if(valor < min || valor > max){