~ubuntu-branches/ubuntu/oneiric/codelite/oneiric

« back to all changes in this revision

Viewing changes to Plugin/lexer_configuration.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2010-06-14 15:30:55 UTC
  • mfrom: (1.1.8 upstream) (0.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20100614153055-dfmu128mp9862wpo
Tags: 2.5.3.4075~dfsg-1
* New upstream bugfix release.
* Update debian/copyright
* Change my email address.
* Refresh patches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
136
136
                                        wxString bgcolour  = XmlUtils::ReadString(prop, wxT("BgColour"), wxT("white"));
137
137
                                        long fontSize      = XmlUtils::ReadLong  (prop, wxT("Size"), 10);
138
138
                                        long propId        = XmlUtils::ReadLong  (prop, wxT("Id"), 0);
 
139
                                        long alpha         = XmlUtils::ReadLong  (prop, wxT("Alpha"), 50);
139
140
 
140
141
                                        StyleProperty property = StyleProperty(propId, colour, bgcolour, fontSize, Name, face,
141
142
                                                                                StringTolBool(bold),
142
143
                                                                                StringTolBool(italic),
143
144
                                                                                StringTolBool(underline),
144
 
                                                                                StringTolBool(eolFill));
 
145
                                                                                StringTolBool(eolFill),
 
146
                                                                                alpha);
 
147
 
145
148
                                        m_properties.push_back( property );
146
149
                                }
147
150
                                prop = prop->GetNext();
161
164
        //set the lexer name
162
165
        node->AddProperty(wxT("Name"), GetName());
163
166
        node->AddProperty(wxT("StylingWithinPreProcessor"), BoolToString(m_styleWithinPreProcessor));
164
 
 
165
167
        wxString strId;
166
168
        strId << GetLexerId();
167
169
        node->AddProperty(wxT("Id"), strId);
199
201
                StyleProperty p = (*iter);
200
202
                wxXmlNode *property = new wxXmlNode(NULL, wxXML_ELEMENT_NODE, wxT("Property"));
201
203
 
202
 
                wxString strId;
 
204
                strId.Clear();
203
205
                strId << p.GetId();
204
206
                property->AddProperty(wxT("Id"), strId);
205
207
                property->AddProperty(wxT("Name"), p.GetName());
210
212
                property->AddProperty(wxT("Italic"), BoolToString(p.GetItalic()));
211
213
                property->AddProperty(wxT("Underline"), BoolToString(p.GetUnderlined()));
212
214
                property->AddProperty(wxT("EolFilled"), BoolToString(p.GetEolFilled()));
 
215
 
 
216
                strId.Clear();
 
217
                strId << p.GetAlpha();
 
218
                property->AddProperty(wxT("Alpha"), strId);
213
219
 
214
220
                wxString strSize;
215
221
                strSize << p.GetFontSize();