Skip to content

Commit

Permalink
[NEW] Make NativeLangSpeaker object available for all classes in Note…
Browse files Browse the repository at this point in the history
…pad++.

- Notepad-plus svn trunk @ 734
  • Loading branch information
donho committed Jan 22, 2011
1 parent cf4ade9 commit ac64dbf
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions PowerEditor/src/Notepad_plus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ Notepad_plus::Notepad_plus(): _mainWindowStatus(0), _pDocTab(NULL), _pEditView(N
}
#endif

(NppParameters::getInstance())->setNativeLangSpeaker(&_nativeLangSpeaker);

TiXmlDocument *toolIconsDocRoot = (NppParameters::getInstance())->getToolIcons();

if (toolIconsDocRoot)
Expand Down
6 changes: 6 additions & 0 deletions PowerEditor/src/Parameters.h
Original file line number Diff line number Diff line change
Expand Up @@ -1428,6 +1428,12 @@ class NppParameters
PluginList & getPluginList() {return _pluginList;};
bool importUDLFromFile(generic_string sourceFile);
bool exportUDLToFile(int langIndex2export, generic_string fileName2save);
NativeLangSpeaker * getNativeLangSpeaker() {
return _pNativeLangSpeaker;
};
void setNativeLangSpeaker(NativeLangSpeaker *nls) {
_pNativeLangSpeaker = nls;
};

private:
NppParameters();
Expand Down
4 changes: 2 additions & 2 deletions PowerEditor/src/localization.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
#include "tinyxmlA.h"
#endif //TINYXMLA_INCLUDED

#include "FindReplaceDlg.h"
#include "preferenceDlg.h"
class FindReplaceDlg;
class PreferenceDlg;

class NativeLangSpeaker {
public:
Expand Down

0 comments on commit ac64dbf

Please sign in to comment.