diff --git a/gui/Dialog.ui b/gui/Dialog.ui
index 9880d70..6ef949a 100644
--- a/gui/Dialog.ui
+++ b/gui/Dialog.ui
@@ -239,6 +239,7 @@
:/res/ico_options.png:/res/ico_options.png
+
@@ -370,7 +371,15 @@
true
- Enable Verbose Output
+ Enable Verbose/Debug Output
+
+
+
+
+ true
+
+
+ Enable Line Wrapping
diff --git a/src/Config.h b/src/Config.h
index 4b3c419..787f8a2 100644
--- a/src/Config.h
+++ b/src/Config.h
@@ -21,7 +21,7 @@
//Version
static unsigned int mixp_versionMajor = 2;
-static unsigned int mixp_versionMinor = 10;
+static unsigned int mixp_versionMinor = 11;
//MediaInfo Version
static unsigned int mixp_miVersionMajor = 0;
diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp
index c2e6834..a30a54d 100644
--- a/src/MainWindow.cpp
+++ b/src/MainWindow.cpp
@@ -99,17 +99,18 @@ CMainWindow::CMainWindow(const QString &tempFolder, IPC *const ipc, QWidget *par
ui->actionLink_Discuss->setData(QVariant(QString::fromLatin1(LINK_DISCUSS)));
//Setup connections
- connect(ui->analyzeButton, SIGNAL(clicked()), this, SLOT(analyzeButtonClicked()));
- connect(ui->actionOpen, SIGNAL(triggered()), this, SLOT(analyzeButtonClicked()));
- connect(ui->actionSave, SIGNAL(triggered()), this, SLOT(saveButtonClicked()));
- connect(ui->actionCopyToClipboard, SIGNAL(triggered()), this, SLOT(copyToClipboardButtonClicked()));
- connect(ui->actionClear, SIGNAL(triggered()), this, SLOT(clearButtonClicked()));
- connect(ui->actionLink_MuldeR, SIGNAL(triggered()), this, SLOT(linkTriggered()));
- connect(ui->actionLink_MediaInfo, SIGNAL(triggered()), this, SLOT(linkTriggered()));
- connect(ui->actionLink_Discuss, SIGNAL(triggered()), this, SLOT(linkTriggered()));
- connect(ui->actionAbout, SIGNAL(triggered()), this, SLOT(showAboutScreen()));
- connect(ui->actionShellExtension, SIGNAL(toggled(bool)), this, SLOT(updateShellExtension(bool)));
- connect(m_ipc, SIGNAL(receivedStr(QString)), this, SLOT(fileReceived(QString)));
+ connect(ui->analyzeButton, SIGNAL(clicked()), this, SLOT(analyzeButtonClicked()));
+ connect(ui->actionOpen, SIGNAL(triggered()), this, SLOT(analyzeButtonClicked()));
+ connect(ui->actionSave, SIGNAL(triggered()), this, SLOT(saveButtonClicked()));
+ connect(ui->actionCopyToClipboard, SIGNAL(triggered()), this, SLOT(copyToClipboardButtonClicked()));
+ connect(ui->actionClear, SIGNAL(triggered()), this, SLOT(clearButtonClicked()));
+ connect(ui->actionLink_MuldeR, SIGNAL(triggered()), this, SLOT(linkTriggered()));
+ connect(ui->actionLink_MediaInfo, SIGNAL(triggered()), this, SLOT(linkTriggered()));
+ connect(ui->actionLink_Discuss, SIGNAL(triggered()), this, SLOT(linkTriggered()));
+ connect(ui->actionAbout, SIGNAL(triggered()), this, SLOT(showAboutScreen()));
+ connect(ui->actionShellExtension, SIGNAL(toggled(bool)), this, SLOT(updateShellExtension(bool)));
+ connect(ui->actionLineWrapping, SIGNAL(toggled(bool)), this, SLOT(updateLineWrapping(bool)));
+ connect(m_ipc, SIGNAL(receivedStr(QString)), this, SLOT(fileReceived(QString)));
ui->versionLabel->installEventFilter(this);
//Context menu
@@ -563,7 +564,7 @@ void CMainWindow::processFinished(void)
htmlData.replaceInStrings(QRegExp("^([^:<>]+)$"), "\\1"); //Heading lines
//Update document
- ui->textBrowser->setHtml(QString("
%1
").arg(htmlData.join("
")));
+ ui->textBrowser->setHtml(QString("%1
").arg(htmlData.join("
")));
//Enable actions
if(!m_outputLines.empty())
@@ -600,6 +601,11 @@ void CMainWindow::updateShellExtension(bool checked)
ShellExtension::setEnabled(checked);
}
+void CMainWindow::updateLineWrapping(bool checked)
+{
+ ui->textBrowser->setLineWrapMode(checked ? QTextEdit::WidgetWidth : QTextEdit::NoWrap);
+}
+
void CMainWindow::linkTriggered(void)
{
QObject *obj = QObject::sender();
diff --git a/src/MainWindow.h b/src/MainWindow.h
index f397914..242a487 100644
--- a/src/MainWindow.h
+++ b/src/MainWindow.h
@@ -57,6 +57,7 @@ private slots:
void updateSize(void);
void initShellExtension(void);
void updateShellExtension(bool checked);
+ void updateLineWrapping(bool checked);
void fileReceived(const QString &path);
protected: