Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(442)

Issue 6202056: Refactors Config to manages global/local config. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 12 months ago by hsumita1
Modified:
11 years, 11 months ago
Reviewers:
shawn.p.huang, Peng Huang, penghuang, hsumita
Base URL:
git@github.com:pyzy/pyzy.git@master
Visibility:
Public.

Description

Refactors Config. BUG=None TEST=Manual

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 3

Patch Set 4 : Implements a two classes solution. #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 2

Patch Set 7 : #

Patch Set 8 : #

Total comments: 4

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+345 lines, -515 lines) Patch
M configure.ac View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/Makefile.am View 1 2 3 4 5 6 7 8 3 chunks +9 lines, -6 lines 0 comments Download
M src/PyZyBopomofoContext.h View 1 2 3 4 5 6 7 8 2 chunks +9 lines, -4 lines 0 comments Download
M src/PyZyBopomofoContext.cc View 1 2 3 4 5 6 7 8 6 chunks +40 lines, -10 lines 0 comments Download
M src/PyZyConfig.h View 1 2 3 4 5 6 7 8 1 chunk +13 lines, -107 lines 0 comments Download
M src/PyZyConfig.cc View 1 2 3 4 1 chunk +0 lines, -209 lines 0 comments Download
A + src/PyZyConst.h View 1 2 3 4 2 chunks +18 lines, -77 lines 0 comments Download
M src/PyZyDoublePinyinContext.h View 1 2 3 4 5 6 7 8 3 chunks +5 lines, -3 lines 0 comments Download
M src/PyZyDoublePinyinContext.cc View 1 2 3 4 5 6 7 8 7 chunks +50 lines, -16 lines 0 comments Download
M src/PyZyFullPinyinContext.h View 1 2 3 4 1 chunk +1 line, -3 lines 0 comments Download
M src/PyZyFullPinyinContext.cc View 1 2 3 4 3 chunks +9 lines, -8 lines 0 comments Download
M src/PyZyInputContext.h View 1 2 3 4 5 6 7 8 4 chunks +14 lines, -6 lines 0 comments Download
M src/PyZyInputContext.cc View 1 2 3 4 7 8 1 chunk +3 lines, -5 lines 0 comments Download
M src/PyZyPhoneticContext.h View 1 2 3 4 5 6 7 8 4 chunks +40 lines, -11 lines 0 comments Download
M src/PyZyPhoneticContext.cc View 1 2 3 4 5 6 7 4 chunks +50 lines, -5 lines 0 comments Download
M src/PyZyPhraseEditor.h View 1 2 3 4 3 chunks +4 lines, -4 lines 0 comments Download
M src/PyZyPhraseEditor.cc View 1 2 3 4 5 chunks +8 lines, -8 lines 0 comments Download
src/PyZyPinyinContext.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
src/PyZyPinyinContext.cc View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
A + src/PyZyVariant.h View 1 2 3 4 5 6 7 8 1 chunk +26 lines, -13 lines 0 comments Download
A + src/PyZyVariant.cc View 1 2 3 4 5 6 7 8 1 chunk +41 lines, -15 lines 0 comments Download

Messages

