2012-09-26 18:36:47 +02:00
|
|
|
#ifndef CONSOLE_H
|
|
|
|
#define CONSOLE_H
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
|
|
|
|
#include "ui_console.h"
|
|
|
|
|
|
|
|
class Application;
|
|
|
|
|
|
|
|
class Console : public QDialog {
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2014-02-10 16:03:54 +01:00
|
|
|
Console(Application* app, QWidget* parent = nullptr);
|
2012-09-26 18:36:47 +02:00
|
|
|
|
|
|
|
private slots:
|
2020-05-26 07:02:19 +02:00
|
|
|
// Database
|
2012-09-26 18:36:47 +02:00
|
|
|
void RunQuery();
|
2020-05-26 07:02:19 +02:00
|
|
|
// Qt
|
|
|
|
void Dump();
|
2012-09-26 18:36:47 +02:00
|
|
|
|
|
|
|
private:
|
2020-05-26 07:02:19 +02:00
|
|
|
QList<QObject*> GetTopLevelObjects();
|
|
|
|
QObject* FindTopLevelObject(QString& name);
|
2012-09-26 18:36:47 +02:00
|
|
|
Ui::Console ui_;
|
|
|
|
Application* app_;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CONSOLE_H
|