Mercurial > hg > svapp
comparison framework/SVFileReader.h @ 595:b23bebfdfaba
Untabify
author | Chris Cannam |
---|---|
date | Thu, 01 Mar 2018 18:02:22 +0000 |
parents | 0f82c719d885 |
children | 10046d544e76 |
comparison
equal
deleted
inserted
replaced
594:72b4870f0e6b | 595:b23bebfdfaba |
---|---|
166 { | 166 { |
167 Q_OBJECT | 167 Q_OBJECT |
168 | 168 |
169 public: | 169 public: |
170 SVFileReader(Document *document, | 170 SVFileReader(Document *document, |
171 SVFileReaderPaneCallback &callback, | 171 SVFileReaderPaneCallback &callback, |
172 QString location = ""); // for audio file locate mechanism | 172 QString location = ""); // for audio file locate mechanism |
173 virtual ~SVFileReader(); | 173 virtual ~SVFileReader(); |
174 | 174 |
175 void parse(const QString &xmlData); | 175 void parse(const QString &xmlData); |
176 void parse(QXmlInputSource &source); | 176 void parse(QXmlInputSource &source); |
180 | 180 |
181 // For loading a single layer onto an existing pane | 181 // For loading a single layer onto an existing pane |
182 void setCurrentPane(Pane *pane) { m_currentPane = pane; } | 182 void setCurrentPane(Pane *pane) { m_currentPane = pane; } |
183 | 183 |
184 virtual bool startElement(const QString &namespaceURI, | 184 virtual bool startElement(const QString &namespaceURI, |
185 const QString &localName, | 185 const QString &localName, |
186 const QString &qName, | 186 const QString &qName, |
187 const QXmlAttributes& atts); | 187 const QXmlAttributes& atts); |
188 | 188 |
189 virtual bool characters(const QString &); | 189 virtual bool characters(const QString &); |
190 | 190 |
191 virtual bool endElement(const QString &namespaceURI, | 191 virtual bool endElement(const QString &namespaceURI, |
192 const QString &localName, | 192 const QString &localName, |
193 const QString &qName); | 193 const QString &qName); |
194 | 194 |
195 bool error(const QXmlParseException &exception); | 195 bool error(const QXmlParseException &exception); |
196 bool fatalError(const QXmlParseException &exception); | 196 bool fatalError(const QXmlParseException &exception); |
197 | 197 |
198 enum FileType | 198 enum FileType |