Total messages: 19
hsumita1
Hi Peng I'm refactoring Config class of pyzy to integrate it into ibus-pinyin now, and ...
11 years, 12 months ago (2012-05-09 06:19:41 UTC) #1
Peng
Local and global config (properties) are both OK for me. But the point is some ...
11 years, 12 months ago (2012-05-09 15:16:37 UTC) #2
hsumita1
On 2012/05/09 15:16:37, Peng wrote: > Local and global config (properties) are both OK for ...
11 years, 12 months ago (2012-05-10 03:16:09 UTC) #3
Peng
On 2012/05/10 03:16:09, hsumita1 wrote: > On 2012/05/09 15:16:37, Peng wrote: > > Local and ...
11 years, 11 months ago (2012-05-10 14:06:45 UTC) #4
hsumita1
If we adopt this solution, I think we needs ConfigManager class like following on ibus-mozc-pinyin ...
11 years, 11 months ago (2012-05-11 07:46:22 UTC) #5
hsumita1
Sorry, I have forgotton to publish a comment... https://codereview.appspot.com/6202056/diff/3003/src/PyZyConfig.h File src/PyZyConfig.h (right): https://codereview.appspot.com/6202056/diff/3003/src/PyZyConfig.h#newcode72 src/PyZyConfig.h:72: #define ...
11 years, 11 months ago (2012-05-11 10:48:43 UTC) #6
Peng
On 2012/05/11 07:46:22, hsumita1 wrote: > If we adopt this solution, I think we needs ...
11 years, 11 months ago (2012-05-11 15:06:43 UTC) #7
Peng
https://codereview.appspot.com/6202056/diff/3003/src/PyZyConfig.h File src/PyZyConfig.h (right): https://codereview.appspot.com/6202056/diff/3003/src/PyZyConfig.h#newcode72 src/PyZyConfig.h:72: #define DOUBLE_PINYIN_KEYBOARD_LAST (6) On 2012/05/11 10:48:43, hsumita1 wrote: > ...
11 years, 11 months ago (2012-05-11 15:06:51 UTC) #8
hsumita
I assume a following usage. PyZy::Config config1, config2; // context1 has a own config PyZy::InputContext ...
11 years, 11 months ago (2012-05-14 12:49:03 UTC) #9
Peng
On 2012/05/14 12:49:03, hsumita wrote: > I assume a following usage. > > PyZy::Config config1, ...
11 years, 11 months ago (2012-05-14 14:46:35 UTC) #10
hsumita1
Sorry for my poor description. I means that pyzy user implements a ConfigManager to handle ...
11 years, 11 months ago (2012-05-15 04:43:25 UTC) #11
hsumita1
patchset 5 - Append accessors on InputContext to manipulate config. - Makes Config class to ...
11 years, 11 months ago (2012-05-15 08:45:35 UTC) #12
hsumita1
Sorry. s/patchset 5/patchset 6/
11 years, 11 months ago (2012-05-15 08:48:29 UTC) #13
Peng
https://codereview.appspot.com/6202056/diff/7003/src/PyZyInputContext.h File src/PyZyInputContext.h (right): https://codereview.appspot.com/6202056/diff/7003/src/PyZyInputContext.h#newcode116 src/PyZyInputContext.h:116: virtual unsigned int getOptionConversionOption () const = 0; Could ...
11 years, 11 months ago (2012-05-15 15:30:32 UTC) #14
hsumita1
https://codereview.appspot.com/6202056/diff/7003/src/PyZyInputContext.h File src/PyZyInputContext.h (right): https://codereview.appspot.com/6202056/diff/7003/src/PyZyInputContext.h#newcode116 src/PyZyInputContext.h:116: virtual unsigned int getOptionConversionOption () const = 0; Hmm... ...
11 years, 11 months ago (2012-05-16 03:21:22 UTC) #15
Peng
On 2012/05/16 03:21:22, hsumita1 wrote: > https://codereview.appspot.com/6202056/diff/7003/src/PyZyInputContext.h > File src/PyZyInputContext.h (right): > > https://codereview.appspot.com/6202056/diff/7003/src/PyZyInputContext.h#newcode116 > ...
11 years, 11 months ago (2012-05-16 14:27:56 UTC) #16
hsumita1
> Putting all setter & getter in PyZyInputContext (the public interface) is not > very ...
11 years, 11 months ago (2012-05-17 07:41:03 UTC) #17
Peng
lgtm, with several comments. https://codereview.appspot.com/6202056/diff/4004/src/PyZyConfig.h File src/PyZyConfig.h (right): https://codereview.appspot.com/6202056/diff/4004/src/PyZyConfig.h#newcode41 src/PyZyConfig.h:41: unsigned int bopomofoSchema; Because we ...
11 years, 11 months ago (2012-05-17 14:14:30 UTC) #18
hsumita1
11 years, 11 months ago (2012-05-18 02:17:08 UTC) #19
Thanks a lot for your review!

https://codereview.appspot.com/6202056/diff/4004/src/PyZyConfig.h
File src/PyZyConfig.h (right):

https://codereview.appspot.com/6202056/diff/4004/src/PyZyConfig.h#newcode41
src/PyZyConfig.h:41: unsigned int bopomofoSchema;
Done.

https://codereview.appspot.com/6202056/diff/4004/src/PyZyInputContext.h
File src/PyZyInputContext.h (right):

https://codereview.appspot.com/6202056/diff/4004/src/PyZyInputContext.h#newco...
src/PyZyInputContext.h:30: class Variant {
On 2012/05/17 14:14:30, Peng wrote:
> Use a separate .h and .cc files for this class?

Done.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b