Added toolbar GUI. The logic of each button has not been implemented yet.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/3/head
Michele Calgaro 2 years ago
parent a92640a3d9
commit ae3256947f
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -26,7 +26,7 @@ link_directories(
set( target universal-indent-gui-tqt ) set( target universal-indent-gui-tqt )
set( ${target}_SRCS set( ${target}_SRCS
MainWindowBase.ui MainWindow.cpp main.cpp MainWindowBase.ui ToolBarWidget.ui MainWindow.cpp main.cpp
UiGuiVersion.cpp UiGuiVersion.cpp
) )

@ -24,7 +24,7 @@
///-- #include "debugging/TSLogger.h" ///-- #include "debugging/TSLogger.h"
///-- #include "SettingsPaths.h" ///-- #include "SettingsPaths.h"
///-- ///--
///-- #include "ui_ToolBarWidget.h" #include "ToolBarWidget.h"
///-- #include "AboutDialog.h" ///-- #include "AboutDialog.h"
///-- #include "AboutDialogGraphicsView.h" ///-- #include "AboutDialogGraphicsView.h"
///-- #include "UiGuiSettings.h" ///-- #include "UiGuiSettings.h"
@ -34,7 +34,9 @@
///-- ///--
#include <tqpixmap.h> #include <tqpixmap.h>
#include <tqaction.h> #include <tqaction.h>
#include <tqcheckbox.h>
#include <tqpopupmenu.h> #include <tqpopupmenu.h>
#include <tqpushbutton.h>
///-- #include <tqwidget.h> ///-- #include <tqwidget.h>
///-- #include <tqlabel.h> ///-- #include <tqlabel.h>
///-- #include <tqstring.h> ///-- #include <tqstring.h>
@ -93,13 +95,13 @@ MainWindow::MainWindow(TQString file2OpenOnStart, TQWidget *parent) :
///-- ///--
///-- // Initialize the language of the application. ///-- // Initialize the language of the application.
///-- initApplicationLanguage(); ///-- initApplicationLanguage();
///--
///-- // Creates the main window and initializes it. // Creates the main window and initializes it.
initMainWindow(); initMainWindow();
///--
///-- // Create toolbar and insert it into the main window. // Create toolbar and insert it into the main window.
///-- initToolBar(); initToolBar();
///--
///-- // Create the text edit component using the TQScintilla widget. ///-- // Create the text edit component using the TQScintilla widget.
///-- initTextEditor(); ///-- initTextEditor();
///-- ///--
@ -117,7 +119,6 @@ MainWindow::MainWindow(TQString file2OpenOnStart, TQWidget *parent) :
///-- // Generate about dialog box ///-- // Generate about dialog box
///-- _aboutDialog = new AboutDialog(this, TQt::SplashScreen); ///-- _aboutDialog = new AboutDialog(this, TQt::SplashScreen);
///-- _aboutDialogGraphicsView = new AboutDialogGraphicsView(_aboutDialog, this); ///-- _aboutDialogGraphicsView = new AboutDialogGraphicsView(_aboutDialog, this);
///-- connect(_toolBarWidget->pbAbout, SIGNAL(clicked()), this, SLOT(showAboutDialog()));
connect(actionAboutUniversalIndentGUITQt, SIGNAL(activated()), this, SLOT(showAboutDialog())); connect(actionAboutUniversalIndentGUITQt, SIGNAL(activated()), this, SLOT(showAboutDialog()));
///-- ///--
///-- // Generate settings dialog box ///-- // Generate settings dialog box
@ -148,7 +149,7 @@ MainWindow::MainWindow(TQString file2OpenOnStart, TQWidget *parent) :
///-- */ ///-- */
void MainWindow::initMainWindow() void MainWindow::initMainWindow()
{ {
// Setup icons // For icon setup
TQString ICONS_PATH(APP_ICONS_PATH); TQString ICONS_PATH(APP_ICONS_PATH);
// Application icon // Application icon
setIcon(TQPixmap(ICONS_PATH + "universalIndentGUI_64x64.png")); setIcon(TQPixmap(ICONS_PATH + "universalIndentGUI_64x64.png"));
@ -238,33 +239,40 @@ void MainWindow::initMainWindow()
///-- _settings->registerObjectSlot(this, "updateRecentlyOpenedList()", "recentlyOpenedListSize"); ///-- _settings->registerObjectSlot(this, "updateRecentlyOpenedList()", "recentlyOpenedListSize");
} }
///-- /*! /*!
///-- \brief Creates and inits the tool bar. It is added to the main window. \brief Creates and inits the tool bar. It is added to the main window.
///-- */ */
///-- void MainWindow::initToolBar() void MainWindow::initToolBar()
///-- { {
///-- // Create the tool bar and add it to the main window. // For icon setup
///-- _toolBarWidget = new Ui::ToolBarWidget(); TQString ICONS_PATH(APP_ICONS_PATH);
///-- TQWidget *helpWidget = new TQWidget();
///-- _toolBarWidget->setupUi(helpWidget); // Create the tool bar and add it to the main window.
///-- _mainWindowForm->toolBar->addWidget(helpWidget); m_toolBarWidget = new ToolBarWidget(toolBar);
///-- _mainWindowForm->toolBar->setAllowedAreas(TQt::TopToolBarArea | TQt::BottomToolBarArea);
///-- // Connect the tool bar widgets to their functions.
///-- // Connect the tool bar widgets to their functions. ///-- _settings->registerObjectProperty(_toolBarWidget->cbEnableSyntaxHL, "checked",
///-- _settings->registerObjectProperty(_toolBarWidget->enableSyntaxHighlightningCheckBox, "checked",
///-- "SyntaxHighlightingEnabled"); ///-- "SyntaxHighlightingEnabled");
///-- _toolBarWidget->enableSyntaxHighlightningCheckBox->hide(); m_toolBarWidget->cbEnableSyntaxHL->hide();
///-- connect(_toolBarWidget->pbOpen_Source_File, SIGNAL(clicked()), this,
///-- SLOT(openSourceFileDialog())); m_toolBarWidget->pbOpenSourceFile->setIconSet(TQPixmap(ICONS_PATH + "document-open.png"));
///-- connect(_toolBarWidget->pbExit, SIGNAL(clicked()), this, SLOT(close())); connect(m_toolBarWidget->pbOpenSourceFile, SIGNAL(clicked()), this, SLOT(openSourceFileDialog()));
///-- connect(_toolBarWidget->cbLivePreview, SIGNAL(toggled(bool)), this,
///-- SLOT(previewTurnedOnOff(bool))); m_toolBarWidget->pbAbout->setIconSet(TQPixmap(ICONS_PATH + "info.png"));
///-- connect(_toolBarWidget->cbLivePreview, SIGNAL(toggled( connect(m_toolBarWidget->pbAbout, SIGNAL(clicked()), this, SLOT(showAboutDialog()));
///-- bool)), actionLiveIndentPreview, SLOT(setChecked(bool)));
m_toolBarWidget->pbExit->setIconSet(TQPixmap(ICONS_PATH + "system-log-out.png"));
connect(m_toolBarWidget->pbExit, SIGNAL(clicked()), this, SLOT(close()));
// Settings a pixmap hides the text in TQt3
//m_toolBarWidget->cbLivePreview->setPixmap(TQPixmap(ICONS_PATH + "live-preview.png"));
connect(m_toolBarWidget->cbLivePreview, SIGNAL(toggled(bool)), this, SLOT(previewTurnedOnOff(bool)));
connect(m_toolBarWidget->cbLivePreview, SIGNAL(toggled(bool)),
actionLiveIndentPreview, SLOT(setChecked(bool)));
///-- connect(actionLiveIndentPreview, SIGNAL(toggled( ///-- connect(actionLiveIndentPreview, SIGNAL(toggled(
///-- bool)), _toolBarWidget->cbLivePreview, SLOT(setChecked(bool))); ///-- bool)), m_toolBarWidget->cbLivePreview, SLOT(setChecked(bool)));
///-- } }
///--
///-- /*! ///-- /*!
///-- \brief Create and initialize the text editor component. It uses the TQScintilla widget. ///-- \brief Create and initialize the text editor component. It uses the TQScintilla widget.
///-- */ ///-- */
@ -503,7 +511,7 @@ void MainWindow::openSourceFileDialog(TQString fileName)
///-- ///--
///-- openedSourceFileContent = loadFile(fileName); ///-- openedSourceFileContent = loadFile(fileName);
///-- _sourceFileContent = openedSourceFileContent; ///-- _sourceFileContent = openedSourceFileContent;
///-- if (_toolBarWidget->cbLivePreview->isChecked()) ///-- if (m_toolBarWidget->cbLivePreview->isChecked())
///-- { ///-- {
///-- callIndenter(); ///-- callIndenter();
///-- } ///-- }
@ -636,7 +644,7 @@ bool MainWindow::saveSourceFile()
///-- { ///-- {
///-- _textEditLastScrollPos = _textEditVScrollBar->value(); ///-- _textEditLastScrollPos = _textEditVScrollBar->value();
///-- ///--
///-- if (_toolBarWidget->cbLivePreview->isChecked()) ///-- if (m_toolBarWidget->cbLivePreview->isChecked())
///-- { ///-- {
///-- _sourceViewContent = _sourceFormattedContent; ///-- _sourceViewContent = _sourceFormattedContent;
///-- } ///-- }
@ -745,7 +753,7 @@ bool MainWindow::saveSourceFile()
///-- } ///-- }
///-- ///--
///-- // Call the indenter to reformat the text. ///-- // Call the indenter to reformat the text.
///-- if (_toolBarWidget->cbLivePreview->isChecked()) ///-- if (m_toolBarWidget->cbLivePreview->isChecked())
///-- { ///-- {
///-- callIndenter(); ///-- callIndenter();
///-- _previewToggled = true; ///-- _previewToggled = true;
@ -754,7 +762,7 @@ bool MainWindow::saveSourceFile()
///-- // Update the text editor. ///-- // Update the text editor.
///-- updateSourceView(); ///-- updateSourceView();
///-- ///--
///-- if (_toolBarWidget->cbLivePreview->isChecked() && !enteredCharacter.isNull() && ///-- if (m_toolBarWidget->cbLivePreview->isChecked() && !enteredCharacter.isNull() &&
///-- enteredCharacter != 10) ///-- enteredCharacter != 10)
///-- { ///-- {
///-- //const char ch = enteredCharacter.toAscii(); ///-- //const char ch = enteredCharacter.toAscii();
@ -832,7 +840,7 @@ bool MainWindow::saveSourceFile()
///-- _qSciSourceCodeEditor->setCursorPosition(cursorLine, cursorPos); ///-- _qSciSourceCodeEditor->setCursorPosition(cursorLine, cursorPos);
///-- } ///-- }
///-- ///--
///-- if (_toolBarWidget->cbLivePreview->isChecked()) ///-- if (m_toolBarWidget->cbLivePreview->isChecked())
///-- { ///-- {
///-- _sourceCodeChanged = false; ///-- _sourceCodeChanged = false;
///-- } ///-- }
@ -866,7 +874,7 @@ bool MainWindow::saveSourceFile()
///-- int cursorLine, cursorPos; ///-- int cursorLine, cursorPos;
///-- _qSciSourceCodeEditor->getCursorPosition(&cursorLine, &cursorPos); ///-- _qSciSourceCodeEditor->getCursorPosition(&cursorLine, &cursorPos);
///-- ///--
///-- if (_toolBarWidget->cbLivePreview->isChecked()) ///-- if (m_toolBarWidget->cbLivePreview->isChecked())
///-- { ///-- {
///-- callIndenter(); ///-- callIndenter();
///-- _previewToggled = true; ///-- _previewToggled = true;
@ -901,15 +909,15 @@ bool MainWindow::saveSourceFile()
///-- setWindowModified(true); ///-- setWindowModified(true);
///-- } ///-- }
///-- } ///-- }
///--
///-- /*! /*!
///-- \brief This slot is called whenever the preview button is turned on or off. \brief This slot is called whenever the preview button is turned on or off.
///--
///-- It calls the selected indenter to format the current source code if It calls the selected indenter to format the current source code if
///-- the code has been changed since the last indenter call. the code has been changed since the last indenter call.
///-- */ */
///-- void MainWindow::previewTurnedOnOff(bool turnOn) void MainWindow::previewTurnedOnOff(bool turnOn)
///-- { {
///-- _previewToggled = true; ///-- _previewToggled = true;
///-- ///--
///-- int cursorLine, cursorPos; ///-- int cursorLine, cursorPos;
@ -953,7 +961,7 @@ bool MainWindow::saveSourceFile()
///-- { ///-- {
///-- this->setWindowTitle("UniversalIndentGUI " + TQString( ///-- this->setWindowTitle("UniversalIndentGUI " + TQString(
///-- PROGRAM_VERSION_STRING) + " [*]" + _currentSourceFile); ///-- PROGRAM_VERSION_STRING) + " [*]" + _currentSourceFile);
///-- } }
/*! /*!
\brief Opens a dialog to save the current source code as a PDF document. \brief Opens a dialog to save the current source code as a PDF document.

@ -29,11 +29,8 @@
/// class AboutDialog; /// class AboutDialog;
/// class AboutDialogGraphicsView; /// class AboutDialogGraphicsView;
/// class UiGuiHighlighter; /// class UiGuiHighlighter;
/// class IndentHandler; /// class IndentHandler
/// namespace Ui class ToolBarWidget;
/// {
/// class ToolBarWidget;
/// }
/// ///
/// class TQLabel; /// class TQLabel;
/// class TQScrollBar; /// class TQScrollBar;
@ -72,7 +69,7 @@ class MainWindow : public MainWindowBase
///-- void sourceCodeChangedHelperSlot(); ///-- void sourceCodeChangedHelperSlot();
///-- void sourceCodeChangedSlot(); ///-- void sourceCodeChangedSlot();
///-- void indentSettingsChangedSlot(); ///-- void indentSettingsChangedSlot();
///-- void previewTurnedOnOff(bool turnOn); void previewTurnedOnOff(bool turnOn);
void exportToPDF(); void exportToPDF();
void exportToHTML(); void exportToHTML();
///-- void languageChanged(int languageIndex); ///-- void languageChanged(int languageIndex);
@ -95,7 +92,7 @@ class MainWindow : public MainWindowBase
///-- void createHighlighterMenu(); ///-- void createHighlighterMenu();
///-- bool initApplicationLanguage(); ///-- bool initApplicationLanguage();
void initMainWindow(); void initMainWindow();
///-- void initToolBar(); void initToolBar();
///-- void initTextEditor(); ///-- void initTextEditor();
///-- void initSyntaxHighlighter(); ///-- void initSyntaxHighlighter();
///-- void initIndenter(); ///-- void initIndenter();
@ -135,7 +132,7 @@ class MainWindow : public MainWindowBase
///-- bool _previewToggled; ///-- bool _previewToggled;
///-- TQStringList _encodingsList; ///-- TQStringList _encodingsList;
///-- ///--
///-- Ui::ToolBarWidget *_toolBarWidget; ToolBarWidget *m_toolBarWidget;
///-- IndentHandler *_indentHandler; ///-- IndentHandler *_indentHandler;
///-- TQLabel *_textEditLineColumnInfoLabel; ///-- TQLabel *_textEditLineColumnInfoLabel;
}; };

@ -80,6 +80,27 @@
<action name="actionAboutUniversalIndentGUITQt"/> <action name="actionAboutUniversalIndentGUITQt"/>
</item> </item>
</menubar> </menubar>
<toolbars>
<toolbar dock="2">
<property name="name">
<cstring>toolBar</cstring>
</property>
<property name="label">
<string>Tools</string>
</property>
<property name="orientation">
<enum>TQt::Horizontal</enum>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>5</vsizetype>
<horstretch>1</horstretch>
<verstretch>1</verstretch>
</sizepolicy>
</property>
</toolbar>
</toolbars>
<actions> <actions>
<action> <action>
<property name="name"> <property name="name">

@ -0,0 +1,116 @@
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>ToolBarWidget</class>
<widget class="TQWidget">
<property name="name">
<cstring>ToolBarWidget</cstring>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>773</width>
<height>34</height>
</rect>
</property>
<property name="caption">
<string>Form</string>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="spacing">
<number>6</number>
</property>
<property name="margin">
<number>0</number>
</property>
<widget class="TQPushButton">
<property name="name">
<cstring>pbOpenSourceFile</cstring>
</property>
<property name="text">
<string>Open Source File </string>
</property>
<property name="toolTip" stdset="0">
<string>Opens a dialog for selecting a source code file</string>
</property>
</widget>
<widget class="TQCheckBox">
<property name="name">
<cstring>cbLivePreview</cstring>
</property>
<property name="text">
<string>Live Indent Preview</string>
</property>
<property name="whatsThis" stdset="0">
<string>Turns the preview of the reformatted source code on and off</string>
</property>
<property name="accel">
<string>Ctrl+L</string>
</property>
</widget>
<widget class="TQCheckBox">
<property name="name">
<cstring>cbEnableSyntaxHL</cstring>
</property>
<property name="text">
<string>Syntax Highlight</string>
</property>
<property name="whatsThis" stdset="0">
<string>Enables and disables the highlightning of the source</string>
</property>
<property name="accel">
<string>Ctrl+H</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
<spacer>
<property name="name">
<cstring>spacer1</cstring>
</property>
<property name="orientation">
<enum>TQt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>2000</width>
<height>20</height>
</size>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>5</vsizetype>
<horstretch>1</horstretch>
<verstretch>1</verstretch>
</sizepolicy>
</property>
</spacer>
<widget class="TQPushButton">
<property name="name">
<cstring>pbAbout</cstring>
</property>
<property name="text">
<string>About</string>
</property>
<property name="toolTip" stdset="0">
<string>Shows info about UniversalIndentGUI</string>
</property>
</widget>
<widget class="TQPushButton">
<property name="name">
<cstring>pbExit</cstring>
</property>
<property name="text">
<string>Exit</string>
</property>
<property name="toolTip" stdset="0">
<string>Quits UniversalIndentGUI</string>
</property>
</widget>
</hbox>
</widget>
</UI>

@ -92,31 +92,6 @@
<bool>false</bool> <bool>false</bool>
</attribute> </attribute>
</widget> </widget>
<action name="actionSave_Source_File">
</action>
<action name="actionSave_Source_File_As">
<property name="icon">
<iconset resource="../resources/Icons.qrc">
<normaloff>:/mainWindow/document-save-as.png</normaloff>:/mainWindow/document-save-as.png</iconset>
</property>
<property name="text">
<string>Save Source File As...</string>
</property>
<property name="iconText">
<string>Save Source File As...</string>
</property>
<property name="toolTip">
<string>Save Source File As...</string>
</property>
<property name="statusTip">
<string>Opens a file dialog to save the currently shown source code.</string>
</property>
<property name="shortcut">
<string>Ctrl+Shift+S</string>
</property>
</action>
<action name="actionClear_Recently_Opened_List">
</action>
</widget> </widget>
<resources> <resources>
<include location="../resources/Icons.qrc"/> <include location="../resources/Icons.qrc"/>

@ -1,124 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>ToolBarWidget</class>
<widget class="TQWidget" name="ToolBarWidget">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>773</width>
<height>34</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<layout class="TQHBoxLayout">
<property name="spacing">
<number>6</number>
</property>
<property name="margin">
<number>0</number>
</property>
<item>
<widget class="TQPushButton" name="pbOpen_Source_File">
<property name="toolTip">
<string>&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;/head&gt;&lt;body style=&quot; white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;&quot;&gt;&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:8pt;&quot;&gt;Opens a dialog for selecting a source code file.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;&quot;&gt;This file will be used to show what the indent tool changes.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="text">
<string>Open Source File </string>
</property>
<property name="icon">
<iconset resource="../resources/Icons.qrc">
<normaloff>:/mainWindow/document-open.png</normaloff>:/mainWindow/document-open.png</iconset>
</property>
</widget>
</item>
<item>
<widget class="TQCheckBox" name="cbLivePreview">
<property name="toolTip">
<string>&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;/head&gt;&lt;body style=&quot; white-space: pre-wrap; font-family:MS Shell Dlg 2; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;&quot;&gt;&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:MS Shell Dlg; font-size:8pt;&quot;&gt;Turns the preview of the reformatted source code on and off.&lt;/p&gt;&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:MS Shell Dlg; font-size:8pt;&quot;&gt;In other words it switches between formatted and nonformatted code. (Ctrl+L)&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="text">
<string>Live Indent Preview</string>
</property>
<property name="icon">
<iconset resource="../resources/Icons.qrc">
<normaloff>:/mainWindow/live-preview.png</normaloff>:/mainWindow/live-preview.png</iconset>
</property>
<property name="shortcut">
<string>Ctrl+L</string>
</property>
</widget>
</item>
<item>
<widget class="TQCheckBox" name="enableSyntaxHighlightningCheckBox">
<property name="toolTip">
<string>&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;/head&gt;&lt;body style=&quot; white-space: pre-wrap; font-family:MS Shell Dlg 2; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;&quot;&gt;&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:MS Shell Dlg; font-size:8pt;&quot;&gt;Enables and disables the highlightning of the source&lt;/p&gt;&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:MS Shell Dlg; font-size:8pt;&quot;&gt;code shown below. (Still needs some performance improvements) (Ctrl+H)&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="text">
<string>Syntax Highlight</string>
</property>
<property name="icon">
<iconset resource="../resources/Icons.qrc">
<normaloff>:/mainWindow/syntax-highlight.png</normaloff>:/mainWindow/syntax-highlight.png</iconset>
</property>
<property name="shortcut">
<string>Ctrl+H</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
<property name="connectedSettingName" stdset="0">
<string>DONOTTRANSLATE:SyntaxHighlightingEnabled</string>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation">
<enum>TQt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="TQPushButton" name="pbAbout">
<property name="toolTip">
<string>&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;/head&gt;&lt;body style=&quot; white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;&quot;&gt;&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Shows info about UniversalIndentGUI&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="text">
<string>About</string>
</property>
<property name="icon">
<iconset resource="../resources/Icons.qrc">
<normaloff>:/mainWindow/info.png</normaloff>:/mainWindow/info.png</iconset>
</property>
</widget>
</item>
<item>
<widget class="TQPushButton" name="pbExit">
<property name="toolTip">
<string>&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;/head&gt;&lt;body style=&quot; white-space: pre-wrap; font-family:MS Shell Dlg; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;&quot;&gt;&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Quits the UniversalIndentGUI&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="text">
<string>Exit</string>
</property>
<property name="icon">
<iconset resource="../resources/Icons.qrc">
<normaloff>:/mainWindow/system-log-out.png</normaloff>:/mainWindow/system-log-out.png</iconset>
</property>
</widget>
</item>
</layout>
</widget>
<resources>
<include location="../resources/Icons.qrc"/>
</resources>
<connections/>
</ui>

@ -294,7 +294,7 @@
</attribute> </attribute>
<layout class="TQVBoxLayout"> <layout class="TQVBoxLayout">
<item> <item>
<widget class="TQCheckBox" name="enableSyntaxHighlightningCheckBox"> <widget class="TQCheckBox" name="cbEnableSyntaxHL">
<property name="toolTip"> <property name="toolTip">
<string>By enabling special key words of the source code are highlighted.</string> <string>By enabling special key words of the source code are highlighted.</string>
</property> </property>

Loading…
Cancel
Save