1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116
|
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//
// copyright : (C) 2014 The CodeLite Team
// file name : SpellCheckerSettings.h
//
// -------------------------------------------------------------------------
// A
// _____ _ _ _ _
// / __ \ | | | | (_) |
// | / \/ ___ __| | ___| | _| |_ ___
// | | / _ \ / _ |/ _ \ | | | __/ _ )
// | \__/\ (_) | (_| | __/ |___| | || __/
// \____/\___/ \__,_|\___\_____/_|\__\___|
//
// F i l e
//
// This program 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.
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
// Name: SpellCheckerSettings.h
// Purpose:
// Author: Frank Lichtner
// Modified by:
// Created: 02/02/14
// SVN-ID: $Id: SpellCheckerSettings.h 35 2014-02-22 18:18:49Z Frank $
// Copyright: 2014 Frank Lichtner
// License:
/////////////////////////////////////////////////////////////////////////////
#ifndef __SpellCheckerSettings__
#define __SpellCheckerSettings__
// ------------------------------------------------------------
#include "wxcrafter.h"
// ------------------------------------------------------------
class IHunSpell;
// ------------------------------------------------------------
/** Implementing SpellCheckerSettings_base */
class SpellCheckerSettings : public SpellCheckerSettings_base
{
protected:
// Handlers for SpellCheckerSettings_base events.
void OnInitDialog( wxInitDialogEvent& event );
void OnLanguageSelected( wxCommandEvent& event );
void OnUpdateOk( wxUpdateUIEvent& event );
void OnOk( wxCommandEvent& event );
void OnDirChanged( wxFileDirPickerEvent& event );
void OnClearIgnoreList( wxCommandEvent& event );
void FillLanguageList();
IHunSpell* m_pHunspell;
wxString m_dictionaryFileName;
wxString m_dictionaryPath;
bool m_scanStrings;
bool m_scanCPP;
bool m_scanC;
bool m_scanD1;
bool m_scanD2;
public:
const wxString& GetDictionaryPath() const {
return m_dictionaryPath;
}
const wxString& GetDictionaryFileName() const {
return m_dictionaryFileName;
}
void SetDictionaryFileName( const wxString& dictionaryFileName ) {
this->m_dictionaryFileName = dictionaryFileName;
}
void SetDictionaryPath( const wxString& dictionaryPath );
void SetHunspell( IHunSpell* pHunspell ) {
this->m_pHunspell = pHunspell;
}
void SetScanC( const bool& scanC ) {
this->m_scanC = scanC;
}
void SetScanCPP( const bool& scanCPP ) {
this->m_scanCPP = scanCPP;
}
void SetScanD1( const bool& scanD1 ) {
this->m_scanD1 = scanD1;
}
void SetScanD2( const bool& scanD2 ) {
this->m_scanD2 = scanD2;
}
void SetScanStrings( const bool& scanStrings ) {
this->m_scanStrings = scanStrings;
}
bool GetScanC() const {
return m_scanC;
}
bool GetScanCPP() const {
return m_scanCPP;
}
bool GetScanD1() const {
return m_scanD1;
}
bool GetScanD2() const {
return m_scanD2;
}
bool GetScanStrings() const {
return m_scanStrings;
}
/** Constructor */
SpellCheckerSettings( wxWindow* parent );
virtual ~SpellCheckerSettings();
};
#endif // __SpellCheckerSettings__
|