jun-zhang / libfetion-gui

Automatically exported from code.google.com/p/libfetion-gui
0 stars 0 forks source link

Enhancement: Use XML formated data to store province/city information #103

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Example data format can be:
<ProvMetaList>
    <Prov>
          <CODE>"bj"</CODE>
          <NAME>"北京市 "</NAME>
    </Prov>
    <Prov>
          <CODE>"sh"</CODE>
          <NAME>"上海市 "</NAME>
    </Prov>
</ProvMetaList>
and the runtime structure can be 
struct CITY
{
    QUINT32 CityCode;
    QString CityName;
};

struct PROVINCE
{
    QString ProvinceCode;
    QString ProvinceName;
};

Original issue reported on code.google.com by alsor.zhou on 11 Aug 2009 at 7:50

GoogleCodeExporter commented 9 years ago
yep, It is a good idea. 
If we store those data in xml. the issues of win32 build(r309) will gone.

r309 is about the utf8-> gbk when build on windows platform.

In LibFetion GUI, There is some codes to show how to operate XML using QT.

http://code.google.com/p/libfetion-
gui/source/browse/trunk/qt4_src/src/fxResource.cpp#45

Could you finish this job for us?

Original comment by libfet...@gmail.com on 11 Aug 2009 at 3:32

GoogleCodeExporter commented 9 years ago
ok, taking:) 

Original comment by alsor.zhou on 11 Aug 2009 at 4:31

GoogleCodeExporter commented 9 years ago
Hi alsor,
Do you need help on this issue?

If you need, I will let weizhg23 to assist you to finish it.
weizhg23 have some experiences that using xml class of QT.

Original comment by libfet...@gmail.com on 12 Aug 2009 at 5:24

GoogleCodeExporter commented 9 years ago
Yes, absolutely, since my focus is still on the font issue i97, it's better to 
get
weizhg23 involved:) Hope a quick fix:)

Reassign to weizhg23

Original comment by alsor.zhou on 12 Aug 2009 at 5:38

GoogleCodeExporter commented 9 years ago
Hi alsor,
Could you chat with weizhg23 on QQ group of libfetion_dev.
Tell he that we need he to take this enhancement.

Original comment by libfet...@gmail.com on 12 Aug 2009 at 7:18

GoogleCodeExporter commented 9 years ago
Said, but don't know who's who:) You might tell him later:) 

Original comment by alsor.zhou on 12 Aug 2009 at 7:56

GoogleCodeExporter commented 9 years ago
stealing back~:) seems weizhg23 's busy while.

Original comment by alsor.zhou on 17 Aug 2009 at 2:57

GoogleCodeExporter commented 9 years ago
Add myself designed xml format data. DDD, would you help me to review that 
format:)

Original comment by alsor.zhou on 17 Aug 2009 at 2:58

Attachments:

GoogleCodeExporter commented 9 years ago
This xml format is very good, and thanks for your hard work, alsor.

Original comment by libfet...@gmail.com on 18 Aug 2009 at 2:05

GoogleCodeExporter commented 9 years ago
fix in r316, updated xml format for file size. 

Original comment by alsor.zhou on 19 Aug 2009 at 5:57