summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi Sumita <hsumita@chromium.org>2012-05-17 11:04:05 +0900
committerHiroshi Sumita <hsumita@chromium.org>2012-05-17 11:04:05 +0900
commit9d37a22f7e337b0c191296afe24b324d7ff9766c (patch)
tree54b3322bf54649432fdd0bc9a461fa5955f15f48
parent5aea2d4df21e32f0ebde55ee02cf12e1d6e916f4 (diff)
downloadpyzy-9d37a22f7e337b0c191296afe24b324d7ff9766c.tar.gz
Renames lookupTableChanged to candidatesChanged.
BUG=None TEST=Manual build Review URL: https://codereview.appspot.com/6212053
-rw-r--r--src/PyZyInputContext.h2
-rw-r--r--src/PyZyPhoneticContext.cc8
-rw-r--r--src/PyZyPhoneticContext.h2
3 files changed, 6 insertions, 6 deletions
diff --git a/src/PyZyInputContext.h b/src/PyZyInputContext.h
index 6f19700..24382d6 100644
--- a/src/PyZyInputContext.h
+++ b/src/PyZyInputContext.h
@@ -51,7 +51,7 @@ public:
const std::string &commit_text) = 0;
virtual void preeditTextChanged (const InputContext * context) = 0;
virtual void auxiliaryTextChanged (const InputContext * context) = 0;
- virtual void lookupTableChanged (const InputContext * context) = 0;
+ virtual void candidatesChanged (const InputContext * context) = 0;
};
enum InputType {
diff --git a/src/PyZyPhoneticContext.cc b/src/PyZyPhoneticContext.cc
index 2e9ef8d..55243d7 100644
--- a/src/PyZyPhoneticContext.cc
+++ b/src/PyZyPhoneticContext.cc
@@ -76,10 +76,10 @@ PhoneticContext::commitText (const std::string & commit_text)
}
void
-PhoneticContext::updateLookupTable (void)
+PhoneticContext::updateCandidates (void)
{
m_focused_candidate = 0;
- m_observer->lookupTableChanged (this);
+ m_observer->candidatesChanged (this);
}
void
@@ -144,7 +144,7 @@ PhoneticContext::focusCandidate (size_t i)
void
PhoneticContext::update ()
{
- updateLookupTable ();
+ updateCandidates ();
updatePreeditText ();
updateAuxiliaryText ();
}
@@ -198,7 +198,7 @@ PhoneticContext::resetCandidate (size_t i)
i -= m_special_phrases.size ();
if (m_phrase_editor.resetCandidate (i)) {
- updateLookupTable();
+ updateCandidates();
}
return true;
diff --git a/src/PyZyPhoneticContext.h b/src/PyZyPhoneticContext.h
index 957e52c..a299bd7 100644
--- a/src/PyZyPhoneticContext.h
+++ b/src/PyZyPhoneticContext.h
@@ -80,7 +80,7 @@ protected:
virtual void resetContext (void);
virtual void update (void);
virtual void commitText (const std::string & commit_text);
- virtual void updateLookupTable (void);
+ virtual void updateCandidates (void);
virtual void updateAuxiliaryText (void);
virtual void updatePreeditText (void);
virtual bool updateSpecialPhrases (void);