Debugger: Allow for custom Disassembler highlighters.

Remove hardcoded highlighter, give DisassemblerViewAgent
a mimetype property. Default to a generic Qt Creator
Assembler mimetype.
Acked-by: hjk
Rubber-stamped-by: Leandro T. C. Melo <leandro.melo@nokia.com>
This commit is contained in:
Friedemann Kleint
2010-06-22 14:06:42 +02:00
parent a34676238f
commit 0db5e80261
3 changed files with 66 additions and 31 deletions

View File

@@ -73,7 +73,7 @@ struct DisassemblerViewAgentPrivate;
class DisassemblerViewAgent : public QObject
{
Q_OBJECT
Q_PROPERTY(QString mimeType READ mimeType WRITE setMimeType)
public:
// Called from Gui
explicit DisassemblerViewAgent(DebuggerEngine *engine);
@@ -83,6 +83,11 @@ public:
const StackFrame &frame() const;
void resetLocation();
Q_SLOT void setContents(const QString &contents);
// Mimetype: "text/a-asm" or some specialized architecture
QString mimeType() const;
Q_SLOT void setMimeType(const QString &mt);
QString address() const;
bool contentsCoversAddress(const QString &contents) const;
void cleanup();