metaforce/hecl-gui/MainWindow.hpp

34 lines
764 B
C++
Raw Normal View History

2017-12-06 03:31:43 +00:00
#ifndef MAINWINDOW_HPP
#define MAINWINDOW_HPP
#include <QMainWindow>
#include <QProcess>
#include <memory>
class QTextEdit;
class QTextCharFormat;
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
Ui::MainWindow* m_ui;
QString m_ansiString;
QString m_path;
QProcess m_heclProc;
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
void setTextTermFormatting(QTextEdit* textEdit, QString const & text);
void parseEscapeSequence(int attribute, QListIterator< QString > & i, QTextCharFormat & textCharFormat, QTextCharFormat const & defaultTextCharFormat);
private slots:
void onExtract();
void onReturnPressed();
private:
void initSlots();
};
#endif // MAINWINDOW_HPP