(&QSpinBox::valueChanged),
+ this, &MainWindow::onReadBufferChange);
+
+ // Separator line
+ m_ToolBar->addSeparator();
+}
+
+// --- Create the window user interface --- //
+void MainWindow::createWindow()
+{
+ // Window minimum dimensions
+ this->setMinimumSize(1152, 648);
+
+ // Main window user interface
+ m_TabWidget = new QTabWidget(ui->centralWidget);
+
+ // Set the layout of the main window
+ QGridLayout *layout = new QGridLayout(ui->centralWidget);
+ layout->addWidget(m_TabWidget);
+ ui->centralWidget->setLayout(layout);
+
+ // Introductory text
+ m_IntroLabel = new QTextEdit(m_TabWidget);
+ m_TabWidget->addTab(m_IntroLabel, "User Guide");
+ m_IntroLabel->setReadOnly(true);
+ m_IntroLabel->setContentsMargins(10,10,10,10);
+
+ // CSS
+ m_IntroLabel->document()->setDefaultStyleSheet(
+ QStringLiteral("p { font-size: 10px; }"
+ "h1 { clear: both; }"
+ "h3 { clear: both; color: #4e4e4e; font-style: italic; }"
+ "li { margin-bottom: 10px; }"));
+
+ // About
+ m_IntroLabel->insertHtml(QStringLiteral("Credits
"
+ "Written by: Archibalduk - "
+ "www.ehmtheblueline.com
"
+ "Testing by: Dermotron - "
+ "www.champman0102.co.uk
"
+ "Icons
"
+ "All icons are designed by "
+ "www.icons8.com and are used under the Creative Commons Attribution-NoDerivs"
+ "3.0 Unported licence.
"
+ "Licence
"
+ "This application is licensed under the GNU General Public License Version 3 (GPLv3). "
+ "In summary, this means that this is a free and open source program. You may use the source "
+ "code from this program in your own programs provided you also release your program "
+ "under the GPLv3 (which means that your program must also be free and open source). "));
+
+ m_IntroLabel->insertHtml(QString("I used Qt %1 and Microsoft Visual C++ %2 to develop and build this program.
")
+ .arg(QT_VERSION_STR).arg(_MSC_VER));
+
+ QFile file("readme.html");
+ if(file.open(QIODevice::ReadOnly | QIODevice::Text))
+ {
+ QTextStream stream(&file);
+ m_IntroLabel->insertHtml(stream.readAll());
+ }
+ else
+ m_IntroLabel->insertHtml("Click on Open to load a database