Clean up some unused stuff

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 237 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 631 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 515 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 237 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 257 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 984 B

@ -27,7 +27,9 @@ set( ${target}_SRCS
AboutDialogBase.ui AboutDialogBase.ui
MainWindowBase.ui MainWindowBase.ui
ToolBarWidget.ui ToolBarWidget.ui
UiGuiSettingsDialogBase.ui
main.cpp
IndentHandler.cpp IndentHandler.cpp
SettingsPaths.cpp SettingsPaths.cpp
TemplateBatchScript.cpp TemplateBatchScript.cpp
@ -37,11 +39,9 @@ set( ${target}_SRCS
UiGuiSettings.cpp UiGuiSettings.cpp
# ongoing # ongoing
UiGuiSettingsDialogBase.ui
AboutDialog.cpp AboutDialog.cpp
MainWindow.cpp MainWindow.cpp
main.cpp
UiGuiSettingsDialog.cpp UiGuiSettingsDialog.cpp
) )

@ -915,8 +915,10 @@ void MainWindow::previewTurnedOnOff(bool turnOn)
*/ */
void MainWindow::updateWindowTitle() void MainWindow::updateWindowTitle()
{ {
// TQt3 does not support the 'modified [*]' property present in Qt4's QWidget
setCaption("UniversalIndentGUI (TQt) " + TQString(PROGRAM_VERSION_STRING) + setCaption("UniversalIndentGUI (TQt) " + TQString(PROGRAM_VERSION_STRING) +
" [*] " + m_currentSourceFile); //" [*] " + m_currentSourceFile);
m_currentSourceFile);
} }
/* /*
@ -1085,6 +1087,7 @@ void MainWindow::closeEvent(TQCloseEvent *event)
*/ */
bool MainWindow::maybeSave() bool MainWindow::maybeSave()
{ {
// TQt3 does not support the 'isWindowModified()' method present in Qt4's QWidget
///-- if (isWindowModified()) ///-- if (isWindowModified())
///-- { ///-- {
///-- int ret = TQMessageBox::warning(this, tr("Modified code"), tr( ///-- int ret = TQMessageBox::warning(this, tr("Modified code"), tr(

@ -1,121 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>FindDialog</class>
<widget class="TQDialog" name="FindDialog">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>347</width>
<height>227</height>
</rect>
</property>
<property name="windowTitle">
<string>Find</string>
</property>
<layout class="TQVBoxLayout" name="verticalLayout">
<item>
<widget class="TQLabel" name="label">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Find what:</string>
</property>
</widget>
</item>
<item>
<widget class="TQComboBox" name="comboBox">
<property name="editable">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="TQGroupBox" name="groupBox">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title">
<string>Find options</string>
</property>
<layout class="TQVBoxLayout" name="verticalLayout_2">
<item>
<widget class="TQCheckBox" name="checkBox">
<property name="text">
<string>Match case</string>
</property>
</widget>
</item>
<item>
<widget class="TQCheckBox" name="checkBox_2">
<property name="text">
<string>Match whole word</string>
</property>
</widget>
</item>
<item>
<widget class="TQCheckBox" name="checkBox_3">
<property name="text">
<string>Search forward</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="TQCheckBox" name="checkBox_4">
<property name="text">
<string>Use Regular Expressions</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>TQt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item>
<layout class="TQHBoxLayout" name="horizontalLayout">
<property name="sizeConstraint">
<enum>TQLayout::SetMaximumSize</enum>
</property>
<item>
<widget class="TQPushButton" name="pushButton">
<property name="text">
<string>Find Next</string>
</property>
</widget>
</item>
<item>
<widget class="TQPushButton" name="pushButton_2">
<property name="text">
<string>Close</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>

@ -19,9 +19,7 @@
#include "MainWindow.h" #include "MainWindow.h"
// -- #include "IndentHandler.h"
#include "SettingsPaths.h" #include "SettingsPaths.h"
// -- #include "UiGuiIniFileParser.h"
#include "UiGuiVersion.h" #include "UiGuiVersion.h"
#include <tqapplication.h> #include <tqapplication.h>
@ -29,14 +27,12 @@
#include <tqstring.h> #include <tqstring.h>
#include <tqtextcodec.h> #include <tqtextcodec.h>
// -- #include <algorithm>
#include <iostream> #include <iostream>
// -- #include <string>
#include <tclap/CmdLine.h> #include <tclap/CmdLine.h>
/*! /*!
/brief Entry point to UniversalIndentGUI application. /brief Entry point to UniversalIndentGUI-TQt application.
*/ */
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
@ -90,7 +86,6 @@ int main(int argc, char *argv[])
TQApplication app(argc, argv); TQApplication app(argc, argv);
MainWindow *mainWindow = NULL; MainWindow *mainWindow = NULL;
// -- IndentHandler *indentHandler = NULL;
// Setting UTF-8 as default 8-Bit encoding // Setting UTF-8 as default 8-Bit encoding
TQTextCodec::setCodecForCStrings(TQTextCodec::codecForName("UTF-8")); TQTextCodec::setCodecForCStrings(TQTextCodec::codecForName("UTF-8"));
@ -101,7 +96,7 @@ int main(int argc, char *argv[])
try try
{ {
app.connect(&app, TQ_SIGNAL(lastWindowClosed()), &app, TQ_SLOT(quit())); // TODO: remove when no longer needed app.connect(&app, TQ_SIGNAL(lastWindowClosed()), &app, TQ_SLOT(quit()));
returnValue = app.exec(); returnValue = app.exec();
} }
catch (std::exception &ex) catch (std::exception &ex)
@ -109,8 +104,6 @@ int main(int argc, char *argv[])
tqDebug(TQString() + __LINE__ + " " + __FUNCTION__ + ": Something went terribly wrong: " + ex.what()); tqDebug(TQString() + __LINE__ + " " + __FUNCTION__ + ": Something went terribly wrong: " + ex.what());
} }
// -- delete indentHandler;
delete mainWindow; delete mainWindow;
return returnValue; return returnValue;
} }

Loading…
Cancel
Save