|
/* This file is a part of SmartLexicon, a multi-lingual dictionary engine.
Copyright (C) 2005, Kostas Giannakakis
SmartLexicon is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
SmartLexicon is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with SmartLexicon; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#pragma once
#include "LexObject.h"
#include "LexDataBase.h"
#include "LexManagement.h"
#include "afxwin.h"
// CLoadingDlg dialog
class CLoadingDlg : public CDialog
{
DECLARE_DYNAMIC(CLoadingDlg)
public:
CLoadingDlg(CWnd* pParent = NULL); // standard constructor
virtual ~CLoadingDlg();
// Dialog Data
enum { IDD = IDD_LOADING_DIALOG };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual void OnCancel();
virtual void OnOK();
virtual BOOL OnInitDialog();
DECLARE_MESSAGE_MAP()
public:
void Initialise(CLexDataBase *lexDB_,
CLexManagement *lexMng_)
{ lexDB = lexDB_;
lexMng = lexMng_;
};
CLexiconObject * GetLexObject() {return(lexObject);};
void GetProperties(CString& lang1,
CString& lang2,
BOOL& aAutoload,
int& aType);
CString m_Percentage;
private:
CString m_FileName;
CString pathName;
CString m_DictionaryName;
CString fileExtentionFilter;
BOOL m_Autoload;
CComboBox c_Lang1;
CComboBox c_Lang2;
CComboBox c_Type;
BOOL loadingInProgress;
CRect fullWindowRect;
int type;
CString language1, language2;
CProgressCtrl c_LoadingProgress;
CLexiconObject *lexObject;
CLexManagement *lexMng;
CLexDataBase *lexDB;
static const int PARAM_COUNT = 3;//CLexIndexFileBase::PARAM_COUNT;
CString paramName[PARAM_COUNT],
param[PARAM_COUNT];
int paramType[PARAM_COUNT];
void UpdateParamControls(int type);
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnBnClickedBrowseButton();
afx_msg void OnBnClickedLoadButton();
afx_msg void OnCbnSelchangeTypeCombo();
};
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.