~ubuntu-branches/debian/stretch/codelite/stretch

« back to all changes in this revision

Viewing changes to SpellChecker/CorrectSpellingDlg.h

  • Committer: Package Import Robot
  • Author(s): James Cowgill
  • Date: 2014-09-01 00:23:18 UTC
  • mfrom: (1.1.14)
  • Revision ID: package-import@ubuntu.com-20140901002318-wx98wxrjb2e0ifi8
Tags: 6.1.1+dfsg-1
* New upstream release.

* debian/control
  - Build depend on libhunspell-dev.
  - Re-enable SFTP support using libssh-gcrypt.
  - Recommend valgrind (for new MemChecker plugin).
* debian/copyright
  - Remove bundled version of hunspell.
* debian/patches
  - Refresh patches.
  - Patch 10_move-helper-binaries.patch rewritten due to upstream changes.
  - Add 19_remove-bundled-clang-format.patch to fix clang-format paths.
  - Add 20_Compilation-fix-for-non-precompiled-header-builds.patch from
    upstream to fix build.
* debian/*.1
  - Remove manpages in debian/ - moved to upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//////////////////////////////////////////////////////////////////////////////
 
2
//////////////////////////////////////////////////////////////////////////////
 
3
//
 
4
// copyright            : (C) 2014 The CodeLite Team
 
5
// file name            : CorrectSpellingDlg.h
 
6
//
 
7
// -------------------------------------------------------------------------
 
8
// A
 
9
//              _____           _      _     _ _
 
10
//             /  __ \         | |    | |   (_) |
 
11
//             | /  \/ ___   __| | ___| |    _| |_ ___
 
12
//             | |    / _ \ / _  |/ _ \ |   | | __/ _ )
 
13
//             | \__/\ (_) | (_| |  __/ |___| | ||  __/
 
14
//              \____/\___/ \__,_|\___\_____/_|\__\___|
 
15
//
 
16
//                                                  F i l e
 
17
//
 
18
//    This program is free software; you can redistribute it and/or modify
 
19
//    it under the terms of the GNU General Public License as published by
 
20
//    the Free Software Foundation; either version 2 of the License, or
 
21
//    (at your option) any later version.
 
22
//
 
23
//////////////////////////////////////////////////////////////////////////////
 
24
//////////////////////////////////////////////////////////////////////////////
 
25
 
 
26
/////////////////////////////////////////////////////////////////////////////
 
27
// Name:        correctspellingdlg.h
 
28
// Purpose:
 
29
// Author:      Frank Lichtner
 
30
// Modified by:
 
31
// Created:     02/02/14
 
32
// SVN-ID:      $Id: CorrectSpellingDlg.h 35 2014-02-22 18:18:49Z Frank $
 
33
// Copyright:   2014 Frank Lichtner
 
34
// License:
 
35
/////////////////////////////////////////////////////////////////////////////
 
36
#ifndef __CorrectSpellingDlg__
 
37
#define __CorrectSpellingDlg__
 
38
// ------------------------------------------------------------
 
39
#include "wxcrafter.h"
 
40
// ------------------------------------------------------------
 
41
#define SC_CHANGE   20
 
42
#define SC_IGNORE   21
 
43
#define SC_ADD      22
 
44
// ------------------------------------------------------------
 
45
/** Implementing CorrectSpellingDlg_base */
 
46
class IHunSpell;
 
47
class CorrectSpellingDlg : public CorrectSpellingDlg_base
 
48
{
 
49
protected:
 
50
        // Handlers for CorrectSpellingDlg_base events.
 
51
        void OnInitDialog( wxInitDialogEvent& event );
 
52
        void OnSuggestionSelected( wxCommandEvent& event );
 
53
        void OnChangeClick( wxCommandEvent& event );
 
54
        void OnIgnoreClick( wxCommandEvent& event );
 
55
        void OnDblClickSuggestions( wxCommandEvent& event );
 
56
        void OnAddClick( wxCommandEvent& event );
 
57
        void OnSuggestClick( wxCommandEvent& event );
 
58
        void OnMove( wxMoveEvent& event );
 
59
 
 
60
        wxString   m_misspelled;
 
61
        IHunSpell* m_pHs;
 
62
        wxPoint    m_currentPosition;
 
63
 
 
64
public:
 
65
        /** Constructor */
 
66
        CorrectSpellingDlg( wxWindow* parent );
 
67
        virtual ~CorrectSpellingDlg();
 
68
 
 
69
        void     SetPHs( IHunSpell* pHs ) { this->m_pHs = pHs; }
 
70
        wxString GetMisspelled() const { return m_misspelled; }
 
71
        void     SetMisspelled( wxString value ) { this->m_misspelled = value; }
 
72
        void     SetSuggestions( wxArrayString suggests );
 
73
};
 
74
 
 
75
#endif // __CorrectSpellingDlg__