~ubuntu-branches/ubuntu/maverick/poedit/maverick

« back to all changes in this revision

Viewing changes to src/edframe.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2008-09-16 19:47:00 UTC
  • mfrom: (0.2.9 upstream) (1.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20080916194700-ueyef0pgklk3u50k
Tags: 1.4.2-2
Adding debug package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 *  This file is part of Poedit (http://www.poedit.net)
3
3
 *
4
 
 *  Copyright (C) 1999-2005 Vaclav Slavik
 
4
 *  Copyright (C) 1999-2008 Vaclav Slavik
5
5
 *
6
6
 *  Permission is hereby granted, free of charge, to any person obtaining a
7
7
 *  copy of this software and associated documentation files (the "Software"),
21
21
 *  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22
22
 *  DEALINGS IN THE SOFTWARE.
23
23
 *
24
 
 *  $Id: edframe.h 1175 2007-10-03 06:38:00Z vaclavslavik $
 
24
 *  $Id: edframe.h 1316 2008-02-26 13:16:52Z vaclavslavik $
25
25
 *
26
26
 *  Editor frame
27
27
 *
38
38
// processes doesn't work well:
39
39
#define USE_GETTEXT_VALIDATION 0
40
40
 
 
41
#if USE_GETTEXT_VALIDATION
41
42
#include <list>
 
43
#endif
 
44
 
 
45
#include <set>
42
46
 
43
47
#include <wx/frame.h>
44
48
#include <wx/docview.h>
62
66
 
63
67
class ListHandler;
64
68
class TextctrlHandler;
 
69
class TransTextctrlHandler;
65
70
 
66
71
class TranslationMemory;
67
72
class PoeditFrame;
121
126
        void RefreshControls();
122
127
        /// Sets controls custom fonts.
123
128
        void SetCustomFonts();
 
129
 
 
130
        CatalogItem *GetCurrentItem() const;
 
131
 
124
132
        /// Puts text from textctrls to catalog & listctrl.
125
 
        void UpdateFromTextCtrl(int item = -1);
 
133
        void UpdateFromTextCtrl();
126
134
        /// Puts text from catalog & listctrl to textctrls.
127
 
        void UpdateToTextCtrl(int item = -1);
 
135
        void UpdateToTextCtrl();
128
136
 
129
137
        /// Updates statistics in statusbar.
130
138
        void UpdateStatusBar();
166
174
        void OnPreferences(wxCommandEvent& event);
167
175
        void OnUpdate(wxCommandEvent& event);
168
176
        void OnListSel(wxListEvent& event);
169
 
        void OnListDesel(wxListEvent& event);
170
177
        void OnListActivated(wxListEvent& event);
171
178
        void OnListRightClick(wxMouseEvent& event);
172
179
        void OnListFocus(wxFocusEvent& event);
225
232
        void InitHelp();
226
233
        wxString LoadHelpBook(const wxString& name);
227
234
 
 
235
        void RefreshSelectedItem();
 
236
 
228
237
        DECLARE_EVENT_TABLE()
229
238
 
230
239
    private:
240
249
        ValidationProcessData m_validationProcess;
241
250
#endif
242
251
 
 
252
        std::set<int> m_itemsRefreshQueue;
 
253
 
243
254
        bool m_commentWindowEditable;
244
255
        Catalog *m_catalog;
245
256
        wxString m_fileName;
277
288
        bool m_displayLines;
278
289
        bool m_displayCommentWin;
279
290
        bool m_displayAutoCommentsWin;
280
 
        int m_sel;//, m_selItem;
281
291
        wxFileHistory m_history;
282
 
        std::vector<wxString> m_edittedTextOrig;
283
 
        bool m_edittedTextFuzzyChanged;
 
292
        bool m_dontAutoclearFuzzyStatus;
284
293
 
285
294
        friend class ListHandler;
286
295
        friend class TextctrlHandler;
 
296
        friend class TransTextctrlHandler;
287
297
};
288
298
 
289
299