add_definitions(${LLVM_CFLAGS})
add_definitions(-std=c++11 -Wall -Wextra)
-add_definitions(-DQT_NO_KEYWORDS)
separate_arguments(LLVM_LDFLAGS)
separate_arguments(LLVM_LIBS)
void Comment::setText(const std::string& text) {
ChangeCommentEvent event(address, location, this);
this->text = text;
- Q_EMIT manager->changeCommentEvent(&event);
+ emit manager->changeCommentEvent(&event);
}
uint64_t Comment::getAddress() {
void Function::setName(const std::string& new_name) {
name = new_name;
RenameFunctionEvent event(new_name, this, start_address);
- Q_EMIT manager->renameFunctionEvent(&event);
+ emit manager->renameFunctionEvent(&event);
}
void Function::serialize(QXmlStreamWriter& stream) {
blocks.insert(std::make_pair(bl->getStartAddress(), bl));
}
NewFunctionEvent event(fun->getStartAddress(), fun);
- Q_EMIT newFunctionEvent(&event);
+ emit newFunctionEvent(&event);
}
void InformationManager::finishBasicBlock(BasicBlock*) {
void InformationManager::finishComment(Comment* c) {
LOG4CXX_DEBUG(logger, "Finishing comment " << c->getAddress());
ChangeCommentEvent event(c->getAddress(), c->getLocation(), c);
- Q_EMIT changeCommentEvent(&event);
+ emit changeCommentEvent(&event);
}
void InformationManager::deleteFunction(Function* f) {
class InformationManager : public QObject {
#ifndef SWIG
Q_OBJECT
-Q_SIGNALS:
+signals:
#else
public:
#endif
public:
Mainwindow(InformationManager* mgr);
-public Q_SLOTS:
+public slots:
void switchMainPlaneToAddress(uint64_t);
void requestNewFunctionByAddress(uint64_t address);
InformationManager* manager;
log4cxx::LoggerPtr logger;
-private Q_SLOTS:
+private slots:
void quit();
void open();
void load();
QLineEdit * line;
Interpreter* interpreter;
-private Q_SLOTS:
+private slots:
void doEvaluate();
};