summaryrefslogtreecommitdiffstats
path: root/kspread
diff options
context:
space:
mode:
Diffstat (limited to 'kspread')
-rw-r--r--kspread/DESIGN.html28
-rw-r--r--kspread/KSpreadColumnIface.cc2
-rw-r--r--kspread/KSpreadLayoutIface.cc158
-rw-r--r--kspread/KSpreadLayoutIface.h2
-rw-r--r--kspread/KSpreadRowIface.cc2
-rw-r--r--kspread/OASIS.txt14
-rw-r--r--kspread/commands.cc78
-rw-r--r--kspread/commands.h8
-rw-r--r--kspread/dialogs/font_cell_format.ui6
-rw-r--r--kspread/dialogs/kspread_dlg_angle.cc4
-rw-r--r--kspread/dialogs/kspread_dlg_area.cc4
-rw-r--r--kspread/dialogs/kspread_dlg_comment.cc2
-rw-r--r--kspread/dialogs/kspread_dlg_conditional.cc28
-rw-r--r--kspread/dialogs/kspread_dlg_cons.cc12
-rw-r--r--kspread/dialogs/kspread_dlg_csv.cc42
-rw-r--r--kspread/dialogs/kspread_dlg_database.cc48
-rw-r--r--kspread/dialogs/kspread_dlg_database.h6
-rw-r--r--kspread/dialogs/kspread_dlg_find.cc20
-rw-r--r--kspread/dialogs/kspread_dlg_format.cc10
-rw-r--r--kspread/dialogs/kspread_dlg_formula.cc10
-rw-r--r--kspread/dialogs/kspread_dlg_goalseek.cc8
-rw-r--r--kspread/dialogs/kspread_dlg_goto.cc2
-rw-r--r--kspread/dialogs/kspread_dlg_insert.cc4
-rw-r--r--kspread/dialogs/kspread_dlg_layout.cc110
-rw-r--r--kspread/dialogs/kspread_dlg_layout.h10
-rw-r--r--kspread/dialogs/kspread_dlg_list.cc2
-rw-r--r--kspread/dialogs/kspread_dlg_paperlayout.cc28
-rw-r--r--kspread/dialogs/kspread_dlg_paperlayout.h2
-rw-r--r--kspread/dialogs/kspread_dlg_pasteinsert.cc4
-rw-r--r--kspread/dialogs/kspread_dlg_preference.cc24
-rw-r--r--kspread/dialogs/kspread_dlg_reference.cc12
-rw-r--r--kspread/dialogs/kspread_dlg_resize2.cc2
-rw-r--r--kspread/dialogs/kspread_dlg_series.cc2
-rw-r--r--kspread/dialogs/kspread_dlg_show.cc2
-rw-r--r--kspread/dialogs/kspread_dlg_showColRow.cc8
-rw-r--r--kspread/dialogs/kspread_dlg_sort.cc64
-rw-r--r--kspread/dialogs/kspread_dlg_special.cc8
-rw-r--r--kspread/dialogs/kspread_dlg_styles.cc14
-rw-r--r--kspread/dialogs/kspread_dlg_subtotal.cc2
-rw-r--r--kspread/dialogs/kspread_dlg_validity.cc26
-rw-r--r--kspread/dialogs/kspreadsubtotal.ui2
-rw-r--r--kspread/dialogs/link.cc4
-rw-r--r--kspread/dialogs/position_cell_format.ui10
-rw-r--r--kspread/dialogs/protection_cell_format.ui10
-rw-r--r--kspread/dialogs/sheet_properties.cc2
-rw-r--r--kspread/dialogs/sheet_properties_base.ui10
-rw-r--r--kspread/digest.cc2
-rw-r--r--kspread/doc/PAINTING.html8
-rw-r--r--kspread/formula.cc26
-rw-r--r--kspread/kspread_brush.cc4
-rw-r--r--kspread/kspread_brush.h2
-rw-r--r--kspread/kspread_canvas.cc130
-rw-r--r--kspread/kspread_canvas.h10
-rw-r--r--kspread/kspread_cell.cc128
-rw-r--r--kspread/kspread_cell.h10
-rw-r--r--kspread/kspread_cluster.cc4
-rw-r--r--kspread/kspread_doc.cc38
-rw-r--r--kspread/kspread_doc.h10
-rw-r--r--kspread/kspread_editors.cc12
-rw-r--r--kspread/kspread_format.cc6
-rw-r--r--kspread/kspread_format.h4
-rw-r--r--kspread/kspread_functions_conversion.cc4
-rw-r--r--kspread/kspread_functions_datetime.cc26
-rw-r--r--kspread/kspread_functions_information.cc4
-rw-r--r--kspread/kspread_functions_text.cc8
-rw-r--r--kspread/kspread_generalProperty.cpp8
-rw-r--r--kspread/kspread_map.cc4
-rw-r--r--kspread/kspread_object.cc124
-rw-r--r--kspread/kspread_object.h14
-rw-r--r--kspread/kspread_propertyEditor.cpp4
-rw-r--r--kspread/kspread_sheet.cc98
-rw-r--r--kspread/kspread_sheet.h34
-rw-r--r--kspread/kspread_sheetprint.cc34
-rw-r--r--kspread/kspread_sheetprint.h8
-rw-r--r--kspread/kspread_style.cc2
-rw-r--r--kspread/kspread_style.h2
-rw-r--r--kspread/kspread_toolbox.cc8
-rw-r--r--kspread/kspread_undo.cc168
-rw-r--r--kspread/kspread_util.cc18
-rw-r--r--kspread/kspread_value.cc2
-rw-r--r--kspread/kspread_value.h2
-rw-r--r--kspread/kspread_view.cc76
-rw-r--r--kspread/kspread_view.h12
-rw-r--r--kspread/manipulator.cc100
-rw-r--r--kspread/plugins/calculator/configdlg.cpp8
-rw-r--r--kspread/plugins/calculator/kcalc.cpp48
-rw-r--r--kspread/plugins/calculator/kcalc.h2
-rw-r--r--kspread/plugins/insertcalendar/kspread_insertcalendardialog.cc2
-rw-r--r--kspread/plugins/insertcalendar/kspread_insertcalendardialogbase.ui2
-rw-r--r--kspread/plugins/insertcalendar/kspread_plugininsertcalendar.cc2
-rw-r--r--kspread/plugins/scripting/kspreadcore/kspreadcoremodule.cpp6
-rw-r--r--kspread/plugins/scripting/scripting.cc4
-rwxr-xr-xkspread/plugins/scripting/scripts/exporthtml/ExportHtml.py4
-rwxr-xr-xkspread/plugins/scripting/scripts/scripteditor/ScriptEditor.py8
-rw-r--r--kspread/tests/inspector.cc6
-rw-r--r--kspread/tests/tester.cc2
-rw-r--r--kspread/tests/testrunner.cc24
-rw-r--r--kspread/valueconverter.cc8
-rw-r--r--kspread/valueformatter.cc58
99 files changed, 1097 insertions, 1097 deletions
diff --git a/kspread/DESIGN.html b/kspread/DESIGN.html
index 3c43a860c..31059876d 100644
--- a/kspread/DESIGN.html
+++ b/kspread/DESIGN.html
@@ -22,7 +22,7 @@ and the source code itself.</p>
<h2>Document/View Architecture</h2>
-<p>Status: IN PROGRESS.</p>
+<p>tqStatus: IN PROGRESS.</p>
<p>MVC (Model/View/Controller) means that the application consists of three
big parts, the <i>Model</i> which holds the data structure and objects,
@@ -49,7 +49,7 @@ to some extent he can take most part of the KSpread back-end and glue a new
user interface around the code.</p>
<h2>Dependency Handling</h2>
-<p>Status: IN PROGRESS.</p>
+<p>tqStatus: IN PROGRESS.</p>
<p>When a cell holds a formula, then it is likely that it depends on other
cell(s) for calculating the result. For example, if cell A11 has the formula
@@ -181,7 +181,7 @@ and the dependency manager will do the rest. In addition, this gives us
recursive dependency calculation at almost no cost.</p>
<h2>Manipulators</h2>
-<p>Status: PLANNED.</p>
+<p>tqStatus: PLANNED.</p>
<p>Currently, every operation on a cell or on a range of cells is quite complex.
You need to ensure correct repainting, recalculation, iterate on a range and so on.</p>
@@ -218,7 +218,7 @@ below.</p>
accomplish this.</p>
<h2>Selection handling</h2>
-<p>Status: PLANNED</p>
+<p>tqStatus: PLANNED</p>
<p>The selection shall be an instance of some RangeList class,
or however we want to call it - this will contain a list of
@@ -227,7 +227,7 @@ more entries. This will allow easy implementation of CTRL-selections and so,
because thanks to manipulators, each operation will automatically support these.</p>
<h2>Repaint Triggering</h2>
-<p>Status: PLANNED</p>
+<p>tqStatus: PLANNED</p>
<p>As mentioned above, the interface between the core and the GUI needs to be kept
at minimum. Also, the number of repaints needs to be as low as possible, and repaints
@@ -255,7 +255,7 @@ the manipulators that derive from it, so that it knows whether it changed
cell's content or formatting.</p>
<h2>Formula Engine</h2>
-<p>Status: FINISHED.</p>
+<p>tqStatus: FINISHED.</p>
<p>This formula engine is just an expression evaluator. To offer better
performance, the expression is first compiled into byte codes which will
@@ -472,7 +472,7 @@ token right before the percent. If yes, then the following code is generated:
<h2>Value</h2>
-<p>Status: FINISHED.<br>
+<p>tqStatus: FINISHED.<br>
</p>
<p>to be written.</p>
@@ -480,7 +480,7 @@ token right before the percent. If yes, then the following code is generated:
<h2>Commands Based on KCommand<br>
</h2>
-<p>Status: IN PROGRESS.</p>
+<p>tqStatus: IN PROGRESS.</p>
<p>Until lately, to implement undo and redo, KSpread creates corresponding
KSpreadUndo classes for each action and runs them when the user undoes
@@ -492,15 +492,15 @@ hence we should be able to undo/redo every operation (provided that the
corresponding manipulator provides methods to store/recall the undo information).</p>
<h2>Cell Storage</h2>
-<p>Status: PLANNED.</p>
+<p>tqStatus: PLANNED.</p>
<p>Cells are grouped together, and then hashed.</p>
<h2>Format Storage</h2>
-<p>Status: PLANNED.</p>
+<p>tqStatus: PLANNED.</p>
<p>Formatting specifies how a cell should look like. It involves font
-attributes like bold or italics, vertical and horizontal alignment,
+attributes like bold or italics, vertical and horizontal tqalignment,
rotation angle, shading, background color and so on. Each cell can have
its own format, but bear also in mind that a whole row or column format
should also apply.</p>
@@ -589,7 +589,7 @@ be in more than one leaf in the quad-tree. <i>Details on the possible use of
quad-tree or other methods should be explored further more</i>.</p>
<h2>Default Toolbars</h2>
-<p>Status: IN PROGRESS.</p>
+<p>tqStatus: IN PROGRESS.</p>
<p>Relevant mailing-list threads:</p>
@@ -652,7 +652,7 @@ Borders, Background, Foreground</li>
</ul>
<h2>Test Framework</h2>
-<p>Status: IN PROGRESS.</p>
+<p>tqStatus: IN PROGRESS.</p>
<p>Relevant mailing-list threads:</p>
@@ -704,7 +704,7 @@ test cases.</p>
</p>
<h2>Coding Style</h2>
-<p>Status: IN PROGRESS.</p>
+<p>tqStatus: IN PROGRESS.</p>
<p>(to be written in details).</p>
diff --git a/kspread/KSpreadColumnIface.cc b/kspread/KSpreadColumnIface.cc
index b7686b2f9..c0fc813f4 100644
--- a/kspread/KSpreadColumnIface.cc
+++ b/kspread/KSpreadColumnIface.cc
@@ -19,7 +19,7 @@
* Boston, MA 02110-1301, USA.
*/
-#include <brush.h>
+#include <tqbrush.h>
#include "kspread_format.h"
#include "KSpreadLayoutIface.h"
diff --git a/kspread/KSpreadLayoutIface.cc b/kspread/KSpreadLayoutIface.cc
index 8099df6f9..1ca174cfe 100644
--- a/kspread/KSpreadLayoutIface.cc
+++ b/kspread/KSpreadLayoutIface.cc
@@ -21,54 +21,54 @@
*/
#include "KSpreadLayoutIface.h"
-#include <brush.h>
+#include <tqbrush.h>
#include "kspread_format.h"
using namespace KSpread;
LayoutIface::LayoutIface(Format *_layout)
{
- layout=_layout;
+ tqlayout=_layout;
}
void LayoutIface::setBgColor(const TQString& _c)
{
TQColor c(_c);
- layout->setBgColor(c);
+ tqlayout->setBgColor(c);
}
void LayoutIface::setBgColor(int r,int g,int b)
{
TQColor c(r,g,b);
- layout->setBgColor(c);
+ tqlayout->setBgColor(c);
}
void LayoutIface::setTextColor(int r,int g,int b)
{
TQColor c(r,g,b);
- layout->setTextColor(c);
+ tqlayout->setTextColor(c);
}
void LayoutIface::setTextColor(const TQString& _c)
{
TQColor c(_c);
- layout->setTextColor(c);
+ tqlayout->setTextColor(c);
}
void LayoutIface::setAngle(int angle)
{
- layout->setAngle(angle);
+ tqlayout->setAngle(angle);
}
void LayoutIface::setVerticalText(bool _vertical)
{
- layout->setVerticalText(_vertical);
+ tqlayout->setVerticalText(_vertical);
}
void LayoutIface::setMultiRow(bool _multi)
{
- layout->setMultiRow( _multi );
+ tqlayout->setMultiRow( _multi );
}
void LayoutIface::setAlign( const TQString& _Align )
@@ -82,7 +82,7 @@ void LayoutIface::setAlign( const TQString& _Align )
Align=Format::Center;
else
Align=Format::Undefined;
- layout->setAlign( Align);
+ tqlayout->setAlign( Align);
}
void LayoutIface::setAlignY( const TQString& _AlignY )
@@ -96,23 +96,23 @@ void LayoutIface::setAlignY( const TQString& _AlignY )
AlignY=Format::Bottom;
else
AlignY=Format::Middle;
- layout->setAlignY( AlignY);
+ tqlayout->setAlignY( AlignY);
}
void LayoutIface::setPostfix(const TQString &_postfix)
{
- layout->setPostfix( _postfix );
+ tqlayout->setPostfix( _postfix );
}
void LayoutIface::setPrefix(const TQString &_prefix)
{
- layout->setPrefix( _prefix );
+ tqlayout->setPrefix( _prefix );
}
void LayoutIface::setFormatType(const TQString &_formatType)
{
FormatType format;
- layout->setPrecision(2);
+ tqlayout->setPrecision(2);
if (_formatType=="Generic")
format = Generic_format;
else if(_formatType=="Number")
@@ -151,43 +151,43 @@ void LayoutIface::setFormatType(const TQString &_formatType)
format=fraction_three_digits;
else
format=Generic_format;
- layout->setFormatType( format);
+ tqlayout->setFormatType( format);
}
void LayoutIface::setPrecision(int _p)
{
- layout->setPrecision( _p );
+ tqlayout->setPrecision( _p );
}
void LayoutIface::setTextFontBold(bool _b)
{
- layout->setTextFontBold( _b );
+ tqlayout->setTextFontBold( _b );
}
void LayoutIface::setTextFontItalic(bool _b)
{
- layout->setTextFontItalic( _b );
+ tqlayout->setTextFontItalic( _b );
}
void LayoutIface::setTextFontUnderline(bool _b)
{
- layout->setTextFontUnderline( _b );
+ tqlayout->setTextFontUnderline( _b );
}
void LayoutIface::setTextFontStrike(bool _b)
{
- layout->setTextFontStrike( _b );
+ tqlayout->setTextFontStrike( _b );
}
void LayoutIface::setTextFontSize( int _size )
{
- layout->setTextFontSize( _size );
+ tqlayout->setTextFontSize( _size );
}
void LayoutIface::setTextFontFamily( const TQString& _font )
{
- layout->setTextFontFamily( _font );
+ tqlayout->setTextFontFamily( _font );
}
@@ -195,34 +195,34 @@ void LayoutIface::setTextFontFamily( const TQString& _font )
void LayoutIface::setLeftBorderStyle( const TQString& _style )
{
if(_style=="DotLine")
- layout->setLeftBorderStyle(Qt::DotLine);
+ tqlayout->setLeftBorderStyle(Qt::DotLine);
else if(_style=="DashLine")
- layout->setLeftBorderStyle(Qt::DashLine);
+ tqlayout->setLeftBorderStyle(Qt::DashLine);
else if(_style=="DashDotLine")
- layout->setLeftBorderStyle(Qt::DashDotLine);
+ tqlayout->setLeftBorderStyle(Qt::DashDotLine);
else if(_style=="DashDotDotLine")
- layout->setLeftBorderStyle(Qt::DashDotDotLine);
+ tqlayout->setLeftBorderStyle(Qt::DashDotDotLine);
else if(_style=="SolidLine")
- layout->setLeftBorderStyle(Qt::SolidLine);
+ tqlayout->setLeftBorderStyle(Qt::SolidLine);
else
- layout->setLeftBorderStyle(Qt::SolidLine);
+ tqlayout->setLeftBorderStyle(Qt::SolidLine);
}
void LayoutIface::setLeftBorderColor(const TQString& _c)
{
TQColor c(_c);
- layout->setLeftBorderColor(c );
+ tqlayout->setLeftBorderColor(c );
}
void LayoutIface::setLeftBorderColor(int r,int g,int b)
{
TQColor c(r,g,b);
- layout->setLeftBorderColor(c );
+ tqlayout->setLeftBorderColor(c );
}
void LayoutIface::setLeftBorderWidth( int _size )
{
- layout->setLeftBorderWidth( _size );
+ tqlayout->setLeftBorderWidth( _size );
}
@@ -230,34 +230,34 @@ void LayoutIface::setLeftBorderWidth( int _size )
void LayoutIface::setRightBorderStyle( const TQString& _style )
{
if(_style=="DotLine")
- layout->setRightBorderStyle(Qt::DotLine);
+ tqlayout->setRightBorderStyle(Qt::DotLine);
else if(_style=="DashLine")
- layout->setRightBorderStyle(Qt::DashLine);
+ tqlayout->setRightBorderStyle(Qt::DashLine);
else if(_style=="DashDotLine")
- layout->setRightBorderStyle(Qt::DashDotLine);
+ tqlayout->setRightBorderStyle(Qt::DashDotLine);
else if(_style=="DashDotDotLine")
- layout->setRightBorderStyle(Qt::DashDotDotLine);
+ tqlayout->setRightBorderStyle(Qt::DashDotDotLine);
else if(_style=="SolidLine")
- layout->setRightBorderStyle(Qt::SolidLine);
+ tqlayout->setRightBorderStyle(Qt::SolidLine);
else
- layout->setRightBorderStyle(Qt::SolidLine);
+ tqlayout->setRightBorderStyle(Qt::SolidLine);
}
void LayoutIface::setRightBorderColor(const TQString& _c)
{
TQColor c(_c);
- layout->setRightBorderColor(c );
+ tqlayout->setRightBorderColor(c );
}
void LayoutIface::setRightBorderColor(int r,int g,int b)
{
TQColor c(r,g,b);
- layout->setRightBorderColor(c );
+ tqlayout->setRightBorderColor(c );
}
void LayoutIface::setRightBorderWidth( int _size )
{
- layout->setRightBorderWidth( _size );
+ tqlayout->setRightBorderWidth( _size );
}
@@ -265,34 +265,34 @@ void LayoutIface::setRightBorderWidth( int _size )
void LayoutIface::setTopBorderStyle( const TQString& _style )
{
if(_style=="DotLine")
- layout->setTopBorderStyle(Qt::DotLine);
+ tqlayout->setTopBorderStyle(Qt::DotLine);
else if(_style=="DashLine")
- layout->setTopBorderStyle(Qt::DashLine);
+ tqlayout->setTopBorderStyle(Qt::DashLine);
else if(_style=="DashDotLine")
- layout->setTopBorderStyle(Qt::DashDotLine);
+ tqlayout->setTopBorderStyle(Qt::DashDotLine);
else if(_style=="DashDotDotLine")
- layout->setTopBorderStyle(Qt::DashDotDotLine);
+ tqlayout->setTopBorderStyle(Qt::DashDotDotLine);
else if(_style=="SolidLine")
- layout->setTopBorderStyle(Qt::SolidLine);
+ tqlayout->setTopBorderStyle(Qt::SolidLine);
else
- layout->setTopBorderStyle(Qt::SolidLine);
+ tqlayout->setTopBorderStyle(Qt::SolidLine);
}
void LayoutIface::setTopBorderColor(const TQString& _c)
{
TQColor c(_c);
- layout->setTopBorderColor(c );
+ tqlayout->setTopBorderColor(c );
}
void LayoutIface::setTopBorderColor(int r,int g,int b)
{
TQColor c(r,g,b);
- layout->setTopBorderColor(c );
+ tqlayout->setTopBorderColor(c );
}
void LayoutIface::setTopBorderWidth( int _size )
{
- layout->setTopBorderWidth( _size );
+ tqlayout->setTopBorderWidth( _size );
}
@@ -300,33 +300,33 @@ void LayoutIface::setTopBorderWidth( int _size )
void LayoutIface::setBottomBorderStyle( const TQString& _style )
{
if(_style=="DotLine")
- layout->setBottomBorderStyle(Qt::DotLine);
+ tqlayout->setBottomBorderStyle(Qt::DotLine);
else if(_style=="DashLine")
- layout->setBottomBorderStyle(Qt::DashLine);
+ tqlayout->setBottomBorderStyle(Qt::DashLine);
else if(_style=="DashDotLine")
- layout->setBottomBorderStyle(Qt::DashDotLine);
+ tqlayout->setBottomBorderStyle(Qt::DashDotLine);
else if(_style=="DashDotDotLine")
- layout->setBottomBorderStyle(Qt::DashDotDotLine);
+ tqlayout->setBottomBorderStyle(Qt::DashDotDotLine);
else if(_style=="SolidLine")
- layout->setBottomBorderStyle(Qt::SolidLine);
+ tqlayout->setBottomBorderStyle(Qt::SolidLine);
else
- layout->setBottomBorderStyle(Qt::SolidLine);
+ tqlayout->setBottomBorderStyle(Qt::SolidLine);
}
void LayoutIface::setBottomBorderColor(const TQString& _c)
{
TQColor c(_c);
- layout->setBottomBorderColor(c );
+ tqlayout->setBottomBorderColor(c );
}
void LayoutIface::setBottomBorderColor(int r,int g,int b)
{
TQColor c(r,g,b);
- layout->setBottomBorderColor(c );
+ tqlayout->setBottomBorderColor(c );
}
void LayoutIface::setBottomBorderWidth( int _size )
{
- layout->setBottomBorderWidth( _size );
+ tqlayout->setBottomBorderWidth( _size );
}
@@ -334,33 +334,33 @@ void LayoutIface::setBottomBorderWidth( int _size )
void LayoutIface::setFallDiagonalStyle( const TQString& _style )
{
if(_style=="DotLine")
- layout->setFallDiagonalStyle(Qt::DotLine);
+ tqlayout->setFallDiagonalStyle(Qt::DotLine);
else if(_style=="DashLine")
- layout->setFallDiagonalStyle(Qt::DashLine);
+ tqlayout->setFallDiagonalStyle(Qt::DashLine);
else if(_style=="DashDotLine")
- layout->setFallDiagonalStyle(Qt::DashDotLine);
+ tqlayout->setFallDiagonalStyle(Qt::DashDotLine);
else if(_style=="DashDotDotLine")
- layout->setFallDiagonalStyle(Qt::DashDotDotLine);
+ tqlayout->setFallDiagonalStyle(Qt::DashDotDotLine);
else if(_style=="SolidLine")
- layout->setFallDiagonalStyle(Qt::SolidLine);
+ tqlayout->setFallDiagonalStyle(Qt::SolidLine);
else
- layout->setFallDiagonalStyle(Qt::SolidLine);
+ tqlayout->setFallDiagonalStyle(Qt::SolidLine);
}
void LayoutIface::setFallDiagonalColor(const TQString& _c)
{
TQColor c(_c);
- layout->setFallDiagonalColor(c );
+ tqlayout->setFallDiagonalColor(c );
}
void LayoutIface::setFallDiagonalColor(int r,int g,int b)
{
TQColor c(r,g,b);
- layout->setFallDiagonalColor(c );
+ tqlayout->setFallDiagonalColor(c );
}
void LayoutIface::setFallDiagonalWidth( int _size )
{
- layout->setFallDiagonalWidth( _size );
+ tqlayout->setFallDiagonalWidth( _size );
}
@@ -369,47 +369,47 @@ void LayoutIface::setFallDiagonalWidth( int _size )
void LayoutIface::setGoUpDiagonalStyle( const TQString& _style )
{
if(_style=="DotLine")
- layout->setGoUpDiagonalStyle(Qt::DotLine);
+ tqlayout->setGoUpDiagonalStyle(Qt::DotLine);
else if(_style=="DashLine")
- layout->setGoUpDiagonalStyle(Qt::DashLine);
+ tqlayout->setGoUpDiagonalStyle(Qt::DashLine);
else if(_style=="DashDotLine")
- layout->setGoUpDiagonalStyle(Qt::DashDotLine);
+ tqlayout->setGoUpDiagonalStyle(Qt::DashDotLine);
else if(_style=="DashDotDotLine")
- layout->setGoUpDiagonalStyle(Qt::DashDotDotLine);
+ tqlayout->setGoUpDiagonalStyle(Qt::DashDotDotLine);
else if(_style=="SolidLine")
- layout->setGoUpDiagonalStyle(Qt::SolidLine);
+ tqlayout->setGoUpDiagonalStyle(Qt::SolidLine);
else
- layout->setGoUpDiagonalStyle(Qt::SolidLine);
+ tqlayout->setGoUpDiagonalStyle(Qt::SolidLine);
}
void LayoutIface::setGoUpDiagonalColor(const TQString& _c)
{
TQColor c(_c);
- layout->setGoUpDiagonalColor(c );
+ tqlayout->setGoUpDiagonalColor(c );
}
void LayoutIface::setGoUpDiagonalColor(int r,int g,int b)
{
TQColor c(r,g,b);
- layout->setGoUpDiagonalColor(c );
+ tqlayout->setGoUpDiagonalColor(c );
}
void LayoutIface::setGoUpDiagonalWidth( int _size )
{
- layout->setGoUpDiagonalWidth( _size );
+ tqlayout->setGoUpDiagonalWidth( _size );
}
void LayoutIface::setIndent( double indent )
{
if( indent >= 0.0 )
- layout->setIndent( indent );
+ tqlayout->setIndent( indent );
else
- layout->setIndent( 0.0 );
+ tqlayout->setIndent( 0.0 );
}
void LayoutIface::setDontPrintText ( bool _print)
{
- layout->setDontPrintText ( _print);
+ tqlayout->setDontPrintText ( _print);
}
diff --git a/kspread/KSpreadLayoutIface.h b/kspread/KSpreadLayoutIface.h
index 84de8ac4d..c4231032d 100644
--- a/kspread/KSpreadLayoutIface.h
+++ b/kspread/KSpreadLayoutIface.h
@@ -95,7 +95,7 @@ k_dcop:
//don't print text
virtual void setDontPrintText ( bool _b);
private:
- Format *layout;
+ Format *tqlayout;
};
} //namespace KSpread
diff --git a/kspread/KSpreadRowIface.cc b/kspread/KSpreadRowIface.cc
index 826e49e58..69db292f6 100644
--- a/kspread/KSpreadRowIface.cc
+++ b/kspread/KSpreadRowIface.cc
@@ -22,7 +22,7 @@
#include "KSpreadLayoutIface.h"
#include "KSpreadRowIface.h"
#include "kspread_format.h"
-#include <brush.h>
+#include <tqbrush.h>
using namespace KSpread;
diff --git a/kspread/OASIS.txt b/kspread/OASIS.txt
index bf0feb94b..2eb878c8a 100644
--- a/kspread/OASIS.txt
+++ b/kspread/OASIS.txt
@@ -51,7 +51,7 @@ Document/Workbook
[x] Active sheet
[x] Header
[x] Footer
- [x] Page layout
+ [x] Page tqlayout
[x] Protection status
[x] Print range
[x] Print setup
@@ -155,29 +155,29 @@ Merged cells
</table:table-cell>
<table:covered-table-cell table:style-name="ce3"/>
-Cell horizontal alignment: top
+Cell horizontal tqalignment: top
<style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default">
<style:table-cell-properties style:vertical-align="top"/>
</style:style>
-Cell horizontal alignment: middle
+Cell horizontal tqalignment: middle
<style:style style:name="ce2" style:family="table-cell" style:parent-style-name="Default">
<style:table-cell-properties style:vertical-align="middle"/>
</style:style>
-Cell horizontal alignment: bottom
+Cell horizontal tqalignment: bottom
<style:style style:name="ce3" style:family="table-cell" style:parent-style-name="Default">
<style:table-cell-properties style:vertical-align="bottom"/>
</style:style>
-Cell vertical alignment: top
+Cell vertical tqalignment: top
<style:style style:name="ce5" style:family="table-cell" style:parent-style-name="Default">
<style:table-cell-properties fo:text-align="center"
style:text-align-source="fix" style:repeat-content="none"
fo:margin-left="0in" style:vertical-align="top"/>
</style:style>
-Cell vertical alignment: middle
+Cell vertical tqalignment: middle
<style:style style:name="ce6" style:family="table-cell" style:parent-style-name="Default">
<style:table-cell-properties fo:text-align="center"
style:text-align-source="fix" style:repeat-content="none"
@@ -185,7 +185,7 @@ Cell vertical alignment: middle
</style:style>
-Cell vertical alignment: bottom
+Cell vertical tqalignment: bottom
<style:style style:name="ce7" style:family="table-cell" style:parent-style-name="Default">
<style:table-cell-properties fo:text-align="center"
style:text-align-source="fix" style:repeat-content="none"
diff --git a/kspread/commands.cc b/kspread/commands.cc
index 490bee81b..a4788bdab 100644
--- a/kspread/commands.cc
+++ b/kspread/commands.cc
@@ -77,7 +77,7 @@ TQString MergeCellCommand::name() const
if( rangeName.isEmpty() )
return i18n("Merge Cells");
else
- return i18n("Merge Cells %1").arg( rangeName );
+ return i18n("Merge Cells %1").tqarg( rangeName );
}
void MergeCellCommand::execute()
@@ -174,7 +174,7 @@ void HideSheetCommand::unexecute()
TQString HideSheetCommand::name() const
{
- TQString n = TQString( i18n("Hide Sheet %1") ).arg( sheetName );
+ TQString n = TQString( i18n("Hide Sheet %1") ).tqarg( sheetName );
if( n.length() > 64 ) n = i18n("Hide Sheet");
return n;
}
@@ -205,7 +205,7 @@ void ShowSheetCommand::unexecute()
TQString ShowSheetCommand::name() const
{
- TQString n = TQString( i18n("Show Sheet %1") ).arg( sheetName );
+ TQString n = TQString( i18n("Show Sheet %1") ).tqarg( sheetName );
if( n.length() > 64 ) n = i18n("Show Sheet");
return n;
}
@@ -590,37 +590,37 @@ ChangeObjectGeometryCommand::~ChangeObjectGeometryCommand()
void ChangeObjectGeometryCommand::execute()
{
- doc->repaint( obj->geometry() );
+ doc->tqrepaint( obj->tqgeometry() );
- KoRect geometry = obj->geometry();
- geometry.moveBy( m_diff.x(), m_diff.y() );
- geometry.setWidth( geometry.width() + r_diff.width() );
- geometry.setHeight( geometry.height() + r_diff.height() );
- obj->setGeometry( geometry );
+ KoRect tqgeometry = obj->tqgeometry();
+ tqgeometry.moveBy( m_diff.x(), m_diff.y() );
+ tqgeometry.setWidth( tqgeometry.width() + r_diff.width() );
+ tqgeometry.setHeight( tqgeometry.height() + r_diff.height() );
+ obj->setGeometry( tqgeometry );
// if ( object->isSelected())
// doc->updateObjectStatusBarItem();
- doc->repaint( obj );
+ doc->tqrepaint( obj );
}
void ChangeObjectGeometryCommand::unexecute()
{
- doc->repaint( obj->geometry() );
+ doc->tqrepaint( obj->tqgeometry() );
- KoRect geometry = obj->geometry();
- geometry.moveBy( -m_diff.x(), -m_diff.y() );
- geometry.setWidth( geometry.width() - r_diff.width() );
- geometry.setHeight( geometry.height() - r_diff.height() );
- obj->setGeometry( geometry );
+ KoRect tqgeometry = obj->tqgeometry();
+ tqgeometry.moveBy( -m_diff.x(), -m_diff.y() );
+ tqgeometry.setWidth( tqgeometry.width() - r_diff.width() );
+ tqgeometry.setHeight( tqgeometry.height() - r_diff.height() );
+ obj->setGeometry( tqgeometry );
// if ( object->isSelected())
// doc->updateObjectStatusBarItem();
- doc->repaint( obj );
+ doc->tqrepaint( obj );
}
TQString ChangeObjectGeometryCommand::name() const
{
- /*if ( fabs( obj->geometry().width() - newGeometry.width() )<1e-3 && fabs( obj->geometry().height() - newGeometry.height() ) < 1e-3 )
+ /*if ( fabs( obj->tqgeometry().width() - newGeometry.width() )<1e-3 && fabs( obj->tqgeometry().height() - newGeometry.height() ) < 1e-3 )
return i18n("Move Object");
else */
return i18n("Resize Object");
@@ -665,7 +665,7 @@ void RemoveObjectCommand::execute()
}
obj->setSelected( false );
- doc->repaint( obj );
+ doc->tqrepaint( obj );
executed = true;
}
@@ -677,7 +677,7 @@ void RemoveObjectCommand::unexecute()
EmbeddedKOfficeObject *eko = dynamic_cast<EmbeddedKOfficeObject *>(obj);
eko->embeddedObject()->setDeleted(false);
}
- doc->repaint( obj );
+ doc->tqrepaint( obj );
executed = false;
}
@@ -689,18 +689,18 @@ TQString RemoveObjectCommand::name() const
return i18n("Remove Object");
}
-InsertObjectCommand::InsertObjectCommand( const KoRect& _geometry, KoDocumentEntry& _entry, Canvas *_canvas ) //child
+InsertObjectCommand::InsertObjectCommand( const KoRect& _tqgeometry, KoDocumentEntry& _entry, Canvas *_canvas ) //child
{
- geometry = _geometry;
+ tqgeometry = _tqgeometry;
entry = _entry;
canvas = _canvas;
type = OBJECT_KOFFICE_PART;
obj = 0;
}
-InsertObjectCommand::InsertObjectCommand(const KoRect& _geometry, KoDocumentEntry& _entry, const TQRect& _data, Canvas *_canvas ) //chart
+InsertObjectCommand::InsertObjectCommand(const KoRect& _tqgeometry, KoDocumentEntry& _entry, const TQRect& _data, Canvas *_canvas ) //chart
{
- geometry = _geometry;
+ tqgeometry = _tqgeometry;
entry = _entry;
data = _data;
canvas = _canvas;
@@ -708,10 +708,10 @@ InsertObjectCommand::InsertObjectCommand(const KoRect& _geometry, KoDocumentEntr
obj = 0;
}
-InsertObjectCommand::InsertObjectCommand( const KoRect& _geometry , KURL& _file, Canvas *_canvas ) //picture
+InsertObjectCommand::InsertObjectCommand( const KoRect& _tqgeometry , KURL& _file, Canvas *_canvas ) //picture
{
//In the case of pictures, only the top left point of the rectangle is relevant
- geometry = _geometry;
+ tqgeometry = _tqgeometry;
file = _file;
canvas = _canvas;
type = OBJECT_PICTURE;
@@ -737,7 +737,7 @@ void InsertObjectCommand::execute()
if ( obj ) //restore the object which was removed from the object list in InsertObjectCommand::unexecute()
{
canvas->doc()->embeddedObjects().append( obj );
- canvas->doc()->repaint( obj );
+ canvas->doc()->tqrepaint( obj );
}
else
{
@@ -746,17 +746,17 @@ void InsertObjectCommand::execute()
{
case OBJECT_CHART:
{
- success = canvas->activeSheet()->insertChart( geometry, entry, data );
+ success = canvas->activeSheet()->insertChart( tqgeometry, entry, data );
break;
}
case OBJECT_KOFFICE_PART:
{
- success = canvas->activeSheet()->insertChild( geometry, entry );
+ success = canvas->activeSheet()->insertChild( tqgeometry, entry );
break;
}
case OBJECT_PICTURE:
{
- success = canvas->activeSheet()->insertPicture( geometry.topLeft() , file );
+ success = canvas->activeSheet()->insertPicture( tqgeometry.topLeft() , file );
break;
}
default:
@@ -780,7 +780,7 @@ void InsertObjectCommand::unexecute()
canvas->doc()->embeddedObjects().removeRef( obj );
obj->setSelected( false );
- canvas->doc()->repaint( obj );
+ canvas->doc()->tqrepaint( obj );
executed = false;
}
@@ -871,7 +871,7 @@ void GeometryPropertiesCommand::execute()
{
it.current()->setProtect( m_newValue );
if ( it.current()->isSelected() )
- m_doc->repaint( it.current() );
+ m_doc->tqrepaint( it.current() );
}
else if ( m_type == KeepRatio)
it.current()->setKeepRatio( m_newValue );
@@ -887,7 +887,7 @@ void GeometryPropertiesCommand::unexecute()
{
obj->setProtect( *m_oldValue.at(i) );
if ( obj->isSelected() )
- m_doc->repaint( obj );
+ m_doc->tqrepaint( obj );
}
else if ( m_type == KeepRatio)
obj->setKeepRatio( *m_oldValue.at(i) );
@@ -920,13 +920,13 @@ void MoveObjectByCmd::execute()
TQRect oldRect;
for ( unsigned int i = 0; i < objects.count(); i++ ) {
- doc->repaint( objects.at( i )->geometry() );
+ doc->tqrepaint( objects.at( i )->tqgeometry() );
- KoRect r = objects.at( i )->geometry();
+ KoRect r = objects.at( i )->tqgeometry();
r.moveBy( diff.x(), diff.y() );
objects.at( i )->setGeometry( r );
- doc->repaint( objects.at( i ) );
+ doc->tqrepaint( objects.at( i ) );
}
}
@@ -935,12 +935,12 @@ void MoveObjectByCmd::unexecute()
TQRect oldRect;
for ( unsigned int i = 0; i < objects.count(); i++ ) {
- doc->repaint( objects.at( i )->geometry() );
+ doc->tqrepaint( objects.at( i )->tqgeometry() );
- KoRect r = objects.at( i )->geometry();
+ KoRect r = objects.at( i )->tqgeometry();
r.moveBy( -diff.x(), -diff.y() );
objects.at( i )->setGeometry( r );
- doc->repaint( objects.at( i ) );
+ doc->tqrepaint( objects.at( i ) );
}
}
diff --git a/kspread/commands.h b/kspread/commands.h
index b3622035e..d0bd91328 100644
--- a/kspread/commands.h
+++ b/kspread/commands.h
@@ -392,9 +392,9 @@ class RemoveObjectCommand : public KCommand
class InsertObjectCommand : public KCommand
{
public:
- InsertObjectCommand( const KoRect& _geometry, KoDocumentEntry&, Canvas *_canvas ); //child
- InsertObjectCommand( const KoRect& _geometry, KoDocumentEntry&, const TQRect& _data, Canvas *_canvas ); //chart
- InsertObjectCommand( const KoRect& _geometry, KURL& _file, Canvas *_canvas ); //picture
+ InsertObjectCommand( const KoRect& _tqgeometry, KoDocumentEntry&, Canvas *_canvas ); //child
+ InsertObjectCommand( const KoRect& _tqgeometry, KoDocumentEntry&, const TQRect& _data, Canvas *_canvas ); //chart
+ InsertObjectCommand( const KoRect& _tqgeometry, KURL& _file, Canvas *_canvas ); //picture
~InsertObjectCommand();
virtual void execute();
@@ -402,7 +402,7 @@ class InsertObjectCommand : public KCommand
virtual TQString name() const;
protected:
- KoRect geometry;
+ KoRect tqgeometry;
Canvas *canvas;
bool executed;
KoDocumentEntry entry;
diff --git a/kspread/dialogs/font_cell_format.ui b/kspread/dialogs/font_cell_format.ui
index 095f11887..6e7f7403c 100644
--- a/kspread/dialogs/font_cell_format.ui
+++ b/kspread/dialogs/font_cell_format.ui
@@ -22,7 +22,7 @@ The default font is set for all cells in the Format -&gt; Style Manager menu wit
</property>
<widget class="TQLayoutWidget" row="0" column="1">
<property name="name">
- <cstring>layout1</cstring>
+ <cstring>tqlayout1</cstring>
</property>
<grid>
<property name="name">
@@ -168,7 +168,7 @@ The default font is set for all cells in the Format -&gt; Style Manager menu wit
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>41</height>
@@ -206,7 +206,7 @@ The default font is set for all cells in the Format -&gt; Style Manager menu wit
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignHCenter</set>
</property>
<property name="whatsThis" stdset="0">
diff --git a/kspread/dialogs/kspread_dlg_angle.cc b/kspread/dialogs/kspread_dlg_angle.cc
index 5dc3f83df..7c97f6c22 100644
--- a/kspread/dialogs/kspread_dlg_angle.cc
+++ b/kspread/dialogs/kspread_dlg_angle.cc
@@ -21,7 +21,7 @@
* Boston, MA 02110-1301, USA.
*/
-#include <layout.h>
+#include <tqlayout.h>
#include <tqpushbutton.h>
#include <kbuttonbox.h>
@@ -55,7 +55,7 @@ AngleDialog::AngleDialog(View* parent, const char* name, const TQPoint &_marker)
lay->addWidget( m_pAngle );
TQWidget* spacer = new TQWidget( page );
- spacer->setSizePolicy( TQSizePolicy( TQSizePolicy::Preferred, TQSizePolicy::Expanding ) );
+ spacer->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Preferred, TQSizePolicy::Expanding ) );
lay->addWidget( spacer );
m_pAngle->setFocus();
diff --git a/kspread/dialogs/kspread_dlg_area.cc b/kspread/dialogs/kspread_dlg_area.cc
index 71cb2ada3..9a78074ba 100644
--- a/kspread/dialogs/kspread_dlg_area.cc
+++ b/kspread/dialogs/kspread_dlg_area.cc
@@ -21,7 +21,7 @@
* Boston, MA 02110-1301, USA.
*/
-#include <layout.h>
+#include <tqlayout.h>
#include <tqlabel.h>
#include <tqlineedit.h>
@@ -51,7 +51,7 @@ AreaDialog::AreaDialog( View * parent, const char * name, const TQPoint & _marke
lay1->addWidget( label );
m_areaName = new TQLineEdit(page);
- m_areaName->setMinimumWidth( m_areaName->sizeHint().width() * 3 );
+ m_areaName->setMinimumWidth( m_areaName->tqsizeHint().width() * 3 );
lay1->addWidget( m_areaName );
m_areaName->setFocus();
diff --git a/kspread/dialogs/kspread_dlg_comment.cc b/kspread/dialogs/kspread_dlg_comment.cc
index 8705fc5a1..9ed3c5512 100644
--- a/kspread/dialogs/kspread_dlg_comment.cc
+++ b/kspread/dialogs/kspread_dlg_comment.cc
@@ -23,7 +23,7 @@
#include <tqmultilineedit.h>
#include <tqpushbutton.h>
-#include <layout.h>
+#include <tqlayout.h>
#include <klocale.h>
#include <kbuttonbox.h>
diff --git a/kspread/dialogs/kspread_dlg_conditional.cc b/kspread/dialogs/kspread_dlg_conditional.cc
index 83f37b2f6..531f2ee3d 100644
--- a/kspread/dialogs/kspread_dlg_conditional.cc
+++ b/kspread/dialogs/kspread_dlg_conditional.cc
@@ -43,7 +43,7 @@
#include <tqgroupbox.h>
#include <tqlabel.h>
-#include <layout.h>
+#include <tqlayout.h>
using namespace KSpread;
@@ -54,10 +54,10 @@ ConditionalWidget::ConditionalWidget( TQWidget* parent, const char* name, WFlags
TQGroupBox * groupBox1_3 = new TQGroupBox( this, "groupBox1_3" );
groupBox1_3->setColumnLayout(0, Qt::Vertical );
- groupBox1_3->layout()->setSpacing( KDialog::spacingHint() );
- groupBox1_3->layout()->setMargin( KDialog::marginHint() );
- TQGridLayout * groupBox1_3Layout = new TQGridLayout( groupBox1_3->layout() );
- groupBox1_3Layout->setAlignment( TQt::AlignTop );
+ groupBox1_3->tqlayout()->setSpacing( KDialog::spacingHint() );
+ groupBox1_3->tqlayout()->setMargin( KDialog::marginHint() );
+ TQGridLayout * groupBox1_3Layout = new TQGridLayout( groupBox1_3->tqlayout() );
+ groupBox1_3Layout->tqsetAlignment( TQt::AlignTop );
TQLabel * textLabel1_3 = new TQLabel( groupBox1_3, "textLabel1_3" );
groupBox1_3Layout->addWidget( textLabel1_3, 0, 0 );
@@ -89,11 +89,11 @@ ConditionalWidget::ConditionalWidget( TQWidget* parent, const char* name, WFlags
TQGroupBox * groupBox1_2 = new TQGroupBox( this, "groupBox1_2" );
groupBox1_2->setColumnLayout(0, Qt::Vertical );
- groupBox1_2->layout()->setSpacing( KDialog::spacingHint() );
- groupBox1_2->layout()->setMargin( KDialog::marginHint() );
+ groupBox1_2->tqlayout()->setSpacing( KDialog::spacingHint() );
+ groupBox1_2->tqlayout()->setMargin( KDialog::marginHint() );
- TQGridLayout * groupBox1_2Layout = new TQGridLayout( groupBox1_2->layout() );
- groupBox1_2Layout->setAlignment( TQt::AlignTop );
+ TQGridLayout * groupBox1_2Layout = new TQGridLayout( groupBox1_2->tqlayout() );
+ groupBox1_2Layout->tqsetAlignment( TQt::AlignTop );
TQLabel * textLabel1_2 = new TQLabel( groupBox1_2, "textLabel1_2" );
groupBox1_2Layout->addWidget( textLabel1_2, 0, 0 );
@@ -125,11 +125,11 @@ ConditionalWidget::ConditionalWidget( TQWidget* parent, const char* name, WFlags
TQGroupBox * groupBox1_1 = new TQGroupBox( this, "groupBox1_1" );
groupBox1_1->setColumnLayout(0, Qt::Vertical );
- groupBox1_1->layout()->setSpacing( KDialog::spacingHint() );
- groupBox1_1->layout()->setMargin( KDialog::marginHint() );
+ groupBox1_1->tqlayout()->setSpacing( KDialog::spacingHint() );
+ groupBox1_1->tqlayout()->setMargin( KDialog::marginHint() );
- TQGridLayout * groupBox1_1Layout = new TQGridLayout( groupBox1_1->layout() );
- groupBox1_1Layout->setAlignment( TQt::AlignTop );
+ TQGridLayout * groupBox1_1Layout = new TQGridLayout( groupBox1_1->tqlayout() );
+ groupBox1_1Layout->tqsetAlignment( TQt::AlignTop );
TQLabel * textLabel1_1 = new TQLabel( groupBox1_1, "textLabel1_2_2" );
groupBox1_1Layout->addWidget( textLabel1_1, 0, 0 );
@@ -158,7 +158,7 @@ ConditionalWidget::ConditionalWidget( TQWidget* parent, const char* name, WFlags
groupBox1_1Layout->addItem( spacer_6, 1, 3 );
Form1Layout->addWidget( groupBox1_1, 0, 0 );
- resize( TQSize(702, 380).expandedTo( minimumSizeHint() ) );
+ resize( TQSize(702, 380).expandedTo( tqminimumSizeHint() ) );
clearWState( WState_Polished );
TQStringList list;
diff --git a/kspread/dialogs/kspread_dlg_cons.cc b/kspread/dialogs/kspread_dlg_cons.cc
index 7d63a668a..91589f9f1 100644
--- a/kspread/dialogs/kspread_dlg_cons.cc
+++ b/kspread/dialogs/kspread_dlg_cons.cc
@@ -31,7 +31,7 @@
#include <tqcheckbox.h>
#include <tqcombobox.h>
#include <tqlabel.h>
-#include <layout.h>
+#include <tqlayout.h>
#include <tqpushbutton.h>
#include <kdebug.h>
@@ -197,14 +197,14 @@ void ConsolidateDialog::slotOk()
h <= ( ( desc == D_BOTH || desc == D_ROW ) ? 1 : 0 ) )
{
m_pView->slotUpdateView( m_pView->activeSheet() );
- KMessageBox::error( this, i18n( "The range\n%1\nis too small" ).arg( *( r.begin() ) ));
+ KMessageBox::error( this, i18n( "The range\n%1\nis too small" ).tqarg( *( r.begin() ) ));
return;
}
if( (*it).range().bottom()==KS_rowMax || (*it).range().right()== KS_colMax )
{
m_pView->slotUpdateView( m_pView->activeSheet() );
- KMessageBox::error( this, i18n( "The range\n%1\nis too large" ).arg( *( r.begin() ) ));
+ KMessageBox::error( this, i18n( "The range\n%1\nis too large" ).tqarg( *( r.begin() ) ));
return;
}
@@ -220,7 +220,7 @@ void ConsolidateDialog::slotOk()
if(currentRange.bottom()==KS_rowMax || currentRange.right()== KS_colMax)
{
m_pView->slotUpdateView( m_pView->activeSheet() );
- KMessageBox::error( this, i18n( "The range\n%1\nis too large" ).arg( r[i]));
+ KMessageBox::error( this, i18n( "The range\n%1\nis too large" ).tqarg( r[i]));
return;
}
if ( ( desc == D_NONE && ( w != w2 || h != h2 ) ) ||
@@ -228,7 +228,7 @@ void ConsolidateDialog::slotOk()
( desc == D_COL && w != w2 ) )
{
m_pView->slotUpdateView( m_pView->activeSheet() );
- TQString tmp = i18n( "The ranges\n%1\nand\n%2\nhave different size").arg( *( r.begin() ) ).arg( r[i] );
+ TQString tmp = i18n( "The ranges\n%1\nand\n%2\nhave different size").tqarg( *( r.begin() ) ).tqarg( r[i] );
KMessageBox::error( this, tmp);
return;
}
@@ -652,7 +652,7 @@ void ConsolidateDialog::slotReturnPressed()
Range r( txt, m_pView->doc()->map() );
if ( !r.isValid() )
{
- KMessageBox::error( this, i18n("The range\n%1\n is malformed").arg( txt ));
+ KMessageBox::error( this, i18n("The range\n%1\n is malformed").tqarg( txt ));
return;
}
diff --git a/kspread/dialogs/kspread_dlg_csv.cc b/kspread/dialogs/kspread_dlg_csv.cc
index 7008de4eb..c8ce26715 100644
--- a/kspread/dialogs/kspread_dlg_csv.cc
+++ b/kspread/dialogs/kspread_dlg_csv.cc
@@ -22,7 +22,7 @@
#include <tqbuttongroup.h>
#include <tqcheckbox.h>
-#include <clipboard.h>
+#include <tqclipboard.h>
#include <tqcombobox.h>
#include <tqlabel.h>
#include <tqlineedit.h>
@@ -30,7 +30,7 @@
#include <tqpushbutton.h>
#include <tqradiobutton.h>
#include <tqtable.h>
-#include <layout.h>
+#include <tqlayout.h>
#include <kapplication.h>
#include <kdebug.h>
@@ -78,7 +78,7 @@ CSVDialog::CSVDialog( View * parent, const char * name, TQRect const & rect, Mod
m_targetRect.setBottom( lastCell->row() );
m_sheet = new TQTable( page, "m_table" );
- //m_sheet->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)7, 0, 0, m_sheet->sizePolicy().hasHeightForWidth() ) );
+ //m_sheet->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)7, 0, 0, m_sheet->sizePolicy().hasHeightForWidth() ) );
m_sheet->setNumRows( 0 );
m_sheet->setNumCols( 0 );
@@ -86,13 +86,13 @@ CSVDialog::CSVDialog( View * parent, const char * name, TQRect const & rect, Mod
// Delimiter: comma, semicolon, tab, space, other
m_delimiterBox = new TQButtonGroup( page, "m_delimiterBox" );
- m_delimiterBox->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, m_delimiterBox->sizePolicy().hasHeightForWidth() ) );
+ m_delimiterBox->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, m_delimiterBox->sizePolicy().hasHeightForWidth() ) );
m_delimiterBox->setTitle( i18n( "Delimiter" ) );
m_delimiterBox->setColumnLayout(0, Qt::Vertical );
- m_delimiterBox->layout()->setSpacing( KDialog::spacingHint() );
- m_delimiterBox->layout()->setMargin( KDialog::marginHint() );
- m_delimiterBoxLayout = new TQGridLayout( m_delimiterBox->layout() );
- m_delimiterBoxLayout->setAlignment( TQt::AlignTop );
+ m_delimiterBox->tqlayout()->setSpacing( KDialog::spacingHint() );
+ m_delimiterBox->tqlayout()->setMargin( KDialog::marginHint() );
+ m_delimiterBoxLayout = new TQGridLayout( m_delimiterBox->tqlayout() );
+ m_delimiterBoxLayout->tqsetAlignment( TQt::AlignTop );
MyDialogLayout->addMultiCellWidget( m_delimiterBox, 0, 2, 0, 0 );
m_ignoreDuplicates = new TQCheckBox( page, "m_ignoreDuplicates" );
@@ -122,20 +122,20 @@ CSVDialog::CSVDialog( View * parent, const char * name, TQRect const & rect, Mod
m_delimiterBoxLayout->addWidget( m_radioOther, 0, 2 );
m_delimiterEdit = new TQLineEdit( m_delimiterBox, "m_delimiterEdit" );
- m_delimiterEdit->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, m_delimiterEdit->sizePolicy().hasHeightForWidth() ) );
+ m_delimiterEdit->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, m_delimiterEdit->sizePolicy().hasHeightForWidth() ) );
m_delimiterEdit->setMaximumSize( TQSize( 30, 32767 ) );
m_delimiterBoxLayout->addWidget( m_delimiterEdit, 1, 2 );
// Format: number, text, currency,
m_formatBox = new TQButtonGroup( page, "m_formatBox" );
- m_formatBox->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, m_formatBox->sizePolicy().hasHeightForWidth() ) );
+ m_formatBox->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, m_formatBox->sizePolicy().hasHeightForWidth() ) );
m_formatBox->setTitle( i18n( "Format" ) );
m_formatBox->setColumnLayout(0, Qt::Vertical );
- m_formatBox->layout()->setSpacing( KDialog::spacingHint() );
- m_formatBox->layout()->setMargin( KDialog::marginHint() );
- m_formatBoxLayout = new TQGridLayout( m_formatBox->layout() );
- m_formatBoxLayout->setAlignment( TQt::AlignTop );
+ m_formatBox->tqlayout()->setSpacing( KDialog::spacingHint() );
+ m_formatBox->tqlayout()->setMargin( KDialog::marginHint() );
+ m_formatBoxLayout = new TQGridLayout( m_formatBox->tqlayout() );
+ m_formatBoxLayout->tqsetAlignment( TQt::AlignTop );
MyDialogLayout->addMultiCellWidget( m_formatBox, 0, 2, 1, 1 );
m_radioNumber = new TQRadioButton( m_formatBox, "m_radioNumber" );
@@ -157,7 +157,7 @@ CSVDialog::CSVDialog( View * parent, const char * name, TQRect const & rect, Mod
m_comboLine = new TQComboBox( FALSE, page, "m_comboLine" );
m_comboLine->insertItem( i18n( "1" ) );
- m_comboLine->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, m_comboLine->sizePolicy().hasHeightForWidth() ) );
+ m_comboLine->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, m_comboLine->sizePolicy().hasHeightForWidth() ) );
MyDialogLayout->addWidget( m_comboLine, 1, 3 );
@@ -165,20 +165,20 @@ CSVDialog::CSVDialog( View * parent, const char * name, TQRect const & rect, Mod
m_comboQuote->insertItem( i18n( "\"" ) );
m_comboQuote->insertItem( i18n( "'" ) );
m_comboQuote->insertItem( i18n( "None" ) );
- m_comboQuote->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, m_comboQuote->sizePolicy().hasHeightForWidth() ) );
+ m_comboQuote->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, m_comboQuote->sizePolicy().hasHeightForWidth() ) );
MyDialogLayout->addWidget( m_comboQuote, 1, 2 );
TQSpacerItem* spacer_2 = new TQSpacerItem( 0, 0, TQSizePolicy::Minimum, TQSizePolicy::Preferred );
MyDialogLayout->addItem( spacer_2, 2, 3 );
TextLabel3 = new TQLabel( page, "TextLabel3" );
- TextLabel3->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, TextLabel3->sizePolicy().hasHeightForWidth() ) );
+ TextLabel3->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, TextLabel3->sizePolicy().hasHeightForWidth() ) );
TextLabel3->setText( i18n( "Start at line:" ) );
MyDialogLayout->addWidget( TextLabel3, 0, 3 );
TextLabel2 = new TQLabel( page, "TextLabel2" );
- TextLabel2->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, TextLabel2->sizePolicy().hasHeightForWidth() ) );
+ TextLabel2->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, TextLabel2->sizePolicy().hasHeightForWidth() ) );
TextLabel2->setText( i18n( "Textquote:" ) );
MyDialogLayout->addWidget( TextLabel2, 0, 2 );
@@ -186,7 +186,7 @@ CSVDialog::CSVDialog( View * parent, const char * name, TQRect const & rect, Mod
if ( m_mode == Clipboard )
{
setCaption( i18n( "Inserting From Clipboard" ) );
- TQMimeSource * mime = TQApplication::clipboard()->data();
+ TQMimeSource * mime = TQApplication::tqclipboard()->data();
if ( !mime )
{
KMessageBox::information( this, i18n("There is no data in the clipboard.") );
@@ -200,7 +200,7 @@ CSVDialog::CSVDialog( View * parent, const char * name, TQRect const & rect, Mod
m_cancelled = true;
return;
}
- m_fileArray = TQByteArray(mime->encodedData( "text/plain" ) );
+ m_fileArray = TQByteArray(mime->tqencodedData( "text/plain" ) );
}
else if ( mode == File )
{
@@ -249,7 +249,7 @@ CSVDialog::CSVDialog( View * parent, const char * name, TQRect const & rect, Mod
fillSheet();
fillComboBox();
- resize(sizeHint());
+ resize(tqsizeHint());
m_sheet->setSelectionMode(TQTable::NoSelection);
diff --git a/kspread/dialogs/kspread_dlg_database.cc b/kspread/dialogs/kspread_dlg_database.cc
index 4c1a5bcff..7cf242a91 100644
--- a/kspread/dialogs/kspread_dlg_database.cc
+++ b/kspread/dialogs/kspread_dlg_database.cc
@@ -39,7 +39,7 @@
#include <tqframe.h>
#include <tqheader.h>
#include <tqlabel.h>
-#include <layout.h>
+#include <tqlayout.h>
#include <tqlineedit.h>
#include <tqpushbutton.h>
#include <tqradiobutton.h>
@@ -48,7 +48,7 @@
#include <tqsqlfield.h>
#include <tqsqlquery.h>
#include <tqsqlrecord.h>
-#include <textedit.h>
+#include <tqtextedit.h>
#include <tqtooltip.h>
#include <tqvariant.h>
#include <tqwhatsthis.h>
@@ -139,16 +139,16 @@ DatabaseDialog::DatabaseDialog( View * parent, TQRect const & rect, const char *
Frame16Layout->addWidget( TextLabel5, 5, 0 );
Frame5Layout->addWidget( Frame16 );
- m_databaseStatus = new TQLabel( Frame5, "m_databaseStatus" );
- m_databaseStatus->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)5, 0, 0, m_databaseStatus->sizePolicy().hasHeightForWidth() ) );
- m_databaseStatus->setMaximumSize( TQSize( 32767, 30 ) );
- m_databaseStatus->setText( " " );
- Frame5Layout->addWidget( m_databaseStatus );
+ m_databasetqStatus = new TQLabel( Frame5, "m_databaseStatus" );
+ m_databasetqStatus->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)5, 0, 0, m_databasetqStatus->sizePolicy().hasHeightForWidth() ) );
+ m_databasetqStatus->setMaximumSize( TQSize( 32767, 30 ) );
+ m_databasetqStatus->setText( " " );
+ Frame5Layout->addWidget( m_databasetqStatus );
m_databaseLayout->addWidget( Frame5, 0, 1 );
TQFrame * Frame17 = new TQFrame( m_database, "Frame17" );
- Frame17->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)7, 0, 0, Frame17->sizePolicy().hasHeightForWidth() ) );
+ Frame17->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)7, 0, 0, Frame17->sizePolicy().hasHeightForWidth() ) );
Frame17->setMinimumSize( TQSize( 111, 0 ) );
Frame17->setFrameShape( TQFrame::NoFrame );
Frame17->setFrameShadow( TQFrame::Plain );
@@ -181,9 +181,9 @@ DatabaseDialog::DatabaseDialog( View * parent, TQRect const & rect, const char *
Frame5_2Layout->addLayout( Layout21, 0, 0 );
- m_sheetStatus = new TQLabel( Frame5_2, "m_tableStatus" );
- m_sheetStatus->setText( " " );
- Frame5_2Layout->addWidget( m_sheetStatus, 3, 0 );
+ m_sheettqStatus = new TQLabel( Frame5_2, "m_tableStatus" );
+ m_sheettqStatus->setText( " " );
+ Frame5_2Layout->addWidget( m_sheettqStatus, 3, 0 );
m_SelectSheetLabel = new TQLabel( Frame5_2, "m_SelectSheetLabel" );
m_SelectSheetLabel->setText( i18n( "Select tables:" ) );
@@ -198,7 +198,7 @@ DatabaseDialog::DatabaseDialog( View * parent, TQRect const & rect, const char *
m_sheetLayout->addWidget( Frame5_2, 0, 1 );
TQFrame * Frame17_2 = new TQFrame( m_sheet, "Frame17_2" );
- Frame17_2->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)7, 0, 0, Frame17_2->sizePolicy().hasHeightForWidth() ) );
+ Frame17_2->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)7, 0, 0, Frame17_2->sizePolicy().hasHeightForWidth() ) );
Frame17_2->setMinimumSize( TQSize( 111, 0 ) );
Frame17_2->setFrameShape( TQFrame::NoFrame );
Frame17_2->setFrameShadow( TQFrame::Plain );
@@ -227,14 +227,14 @@ DatabaseDialog::DatabaseDialog( View * parent, TQRect const & rect, const char *
Frame5_2_2Layout->addWidget( m_columnView, 1, 0 );
- m_columnsStatus = new TQLabel( Frame5_2_2, "m_columnsStatus" );
- m_columnsStatus->setText( " " );
- Frame5_2_2Layout->addWidget( m_columnsStatus, 2, 0 );
+ m_columnstqStatus = new TQLabel( Frame5_2_2, "m_columnsStatus" );
+ m_columnstqStatus->setText( " " );
+ Frame5_2_2Layout->addWidget( m_columnstqStatus, 2, 0 );
m_columnsLayout->addWidget( Frame5_2_2, 0, 1 );
TQFrame * Frame17_3 = new TQFrame( m_columns, "Frame17_3" );
- Frame17_3->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)7, 0, 0, Frame17_3->sizePolicy().hasHeightForWidth() ) );
+ Frame17_3->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)7, 0, 0, Frame17_3->sizePolicy().hasHeightForWidth() ) );
Frame17_3->setMinimumSize( TQSize( 111, 0 ) );
Frame17_3->setFrameShape( TQFrame::NoFrame );
Frame17_3->setFrameShadow( TQFrame::Plain );
@@ -353,7 +353,7 @@ DatabaseDialog::DatabaseDialog( View * parent, TQRect const & rect, const char *
m_optionsLayout->addWidget( optionsFrame, 0, 1 );
TQFrame * Frame17_4 = new TQFrame( m_options, "Frame17_4" );
- Frame17_4->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)7, 0, 0, Frame17_4->sizePolicy().hasHeightForWidth() ) );
+ Frame17_4->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)7, 0, 0, Frame17_4->sizePolicy().hasHeightForWidth() ) );
Frame17_4->setMinimumSize( TQSize( 111, 0 ) );
Frame17_4->setFrameShape( TQFrame::NoFrame );
Frame17_4->setFrameShadow( TQFrame::Plain );
@@ -402,7 +402,7 @@ DatabaseDialog::DatabaseDialog( View * parent, TQRect const & rect, const char *
m_resultLayout->addWidget( Frame5_2_2_3, 0, 1 );
TQFrame * Frame17_5 = new TQFrame( m_result, "Frame17_5" );
- Frame17_5->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)7, 0, 0, Frame17_5->sizePolicy().hasHeightForWidth() ) );
+ Frame17_5->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)7, 0, 0, Frame17_5->sizePolicy().hasHeightForWidth() ) );
Frame17_5->setMinimumSize( TQSize( 111, 0 ) );
Frame17_5->setFrameShape( TQFrame::NoFrame );
Frame17_5->setFrameShadow( TQFrame::Plain );
@@ -717,10 +717,10 @@ bool DatabaseDialog::databaseDoNext()
m_dbConnection->setPort( port );
}
- m_databaseStatus->setText( i18n("Connecting to database...") );
+ m_databasetqStatus->setText( i18n("Connecting to database...") );
if ( m_dbConnection->open() )
{
- m_databaseStatus->setText( i18n("Connected. Retrieving table information...") );
+ m_databasetqStatus->setText( i18n("Connected. Retrieving table information...") );
TQStringList sheetList( m_dbConnection->tables() );
if ( sheetList.isEmpty() )
@@ -741,7 +741,7 @@ bool DatabaseDialog::databaseDoNext()
}
m_sheetView->setEnabled( true );
- m_databaseStatus->setText( " " );
+ m_databasetqStatus->setText( " " );
}
else
{
@@ -759,7 +759,7 @@ bool DatabaseDialog::databaseDoNext()
errorMsg.append( error.databaseText() );
errorMsg.append( "\n" );
}
- m_databaseStatus->setText( " " );
+ m_databasetqStatus->setText( " " );
KMessageBox::error( this, errorMsg );
return false;
@@ -768,7 +768,7 @@ bool DatabaseDialog::databaseDoNext()
else
{
KMessageBox::error( this, i18n("Driver could not be loaded") );
- m_databaseStatus->setText( " " );
+ m_databasetqStatus->setText( " " );
return false;
}
setNextEnabled(m_sheet, true);
@@ -778,7 +778,7 @@ bool DatabaseDialog::databaseDoNext()
bool DatabaseDialog::sheetsDoNext()
{
- m_databaseStatus->setText( i18n("Retrieving meta data of tables...") );
+ m_databasetqStatus->setText( i18n("Retrieving meta data of tables...") );
TQStringList sheets;
for (TQListViewItem * item = (TQCheckListItem *) m_sheetView->firstChild(); item; item = item->nextSibling())
diff --git a/kspread/dialogs/kspread_dlg_database.h b/kspread/dialogs/kspread_dlg_database.h
index 9334935c9..6e82adc30 100644
--- a/kspread/dialogs/kspread_dlg_database.h
+++ b/kspread/dialogs/kspread_dlg_database.h
@@ -88,7 +88,7 @@ class DatabaseDialog : public KWizard
TQSqlDatabase * m_dbConnection;
TQWidget * m_database;
- TQLabel * m_databaseStatus;
+ TQLabel * m_databasetqStatus;
TQLineEdit * m_username;
TQLineEdit * m_port;
TQLineEdit * m_databaseName;
@@ -99,12 +99,12 @@ class DatabaseDialog : public KWizard
TQWidget * m_sheet;
TQComboBox * m_databaseList;
KPushButton * m_connectButton;
- TQLabel * m_sheetStatus;
+ TQLabel * m_sheettqStatus;
TQLabel * m_SelectSheetLabel;
KListView * m_sheetView;
TQWidget * m_columns;
KListView * m_columnView;
- TQLabel * m_columnsStatus;
+ TQLabel * m_columnstqStatus;
TQWidget * m_options;
TQComboBox * m_columns_1;
TQComboBox * m_columns_2;
diff --git a/kspread/dialogs/kspread_dlg_find.cc b/kspread/dialogs/kspread_dlg_find.cc
index 75330563d..d63bfd690 100644
--- a/kspread/dialogs/kspread_dlg_find.cc
+++ b/kspread/dialogs/kspread_dlg_find.cc
@@ -20,7 +20,7 @@
#include "kspread_dlg_find.h"
#include <tqcheckbox.h>
-#include <layout.h>
+#include <tqlayout.h>
#include <klocale.h>
#include <tqpushbutton.h>
#include <tqlabel.h>
@@ -30,17 +30,17 @@ using namespace KSpread;
FindOption::FindOption( TQWidget *parent)
{
- TQVBoxLayout *layout = new TQVBoxLayout(parent);
+ TQVBoxLayout *tqlayout = new TQVBoxLayout(parent);
m_moreOptions = new TQPushButton( i18n( "More Options" ), parent );
- layout->addWidget( m_moreOptions );
+ tqlayout->addWidget( m_moreOptions );
connect( m_moreOptions, TQT_SIGNAL( clicked () ), this, TQT_SLOT( slotMoreOptions() ) );
m_findExtension = new TQWidget( parent );
- layout->addWidget( m_findExtension );
- TQVBoxLayout *layout1 = new TQVBoxLayout( m_findExtension );
+ tqlayout->addWidget( m_findExtension );
+ TQVBoxLayout *tqlayout1 = new TQVBoxLayout( m_findExtension );
m_searchInAllSheet = new TQCheckBox( i18n( "Search entire sheet" ),m_findExtension );
- layout1->addWidget( m_searchInAllSheet );
+ tqlayout1->addWidget( m_searchInAllSheet );
TQHBoxLayout *comboLayout = new TQHBoxLayout( m_findExtension );
TQLabel *label = new TQLabel( i18n( "Search in:" ), m_findExtension );
@@ -48,7 +48,7 @@ FindOption::FindOption( TQWidget *parent)
m_searchIn = new TQComboBox( m_findExtension );
comboLayout->addWidget( m_searchIn );
- layout1->addLayout( comboLayout );
+ tqlayout1->addLayout( comboLayout );
TQStringList lst;
lst << i18n( "Cell Values" );
@@ -61,7 +61,7 @@ FindOption::FindOption( TQWidget *parent)
m_searchDirection = new TQComboBox( m_findExtension );
comboLayout->addWidget( m_searchDirection );
- layout1->addLayout( comboLayout );
+ tqlayout1->addLayout( comboLayout );
lst.clear();
lst << i18n( "Across then Down" );
@@ -120,7 +120,7 @@ FindDlg::FindDlg(TQWidget *parent, const char *name, long options, const TQStrin
{
m_findOptions = new FindOption( findExtension() );
connect( m_findOptions, TQT_SIGNAL( adjustSize() ), TQT_SLOT( slotAjustSize() ) );
- setSizePolicy(TQSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Minimum));
+ tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Minimum));
}
FindDlg::~FindDlg()
@@ -144,7 +144,7 @@ SearchDlg::SearchDlg(TQWidget *parent, const char *name, long options, const TQS
{
m_findOptions = new FindOption( findExtension() );
connect( m_findOptions, TQT_SIGNAL( adjustSize() ), TQT_SLOT( slotAjustSize() ) );
- setSizePolicy(TQSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Minimum));
+ tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Minimum));
}
SearchDlg::~SearchDlg()
diff --git a/kspread/dialogs/kspread_dlg_format.cc b/kspread/dialogs/kspread_dlg_format.cc
index efb00f636..6374c1020 100644
--- a/kspread/dialogs/kspread_dlg_format.cc
+++ b/kspread/dialogs/kspread_dlg_format.cc
@@ -25,7 +25,7 @@
#include <tqcombobox.h>
#include <tqfile.h>
-#include <layout.h>
+#include <tqlayout.h>
#include <tqlabel.h>
#include <tqpushbutton.h>
@@ -106,7 +106,7 @@ void FormatDialog::slotActivated( int index )
if ( img.isEmpty() )
{
TQString str( i18n( "Could not find image %1." ) );
- str = str.arg( m_entries[ index ].image );
+ str = str.tqarg( m_entries[ index ].image );
KMessageBox::error( this, str );
enableButtonOK(false);
@@ -118,7 +118,7 @@ void FormatDialog::slotActivated( int index )
if ( pix.isNull() )
{
TQString str( i18n( "Could not load image %1." ) );
- str = str.arg( img );
+ str = str.tqarg( img );
KMessageBox::error( this,str );
enableButtonOK(false);
@@ -138,7 +138,7 @@ void FormatDialog::slotOk()
if ( xml.isEmpty() )
{
TQString str( i18n( "Could not find sheet-style XML file '%1'." ) );
- str = str.arg( m_entries[ m_combo->currentItem() ].xml );
+ str = str.tqarg( m_entries[ m_combo->currentItem() ].xml );
KMessageBox::error( this, str );
return;
}
@@ -152,7 +152,7 @@ void FormatDialog::slotOk()
if ( !parseXML( doc ) )
{
TQString str( i18n( "Parsing error in sheet-style XML file %1." ) );
- str = str.arg( m_entries[ m_combo->currentItem() ].xml );
+ str = str.tqarg( m_entries[ m_combo->currentItem() ].xml );
KMessageBox::error( this, str );
return;
}
diff --git a/kspread/dialogs/kspread_dlg_formula.cc b/kspread/dialogs/kspread_dlg_formula.cc
index a63ff039e..62e637f51 100644
--- a/kspread/dialogs/kspread_dlg_formula.cc
+++ b/kspread/dialogs/kspread_dlg_formula.cc
@@ -24,7 +24,7 @@
* Boston, MA 02110-1301, USA.
*/
-#include <textbrowser.h>
+#include <tqtextbrowser.h>
#include <tqtabwidget.h>
#include "kspread_dlg_formula.h"
@@ -49,7 +49,7 @@
#include <tqlabel.h>
#include <tqpushbutton.h>
#include <klineedit.h>
-#include <layout.h>
+#include <tqlayout.h>
using namespace KSpread;
@@ -87,7 +87,7 @@ FormulaDialog::FormulaDialog( View* parent, const char* name,const TQString& for
searchFunct = new KLineEdit(page);
TQSizePolicy sp3( TQSizePolicy::Preferred, TQSizePolicy::Fixed );
- searchFunct->setSizePolicy( sp3 );
+ searchFunct->tqsetSizePolicy( sp3 );
grid1->addWidget( searchFunct, 0, 0 );
@@ -99,7 +99,7 @@ FormulaDialog::FormulaDialog( View* parent, const char* name,const TQString& for
functions = new TQListBox(page);
TQSizePolicy sp1( TQSizePolicy::Preferred, TQSizePolicy::Expanding );
- functions->setSizePolicy( sp1 );
+ functions->tqsetSizePolicy( sp1 );
grid1->addWidget( functions, 2, 0 );
selectFunction = new TQPushButton( page );
@@ -112,7 +112,7 @@ FormulaDialog::FormulaDialog( View* parent, const char* name,const TQString& for
m_tabwidget = new TQTabWidget( page );
TQSizePolicy sp2( TQSizePolicy::Expanding, TQSizePolicy::Expanding );
- m_tabwidget->setSizePolicy( sp2 );
+ m_tabwidget->tqsetSizePolicy( sp2 );
grid1->addMultiCellWidget( m_tabwidget, 0, 2, 1, 1 );
m_browser = new TQTextBrowser( m_tabwidget );
diff --git a/kspread/dialogs/kspread_dlg_goalseek.cc b/kspread/dialogs/kspread_dlg_goalseek.cc
index 44af6b68d..8902cf6cb 100644
--- a/kspread/dialogs/kspread_dlg_goalseek.cc
+++ b/kspread/dialogs/kspread_dlg_goalseek.cc
@@ -44,7 +44,7 @@
#include <tqframe.h>
#include <tqlabel.h>
-#include <layout.h>
+#include <tqlayout.h>
#include <tqlineedit.h>
#include <tqtooltip.h>
#include <tqvariant.h>
@@ -152,7 +152,7 @@ GoalSeekDialog::GoalSeekDialog( View * parent, TQPoint const & marker,
m_resultText = new TQLabel( m_resultFrame, "m_resultText" );
m_resultText->setText( "Goal seeking with cell <cell> found <a | no> solution:" );
- m_resultText->setAlignment( int( TQLabel::WordBreak | TQLabel::AlignVCenter ) );
+ m_resultText->tqsetAlignment( int( TQLabel::WordBreak | TQLabel::AlignVCenter ) );
m_resultFrameLayout->addMultiCellWidget( m_resultText, 0, 0, 0, 1 );
@@ -459,7 +459,7 @@ void GoalSeekDialog::startCalc(double _start, double _goal)
// m_targetCell->setCalcDirtyFlag();
m_targetCell->calc( false );
- m_resultText->setText( i18n( "Goal seeking with cell %1 found a solution:" ).arg( m_sourceEdit->text() ) );
+ m_resultText->setText( i18n( "Goal seeking with cell %1 found a solution:" ).tqarg( m_sourceEdit->text() ) );
m_newValue->setText( m_pView->doc()->locale()->formatNumber( startA ) );
m_currentValue->setText( m_pView->doc()->locale()->formatNumber( m_oldSource ) );
m_restored = false;
@@ -471,7 +471,7 @@ void GoalSeekDialog::startCalc(double _start, double _goal)
m_targetCell->setCalcDirtyFlag();
m_sourceCell->sheet()->setRegionPaintDirty(m_sourceCell->cellRect());
m_targetCell->calc( false );
- m_resultText->setText( i18n( "Goal seeking with cell %1 has found NO solution." ).arg( m_sourceEdit->text() ) );
+ m_resultText->setText( i18n( "Goal seeking with cell %1 has found NO solution." ).tqarg( m_sourceEdit->text() ) );
m_newValue->setText( "" );
m_currentValue->setText( m_pView->doc()->locale()->formatNumber( m_oldSource ) );
m_restored = true;
diff --git a/kspread/dialogs/kspread_dlg_goto.cc b/kspread/dialogs/kspread_dlg_goto.cc
index 83ae08bdb..2d9935ac2 100644
--- a/kspread/dialogs/kspread_dlg_goto.cc
+++ b/kspread/dialogs/kspread_dlg_goto.cc
@@ -23,7 +23,7 @@
*/
#include <tqlabel.h>
-#include <layout.h>
+#include <tqlayout.h>
#include <klineedit.h>
diff --git a/kspread/dialogs/kspread_dlg_insert.cc b/kspread/dialogs/kspread_dlg_insert.cc
index f7b0ce446..8cd3f89f9 100644
--- a/kspread/dialogs/kspread_dlg_insert.cc
+++ b/kspread/dialogs/kspread_dlg_insert.cc
@@ -27,7 +27,7 @@
#include <tqbuttongroup.h>
#include <tqradiobutton.h>
#include <tqcheckbox.h>
-#include <layout.h>
+#include <tqlayout.h>
#include <kbuttonbox.h>
#include <kdebug.h>
@@ -55,7 +55,7 @@ InsertDialog::InsertDialog( View* parent, const char* name,const TQRect &_rect,M
TQButtonGroup *grp = new TQButtonGroup( 1, Qt::Horizontal, i18n("Insert"),page);
grp->setRadioButtonExclusive( TRUE );
- grp->layout();
+ grp->tqlayout();
lay1->addWidget(grp);
if( insRem==Insert)
{
diff --git a/kspread/dialogs/kspread_dlg_layout.cc b/kspread/dialogs/kspread_dlg_layout.cc
index 2bac06367..53942457b 100644
--- a/kspread/dialogs/kspread_dlg_layout.cc
+++ b/kspread/dialogs/kspread_dlg_layout.cc
@@ -36,7 +36,7 @@
#include <tqcheckbox.h>
#include <tqframe.h>
#include <tqlabel.h>
-#include <layout.h>
+#include <tqlayout.h>
#include <tqlistbox.h>
#include <tqfontdatabase.h>
#include <tqradiobutton.h>
@@ -78,7 +78,7 @@ PatternSelect::PatternSelect( TQWidget *parent, const char * )
{
penStyle = Qt::NoPen;
penWidth = 1;
- penColor = colorGroup().text();
+ penColor = tqcolorGroup().text();
selected = false;
undefined = false;
}
@@ -88,7 +88,7 @@ void PatternSelect::setPattern( const TQColor &_color, int _width, Qt::PenStyle
penStyle = _style;
penColor = _color;
penWidth = _width;
- repaint();
+ tqrepaint();
}
void PatternSelect::setUndefined()
@@ -127,7 +127,7 @@ void PatternSelect::slotUnselect()
setLineWidth( 1 );
setFrameStyle( TQFrame::Panel | TQFrame::Sunken );
- repaint();
+ tqrepaint();
}
void PatternSelect::slotSelect()
@@ -136,7 +136,7 @@ void PatternSelect::slotSelect()
setLineWidth( 2 );
setFrameStyle( TQFrame::Panel | TQFrame::Plain );
- repaint();
+ tqrepaint();
}
@@ -151,16 +151,16 @@ GeneralTab::GeneralTab( TQWidget* parent, CellFormatDialog * dlg )
: TQWidget( parent ),
m_dlg( dlg )
{
- TQGridLayout * layout = new TQGridLayout( this, 1, 1, KDialog::marginHint(), KDialog::spacingHint(), "layout");
+ TQGridLayout * tqlayout = new TQGridLayout( this, 1, 1, KDialog::marginHint(), KDialog::spacingHint(), "tqlayout");
TQGroupBox * groupBox = new TQGroupBox( this, "groupBox1" );
groupBox->setColumnLayout(0, Qt::Vertical );
groupBox->setTitle( i18n( "Style" ) );
- groupBox->layout()->setSpacing( KDialog::spacingHint() );
- groupBox->layout()->setMargin( KDialog::marginHint() );
+ groupBox->tqlayout()->setSpacing( KDialog::spacingHint() );
+ groupBox->tqlayout()->setMargin( KDialog::marginHint() );
- TQGridLayout * groupBoxLayout = new TQGridLayout( groupBox->layout() );
- groupBoxLayout->setAlignment( TQt::AlignTop );
+ TQGridLayout * groupBoxLayout = new TQGridLayout( groupBox->tqlayout() );
+ groupBoxLayout->tqsetAlignment( TQt::AlignTop );
TQLabel * label1 = new TQLabel( groupBox, "label1" );
label1->setText( i18n( "Name:" ) );
@@ -198,8 +198,8 @@ GeneralTab::GeneralTab( TQWidget* parent, CellFormatDialog * dlg )
TQSpacerItem * spacer = new TQSpacerItem( 20, 260, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
- layout->addWidget( groupBox, 0, 0 );
- layout->addItem( spacer, 1, 0 );
+ tqlayout->addWidget( groupBox, 0, 0 );
+ tqlayout->addItem( spacer, 1, 0 );
if ( m_dlg->getStyle()->type() == Style::BUILTIN )
{
@@ -207,7 +207,7 @@ GeneralTab::GeneralTab( TQWidget* parent, CellFormatDialog * dlg )
m_parentBox->setEnabled( false );
}
- resize( TQSize( 534, 447 ).expandedTo(minimumSizeHint()) );
+ resize( TQSize( 534, 447 ).expandedTo(tqminimumSizeHint()) );
}
GeneralTab::~GeneralTab()
@@ -262,7 +262,7 @@ bool GeneralTab::checkParent( const TQString & parentName )
{
KMessageBox::sorry( this,
i18n( "The style cannot inherit from '%1' because of recursive references." )
- .arg( m_parentBox->currentText() ) );
+ .tqarg( m_parentBox->currentText() ) );
return false;
}
@@ -886,12 +886,12 @@ void CellFormatDialog::initParameters(Format *obj,int x,int y)
void CellFormatDialog::init()
{
- TQColorGroup colorGroup = TQApplication::palette().active();
+ TQColorGroup tqcolorGroup = TQApplication::tqpalette().active();
// Did we initialize the bitmaps ?
if ( formatOnlyNegSignedPixmap == 0L )
{
- TQColor black = colorGroup.text(); // not necessarily black :)
+ TQColor black = tqcolorGroup.text(); // not necessarily black :)
formatOnlyNegSignedPixmap = paintFormatPixmap( "123.456", black, "-123.456", black );
formatRedOnlyNegSignedPixmap = paintFormatPixmap( "123.456", black, "-123.456", TQt::red );
formatRedNeverSignedPixmap = paintFormatPixmap( "123.456", black, "123.456", TQt::red );
@@ -948,7 +948,7 @@ TQPixmap * CellFormatDialog::paintFormatPixmap( const char * _string1, const TQC
TQPainter painter;
painter.begin( pixmap );
- painter.fillRect( 0, 0, 150, 14, TQApplication::palette().active().base() );
+ painter.fillRect( 0, 0, 150, 14, TQApplication::tqpalette().active().base() );
painter.setPen( _color1 );
painter.drawText( 2, 11, TQString(_string1) );
painter.setPen( _color2 );
@@ -1082,7 +1082,7 @@ CellFormatPageFloat::CellFormatPageFloat( TQWidget* parent, CellFormatDialog *_d
: TQWidget ( parent ),
dlg( _dlg )
{
- TQVBoxLayout* layout = new TQVBoxLayout( this, 6,10 );
+ TQVBoxLayout* tqlayout = new TQVBoxLayout( this, 6,10 );
TQButtonGroup *grp = new TQButtonGroup( i18n("Format"),this);
TQGridLayout *grid = new TQGridLayout(grp,11,2,KDialog::marginHint(), KDialog::spacingHint());
@@ -1149,7 +1149,7 @@ CellFormatPageFloat::CellFormatPageFloat( TQWidget* parent, CellFormatDialog *_d
listFormat=new TQListBox(grp);
grid->addMultiCellWidget(listFormat,2,7,1,1);
TQWhatsThis::add(listFormat, i18n( "Displays choices of format for the fraction, date or time formats." ) );
- layout->addWidget(grp);
+ tqlayout->addWidget(grp);
/* *** */
@@ -1245,7 +1245,7 @@ CellFormatPageFloat::CellFormatPageFloat( TQWidget* parent, CellFormatDialog *_d
format->setCurrentItem( 3 );
else if ( dlg->floatFormat == Format::AlwaysSigned && dlg->floatColor == Format::NegRed )
format->setCurrentItem( 4 );
- layout->addWidget(box);
+ tqlayout->addWidget(box);
cellFormatType=dlg->formatType;
newFormatType = cellFormatType;
@@ -1465,8 +1465,8 @@ void CellFormatPageFloat::init()
TQString tmp;
TQString tmp2;
TQDate tmpDate( 2000,2,18);
- list+=i18n("System: ")+dlg->locale()->formatDate (TQDate::currentDate(), true);
- list+=i18n("System: ")+dlg->locale()->formatDate (TQDate::currentDate(), false);
+ list+=i18n("System: ")+dlg->locale()->formatDate (TQDate::tqcurrentDate(), true);
+ list+=i18n("System: ")+dlg->locale()->formatDate (TQDate::tqcurrentDate(), false);
ValueFormatter *fmt = dlg->getDoc()->formatter();
@@ -1965,7 +1965,7 @@ CellFormatPageFont::CellFormatPageFont( TQWidget* parent, CellFormatDialog *_dlg
TQStringList tmpListFont;
TQFontDatabase *fontDataBase = new TQFontDatabase();
- tmpListFont = fontDataBase->families();
+ tmpListFont = fontDataBase->tqfamilies();
delete fontDataBase;
family_combo->insertStringList( tmpListFont);
@@ -1996,7 +1996,7 @@ CellFormatPageFont::CellFormatPageFont( TQWidget* parent, CellFormatDialog *_dlg
TQStringList lst;
lst.append("");
for ( unsigned int i = 1; i < 100; ++i )
- lst.append( TQString( "%1" ).arg( i ) );
+ lst.append( TQString( "%1" ).tqarg( i ) );
size_combo->insertStringList( lst );
@@ -2151,7 +2151,7 @@ void CellFormatPageFont::display_example(const TQFont& font)
TQString string;
fontChanged=true;
example_label->setFont(font);
- example_label->repaint();
+ example_label->tqrepaint();
}
void CellFormatPageFont::setCombos()
@@ -2164,10 +2164,10 @@ void CellFormatPageFont::setCombos()
if ( dlg->bTextColor )
textColor = dlg->textColor;
else
- textColor = colorGroup().text();
+ textColor = tqcolorGroup().text();
if ( !textColor.isValid() )
- textColor =colorGroup().text();
+ textColor =tqcolorGroup().text();
textColorButton->setColor( textColor );
@@ -2281,7 +2281,7 @@ CellFormatPagePosition::CellFormatPagePosition( TQWidget* parent, CellFormatDial
if ( dlg->isRowSelected )
width->setEnabled(false);
- defaultWidth->setText(i18n("Default width (%1 %2)").arg(KoUnit::toUserValue(dlg->defaultWidthSize, dlg->getDoc()->unit()), 0, 'f', 2).arg(dlg->getDoc()->unitName()));
+ defaultWidth->setText(i18n("Default width (%1 %2)").tqarg(KoUnit::toUserValue(dlg->defaultWidthSize, dlg->getDoc()->unit()), 0, 'f', 2).tqarg(dlg->getDoc()->unitName()));
if ( dlg->isRowSelected )
defaultWidth->setEnabled(false);
@@ -2296,7 +2296,7 @@ CellFormatPagePosition::CellFormatPagePosition( TQWidget* parent, CellFormatDial
if ( dlg->isColumnSelected )
height->setEnabled(false);
- defaultHeight->setText(i18n("Default height (%1 %2)").arg(KoUnit::toUserValue(dlg->defaultHeightSize, dlg->getDoc()->unit()), 0, 'f', 2).arg(dlg->getDoc()->unitName())); //annma
+ defaultHeight->setText(i18n("Default height (%1 %2)").tqarg(KoUnit::toUserValue(dlg->defaultHeightSize, dlg->getDoc()->unit()), 0, 'f', 2).tqarg(dlg->getDoc()->unitName())); //annma
if ( dlg->isColumnSelected )
defaultHeight->setEnabled(false);
@@ -2533,7 +2533,7 @@ BorderButton::BorderButton( TQWidget *parent, const char *_name ) : TQPushButton
{
penStyle = Qt::NoPen;
penWidth = 1;
- penColor = colorGroup().text();
+ penColor = tqcolorGroup().text();
setToggleButton( true );
setOn( false);
setChanged(false);
@@ -2549,7 +2549,7 @@ void BorderButton::setUndefined()
{
setPenStyle(Qt::SolidLine );
setPenWidth(1);
- setColor(colorGroup().midlight());
+ setColor(tqcolorGroup().midlight());
}
@@ -2558,7 +2558,7 @@ void BorderButton::unselect()
setOn(false);
setPenWidth(1);
setPenStyle(Qt::NoPen);
- setColor( colorGroup().text() );
+ setColor( tqcolorGroup().text() );
setChanged(true);
}
@@ -2586,7 +2586,7 @@ void Border::paintEvent( TQPaintEvent *_ev )
TQPen pen;
TQPainter painter;
painter.begin( this );
- pen=TQPen( colorGroup().midlight(),2,SolidLine);
+ pen=TQPen( tqcolorGroup().midlight(),2,SolidLine);
painter.setPen( pen );
painter.drawLine( OFFSETX-5, OFFSETY, OFFSETX , OFFSETY );
@@ -2678,18 +2678,18 @@ void CellFormatPageBorder::InitializeGrids()
{ {0,0}, {0,1},{0,2} };
/***********************/
- /* set up a layout box for most of the border setting buttons */
+ /* set up a tqlayout box for most of the border setting buttons */
tmpTQGroupBox = new TQGroupBox( this, "GroupBox_1" );
tmpTQGroupBox->setFrameStyle( TQFrame::Box | TQFrame::Sunken );
tmpTQGroupBox->setTitle( i18n("Border") );
- tmpTQGroupBox->setAlignment( AlignLeft );
+ tmpTQGroupBox->tqsetAlignment( AlignLeft );
grid2 = new TQGridLayout(tmpTQGroupBox,6,5,KDialog::marginHint(), KDialog::spacingHint());
int fHeight = tmpTQGroupBox->fontMetrics().height();
grid2->addRowSpacing( 0, fHeight/2 ); // groupbox title
area=new Border(tmpTQGroupBox,"area",dlg->oneCol,dlg->oneRow);
grid2->addMultiCellWidget(area,2,4,1,3);
- area->setBackgroundColor( colorGroup().base() );
+ area->setBackgroundColor( tqcolorGroup().base() );
/* initailize the buttons that are in this box */
for (int i=BorderType_Top; i < BorderType_END; i++)
@@ -2709,7 +2709,7 @@ void CellFormatPageBorder::InitializeGrids()
tmpTQGroupBox = new TQGroupBox( this, "GroupBox_3" );
tmpTQGroupBox->setFrameStyle( TQFrame::Box | TQFrame::Sunken );
tmpTQGroupBox->setTitle( i18n("Preselect") );
- tmpTQGroupBox->setAlignment( AlignLeft );
+ tmpTQGroupBox->tqsetAlignment( AlignLeft );
grid2 = new TQGridLayout(tmpTQGroupBox,1,3,KDialog::marginHint(), KDialog::spacingHint());
@@ -2748,7 +2748,7 @@ void CellFormatPageBorder::InitializeGrids()
tmpTQGroupBox = new TQGroupBox( this, "GroupBox_10" );
tmpTQGroupBox->setFrameStyle( TQFrame::Box | TQFrame::Sunken );
tmpTQGroupBox->setTitle( i18n("Pattern") );
- tmpTQGroupBox->setAlignment( AlignLeft );
+ tmpTQGroupBox->tqsetAlignment( AlignLeft );
grid2 = new TQGridLayout(tmpTQGroupBox,7,2,KDialog::marginHint(), KDialog::spacingHint());
fHeight = tmpTQGroupBox->fontMetrics().height();
@@ -2804,7 +2804,7 @@ void CellFormatPageBorder::InitializeGrids()
style->insertItem(paintFormatPixmap(DashDotLine),2 );
style->insertItem(paintFormatPixmap(DashDotDotLine),3 );
style->insertItem(paintFormatPixmap(SolidLine),4);
- style->setBackgroundColor( colorGroup().background() );
+ style->setBackgroundColor( tqcolorGroup().background() );
grid2->addMultiCell(grid3,6,6,0,1);
grid->addMultiCellWidget(tmpTQGroupBox,0,3,1,1);
@@ -2813,7 +2813,7 @@ void CellFormatPageBorder::InitializeGrids()
tmpTQGroupBox = new TQGroupBox(this, "GroupBox_4" );
tmpTQGroupBox->setFrameStyle( TQFrame::Box | TQFrame::Sunken );
tmpTQGroupBox->setTitle( i18n("Preview") );
- tmpTQGroupBox->setAlignment( AlignLeft );
+ tmpTQGroupBox->tqsetAlignment( AlignLeft );
grid2 = new TQGridLayout(tmpTQGroupBox,1,1,KDialog::marginHint(), KDialog::spacingHint());
fHeight = tmpTQGroupBox->fontMetrics().height();
@@ -2970,9 +2970,9 @@ TQPixmap CellFormatPageBorder::paintFormatPixmap(PenStyle _style)
TQPixmap pixmap( style->width(), 14 );
TQPainter painter;
TQPen pen;
- pen=TQPen( colorGroup().text(),1,_style);
+ pen=TQPen( tqcolorGroup().text(),1,_style);
painter.begin( &pixmap );
- painter.fillRect( 0, 0, style->width(), 14, colorGroup().background() );
+ painter.fillRect( 0, 0, style->width(), 14, tqcolorGroup().background() );
painter.setPen( pen );
painter.drawLine( 0, 7, style->width(), 7 );
painter.end();
@@ -3223,7 +3223,7 @@ void CellFormatPageBorder::preselect( BorderButton *_p )
vertical->setChanged(true);
}
}
- area->repaint();
+ area->tqrepaint();
}
void CellFormatPageBorder::changeState( BorderButton *_p)
@@ -3240,10 +3240,10 @@ void CellFormatPageBorder::changeState( BorderButton *_p)
{
_p->setPenWidth(1);
_p->setPenStyle(Qt::NoPen);
- _p->setColor( colorGroup().text() );
+ _p->setColor( tqcolorGroup().text() );
}
- area->repaint();
+ area->tqrepaint();
}
void CellFormatPageBorder::draw()
@@ -3483,7 +3483,7 @@ if (rect.contains(TQPoint(_ev->x(),_ev->y())))
}
}
- area->repaint();
+ area->tqrepaint();
}
@@ -3505,7 +3505,7 @@ void BrushSelect::setPattern( const TQColor &_color,Qt::BrushStyle _style )
{
brushStyle = _style;
brushColor = _color;
- repaint();
+ tqrepaint();
}
@@ -3535,7 +3535,7 @@ void BrushSelect::slotUnselect()
setLineWidth( 1 );
setFrameStyle( TQFrame::Panel | TQFrame::Sunken );
- repaint();
+ tqrepaint();
}
void BrushSelect::slotSelect()
@@ -3544,7 +3544,7 @@ void BrushSelect::slotSelect()
setLineWidth( 2 );
setFrameStyle( TQFrame::Panel | TQFrame::Plain );
- repaint();
+ tqrepaint();
}
@@ -3567,7 +3567,7 @@ CellFormatPagePattern::CellFormatPagePattern( TQWidget* parent, CellFormatDialog
tmpTQGroupBox = new TQGroupBox( this, "GroupBox_20" );
tmpTQGroupBox->setFrameStyle( TQFrame::Box | TQFrame::Sunken );
tmpTQGroupBox->setTitle( i18n("Pattern") );
- tmpTQGroupBox->setAlignment( AlignLeft );
+ tmpTQGroupBox->tqsetAlignment( AlignLeft );
TQGridLayout *grid2 = new TQGridLayout(tmpTQGroupBox,8,3,KDialog::marginHint(), KDialog::spacingHint());
int fHeight = tmpTQGroupBox->fontMetrics().height();
@@ -3656,10 +3656,10 @@ CellFormatPagePattern::CellFormatPagePattern( TQWidget* parent, CellFormatDialog
if ( dlg->bBgColor )
bgColor = dlg->bgColor;
else
- bgColor = colorGroup().base();
+ bgColor = tqcolorGroup().base();
if (!bgColor.isValid())
- bgColor = colorGroup().base();
+ bgColor = tqcolorGroup().base();
bgColorButton->setColor( bgColor );
connect( bgColorButton, TQT_SIGNAL( changed( const TQColor & ) ),
@@ -3678,7 +3678,7 @@ CellFormatPagePattern::CellFormatPagePattern( TQWidget* parent, CellFormatDialog
tmpTQGroupBox = new TQGroupBox( this, "GroupBox1" );
tmpTQGroupBox->setTitle( i18n("Preview") );
tmpTQGroupBox->setFrameStyle( TQFrame::Box | TQFrame::Sunken );
- tmpTQGroupBox->setAlignment( AlignLeft );
+ tmpTQGroupBox->tqsetAlignment( AlignLeft );
grid2 = new TQGridLayout(tmpTQGroupBox,2,1,KDialog::marginHint(), KDialog::spacingHint());
fHeight = tmpTQGroupBox->fontMetrics().height();
@@ -3753,8 +3753,8 @@ CellFormatPagePattern::CellFormatPagePattern( TQWidget* parent, CellFormatDialog
void CellFormatPagePattern::slotNotAnyColor()
{
b_notAnyColor = true;
- bgColorButton->setColor( colorGroup().base() );
- current->setBackgroundColor( colorGroup().base() );
+ bgColorButton->setColor( tqcolorGroup().base() );
+ current->setBackgroundColor( tqcolorGroup().base() );
}
void CellFormatPagePattern::slotSetBackgroundColor( const TQColor &_color )
diff --git a/kspread/dialogs/kspread_dlg_layout.h b/kspread/dialogs/kspread_dlg_layout.h
index 8d38663ac..b8ec0bba8 100644
--- a/kspread/dialogs/kspread_dlg_layout.h
+++ b/kspread/dialogs/kspread_dlg_layout.h
@@ -101,16 +101,16 @@ class PatternSelect : public TQFrame
public:
PatternSelect( TQWidget *parent, const char *_name );
- void setPenStyle( Qt::PenStyle _pat ) { penStyle = _pat; repaint(); }
+ void setPenStyle( Qt::PenStyle _pat ) { penStyle = _pat; tqrepaint(); }
Qt::PenStyle getPenStyle() { return penStyle; }
- void setColor( const TQColor &_col ) { penColor = _col; repaint(); }
+ void setColor( const TQColor &_col ) { penColor = _col; tqrepaint(); }
const TQColor& getColor() { return penColor; }
- void setPenWidth( int _w ) { penWidth = _w; repaint(); }
+ void setPenWidth( int _w ) { penWidth = _w; tqrepaint(); }
int getPenWidth() { return penWidth; }
void setPattern( const TQColor &_color, int _width, Qt::PenStyle _style );
void setUndefined();
- void setDefined() { undefined = FALSE; repaint(); }
+ void setDefined() { undefined = FALSE; tqrepaint(); }
bool isDefined() { return !undefined; }
@@ -389,7 +389,7 @@ class BrushSelect : public TQFrame
public:
BrushSelect( TQWidget *parent, const char *_name );
- void setBrushStyle( Qt::BrushStyle _pat ) { brushStyle = _pat; repaint(); }
+ void setBrushStyle( Qt::BrushStyle _pat ) { brushStyle = _pat; tqrepaint(); }
Qt::BrushStyle getBrushStyle() const { return brushStyle; }
TQColor getBrushColor() const { return brushColor; }
void setBrushColor(const TQColor &_c) { brushColor=_c;}
diff --git a/kspread/dialogs/kspread_dlg_list.cc b/kspread/dialogs/kspread_dlg_list.cc
index cdff22f13..f4e032694 100644
--- a/kspread/dialogs/kspread_dlg_list.cc
+++ b/kspread/dialogs/kspread_dlg_list.cc
@@ -20,7 +20,7 @@
*/
#include <tqlabel.h>
-#include <layout.h>
+#include <tqlayout.h>
#include <tqlineedit.h>
#include <tqlistbox.h>
#include <tqmultilineedit.h>
diff --git a/kspread/dialogs/kspread_dlg_paperlayout.cc b/kspread/dialogs/kspread_dlg_paperlayout.cc
index 6e89e2cf9..f0e6f6648 100644
--- a/kspread/dialogs/kspread_dlg_paperlayout.cc
+++ b/kspread/dialogs/kspread_dlg_paperlayout.cc
@@ -37,7 +37,7 @@
#include <tqradiobutton.h>
#include <tqbuttongroup.h>
#include <tqcombobox.h>
-#include <layout.h>
+#include <tqlayout.h>
#include <tqhgroupbox.h>
#include <kapplication.h>
@@ -48,11 +48,11 @@
using namespace KSpread;
PaperLayout::PaperLayout( TQWidget * parent, const char * name,
- const KoPageLayout & layout,
+ const KoPageLayout & tqlayout,
const KoHeadFoot & headfoot,
int tabs, KoUnit::Unit unit,
Sheet * sheet, View * view)
- : KoPageLayoutDia( parent, name, layout, headfoot, tabs, unit, false /*no modal*/),
+ : KoPageLayoutDia( parent, name, tqlayout, headfoot, tabs, unit, false /*no modal*/),
m_pSheet( sheet ),
m_pView( view )
{
@@ -130,7 +130,7 @@ void PaperLayout::initRanges( TQWidget * tab, TQVBoxLayout * vbox )
rangeGroup->setMargin( KDialog::marginHint() );
vbox->addWidget( rangeGroup );
- TQGridLayout *grid = new TQGridLayout( rangeGroup->layout(), 3, 2, KDialog::spacingHint() );
+ TQGridLayout *grid = new TQGridLayout( rangeGroup->tqlayout(), 3, 2, KDialog::spacingHint() );
TQLabel *pPrintRange = new TQLabel ( i18n("Print range:"), rangeGroup );
grid->addWidget( pPrintRange, 0, 0 );
@@ -182,7 +182,7 @@ void PaperLayout::initScaleOptions( TQWidget * tab, TQVBoxLayout * vbox )
zoomGroup->setMargin( KDialog::marginHint() );
vbox->addWidget( zoomGroup );
- TQGridLayout *grid = new TQGridLayout( zoomGroup->layout(), 2, 6,
+ TQGridLayout *grid = new TQGridLayout( zoomGroup->tqlayout(), 2, 6,
KDialog::spacingHint() );
m_rScalingZoom = new TQRadioButton ( i18n("Zoom:"), zoomGroup );
@@ -194,17 +194,17 @@ void PaperLayout::initScaleOptions( TQWidget * tab, TQVBoxLayout * vbox )
TQStringList lst;
for( int i = 5; i < 500; i += 5 )
{
- lst.append( TQString( i18n( "%1%" ) ).arg( i ) );
+ lst.append( TQString( i18n( "%1%" ) ).tqarg( i ) );
if( tqRound( print->zoom() * 100 ) > i &&
tqRound( print->zoom() * 100 ) < i + 5 )
{
- lst.append( TQString( i18n( "%1%" ) ).arg( tqRound( print->zoom() * 100 ) ) );
+ lst.append( TQString( i18n( "%1%" ) ).tqarg( tqRound( print->zoom() * 100 ) ) );
}
}
m_cZoom->insertStringList( lst );
int number_of_entries = m_cZoom->count();
- TQString string = TQString( i18n( "%1%" ) ).arg( tqRound( print->zoom() * 100 ) );
+ TQString string = TQString( i18n( "%1%" ) ).tqarg( tqRound( print->zoom() * 100 ) );
for (int i = 0; i < number_of_entries ; i++)
{
if ( string == (TQString) m_cZoom->text(i) )
@@ -227,11 +227,11 @@ void PaperLayout::initScaleOptions( TQWidget * tab, TQVBoxLayout * vbox )
lstX.append( i18n( "No Limit" ) );
for( int i = 1; i <= 20; i += 1 )
{
- lstX.append( TQString( "%1" ).arg( i ) );
+ lstX.append( TQString( "%1" ).tqarg( i ) );
}
if( print->pageLimitX() > 20 )
{
- lstX.append( TQString( "%1" ).arg( print->pageLimitX() ) );
+ lstX.append( TQString( "%1" ).tqarg( print->pageLimitX() ) );
}
m_cLimitPagesX->insertStringList( lstX );
@@ -250,11 +250,11 @@ void PaperLayout::initScaleOptions( TQWidget * tab, TQVBoxLayout * vbox )
lstY.append( i18n( "No Limit" ) );
for( int i = 1; i <= 20; i += 1 )
{
- lstY.append( TQString( "%1" ).arg( i ) );
+ lstY.append( TQString( "%1" ).tqarg( i ) );
}
if( print->pageLimitY() > 20 )
{
- lstY.append( TQString( "%1" ).arg( print->pageLimitY() ) );
+ lstY.append( TQString( "%1" ).tqarg( print->pageLimitY() ) );
}
m_cLimitPagesY->insertStringList( lstY );
@@ -312,7 +312,7 @@ void PaperLayout::slotOk()
{
SheetPrint *print = sheet->print();
- KoPageLayout pl = layout();
+ KoPageLayout pl = tqlayout();
KoHeadFoot hf = headFoot();
KoUnit::Unit unit = sheet->doc()->unit();
print->setPrintGrid( pPrintGrid->isChecked() );
@@ -407,7 +407,7 @@ void PaperLayout::slotOk()
if ( m_rScalingZoom->isChecked() )
{
kdDebug() << "Zoom is selected" << endl;
- if( TQString( "%1%" ).arg( tqRound( print->zoom() * 100 ) ) != m_cZoom->currentText() )
+ if( TQString( "%1%" ).tqarg( tqRound( print->zoom() * 100 ) ) != m_cZoom->currentText() )
{
kdDebug() << "New zoom is different than original: " << m_cZoom->currentText() << endl;
TQString zoomtext = m_cZoom->currentText();
diff --git a/kspread/dialogs/kspread_dlg_paperlayout.h b/kspread/dialogs/kspread_dlg_paperlayout.h
index 0260c1c8d..c9a9e6e5b 100644
--- a/kspread/dialogs/kspread_dlg_paperlayout.h
+++ b/kspread/dialogs/kspread_dlg_paperlayout.h
@@ -42,7 +42,7 @@ class PaperLayout: public KoPageLayoutDia
TQ_OBJECT
public:
PaperLayout( TQWidget* parent, const char* name,
- const KoPageLayout& layout,
+ const KoPageLayout& tqlayout,
const KoHeadFoot& headfoot,
int tabs, KoUnit::Unit unit,
Sheet * sheet, View *view);
diff --git a/kspread/dialogs/kspread_dlg_pasteinsert.cc b/kspread/dialogs/kspread_dlg_pasteinsert.cc
index 8dda529ed..9b54644d3 100644
--- a/kspread/dialogs/kspread_dlg_pasteinsert.cc
+++ b/kspread/dialogs/kspread_dlg_pasteinsert.cc
@@ -20,7 +20,7 @@
* Boston, MA 02110-1301, USA.
*/
-#include <layout.h>
+#include <tqlayout.h>
#include <klocale.h>
#include <kbuttonbox.h>
#include <tqbuttongroup.h>
@@ -49,7 +49,7 @@ PasteInsertDialog::PasteInsertDialog( View* parent, const char* name,const TQRec
TQButtonGroup *grp = new TQButtonGroup( 1, Qt::Horizontal, i18n("Insert"),page);
grp->setRadioButtonExclusive( TRUE );
- grp->layout();
+ grp->tqlayout();
lay1->addWidget(grp);
rb1 = new TQRadioButton( i18n("Move towards right"), grp );
rb2 = new TQRadioButton( i18n("Move towards bottom"), grp );
diff --git a/kspread/dialogs/kspread_dlg_preference.cc b/kspread/dialogs/kspread_dlg_preference.cc
index 531e62607..51ca3cdc9 100644
--- a/kspread/dialogs/kspread_dlg_preference.cc
+++ b/kspread/dialogs/kspread_dlg_preference.cc
@@ -26,7 +26,7 @@
*/
#include <tqvbox.h>
-#include <layout.h>
+#include <tqlayout.h>
#include <tqcheckbox.h>
#include <tqcombobox.h>
#include <tqvgroupbox.h>
@@ -192,12 +192,12 @@ void parameterLocale::updateDefaultSystemConfig()
void parameterLocale::updateToMatchLocale(KLocale* locale)
{
- m_language->setText( i18n("Language: %1").arg( locale->language() ));
- m_number->setText( i18n("Default number format: %1").arg( locale->formatNumber(12.55) ));
- m_date->setText( i18n("Long date format: %1").arg( locale->formatDate( TQDate::currentDate() )));
- m_shortDate->setText( i18n("Short date format: %1").arg( locale->formatDate( TQDate::currentDate() ,true) ));
- m_time->setText( i18n("Time format: %1").arg( locale->formatTime( TQTime::currentTime() ) ));
- m_money->setText( i18n("Currency format: %1").arg( locale->formatMoney(12.55) ));
+ m_language->setText( i18n("Language: %1").tqarg( locale->language() ));
+ m_number->setText( i18n("Default number format: %1").tqarg( locale->formatNumber(12.55) ));
+ m_date->setText( i18n("Long date format: %1").tqarg( locale->formatDate( TQDate::tqcurrentDate() )));
+ m_shortDate->setText( i18n("Short date format: %1").tqarg( locale->formatDate( TQDate::tqcurrentDate() ,true) ));
+ m_time->setText( i18n("Time format: %1").tqarg( locale->formatTime( TQTime::currentTime() ) ));
+ m_money->setText( i18n("Currency format: %1").tqarg( locale->formatMoney(12.55) ));
}
configure::configure( View* _view, TQVBox *box , char *name )
@@ -488,7 +488,7 @@ miscParameters::miscParameters( View* _view,TQVBox *box, char *name )
// valIndent->setRange( 0.0, 100.0, 10.0 );
valIndent->setValue ( KoUnit::toUserValue( _indent, indentUnit ) );
TQWhatsThis::add(valIndent, i18n( "Lets you define the amount of indenting used by the Increase Indent and Decrease Indent option in the Format menu." ) );
- valIndent->setLabel(i18n("&Indentation step (%1):").arg(KoUnit::unitName(indentUnit)));
+ valIndent->setLabel(i18n("&Indentation step (%1):").tqarg(KoUnit::unitName(indentUnit)));
msgError= new TQCheckBox(i18n("&Show error message for invalid formulae"),tmpTQGroupBox);
msgError->setChecked(m_bMsgError);
@@ -790,10 +790,10 @@ configureLayoutPage::configureLayoutPage( View* _view,TQVBox *box , char *name )
m_pView = _view;
TQGroupBox* tmpTQGroupBox = new TQGroupBox( 0, Qt::Vertical, i18n("Default Parameters"), box, "GroupBox" );
- tmpTQGroupBox->layout()->setSpacing(KDialog::spacingHint());
- tmpTQGroupBox->layout()->setMargin(KDialog::marginHint());
+ tmpTQGroupBox->tqlayout()->setSpacing(KDialog::spacingHint());
+ tmpTQGroupBox->tqlayout()->setMargin(KDialog::marginHint());
- TQGridLayout *grid1 = new TQGridLayout(tmpTQGroupBox->layout(),8,1);
+ TQGridLayout *grid1 = new TQGridLayout(tmpTQGroupBox->tqlayout(),8,1);
grid1->addRowSpacing( 0, KDialog::marginHint() );
grid1->setRowStretch( 7, 10 );
@@ -905,7 +905,7 @@ configureSpellPage::configureSpellPage( View* _view,TQVBox *box , char *name )
TQWhatsThis::add(dontCheckTitleCase, i18n( "Check this box if you want the spellchecker to ignore the title case, for example My Own Spreadsheet or My own spreadsheet. If this is unchecked, the spell checker will ask for a uppercase letter in the title nouns." ) );
TQWidget* spacer = new TQWidget( box );
- spacer->setSizePolicy( TQSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Expanding ) );
+ spacer->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Expanding ) );
if( config->hasGroup("KSpell kspread") )
{
diff --git a/kspread/dialogs/kspread_dlg_reference.cc b/kspread/dialogs/kspread_dlg_reference.cc
index 7c3007e84..c456efb3f 100644
--- a/kspread/dialogs/kspread_dlg_reference.cc
+++ b/kspread/dialogs/kspread_dlg_reference.cc
@@ -40,7 +40,7 @@
#include <tqlabel.h>
#include <tqlineedit.h>
#include <tqpushbutton.h>
-#include <layout.h>
+#include <tqlayout.h>
#include <kbuttonbox.h>
#include <kmessagebox.h>
@@ -75,7 +75,7 @@ reference::reference( View* parent, const char* name )
m_pOk = bb->addButton( KStdGuiItem::ok() );
m_pCancel = bb->addButton( KStdGuiItem::cancel() );
m_pOk->setDefault( TRUE );
- bb->layout();
+ bb->tqlayout();
lay1->addWidget( bb );
TQString text;
@@ -110,7 +110,7 @@ reference::reference( View* parent, const char* name )
TQT_SLOT(slotDoubleClicked(TQListBoxItem *)));
connect( m_list, TQT_SIGNAL(highlighted ( TQListBoxItem * ) ), this,
TQT_SLOT(slotHighlighted(TQListBoxItem * )));
- m_rangeName->setText(i18n("Area: %1").arg(""));
+ m_rangeName->setText(i18n("Area: %1").tqarg(""));
resize( 250, 200 );
}
@@ -134,7 +134,7 @@ void reference::displayAreaValues(TQString const & areaName)
}
}
- tmpName = i18n("Area: %1").arg(tmpName);
+ tmpName = i18n("Area: %1").tqarg(tmpName);
m_rangeName->setText(tmpName);
}
@@ -206,7 +206,7 @@ void reference::slotEdit()
EditAreaName editDlg( m_pView, "EditArea", name );
editDlg.exec();
- m_rangeName->setText(i18n("Area: %1").arg(""));
+ m_rangeName->setText(i18n("Area: %1").tqarg(""));
TQString tmp = m_list->text(m_list->currentItem());
if (!tmp.isEmpty())
displayAreaValues( tmp );
@@ -254,7 +254,7 @@ EditAreaName::EditAreaName( View * parent,
m_pView = parent;
resize( 350, 142 );
- setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5,
+ tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5,
(TQSizePolicy::SizeType)4, 0, 0,
sizePolicy().hasHeightForWidth() ) );
diff --git a/kspread/dialogs/kspread_dlg_resize2.cc b/kspread/dialogs/kspread_dlg_resize2.cc
index 4185847e1..e6d74d26d 100644
--- a/kspread/dialogs/kspread_dlg_resize2.cc
+++ b/kspread/dialogs/kspread_dlg_resize2.cc
@@ -26,7 +26,7 @@
#include <float.h>
#include <tqlabel.h>
-#include <layout.h>
+#include <tqlayout.h>
#include <knuminput.h>
diff --git a/kspread/dialogs/kspread_dlg_series.cc b/kspread/dialogs/kspread_dlg_series.cc
index 4ce74abde..0158dd2a5 100644
--- a/kspread/dialogs/kspread_dlg_series.cc
+++ b/kspread/dialogs/kspread_dlg_series.cc
@@ -30,7 +30,7 @@
#include "kspread_sheet.h"
#include "kspread_view.h"
-#include <layout.h>
+#include <tqlayout.h>
#include <klocale.h>
#include <tqlabel.h>
diff --git a/kspread/dialogs/kspread_dlg_show.cc b/kspread/dialogs/kspread_dlg_show.cc
index e497a790c..c73f71ec8 100644
--- a/kspread/dialogs/kspread_dlg_show.cc
+++ b/kspread/dialogs/kspread_dlg_show.cc
@@ -22,7 +22,7 @@
* Boston, MA 02110-1301, USA.
*/
-#include <layout.h>
+#include <tqlayout.h>
#include <klocale.h>
#include <tqlistbox.h>
#include <tqlabel.h>
diff --git a/kspread/dialogs/kspread_dlg_showColRow.cc b/kspread/dialogs/kspread_dlg_showColRow.cc
index 450737a18..75a50cc3d 100644
--- a/kspread/dialogs/kspread_dlg_showColRow.cc
+++ b/kspread/dialogs/kspread_dlg_showColRow.cc
@@ -21,7 +21,7 @@
*/
#include <tqlabel.h>
-#include <layout.h>
+#include <tqlayout.h>
#include <klocale.h>
@@ -78,9 +78,9 @@ ShowColRow::ShowColRow( View* parent, const char* name, Type _type )
for( it = listInt.begin(); it != listInt.end(); ++it )
{
if(!showColNumber)
- listCol+=i18n("Column: %1").arg(Cell::columnName(*it));
+ listCol+=i18n("Column: %1").tqarg(Cell::columnName(*it));
else
- listCol+=i18n("Column: %1").arg(text.setNum(*it));
+ listCol+=i18n("Column: %1").tqarg(text.setNum(*it));
}
list->insertStringList(listCol);
}
@@ -98,7 +98,7 @@ ShowColRow::ShowColRow( View* parent, const char* name, Type _type )
qHeapSort(listInt);
TQValueList<int>::Iterator it;
for( it = listInt.begin(); it != listInt.end(); ++it )
- listRow+=i18n("Row: %1").arg(text.setNum(*it));
+ listRow+=i18n("Row: %1").tqarg(text.setNum(*it));
list->insertStringList(listRow);
}
diff --git a/kspread/dialogs/kspread_dlg_sort.cc b/kspread/dialogs/kspread_dlg_sort.cc
index 4ce0d91ef..1e58ccf5d 100644
--- a/kspread/dialogs/kspread_dlg_sort.cc
+++ b/kspread/dialogs/kspread_dlg_sort.cc
@@ -32,7 +32,7 @@
#include <tqcombobox.h>
#include <tqgroupbox.h>
#include <tqlabel.h>
-#include <layout.h>
+#include <tqlayout.h>
#include <tqlineedit.h>
#include <tqpushbutton.h>
#include <tqradiobutton.h>
@@ -85,7 +85,7 @@ SortDialog::SortDialog( View * parent, const char * name,
TQHButtonGroup * orientationGroup = new TQHButtonGroup( layoutGroup, "orientationGroup" );
orientationGroup->setLineWidth(0);
orientationGroup->setMargin(0);
- orientationGroup->layout()->setMargin(0);
+ orientationGroup->tqlayout()->setMargin(0);
m_sortColumn = new TQRadioButton( orientationGroup, "m_sortColumn" );
m_sortColumn->setText( i18n( "Sort &Rows" ) );
@@ -108,10 +108,10 @@ SortDialog::SortDialog( View * parent, const char * name,
sort1Box->setTitle( i18n( "Sort By" ) );
sort1Box->setFlat(true);
sort1Box->setColumnLayout(0, Qt::Vertical );
- sort1Box->layout()->setSpacing( KDialog::spacingHint() );
- sort1Box->layout()->setMargin( KDialog::marginHint() );
- TQHBoxLayout * sort1BoxLayout = new TQHBoxLayout( sort1Box->layout() );
- sort1BoxLayout->setAlignment( TQt::AlignTop );
+ sort1Box->tqlayout()->setSpacing( KDialog::spacingHint() );
+ sort1Box->tqlayout()->setMargin( KDialog::marginHint() );
+ TQHBoxLayout * sort1BoxLayout = new TQHBoxLayout( sort1Box->tqlayout() );
+ sort1BoxLayout->tqsetAlignment( TQt::AlignTop );
m_sortKey1 = new TQComboBox( false, sort1Box, "m_sortKey1" );
sort1BoxLayout->addWidget( m_sortKey1 );
@@ -127,10 +127,10 @@ SortDialog::SortDialog( View * parent, const char * name,
sort2Box->setTitle( i18n( "Then By" ) );
sort2Box->setFlat(true);
sort2Box->setColumnLayout(0, Qt::Vertical );
- sort2Box->layout()->setSpacing( KDialog::spacingHint() );
- sort2Box->layout()->setMargin( KDialog::marginHint() );
- TQHBoxLayout * sort2BoxLayout = new TQHBoxLayout( sort2Box->layout() );
- sort2BoxLayout->setAlignment( TQt::AlignTop );
+ sort2Box->tqlayout()->setSpacing( KDialog::spacingHint() );
+ sort2Box->tqlayout()->setMargin( KDialog::marginHint() );
+ TQHBoxLayout * sort2BoxLayout = new TQHBoxLayout( sort2Box->tqlayout() );
+ sort2BoxLayout->tqsetAlignment( TQt::AlignTop );
m_sortKey2 = new TQComboBox( false, sort2Box, "m_sortKey2" );
m_sortKey2->insertItem( i18n( "None" ) );
@@ -147,10 +147,10 @@ SortDialog::SortDialog( View * parent, const char * name,
sort3Box->setTitle( i18n( "Then By" ) );
sort3Box->setFlat(true);
sort3Box->setColumnLayout(0, Qt::Vertical );
- sort3Box->layout()->setSpacing( KDialog::spacingHint() );
- sort3Box->layout()->setMargin( KDialog::marginHint() );
- TQHBoxLayout * sort3BoxLayout = new TQHBoxLayout( sort3Box->layout() );
- sort3BoxLayout->setAlignment( TQt::AlignTop );
+ sort3Box->tqlayout()->setSpacing( KDialog::spacingHint() );
+ sort3Box->tqlayout()->setMargin( KDialog::marginHint() );
+ TQHBoxLayout * sort3BoxLayout = new TQHBoxLayout( sort3Box->tqlayout() );
+ sort3BoxLayout->tqsetAlignment( TQt::AlignTop );
m_sortKey3 = new TQComboBox( false, sort3Box, "m_sortKey3" );
m_sortKey3->insertItem( i18n( "None" ) );
@@ -171,15 +171,15 @@ SortDialog::SortDialog( View * parent, const char * name,
m_page2 = new TQWidget( m_tabWidget, "m_page2" );
TQGridLayout * page2Layout = new TQGridLayout( m_page2, 1, 1, 11, 6, "page2Layout");
- page2Layout->setAlignment(TQt::AlignTop);
+ page2Layout->tqsetAlignment(TQt::AlignTop);
TQGroupBox * firstKeyBox = new TQGroupBox( m_page2, "firstKeyBox" );
firstKeyBox->setTitle( i18n( "First Key" ) );
firstKeyBox->setColumnLayout(0, Qt::Vertical );
- firstKeyBox->layout()->setSpacing( KDialog::spacingHint() );
- firstKeyBox->layout()->setMargin( KDialog::marginHint() );
- TQVBoxLayout * firstKeyBoxLayout = new TQVBoxLayout( firstKeyBox->layout() );
- firstKeyBoxLayout->setAlignment( TQt::AlignTop );
+ firstKeyBox->tqlayout()->setSpacing( KDialog::spacingHint() );
+ firstKeyBox->tqlayout()->setMargin( KDialog::marginHint() );
+ TQVBoxLayout * firstKeyBoxLayout = new TQVBoxLayout( firstKeyBox->tqlayout() );
+ firstKeyBoxLayout->tqsetAlignment( TQt::AlignTop );
m_useCustomLists = new TQCheckBox( firstKeyBox, "m_useCustomLists_2" );
m_useCustomLists->setText( i18n( "&Use custom list" ) );
@@ -201,12 +201,12 @@ SortDialog::SortDialog( View * parent, const char * name,
TQGroupBox * resultToBox = new TQGroupBox( m_page2, "resultToBox" );
resultToBox->setTitle( i18n( "Location to Store Sort Results" ) );
resultToBox->setColumnLayout(0, Qt::Vertical );
- resultToBox->layout()->setSpacing( KDialog::spacingHint() );
- resultToBox->layout()->setMargin( KDialog::marginHint() );
+ resultToBox->tqlayout()->setSpacing( KDialog::spacingHint() );
+ resultToBox->tqlayout()->setMargin( KDialog::marginHint() );
- TQHBoxLayout * resultToBoxLayout = new TQHBoxLayout( resultToBox->layout() );
- resultToBoxLayout->setAlignment( TQt::AlignTop );
+ TQHBoxLayout * resultToBoxLayout = new TQHBoxLayout( resultToBox->tqlayout() );
+ resultToBoxLayout->tqsetAlignment( TQt::AlignTop );
TQLabel * destinationSheet=new TQLabel(resultToBox,"destinationSheet");
destinationSheet->setText("Destination Sheet:");
@@ -351,7 +351,7 @@ void SortDialog::init()
for (int i = r.left(); i <= right; ++i)
{
TQString guessName=m_pView->activeSheet()->guessColumnTitle(r,i);
- TQString colName=i18n(" (Column %1)").arg(Cell::columnName(i));
+ TQString colName=i18n(" (Column %1)").tqarg(Cell::columnName(i));
if (!guessName.isEmpty())
{
@@ -359,13 +359,13 @@ void SortDialog::init()
}
else
{
- m_listColumn += i18n("Column %1").arg(Cell::columnName(i));
+ m_listColumn += i18n("Column %1").tqarg(Cell::columnName(i));
if ( i == r.left() )
selectionMayHaveHeader=false;
}
}
- // m_listColumn += i18n("Column %1").arg(Cell::columnName(i));
+ // m_listColumn += i18n("Column %1").tqarg(Cell::columnName(i));
}
// Entire rows selected ?
else if ( util_isRowSelected(r) )
@@ -377,7 +377,7 @@ void SortDialog::init()
for (int i = r.top(); i <= bottom; ++i)
{
TQString guessName=m_pView->activeSheet()->guessRowTitle(r,i);
- TQString rowName=i18n(" (Row %1)").arg(i);
+ TQString rowName=i18n(" (Row %1)").tqarg(i);
if (!guessName.isEmpty())
{
@@ -385,7 +385,7 @@ void SortDialog::init()
}
else
{
- m_listRow += i18n("Row %1").arg(i);
+ m_listRow += i18n("Row %1").tqarg(i);
if ( i == r.top() )
selectionMayHaveHeader=false;
@@ -419,13 +419,13 @@ void SortDialog::init()
for (int i = r.left(); i <= right; ++i)
{
TQString guessName=m_pView->activeSheet()->guessColumnTitle(r,i);
- TQString colName=i18n(" (Column %1)").arg(Cell::columnName(i));
+ TQString colName=i18n(" (Column %1)").tqarg(Cell::columnName(i));
if (!guessName.isEmpty())
m_listColumn += guessName + colName;
else
{
- m_listColumn += i18n("Column %1").arg(Cell::columnName(i));
+ m_listColumn += i18n("Column %1").tqarg(Cell::columnName(i));
if (i == r.left())
selectionMayHaveHeader=false;
@@ -435,13 +435,13 @@ void SortDialog::init()
for (int i = r.top(); i <= bottom; ++i)
{
TQString guessName=m_pView->activeSheet()->guessRowTitle(r,i);
- TQString rowName=i18n(" (Row %1)").arg(i);
+ TQString rowName=i18n(" (Row %1)").tqarg(i);
if (!guessName.isEmpty())
m_listRow += guessName + rowName;
else
{
- m_listRow += i18n("Row %1").arg(i);
+ m_listRow += i18n("Row %1").tqarg(i);
if (i == r.top())
selectionMayHaveHeader=false;
diff --git a/kspread/dialogs/kspread_dlg_special.cc b/kspread/dialogs/kspread_dlg_special.cc
index 5c9f44a34..3f0c27e02 100644
--- a/kspread/dialogs/kspread_dlg_special.cc
+++ b/kspread/dialogs/kspread_dlg_special.cc
@@ -20,7 +20,7 @@
* Boston, MA 02110-1301, USA.
*/
-#include <layout.h>
+#include <tqlayout.h>
#include <tqbuttongroup.h>
#include <tqradiobutton.h>
@@ -46,7 +46,7 @@ SpecialDialog::SpecialDialog( View* parent, const char* name )
TQButtonGroup *grp = new TQButtonGroup( 1, Qt::Horizontal, i18n( "Paste What" ),page );
grp->setRadioButtonExclusive( TRUE );
- grp->layout();
+ grp->tqlayout();
lay1->addWidget(grp);
rb1 = new TQRadioButton( i18n("Everything"), grp );
rb2 = new TQRadioButton( i18n("Text"), grp );
@@ -59,7 +59,7 @@ SpecialDialog::SpecialDialog( View* parent, const char* name )
grp = new TQButtonGroup( 1, Qt::Horizontal, i18n("Operation"),page);
grp->setRadioButtonExclusive( TRUE );
- grp->layout();
+ grp->tqlayout();
lay1->addWidget(grp);
@@ -71,7 +71,7 @@ SpecialDialog::SpecialDialog( View* parent, const char* name )
rb5->setChecked(true);
// cb = new TQCheckBox(i18n("Transpose"),this);
- // cb->layout();
+ // cb->tqlayout();
// lay1->addWidget(cb);
connect( this, TQT_SIGNAL( okClicked() ), this, TQT_SLOT( slotOk() ) );
diff --git a/kspread/dialogs/kspread_dlg_styles.cc b/kspread/dialogs/kspread_dlg_styles.cc
index 071aae69d..32a5474a6 100644
--- a/kspread/dialogs/kspread_dlg_styles.cc
+++ b/kspread/dialogs/kspread_dlg_styles.cc
@@ -19,7 +19,7 @@
*/
#include <tqheader.h>
-#include <layout.h>
+#include <tqlayout.h>
#include <tqmap.h>
#include <kcombobox.h>
@@ -42,15 +42,15 @@ using namespace KSpread;
StyleWidget::StyleWidget( TQWidget * parent, const char * name, WFlags fl )
: TQWidget( parent, name, fl )
{
- TQVBoxLayout * layout = new TQVBoxLayout( this, 11, 6, "layout");
+ TQVBoxLayout * tqlayout = new TQVBoxLayout( this, 11, 6, "tqlayout");
m_styleList = new KListView( this, "m_styleList" );
m_styleList->addColumn( i18n( "Styles" ) );
m_styleList->setResizeMode( KListView::AllColumns );
- layout->addWidget( m_styleList );
+ tqlayout->addWidget( m_styleList );
m_displayBox = new KComboBox( FALSE, this, "m_displayBox" );
- layout->addWidget( m_displayBox );
+ tqlayout->addWidget( m_displayBox );
m_styleList->header()->setLabel( 0, i18n( "Styles" ) );
m_displayBox->clear();
@@ -59,7 +59,7 @@ StyleWidget::StyleWidget( TQWidget * parent, const char * name, WFlags fl )
m_displayBox->insertItem( i18n( "Custom Styles" ) );
m_displayBox->insertItem( i18n( "Hierarchical" ) );
connect( m_styleList, TQT_SIGNAL(doubleClicked ( TQListViewItem *)),this, TQT_SIGNAL( modifyStyle()));
- resize( TQSize(446, 384).expandedTo(minimumSizeHint()) );
+ resize( TQSize(446, 384).expandedTo(tqminimumSizeHint()) );
}
StyleWidget::~StyleWidget()
@@ -232,11 +232,11 @@ void StyleDlg::slotUser1()
s = m_styleManager->defaultStyle();
int i = 1;
- TQString newName( i18n( "style%1" ).arg( m_styleManager->count() + i ) );
+ TQString newName( i18n( "style%1" ).tqarg( m_styleManager->count() + i ) );
while ( m_styleManager->style( newName ) != 0 )
{
++i;
- newName = i18n( "style%1" ).arg( m_styleManager->count() + i );
+ newName = i18n( "style%1" ).tqarg( m_styleManager->count() + i );
}
CustomStyle * style = new CustomStyle( newName, s );
diff --git a/kspread/dialogs/kspread_dlg_subtotal.cc b/kspread/dialogs/kspread_dlg_subtotal.cc
index f88f3a7fd..1b899ebf5 100644
--- a/kspread/dialogs/kspread_dlg_subtotal.cc
+++ b/kspread/dialogs/kspread_dlg_subtotal.cc
@@ -243,7 +243,7 @@ void SubtotalDialog::fillColumnBoxes()
if ( text.length() > 0 )
{
- text = col.arg( Cell::columnName( i ) );
+ text = col.tqarg( Cell::columnName( i ) );
}
m_dialog->m_columnBox->insertItem( text );
diff --git a/kspread/dialogs/kspread_dlg_validity.cc b/kspread/dialogs/kspread_dlg_validity.cc
index 4a370246a..8f61c5d8b 100644
--- a/kspread/dialogs/kspread_dlg_validity.cc
+++ b/kspread/dialogs/kspread_dlg_validity.cc
@@ -28,7 +28,7 @@
#include "kspread_sheet.h"
#include "kspread_view.h"
-#include <layout.h>
+#include <tqlayout.h>
#include <tqbuttongroup.h>
#include <knumvalidator.h>
#include <kdebug.h>
@@ -38,7 +38,7 @@
#include <tqlineedit.h>
#include <tqpushbutton.h>
#include <tqlabel.h>
-#include <textedit.h>
+#include <tqtextedit.h>
#include <tqcheckbox.h>
using namespace KSpread;
@@ -54,9 +54,9 @@ DlgValidity::DlgValidity(View* parent,const char* name , const TQRect &_marker )
TQGroupBox* tmpTQButtonGroup;
tmpTQButtonGroup = new TQGroupBox( 0, Qt::Vertical, i18n("Validity Criteria"), page1, "ButtonGroup_1" );
- tmpTQButtonGroup->layout()->setSpacing(KDialog::spacingHint());
- tmpTQButtonGroup->layout()->setMargin(KDialog::marginHint());
- TQGridLayout *grid1 = new TQGridLayout(tmpTQButtonGroup->layout(),4,2);
+ tmpTQButtonGroup->tqlayout()->setSpacing(KDialog::spacingHint());
+ tmpTQButtonGroup->tqlayout()->setMargin(KDialog::marginHint());
+ TQGridLayout *grid1 = new TQGridLayout(tmpTQButtonGroup->tqlayout(),4,2);
TQLabel *tmpTQLabel = new TQLabel( tmpTQButtonGroup, "Label_1" );
tmpTQLabel->setText(i18n("Allow:" ));
@@ -148,9 +148,9 @@ DlgValidity::DlgValidity(View* parent,const char* name , const TQRect &_marker )
lay1 = new TQVBoxLayout( page2, KDialogBase::marginHint(), KDialogBase::spacingHint() );
tmpTQButtonGroup = new TQButtonGroup( 0, Qt::Vertical, i18n("Contents"), page2, "ButtonGroup_2" );
- tmpTQButtonGroup->layout()->setSpacing(KDialog::spacingHint());
- tmpTQButtonGroup->layout()->setMargin(KDialog::marginHint());
- TQGridLayout *grid2 = new TQGridLayout(tmpTQButtonGroup->layout(),5,2);
+ tmpTQButtonGroup->tqlayout()->setSpacing(KDialog::spacingHint());
+ tmpTQButtonGroup->tqlayout()->setMargin(KDialog::marginHint());
+ TQGridLayout *grid2 = new TQGridLayout(tmpTQButtonGroup->tqlayout(),5,2);
displayMessage = new TQCheckBox(i18n( "Show error message when invalid values are entered" ),tmpTQButtonGroup );
displayMessage->setChecked( true );
@@ -188,10 +188,10 @@ DlgValidity::DlgValidity(View* parent,const char* name , const TQRect &_marker )
lay1 = new TQVBoxLayout( page3, KDialogBase::marginHint(), KDialogBase::spacingHint() );
tmpTQButtonGroup = new TQButtonGroup( 0, Qt::Vertical, i18n("Contents"), page3, "ButtonGroup_2" );
- tmpTQButtonGroup->layout()->setSpacing(KDialog::spacingHint());
- tmpTQButtonGroup->layout()->setMargin(KDialog::marginHint());
+ tmpTQButtonGroup->tqlayout()->setSpacing(KDialog::spacingHint());
+ tmpTQButtonGroup->tqlayout()->setMargin(KDialog::marginHint());
- TQGridLayout *grid3 = new TQGridLayout(tmpTQButtonGroup->layout(),5,2);
+ TQGridLayout *grid3 = new TQGridLayout(tmpTQButtonGroup->tqlayout(),5,2);
displayHelp = new TQCheckBox(i18n( "Show input help when cell is selected" ),tmpTQButtonGroup );
displayMessage->setChecked( false );
@@ -367,8 +367,8 @@ void DlgValidity::changeIndexType(int _index)
}
break;
}
- if ( width() < sizeHint().width() )
- resize( sizeHint() );
+ if ( width() < tqsizeHint().width() )
+ resize( tqsizeHint() );
}
void DlgValidity::changeIndexCond(int _index)
diff --git a/kspread/dialogs/kspreadsubtotal.ui b/kspread/dialogs/kspreadsubtotal.ui
index 341d72a96..cb73b12dc 100644
--- a/kspread/dialogs/kspreadsubtotal.ui
+++ b/kspread/dialogs/kspreadsubtotal.ui
@@ -195,7 +195,7 @@ Fifth Floor, Boston, MA 02110-1301, USA.</comment>
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>0</width>
<height>152</height>
diff --git a/kspread/dialogs/link.cc b/kspread/dialogs/link.cc
index 58b275284..aba1a170c 100644
--- a/kspread/dialogs/link.cc
+++ b/kspread/dialogs/link.cc
@@ -27,7 +27,7 @@
#include <tqcombobox.h>
#include <tqframe.h>
#include <tqlabel.h>
-#include <layout.h>
+#include <tqlayout.h>
#include <kdesktopfile.h>
#include <kdialogbase.h>
@@ -105,7 +105,7 @@ LinkDialog::LinkDialog( TQWidget*, const char* )
fLayout->add( d->fileLink );
fLayout->add( new TQLabel( i18n("Recent file:" ), d->filePage ) );
TQComboBox* recentFile = new TQComboBox( d->filePage );
- recentFile->setSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Fixed );
+ recentFile->tqsetSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Fixed );
fLayout->add( recentFile );
fLayout->addItem( new TQSpacerItem( 0, 40, TQSizePolicy::Minimum, TQSizePolicy::MinimumExpanding ) );
connect( d->fileText, TQT_SIGNAL( textChanged( const TQString& ) ), this,
diff --git a/kspread/dialogs/position_cell_format.ui b/kspread/dialogs/position_cell_format.ui
index 5e4af84df..df2ff2113 100644
--- a/kspread/dialogs/position_cell_format.ui
+++ b/kspread/dialogs/position_cell_format.ui
@@ -55,7 +55,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout1</cstring>
+ <cstring>tqlayout1</cstring>
</property>
<vbox>
<property name="name">
@@ -271,7 +271,7 @@ When a merged cell is selected and when you uncheck this, then all cells come ba
</property>
<widget class="TQLayoutWidget" row="0" column="1">
<property name="name">
- <cstring>layout3</cstring>
+ <cstring>tqlayout3</cstring>
</property>
<grid>
<property name="name">
@@ -298,7 +298,7 @@ When a merged cell is selected and when you uncheck this, then all cells come ba
<property name="sizeType">
<enum>MinimumExpanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>10</width>
<height>20</height>
@@ -331,7 +331,7 @@ When a merged cell is selected and when you uncheck this, then all cells come ba
</widget>
<widget class="TQLayoutWidget" row="0" column="0">
<property name="name">
- <cstring>layout5</cstring>
+ <cstring>tqlayout5</cstring>
</property>
<grid>
<property name="name">
@@ -358,7 +358,7 @@ When a merged cell is selected and when you uncheck this, then all cells come ba
<property name="sizeType">
<enum>MinimumExpanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>16</width>
<height>20</height>
diff --git a/kspread/dialogs/protection_cell_format.ui b/kspread/dialogs/protection_cell_format.ui
index c9c3eb7af..0768d4f72 100644
--- a/kspread/dialogs/protection_cell_format.ui
+++ b/kspread/dialogs/protection_cell_format.ui
@@ -60,7 +60,7 @@ Note that you can print it even if the cell is protected</string>
</property>
<widget class="TQLayoutWidget" row="0" column="0">
<property name="name">
- <cstring>layout12</cstring>
+ <cstring>tqlayout12</cstring>
</property>
<vbox>
<property name="name">
@@ -79,7 +79,7 @@ Note that you can print it even if the cell is protected</string>
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout11</cstring>
+ <cstring>tqlayout11</cstring>
</property>
<hbox>
<property name="name">
@@ -95,7 +95,7 @@ Note that you can print it even if the cell is protected</string>
<property name="sizeType">
<enum>Fixed</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>30</width>
<height>21</height>
@@ -120,7 +120,7 @@ Note that you can print it even if the cell is protected</string>
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout10</cstring>
+ <cstring>tqlayout10</cstring>
</property>
<hbox>
<property name="name">
@@ -136,7 +136,7 @@ Note that you can print it even if the cell is protected</string>
<property name="sizeType">
<enum>Fixed</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>30</width>
<height>20</height>
diff --git a/kspread/dialogs/sheet_properties.cc b/kspread/dialogs/sheet_properties.cc
index 7cdd64493..69397687c 100644
--- a/kspread/dialogs/sheet_properties.cc
+++ b/kspread/dialogs/sheet_properties.cc
@@ -39,7 +39,7 @@ SheetPropertiesDialog::SheetPropertiesDialog( TQWidget* parent ):
TQVBox* mainWidget = makeVBoxMainWidget();
d = new SheetPropertiesBase( mainWidget );
TQWidget* spacer = new TQWidget( mainWidget );
- spacer->setSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Expanding );
+ spacer->tqsetSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Expanding );
enableButtonSeparator( true );
}
diff --git a/kspread/dialogs/sheet_properties_base.ui b/kspread/dialogs/sheet_properties_base.ui
index d2a24d6cd..0750b8a9a 100644
--- a/kspread/dialogs/sheet_properties_base.ui
+++ b/kspread/dialogs/sheet_properties_base.ui
@@ -47,7 +47,7 @@ Fifth Floor, Boston, MA 02110-1301, USA.</comment>
</property>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout5</cstring>
+ <cstring>tqlayout5</cstring>
</property>
<hbox>
<property name="name">
@@ -55,7 +55,7 @@ Fifth Floor, Boston, MA 02110-1301, USA.</comment>
</property>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout1</cstring>
+ <cstring>tqlayout1</cstring>
</property>
<hbox>
<property name="name">
@@ -99,7 +99,7 @@ Fifth Floor, Boston, MA 02110-1301, USA.</comment>
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>40</width>
<height>20</height>
@@ -118,7 +118,7 @@ Fifth Floor, Boston, MA 02110-1301, USA.</comment>
<property name="sizeType">
<enum>Fixed</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
@@ -127,7 +127,7 @@ Fifth Floor, Boston, MA 02110-1301, USA.</comment>
</spacer>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout4</cstring>
+ <cstring>tqlayout4</cstring>
</property>
<grid>
<property name="name">
diff --git a/kspread/digest.cc b/kspread/digest.cc
index 0d27375b2..ca45c35d6 100644
--- a/kspread/digest.cc
+++ b/kspread/digest.cc
@@ -831,7 +831,7 @@ void rtl_digest_destroySHA1 (rtlDigest Digest)
bool SHA1::getHash( TQString const & text, TQCString & hash )
{
rtlDigest aDigest = rtl_digest_createSHA1();
- rtlDigestError aError = rtl_digest_updateSHA1( aDigest, text.unicode(), text.length() * sizeof(TQChar) );
+ rtlDigestError aError = rtl_digest_updateSHA1( aDigest, text.tqunicode(), text.length() * sizeof(TQChar) );
if ( aError == rtl_Digest_E_None )
{
diff --git a/kspread/doc/PAINTING.html b/kspread/doc/PAINTING.html
index 1f2578f2d..d3c739a81 100644
--- a/kspread/doc/PAINTING.html
+++ b/kspread/doc/PAINTING.html
@@ -59,10 +59,10 @@ If it doesn't, two things can happen:</p>
slightly buggy.)
</ol>
-The layout code also takes into account if the cell has vertical text,
+The tqlayout code also takes into account if the cell has vertical text,
if it is angled, indented text, and so on.</p>
-<p>The result of the layout process is the setting of the following
+<p>The result of the tqlayout process is the setting of the following
variables in a cell:</p>
<table cellspacing="0" cellpadding="3" border="1">
@@ -100,7 +100,7 @@ variables in a cell:</p>
</pre>
</table>
-<p>After the layout process, paintCell() uses these
+<p>After the tqlayout process, paintCell() uses these
variables to position the text within the cell and also to paint "more
text" markers, etc.</p>
@@ -129,7 +129,7 @@ that is demanded can be handled in several different ways:</p>
<li>The content can be partially shown, i.e. cut.
<li>The content can overflow into neighbor cell(s). Which cells that
- are affected is dependent on alignment, if the neighbors are
+ are affected is dependent on tqalignment, if the neighbors are
empty, etc, etc. </ul>
<h3>Borders and overflow</h3>
diff --git a/kspread/formula.cc b/kspread/formula.cc
index fbcf8c0e5..1e42867ab 100644
--- a/kspread/formula.cc
+++ b/kspread/formula.cc
@@ -134,7 +134,7 @@ Token::Op KSpread::matchOperator( const TQString& text )
if( text.length() == 1 )
{
TQChar p = text[0];
- switch( p.unicode() )
+ switch( p.tqunicode() )
{
case '+': result = Token::Plus; break;
case '-': result = Token::Minus; break;
@@ -355,7 +355,7 @@ void TokenStack::ensureSpace()
// helper function: return true for valid identifier character
bool KSpread::isIdentifier( TQChar ch )
{
- return ( ch.unicode() == '_' ) || (ch.unicode() == '$' ) || ( ch.isLetter() );
+ return ( ch.tqunicode() == '_' ) || (ch.tqunicode() == '$' ) || ( ch.isLetter() );
}
@@ -527,7 +527,7 @@ Tokens Formula::scan( const TQString& expr, KLocale* locale ) const
}
// aposthrophe (') marks sheet name for 3-d cell, e.g 'Sales Q3'!A4, or a named range
- else if ( ch.unicode() == '\'' )
+ else if ( ch.tqunicode() == '\'' )
{
i++;
state = InSheetOrAreaName;
@@ -680,7 +680,7 @@ Tokens Formula::scan( const TQString& expr, KLocale* locale ) const
case InSheetOrAreaName:
// consume until '
- if ( ch.unicode() != '\'' )
+ if ( ch.tqunicode() != '\'' )
tokenText.append( ex[i++] );
else
@@ -1479,10 +1479,10 @@ TQString Formula::dump() const
compile( tokens );
}
- result = TQString("Expression: [%1]\n").arg( d->expression );
+ result = TQString("Expression: [%1]\n").tqarg( d->expression );
#if 0
Value value = eval();
- result.append( TQString("Result: %1\n").arg(
+ result.append( TQString("Result: %1\n").tqarg(
converter->asString(value).asString() ) );
#endif
@@ -1491,12 +1491,12 @@ TQString Formula::dump() const
{
TQString vtext;
Value val = d->constants[c];
- if( val.isString() ) vtext = TQString("[%1]").arg( val.asString() );
- else if( val.isNumber() ) vtext = TQString("%1").arg( val.asFloat() );
- else if( val.isBoolean() ) vtext = TQString("%1").arg( val.asBoolean() ? "True":"False");
+ if( val.isString() ) vtext = TQString("[%1]").tqarg( val.asString() );
+ else if( val.isNumber() ) vtext = TQString("%1").tqarg( val.asFloat() );
+ else if( val.isBoolean() ) vtext = TQString("%1").tqarg( val.asBoolean() ? "True":"False");
else if( val.isError() ) vtext = "error";
else vtext = "???";
- result += TQString(" #%1 = %2\n").arg(c).arg( vtext );
+ result += TQString(" #%1 = %2\n").tqarg(c).tqarg( vtext );
}
result.append("\n");
@@ -1506,9 +1506,9 @@ TQString Formula::dump() const
TQString ctext;
switch( d->codes[i].type )
{
- case Opcode::Load: ctext = TQString("Load #%1").arg( d->codes[i].index ); break;
- case Opcode::Ref: ctext = TQString("Ref #%1").arg( d->codes[i].index ); break;
- case Opcode::Function: ctext = TQString("Function (%1)").arg( d->codes[i].index ); break;
+ case Opcode::Load: ctext = TQString("Load #%1").tqarg( d->codes[i].index ); break;
+ case Opcode::Ref: ctext = TQString("Ref #%1").tqarg( d->codes[i].index ); break;
+ case Opcode::Function: ctext = TQString("Function (%1)").tqarg( d->codes[i].index ); break;
case Opcode::Add: ctext = "Add"; break;
case Opcode::Sub: ctext = "Sub"; break;
case Opcode::Mul: ctext = "Mul"; break;
diff --git a/kspread/kspread_brush.cc b/kspread/kspread_brush.cc
index f3c6953c6..3a66549bd 100644
--- a/kspread/kspread_brush.cc
+++ b/kspread/kspread_brush.cc
@@ -103,8 +103,8 @@ void KSpreadBrush::saveOasisFillStyle( KoGenStyle &styleObjectAuto, KoGenStyles&
if ( m_unbalanced )
{
- unbalancedx = TQString( "%1%" ).arg( m_xfactor / 4 + 50 );
- unbalancedy = TQString( "%1%" ).arg( m_yfactor / 4 + 50 );
+ unbalancedx = TQString( "%1%" ).tqarg( m_xfactor / 4 + 50 );
+ unbalancedy = TQString( "%1%" ).tqarg( m_yfactor / 4 + 50 );
}
gradientStyle.addAttribute( "draw:cx", unbalancedx );
gradientStyle.addAttribute( "draw:cy", unbalancedy );
diff --git a/kspread/kspread_brush.h b/kspread/kspread_brush.h
index 4a5679aae..ebb0c5f64 100644
--- a/kspread/kspread_brush.h
+++ b/kspread/kspread_brush.h
@@ -21,7 +21,7 @@
#ifndef KSPREADBRUSH_H
#define KSPREADBRUSH_H
-#include <brush.h>
+#include <tqbrush.h>
#include "kspread_global.h"
diff --git a/kspread/kspread_canvas.cc b/kspread/kspread_canvas.cc
index 08ab33e07..3f482e273 100644
--- a/kspread/kspread_canvas.cc
+++ b/kspread/kspread_canvas.cc
@@ -47,7 +47,7 @@
#include <tqapplication.h>
#include <tqbuffer.h>
-#include <clipboard.h>
+#include <tqclipboard.h>
#include <tqdrawutil.h>
#include <tqlabel.h>
#include <tqpoint.h>
@@ -547,7 +547,7 @@ void Canvas::validateSelection()
ypos = sheet->dblRowPos( moveY );
}
//d->validationInfo->setGeometry( 3, y + 3, len + 2, hei + 2 );
- d->validationInfo->setAlignment( TQt::AlignVCenter );
+ d->validationInfo->tqsetAlignment( TQt::AlignVCenter );
TQPainter painter;
painter.begin( this );
int len = 0;
@@ -1011,7 +1011,7 @@ void Canvas::mouseMoveEvent( TQMouseEvent * _ev )
(int) _ev->y() );
if ( ( obj = getObject( p, activeSheet() ) ) && obj->isSelected() )
{
- KoRect const bound = obj->geometry();
+ KoRect const bound = obj->tqgeometry();
TQRect zoomedBound = doc()->zoomRect( KoRect(bound.left(), bound.top(),
bound.width(),
bound.height() ) );
@@ -1056,7 +1056,7 @@ void Canvas::mouseMoveEvent( TQMouseEvent * _ev )
}
//Check to see if the mouse is over a highlight range size grip and if it is, change the cursor
- //shape to a resize arrow
+ //tqshape to a resize arrow
if (highlightRangeSizeGripAt(ev_PosX,ev_PosY))
{
if ( sheet->layoutDirection()==Sheet::RightToLeft )
@@ -1177,7 +1177,7 @@ void Canvas::mouseReleaseEvent( TQMouseEvent* /*_ev*/)
doc()->addCommand( cmd );
} else
{
- repaint();
+ tqrepaint();
}
d->m_isMoving = false;
break;
@@ -1253,13 +1253,13 @@ void Canvas::processLeftClickAnchor()
if ( KRun::isExecutableFile( d->anchor , type ) )
{
- //TQString question = i18n("Do you want to open this link to '%1'?\n").arg(d->anchor);
+ //TQString question = i18n("Do you want to open this link to '%1'?\n").tqarg(d->anchor);
//question += i18n("Note that opening a link to a local file may "
// "compromise your system's security.");
TQString question = i18n("This link points to the program or script '%1'.\n"
- "Malicious programs can harm your computer. Are you sure that you want to run this program?").arg(d->anchor);
+ "Malicious programs can harm your computer. Are you sure that you want to run this program?").tqarg(d->anchor);
// this will also start local programs, so adding a "don't warn again"
// checkbox will probably be too dangerous
int choice = KMessageBox::warningYesNo(this, question, i18n("Open Link?"));
@@ -1352,9 +1352,9 @@ void Canvas::mousePressEvent( TQMouseEvent * _ev )
d->m_resizeObject = obj;
- d->m_ratio = static_cast<double>( obj->geometry().width() ) /
- static_cast<double>( obj->geometry().height() );
- d->m_rectBeforeResize = obj->geometry();
+ d->m_ratio = static_cast<double>( obj->tqgeometry().width() ) /
+ static_cast<double>( obj->tqgeometry().height() );
+ d->m_rectBeforeResize = obj->tqgeometry();
}
KoPoint docPoint ( doc()->unzoomPoint( _ev->pos() ) );
@@ -1816,7 +1816,7 @@ void Canvas::dropEvent( TQDropEvent * _ev )
}
- b = _ev->encodedData( TextDrag::selectionMimeType() );
+ b = _ev->tqencodedData( TextDrag::selectionMimeType() );
sheet->paste( b, TQRect( col, row, 1, 1 ), makeUndo );
if ( _ev->source() == this )
@@ -2150,13 +2150,13 @@ void Canvas::processEscapeKey(TQKeyEvent * event)
case MT_RESIZE_RU:
case MT_RESIZE_RD:
{
- TQRect oldBoundingRect = doc()->zoomRect( d->m_resizeObject->geometry()/*getRepaintRect()*/);
+ TQRect oldBoundingRect = doc()->zoomRect( d->m_resizeObject->tqgeometry()/*getRepaintRect()*/);
d->m_resizeObject->setGeometry( d->m_rectBeforeResize );
oldBoundingRect.moveBy( (int)( -xOffset()*doc()->zoomedResolutionX() ) ,
(int)( -yOffset() * doc()->zoomedResolutionY()) );
activeSheet()->setRegionPaintDirty( oldBoundingRect );
- repaint( oldBoundingRect );
+ tqrepaint( oldBoundingRect );
repaintObject( d->m_resizeObject );
d->m_ratio = 0.0;
d->m_resizeObject = 0;
@@ -3290,7 +3290,7 @@ KSpread::EmbeddedObject *Canvas::getObject( const TQPoint &pos, Sheet *_sheet )
{
if ( itObject.current()->sheet() == _sheet )
{
- KoRect const bound = ( itObject.current() )->geometry();
+ KoRect const bound = ( itObject.current() )->tqgeometry();
TQRect zoomedBound = doc()->zoomRect( KoRect(bound.left(), bound.top(),
bound.width(),
bound.height() ) );
@@ -3429,7 +3429,7 @@ void Canvas::resizeObject( ModifyType _modType, const KoPoint & point, bool keep
{
EmbeddedObject *obj = d->m_resizeObject;
- KoRect objRect = obj->geometry();
+ KoRect objRect = obj->tqgeometry();
objRect.moveBy( -xOffset(), -yOffset() );
TQRect oldBoundingRect( doc()->zoomRect( objRect ) );
@@ -3440,22 +3440,22 @@ void Canvas::resizeObject( ModifyType _modType, const KoPoint & point, bool keep
if ( _modType == MT_RESIZE_UP || _modType == MT_RESIZE_LU || _modType == MT_RESIZE_RU )
{
top = true;
-// snapStatus |= KoGuides::SNAP_HORIZ;
+// snaptqStatus |= KoGuides::SNAP_HORIZ;
}
if ( _modType == MT_RESIZE_DN || _modType == MT_RESIZE_LD || _modType == MT_RESIZE_RD )
{
bottom = true;
-// snapStatus |= KoGuides::SNAP_HORIZ;
+// snaptqStatus |= KoGuides::SNAP_HORIZ;
}
if ( _modType == MT_RESIZE_LF || _modType == MT_RESIZE_LU || _modType == MT_RESIZE_LD )
{
left = true;
-// snapStatus |= KoGuides::SNAP_VERT;
+// snaptqStatus |= KoGuides::SNAP_VERT;
}
if ( _modType == MT_RESIZE_RT || _modType == MT_RESIZE_RU || _modType == MT_RESIZE_RD )
{
right = true;
-// snapStatus |= KoGuides::SNAP_VERT;
+// snaptqStatus |= KoGuides::SNAP_VERT;
}
double newLeft = objRect.left();
@@ -3572,34 +3572,34 @@ void Canvas::resizeObject( ModifyType _modType, const KoPoint & point, bool keep
// {
// sp.setY( rect.bottom() );
// }
-// m_gl.repaintSnapping( sp, snapStatus );
+// m_gl.repaintSnapping( sp, snaptqStatus );
// }
- repaint( oldBoundingRect );
+ tqrepaint( oldBoundingRect );
repaintObject( obj );
emit objectSizeChanged();
}
}
-void Canvas::finishResizeObject( const TQString &/*name*/, bool /*layout*/ )
+void Canvas::finishResizeObject( const TQString &/*name*/, bool /*tqlayout*/ )
{
if ( d->m_resizeObject )
{
- KoPoint move = KoPoint( d->m_resizeObject->geometry().x() - d->m_rectBeforeResize.x(),
- d->m_resizeObject->geometry().y() - d->m_rectBeforeResize.y() );
- KoSize size = KoSize( d->m_resizeObject->geometry().width() - d->m_rectBeforeResize.width(),
- d->m_resizeObject->geometry().height() - d->m_rectBeforeResize.height() );
+ KoPoint move = KoPoint( d->m_resizeObject->tqgeometry().x() - d->m_rectBeforeResize.x(),
+ d->m_resizeObject->tqgeometry().y() - d->m_rectBeforeResize.y() );
+ KoSize size = KoSize( d->m_resizeObject->tqgeometry().width() - d->m_rectBeforeResize.width(),
+ d->m_resizeObject->tqgeometry().height() - d->m_rectBeforeResize.height() );
- if ( ( d->m_resizeObject->geometry() ) != d->m_rectBeforeResize )
+ if ( ( d->m_resizeObject->tqgeometry() ) != d->m_rectBeforeResize )
{
ChangeObjectGeometryCommand *resizeCmd = new ChangeObjectGeometryCommand( d->m_resizeObject, move, size );
// the command is not executed as the object is allready resized.
doc()->addCommand( resizeCmd );
}
-// if ( layout )
-// doc()->layout( m_resizeObject );
+// if ( tqlayout )
+// doc()->tqlayout( m_resizeObject );
d->m_ratio = 0.0;
d->m_isResizing = false;
@@ -3669,7 +3669,7 @@ void Canvas::deleteEditor (bool saveChanges, bool array)
TQString t = d->cellEditor->text();
// Delete the cell editor first and after that update the document.
- // That means we get a synchronous repaint after the cell editor
+ // That means we get a synchronous tqrepaint after the cell editor
// widget is gone. Otherwise we may get painting errors.
delete d->cellEditor;
d->cellEditor = 0;
@@ -3775,7 +3775,7 @@ bool Canvas::createEditor( EditorType ed, bool addFocus, bool captureArrowKeys )
TQColor color = cell->format()->textColor( markerColumn(), markerRow() );
if ( !color.isValid() )
- color = TQApplication::palette().active().text();
+ color = TQApplication::tqpalette().active().text();
g.setColor( TQColorGroup::Text, color);
color = cell->bgColor( markerColumn(), markerRow() );
@@ -3819,8 +3819,8 @@ bool Canvas::createEditor( EditorType ed, bool addFocus, bool captureArrowKeys )
void Canvas::repaintObject( EmbeddedObject *obj )
{
- //Calculate where the object appears on the canvas widget and then repaint that part of the widget
- TQRect canvasRelativeGeometry = doc()->zoomRect( obj->geometry() );
+ //Calculate where the object appears on the canvas widget and then tqrepaint that part of the widget
+ TQRect canvasRelativeGeometry = doc()->zoomRect( obj->tqgeometry() );
canvasRelativeGeometry.moveBy( (int)( -xOffset()*doc()->zoomedResolutionX() ) ,
(int)( -yOffset() * doc()->zoomedResolutionY()) );
@@ -3828,17 +3828,17 @@ void Canvas::repaintObject( EmbeddedObject *obj )
/* if ( !obj->isSelected() )
{
- KoRect g = obj->geometry();
+ KoRect g = obj->tqgeometry();
g.moveBy( -xOffset(), -yOffset() );
- TQRect geometry( doc()->zoomRect( g ) );
+ TQRect tqgeometry( doc()->zoomRect( g ) );
- update( geometry );
+ update( tqgeometry );
}
else
{
TQPainter p(this);
p.translate( -xOffset() * doc()->zoomedResolutionX() , -yOffset() * doc()->zoomedResolutionY() );
- obj->draw(&p); //this goes faster than calling repaint
+ obj->draw(&p); //this goes faster than calling tqrepaint
p.end();
}*/
}
@@ -3888,7 +3888,7 @@ void Canvas::copyOasisObjects()
for( ; itObject.current(); ++itObject )
{
if ( itObject.current()->isSelected() )
- p.drawPixmap( itObject.current()->geometry().toTQRect().left() - r.left(), itObject.current()->geometry().toTQRect().top() - r.top(), itObject.current()->toPixmap( 1.0 , 1.0 ) );
+ p.drawPixmap( itObject.current()->tqgeometry().toTQRect().left() - r.left(), itObject.current()->tqgeometry().toTQRect().top() - r.top(), itObject.current()->toPixmap( 1.0 , 1.0 ) );
}
p.end();
if (!pixmap.isNull())
@@ -3899,7 +3899,7 @@ void Canvas::copyOasisObjects()
}
TQDragObject *dragObject = multiDrag;
- TQApplication::clipboard()->setData( dragObject, TQClipboard::Clipboard );
+ TQApplication::tqclipboard()->setData( dragObject, TQClipboard::Clipboard );
}
void Canvas::closeEditor()
@@ -4064,7 +4064,7 @@ void Canvas::paintUpdates()
}
else
{
- matrix = painter.worldMatrix();
+ matrix = painter.tqworldMatrix();
}
@@ -4109,7 +4109,7 @@ void Canvas::paintUpdates()
{
cell = sheet->cellAt( x, y );
- // recalc and relayout only for non default cells
+ // recalc and retqlayout only for non default cells
if (!cell->isDefault())
{
if (cell->calcDirtyFlag()) cell->calc();
@@ -4202,7 +4202,7 @@ void Canvas::paintUpdates()
paintHighlightedRanges(painter, unzoomedRect);
paintNormalMarker(painter, unzoomedRect);
- //restore clip region with children area
+ //restore clip region with tqchildren area
painter.restore();
//painter.setClipRegion( rgnComplete );
}
@@ -4223,7 +4223,7 @@ void Canvas::clipoutChildren( TQPainter& painter ) const
{
if ( ( itObject.current() )->sheet() == activeSheet() )
{
- TQRect childGeometry = doc()->zoomRect( itObject.current()->geometry());
+ TQRect childGeometry = doc()->zoomRect( itObject.current()->tqgeometry());
//The clipping region is given in device coordinates
//so subtract the current offset (scroll position) of the canvas
@@ -4232,7 +4232,7 @@ void Canvas::clipoutChildren( TQPainter& painter ) const
if (painter.window().intersects(childGeometry))
rgn -= childGeometry;
- //painter.fillRect( doc()->zoomRect( itObject.current()->geometry() ), TQColor("red" ) );
+ //painter.fillRect( doc()->zoomRect( itObject.current()->tqgeometry() ), TQColor("red" ) );
}
}
@@ -4263,11 +4263,11 @@ void Canvas::paintChildren( TQPainter& painter, TQWMatrix& /*matrix*/ )
for( ; itObject.current(); ++itObject )
{
- TQRect const zoomedObjectGeometry = doc()->zoomRect( itObject.current()->geometry() );
+ TQRect const zoomedObjectGeometry = doc()->zoomRect( itObject.current()->tqgeometry() );
if ( ( itObject.current() )->sheet() == activeSheet() &&
zoomedWindowGeometry.intersects( zoomedObjectGeometry ) )
{
- //To prevent unnecessary redrawing of the embedded object, we only repaint
+ //To prevent unnecessary redrawing of the embedded object, we only tqrepaint
//if one or more of the cells underneath the object has been marked as 'dirty'.
TQRect canvasRelativeGeometry = zoomedObjectGeometry;
@@ -4656,7 +4656,7 @@ VBorder::~VBorder()
delete m_scrollTimer;
}
-TQSize VBorder::sizeHint() const
+TQSize VBorder::tqsizeHint() const
{
return TQSize( 40, 10 );
}
@@ -5036,9 +5036,9 @@ void VBorder::paintSizeIndicator( int mouseY, bool firstTime )
TQString tmpSize;
if ( m_iResizePos != y )
- tmpSize = i18n("Height: %1 %2").arg( KoUnit::toUserValue( m_pCanvas->doc()->unzoomItY( m_iResizePos - y ),
+ tmpSize = i18n("Height: %1 %2").tqarg( KoUnit::toUserValue( m_pCanvas->doc()->unzoomItY( m_iResizePos - y ),
m_pView->doc()->unit() ) )
- .arg( m_pView->doc()->unitName() );
+ .tqarg( m_pView->doc()->unitName() );
else
tmpSize = i18n( "Hide Row" );
@@ -5057,7 +5057,7 @@ void VBorder::paintSizeIndicator( int mouseY, bool firstTime )
else
m_lSize->setGeometry( 3, y + 3, len + 2,hei + 2 );
- m_lSize->setAlignment( TQt::AlignVCenter );
+ m_lSize->tqsetAlignment( TQt::AlignVCenter );
m_lSize->setText( tmpSize );
m_lSize->setPalette( TQToolTip::palette() );
m_lSize->show();
@@ -5095,7 +5095,7 @@ void VBorder::paintEvent( TQPaintEvent* _ev )
TQColor highlightColor = View::highlightColor();
TQPen pen( TQt::black, 1 );
painter.setPen( pen );
- // painter.setBackgroundColor( colorGroup().base() );
+ // painter.setBackgroundColor( tqcolorGroup().base() );
// painter.eraseRect( _ev->rect() );
@@ -5146,7 +5146,7 @@ void VBorder::paintEvent( TQPaintEvent* _ev )
}
else
{
- TQColor c = colorGroup().background();
+ TQColor c = tqcolorGroup().background();
TQBrush fill( c );
qDrawPlainRect ( &painter, 0, zoomedYPos, width, height+1, c.dark(150),
1, &fill );
@@ -5156,10 +5156,10 @@ void VBorder::paintEvent( TQPaintEvent* _ev )
// Reset painter
painter.setFont( normalFont );
- painter.setPen( colorGroup().text() );
+ painter.setPen( tqcolorGroup().text() );
if ( selected )
- painter.setPen( colorGroup().highlightedText() );
+ painter.setPen( tqcolorGroup().highlightedText() );
else if ( highlighted )
painter.setFont( boldFont );
@@ -5212,7 +5212,7 @@ HBorder::~HBorder()
delete m_scrollTimer;
}
-TQSize HBorder::sizeHint() const
+TQSize HBorder::tqsizeHint() const
{
return TQSize( 40, 10 );
}
@@ -5738,9 +5738,9 @@ void HBorder::paintSizeIndicator( int mouseX, bool firstTime )
TQString tmpSize;
if ( m_iResizePos != x )
tmpSize = i18n("Width: %1 %2")
- .arg( KGlobal::locale()->formatNumber( KoUnit::toUserValue( m_pCanvas->doc()->unzoomItX( (sheet->layoutDirection()==Sheet::RightToLeft) ? x - m_iResizePos : m_iResizePos - x ),
+ .tqarg( KGlobal::locale()->formatNumber( KoUnit::toUserValue( m_pCanvas->doc()->unzoomItX( (sheet->layoutDirection()==Sheet::RightToLeft) ? x - m_iResizePos : m_iResizePos - x ),
m_pView->doc()->unit() )))
- .arg( m_pView->doc()->unitName() );
+ .tqarg( m_pView->doc()->unitName() );
else
tmpSize = i18n( "Hide Column" );
@@ -5758,7 +5758,7 @@ void HBorder::paintSizeIndicator( int mouseX, bool firstTime )
else
m_lSize->setGeometry( x + 3, 3, len + 2, hei + 2 );
- m_lSize->setAlignment( TQt::AlignVCenter );
+ m_lSize->tqsetAlignment( TQt::AlignVCenter );
m_lSize->setText( tmpSize );
m_lSize->setPalette( TQToolTip::palette() );
m_lSize->show();
@@ -5866,7 +5866,7 @@ void HBorder::paintEvent( TQPaintEvent* _ev )
}
else
{
- TQColor c = colorGroup().background();
+ TQColor c = tqcolorGroup().background();
TQBrush fill( c );
qDrawPlainRect ( &painter, zoomedXPos, 0, width+1, height, c.dark(150),
1, &fill );
@@ -5874,10 +5874,10 @@ void HBorder::paintEvent( TQPaintEvent* _ev )
// Reset painter
painter.setFont( normalFont );
- painter.setPen( colorGroup().text() );
+ painter.setPen( tqcolorGroup().text() );
if ( selected )
- painter.setPen( colorGroup().highlightedText() );
+ painter.setPen( tqcolorGroup().highlightedText() );
else if ( highlighted )
painter.setFont( boldFont );
if ( !m_pView->activeSheet()->getShowColumnNumber() )
@@ -5929,7 +5929,7 @@ void HBorder::paintEvent( TQPaintEvent* _ev )
}
else
{
- TQColor c = colorGroup().background();
+ TQColor c = tqcolorGroup().background();
TQBrush fill( c );
qDrawPlainRect ( &painter, zoomedXPos, 0, width+1, height, c.dark(150),
1, &fill );
@@ -5937,10 +5937,10 @@ void HBorder::paintEvent( TQPaintEvent* _ev )
// Reset painter
painter.setFont( normalFont );
- painter.setPen( colorGroup().text() );
+ painter.setPen( tqcolorGroup().text() );
if ( selected )
- painter.setPen( colorGroup().highlightedText() );
+ painter.setPen( tqcolorGroup().highlightedText() );
else if ( highlighted )
painter.setFont( boldFont );
if ( !m_pView->activeSheet()->getShowColumnNumber() )
@@ -5991,7 +5991,7 @@ ToolTip::ToolTip( Canvas* canvas )
// this is a hack of course, because it's not available from TQToolTip
TQLabel *tip_findLabel()
{
- TQWidgetList *list = TQApplication::allWidgets();
+ TQWidgetList *list = TQApplication::tqallWidgets();
TQWidgetListIt it( *list );
TQWidget * w;
while ( (w=it.current()) != 0 )
diff --git a/kspread/kspread_canvas.h b/kspread/kspread_canvas.h
index ea7e3dd17..f5aa67469 100644
--- a/kspread/kspread_canvas.h
+++ b/kspread/kspread_canvas.h
@@ -284,7 +284,7 @@ public:
*/
void closeEditor();
- // Created by the view since it's layout is managed there,
+ // Created by the view since it's tqlayout is managed there,
// but is in fact a sibling of the canvas, which needs to know about it.
void setEditWidget( KSpread::EditWidget * ew );
@@ -326,7 +326,7 @@ public:
/// resize the m_resizeObject
void resizeObject( ModifyType _modType, const KoPoint & point, bool keepRatio );
/// create KPrResizeCmd
- void finishResizeObject( const TQString &name, bool layout = true );
+ void finishResizeObject( const TQString &name, bool tqlayout = true );
/**
* @brief Display object above the other objects in editiong mode
@@ -444,7 +444,7 @@ private:
TQRect cellsInArea( const TQRect area ) const;
/**
- * Paints the children
+ * Paints the tqchildren
*/
void paintChildren( TQPainter& painter, TQWMatrix& matrix );
@@ -586,7 +586,7 @@ public:
void updateColumns( int from, int to );
- TQSize sizeHint() const;
+ TQSize tqsizeHint() const;
private slots:
void doAutoScroll();
@@ -672,7 +672,7 @@ public:
void equalizeRow( double resize );
void updateRows( int from, int to );
- TQSize sizeHint() const;
+ TQSize tqsizeHint() const;
private slots:
void doAutoScroll();
diff --git a/kspread/kspread_cell.cc b/kspread/kspread_cell.cc
index 0c5de5e6e..fdcf38be6 100644
--- a/kspread/kspread_cell.cc
+++ b/kspread/kspread_cell.cc
@@ -486,7 +486,7 @@ void Cell::setValue( const Value& v )
clearAllErrors();
//If the value has not changed then we don't need to do anything
- //(ie. no need to relayout, update dependant cells etc.),
+ //(ie. no need to retqlayout, update dependant cells etc.),
//unless this cell contains a formula, in which case its dependancies might have changed
//even though the value has not. For example, if this cell was previously empty (and its value is
//therefore empty) and a new dependency upon an empty cell has been added. The new value would still
@@ -697,7 +697,7 @@ void Cell::mergeCells( int _col, int _row, int _x, int _y )
d->extra()->mergedYCells = 0;
}
- // Refresh the layout
+ // Refresh the tqlayout
setFlag( Flag_LayoutDirty );
return;
}
@@ -717,7 +717,7 @@ void Cell::mergeCells( int _col, int _row, int _x, int _y )
}
}
- // Refresh the layout
+ // Refresh the tqlayout
setFlag( Flag_LayoutDirty );
}
@@ -1049,20 +1049,20 @@ TQString Cell::encodeFormula( bool _era, int _col, int _row ) const
int col = 0;
col = util_decodeColumnLabelText( buffer );
if ( fix1 )
- erg += TQString( "$%1" ).arg( col );
+ erg += TQString( "$%1" ).tqarg( col );
else
if (_era)
- erg += TQChar(0xA7) + TQString( "%1" ).arg( col );
+ erg += TQChar(0xA7) + TQString( "%1" ).tqarg( col );
else
- erg += TQString( "#%1" ).arg( col - _col );
+ erg += TQString( "#%1" ).tqarg( col - _col );
if ( fix2 )
- erg += TQString( "$%1#").arg( row );
+ erg += TQString( "$%1#").tqarg( row );
else
if (_era)
- erg += TQChar(0xA7) + TQString( "%1#" ).arg( row );
+ erg += TQChar(0xA7) + TQString( "%1#" ).tqarg( row );
else
- erg += TQString( "#%1#" ).arg( row - _row );
+ erg += TQString( "#%1#" ).tqarg( row - _row );
}
}
else
@@ -1204,7 +1204,7 @@ void Cell::freeAllObscuredCells()
// Layout
-// Recalculate the entire layout. This includes the following members:
+// Recalculate the entire tqlayout. This includes the following members:
//
// d->textX, d->textY
// d->textWidth, d->textHeight
@@ -1222,11 +1222,11 @@ void Cell::makeLayout( TQPainter &_painter, int _col, int _row )
{
// Are _col and _row really needed ?
//
- // Yes they are: they are useful if this is the default layout, in
+ // Yes they are: they are useful if this is the default tqlayout, in
// which case d->row and d->column are 0 and 0, but _col and _row
// are the real coordinates of the cell.
- // There is no need to remake the layout if it hasn't changed.
+ // There is no need to remake the tqlayout if it hasn't changed.
if ( !testFlag( Flag_LayoutDirty ) )
return;
@@ -1244,7 +1244,7 @@ void Cell::makeLayout( TQPainter &_painter, int _col, int _row )
d->extra()->mergedXCells, d->extra()->mergedYCells );
// If the column for this cell is hidden or the row is too low,
- // there is no use in remaking the layout.
+ // there is no use in remaking the tqlayout.
ColumnFormat *cl1 = format()->sheet()->columnFormat( _col );
RowFormat *rl1 = format()->sheet()->rowFormat( _row );
if ( cl1->isHide()
@@ -1597,11 +1597,11 @@ void Cell::setOutputText()
return;
}
- // If nothing has changed, we don't need to remake the text layout.
+ // If nothing has changed, we don't need to remake the text tqlayout.
if ( !testFlag(Flag_TextFormatDirty) )
return;
- // We don't want to remake the layout unnecessarily.
+ // We don't want to remake the tqlayout unnecessarily.
clearFlag( Flag_TextFormatDirty );
// Display a formula if warranted. If not, display the value instead;
@@ -1687,7 +1687,7 @@ void Cell::offsetAlign( int _col, int _row )
const double effTop = BORDER_SPACE + 0.5 * effTopBorderPen( _col, _row ).width();
const double effBottom = h - BORDER_SPACE - 0.5 * effBottomBorderPen( _col, _row ).width();
- // Calculate d->textY based on the vertical alignment and a few
+ // Calculate d->textY based on the vertical tqalignment and a few
// other inputs.
switch( ay )
{
@@ -1846,7 +1846,7 @@ void Cell::offsetAlign( int _col, int _row )
a = Format::Left;
}
- // Calculate d->textX based on alignment and textwidth.
+ // Calculate d->textX based on tqalignment and textwidth.
switch ( a ) {
case Format::Left:
d->textX = 0.5 * effLeftBorderPen( _col, _row ).width() + BORDER_SPACE;
@@ -2052,7 +2052,7 @@ bool Cell::makeFormula()
if (format()->sheet()->doc()->getShowMessageError())
{
TQString tmp(i18n("Error in cell %1\n\n"));
- tmp = tmp.arg( fullName() );
+ tmp = tmp.tqarg( fullName() );
KMessageBox::error( (TQWidget*)0L, tmp);
}
setFlag(Flag_ParseError);
@@ -2193,7 +2193,7 @@ void Cell::paintCell( const KoRect &rect, TQPainter & painter,
double width = width0;
double height = height0;
- // Handle right-to-left layout.
+ // Handle right-to-left tqlayout.
// In an RTL sheet the cells have to be painted at their opposite horizontal
// location on the canvas, meaning that column A will be the rightmost column
// on screen, column B will be to the left of it and so on. Here we change
@@ -2253,14 +2253,14 @@ void Cell::paintCell( const KoRect &rect, TQPainter & painter,
selected = selected && !( markerArea.contains( cellRef ) );
// Don't draw any selection at all when printing.
- if ( painter.device()->isExtDev() || !drawCursor )
+ if ( painter.tqdevice()->isExtDev() || !drawCursor )
selected = false;
}
- // Need to make a new layout ?
+ // Need to make a new tqlayout ?
//
// FIXME: We have already used (at least) extraWidth/Height above,
- // and now we are recalculating the layout. This has to be
+ // and now we are recalculating the tqlayout. This has to be
// moved up above all uses.
//
// FIXME: This needs to be taken out eventually - it is done in
@@ -2299,7 +2299,7 @@ void Cell::paintCell( const KoRect &rect, TQPainter & painter,
// 2. Paint the default borders if we are on screen or if we are printing
// and the checkbox to do this is checked.
- if ( painter.device()->devType() != TQInternal::Printer
+ if ( painter.tqdevice()->devType() != TQInternal::Printer
|| format()->sheet()->print()->printGrid())
paintDefaultBorders( painter, rect, cellRect, cellRef,
paintBorderRight, paintBorderBottom,
@@ -2336,7 +2336,7 @@ void Cell::paintCell( const KoRect &rect, TQPainter & painter,
// If we print pages, then we disable clipping, otherwise borders are
// cut in the middle at the page borders.
- if ( painter.device()->isExtDev() )
+ if ( painter.tqdevice()->isExtDev() )
painter.setClipping( false );
// Paint the borders if this cell is not part of another merged cell.
@@ -2350,7 +2350,7 @@ void Cell::paintCell( const KoRect &rect, TQPainter & painter,
}
// Turn clipping back on.
- if ( painter.device()->isExtDev() )
+ if ( painter.tqdevice()->isExtDev() )
painter.setClipping( true );
// 5. Paint diagonal lines and page borders.
@@ -2364,12 +2364,12 @@ void Cell::paintCell( const KoRect &rect, TQPainter & painter,
if ( !isObscured() ) {
// 6a. Paint possible comment indicator.
- if ( !painter.device()->isExtDev()
+ if ( !painter.tqdevice()->isExtDev()
|| format()->sheet()->print()->printCommentIndicator() )
paintCommentIndicator( painter, cellRect, cellRef, backgroundColor );
// 6b. Paint possible formula indicator.
- if ( !painter.device()->isExtDev()
+ if ( !painter.tqdevice()->isExtDev()
|| format()->sheet()->print()->printFormulaIndicator() )
paintFormulaIndicator( painter, cellRect, backgroundColor );
@@ -2389,7 +2389,7 @@ void Cell::paintCell( const KoRect &rect, TQPainter & painter,
// b) something indicates that the text should not be painted
// c) the sheet is protected and the cell is hidden.
if ( !d->strOutText.isEmpty()
- && ( !painter.device()->isExtDev()
+ && ( !painter.tqdevice()->isExtDev()
|| !format()->getDontprintText( cellRef.x(), cellRef.y() ) )
&& !( format()->sheet()->isProtected()
&& format()->isHideAll( cellRef.x(), cellRef.y() ) ) )
@@ -2402,7 +2402,7 @@ void Cell::paintCell( const KoRect &rect, TQPainter & painter,
// cells, then paint the obscuring cell(s). Otherwise don't do
// anything so that we don't cause an infinite loop.
if ( isObscured() && paintingObscured == 0 &&
- !( sheetDir == Sheet::RightToLeft && painter.device()->isExtDev() ) )
+ !( sheetDir == Sheet::RightToLeft && painter.tqdevice()->isExtDev() ) )
{
//kdDebug(36001) << "painting cells that obscure " << name() << endl;
@@ -2498,7 +2498,7 @@ void Cell::paintCell( const KoRect &rect, TQPainter & painter,
*/
if ( d->style == Cell::ST_Button ) {
TQBrush fill( TQt::lightGray );
- TQApplication::style().drawControl( TQStyle::CE_PushButton, &_painter, this,
+ TQApplication::style().tqdrawControl( TQStyle::CE_PushButton, &_painter, this,
TQRect( _tx + 1, _ty + 1, w2 - 1, h2 - 1 ),
defaultColorGroup ); //, selected, &fill );
}
@@ -2686,7 +2686,7 @@ void Cell::paintBackground( TQPainter& painter, const KoRect &cellRect,
const TQPoint &cellRef, bool selected,
TQColor &backgroundColor )
{
- TQColorGroup defaultColorGroup = TQApplication::palette().active();
+ TQColorGroup defaultColorGroup = TQApplication::tqpalette().active();
TQRect zoomedCellRect = sheet()->doc()->zoomRect( cellRect );
// If this is not the KS_rowMax and/or KS_colMax, then we reduce
@@ -2723,7 +2723,7 @@ void Cell::paintBackground( TQPainter& painter, const KoRect &cellRect,
TQColor bg( backgroundColor );
// Handle printers separately.
- if ( !painter.device()->isExtDev() ) {
+ if ( !painter.tqdevice()->isExtDev() ) {
if ( bg.isValid() )
painter.setBackgroundColor( bg );
else
@@ -2742,7 +2742,7 @@ void Cell::paintBackground( TQPainter& painter, const KoRect &cellRect,
}
// Erase the background of the cell.
- if ( !painter.device()->isExtDev() )
+ if ( !painter.tqdevice()->isExtDev() )
painter.eraseRect( zoomedCellRect );
// Get a background brush
@@ -2791,7 +2791,7 @@ void Cell::paintDefaultBorders( TQPainter& painter, const KoRect &rect,
Doc* doc = sheet()->doc();
Sheet::LayoutDirection sheetDir = format()->sheet()->layoutDirection();
- bool paintingToExternalDevice = painter.device()->isExtDev();
+ bool paintingToExternalDevice = painter.tqdevice()->isExtDev();
// Each cell is responsible for drawing it's top and left portions
// of the "default" grid. --Or not drawing it if it shouldn't be
@@ -2948,7 +2948,7 @@ void Cell::paintDefaultBorders( TQPainter& painter, const KoRect &rect,
// If we are on paper printout, we limit the length of the lines.
// On paper, we always have full cells, on screen not.
- if ( painter.device()->isExtDev() ) {
+ if ( painter.tqdevice()->isExtDev() ) {
if ( sheetDir == Sheet::RightToLeft )
painter.drawLine( doc->zoomItX( TQMAX( rect.left(), cellRect.x() ) ),
doc->zoomItY( TQMAX( rect.top(), cellRect.y() + dt ) ),
@@ -2995,7 +2995,7 @@ void Cell::paintDefaultBorders( TQPainter& painter, const KoRect &rect,
// If we are on paper printout, we limit the length of the lines.
// On paper, we always have full cells, on screen not.
- if ( painter.device()->isExtDev() ) {
+ if ( painter.tqdevice()->isExtDev() ) {
painter.drawLine( doc->zoomItX( TQMAX( rect.left(), cellRect.x() + dl ) ),
doc->zoomItY( TQMAX( rect.top(), cellRect.bottom() ) ),
doc->zoomItX( TQMIN( rect.right(), cellRect.right() - dr ) ),
@@ -3026,7 +3026,7 @@ void Cell::paintCommentIndicator( TQPainter& painter,
&& cellRect.width() > 10.0
&& cellRect.height() > 10.0
&& ( sheet()->print()->printCommentIndicator()
- || ( !painter.device()->isExtDev() && sheet()->getShowCommentIndicator() ) ) ) {
+ || ( !painter.tqdevice()->isExtDev() && sheet()->getShowCommentIndicator() ) ) ) {
TQColor penColor = TQt::red;
// If background has high red part, switch to blue.
@@ -3123,7 +3123,7 @@ void Cell::paintMoreTextIndicator( TQPainter& painter,
// Show a red triangle when it's not possible to write all text in cell.
// Don't print the red triangle if we're printing.
if( testFlag( Flag_CellTooShortX ) &&
- !painter.device()->isExtDev() &&
+ !painter.tqdevice()->isExtDev() &&
cellRect.height() > 4.0 &&
cellRect.width() > 4.0 )
{
@@ -3175,15 +3175,15 @@ void Cell::paintText( TQPainter& painter,
ColumnFormat *colFormat = format()->sheet()->columnFormat( cellRef.x() );
- TQColorGroup defaultColorGroup = TQApplication::palette().active();
+ TQColorGroup defaultColorGroup = TQApplication::tqpalette().active();
TQColor textColorPrint = effTextColor( cellRef.x(), cellRef.y() );
// Resolve the text color if invalid (=default).
if ( !textColorPrint.isValid() ) {
- if ( painter.device()->isExtDev() )
+ if ( painter.tqdevice()->isExtDev() )
textColorPrint = TQt::black;
else
- textColorPrint = TQApplication::palette().active().text();
+ textColorPrint = TQApplication::tqpalette().active().text();
}
TQPen tmpPen( textColorPrint );
@@ -3209,7 +3209,7 @@ void Cell::paintText( TQPainter& painter,
// Check for blue color, for hyperlink.
if ( !link().isEmpty() ) {
- tmpPen.setColor( TQApplication::palette().active().link() );
+ tmpPen.setColor( TQApplication::tqpalette().active().link() );
TQFont f = painter.font();
f.setUnderline( true );
painter.setFont( f );
@@ -3466,7 +3466,7 @@ void Cell::paintPageBorders( TQPainter& painter,
bool paintBorderBottom )
{
// Not screen? Return immediately.
- if ( painter.device()->isExtDev() )
+ if ( painter.tqdevice()->isExtDev() )
return;
if ( ! format()->sheet()->isShowPageBorders() )
@@ -3628,7 +3628,7 @@ void Cell::paintCellBorders( TQPainter& painter, const KoRect& rect,
// If we are on paper printout, we limit the length of the lines.
// On paper, we always have full cells, on screen not.
- if ( painter.device()->isExtDev() ) {
+ if ( painter.tqdevice()->isExtDev() ) {
// FIXME: There is probably Cut&Paste bugs here as well as below.
// The TQMIN/TQMAX and left/right pairs don't really make sense.
//
@@ -3675,7 +3675,7 @@ void Cell::paintCellBorders( TQPainter& painter, const KoRect& rect,
// If we are on paper printout, we limit the length of the lines.
// On paper, we always have full cells, on screen not.
- if ( painter.device()->isExtDev() ) {
+ if ( painter.tqdevice()->isExtDev() ) {
if ( sheetDir == Sheet::RightToLeft )
painter.drawLine( TQMAX( zrect_left, zcellRect_left ),
TQMAX( zrect_top, zcellRect_top - top ),
@@ -3716,7 +3716,7 @@ void Cell::paintCellBorders( TQPainter& painter, const KoRect& rect,
// If we are on paper printout, we limit the length of the lines.
// On paper, we always have full cells, on screen not.
- if ( painter.device()->isExtDev() ) {
+ if ( painter.tqdevice()->isExtDev() ) {
if ( zcellRect_top >= zrect_top + top_penWidth / 2)
painter.drawLine( TQMAX( zrect_left, zcellRect_left ),
zcellRect_top,
@@ -3738,7 +3738,7 @@ void Cell::paintCellBorders( TQPainter& painter, const KoRect& rect,
// If we are on paper printout, we limit the length of the lines.
// On paper, we always have full cells, on screen not.
- if ( painter.device()->isExtDev() ) {
+ if ( painter.tqdevice()->isExtDev() ) {
if ( zcellRect_bottom <= zrect_bottom + bottom_penWidth / 2)
painter.drawLine( TQMAX( zrect_left, zcellRect_left ),
zcellRect_bottom,
@@ -3762,7 +3762,7 @@ void Cell::paintCellBorders( TQPainter& painter, const KoRect& rect,
#if 0
// Look at the cells on our corners. It may happen that we
// just erased parts of their borders corner, so we might need
- // to repaint these corners.
+ // to tqrepaint these corners.
//
TQPen vert_pen, horz_pen;
int vert_penWidth, horz_penWidth;
@@ -3810,7 +3810,7 @@ void Cell::paintCellBorders( TQPainter& painter, const KoRect& rect,
painter.setPen( vert_pen );
// If we are on paper printout, we limit the length of the lines.
// On paper, we always have full cells, on screen not.
- if ( painter.device()->isExtDev() ) {
+ if ( painter.tqdevice()->isExtDev() ) {
if ( sheetDir == Sheet::RightToLeft )
painter.drawLine( TQMAX( zrect_left, zcellRect_right ),
TQMAX( zrect_top, zcellRect_top ),
@@ -3860,7 +3860,7 @@ void Cell::paintCellBorders( TQPainter& painter, const KoRect& rect,
painter.setPen( vert_pen );
//If we are on paper printout, we limit the length of the lines
//On paper, we always have full cells, on screen not
- if ( painter.device()->isExtDev() ) {
+ if ( painter.tqdevice()->isExtDev() ) {
if ( sheetDir == Sheet::RightToLeft )
painter.drawLine( TQMAX( zrect_left, zcellRect_left ),
TQMAX( zrect_top, zcellRect_top ),
@@ -3913,7 +3913,7 @@ void Cell::paintCellBorders( TQPainter& painter, const KoRect& rect,
painter.setPen( vert_pen );
// If we are on paper printout, we limit the length of the lines.
// On paper, we always have full cells, on screen not.
- if ( painter.device()->isExtDev() ) {
+ if ( painter.tqdevice()->isExtDev() ) {
if ( sheetDir == Sheet::RightToLeft )
painter.drawLine( TQMAX( zrect_left, zcellRect_right ),
TQMAX( zrect_top, zcellRect_bottom - bottom ),
@@ -3965,7 +3965,7 @@ void Cell::paintCellBorders( TQPainter& painter, const KoRect& rect,
painter.setPen( vert_pen );
// If we are on paper printout, we limit the length of the lines.
// On paper, we always have full cells, on screen not.
- if ( painter.device()->isExtDev() ) {
+ if ( painter.tqdevice()->isExtDev() ) {
if ( sheetDir == Sheet::RightToLeft )
painter.drawLine( TQMAX( zrect_left, zcellRect_left ),
TQMAX( zrect_top, zcellRect_bottom - bottom ),
@@ -4704,7 +4704,7 @@ TQString Cell::link() const
void Cell::update()
{
- /* those obscuring us need to redo their layout cause they can't obscure us
+ /* those obscuring us need to redo their tqlayout cause they can't obscure us
now that we've got text.
This includes cells obscuring cells that we are obscuring
*/
@@ -5232,7 +5232,7 @@ TQDomElement Cell::save( TQDomDocument& doc,
{
TQDomElement dateMin = doc.createElement( "datemin" );
TQString tmp("%1/%2/%3");
- tmp = tmp.arg(d->extra()->validity->dateMin.year()).arg(d->extra()->validity->dateMin.month()).arg(d->extra()->validity->dateMin.day());
+ tmp = tmp.tqarg(d->extra()->validity->dateMin.year()).tqarg(d->extra()->validity->dateMin.month()).tqarg(d->extra()->validity->dateMin.day());
dateMin.appendChild( doc.createTextNode( tmp ) );
validity.appendChild( dateMin );
}
@@ -5240,7 +5240,7 @@ TQDomElement Cell::save( TQDomDocument& doc,
{
TQDomElement dateMax = doc.createElement( "datemax" );
TQString tmp("%1/%2/%3");
- tmp = tmp.arg(d->extra()->validity->dateMax.year()).arg(d->extra()->validity->dateMax.month()).arg(d->extra()->validity->dateMax.day());
+ tmp = tmp.tqarg(d->extra()->validity->dateMax.year()).tqarg(d->extra()->validity->dateMax.month()).tqarg(d->extra()->validity->dateMax.day());
dateMax.appendChild( doc.createTextNode( tmp ) );
validity.appendChild( dateMax );
}
@@ -5312,7 +5312,7 @@ bool Cell::saveCellResult( TQDomDocument& doc, TQDomElement& result,
TQDate dd = value().asDateTime().date();
dataType = "Date";
str = "%1/%2/%3";
- str = str.arg(dd.year()).arg(dd.month()).arg(dd.day());
+ str = str.tqarg(dd.year()).tqarg(dd.month()).tqarg(dd.day());
}
else if( isTime() )
{
@@ -6048,25 +6048,25 @@ void Cell::loadOasisObjects( const TQDomElement &parent, KoOasisLoadingContext&
if ( !point.isValid() )
continue;
- KoRect geometry = obj->geometry();
- geometry.setLeft( geometry.left() + sheet()->columnPos( d->column, 0 ) );
- geometry.setTop( geometry.top() + sheet()->rowPos( d->row, 0 ) );
+ KoRect tqgeometry = obj->tqgeometry();
+ tqgeometry.setLeft( tqgeometry.left() + sheet()->columnPos( d->column, 0 ) );
+ tqgeometry.setTop( tqgeometry.top() + sheet()->rowPos( d->row, 0 ) );
TQString str = e.attributeNS( KoXmlNS::table, "end-x", TQString() );
if ( !str.isNull() )
{
uint end_x = (uint) KoUnit::parseValue( str );
- geometry.setRight( sheet()->columnPos( point.column(), 0) + end_x );
+ tqgeometry.setRight( sheet()->columnPos( point.column(), 0) + end_x );
}
str = e.attributeNS( KoXmlNS::table, "end-y", TQString() );
if ( !str.isNull() )
{
uint end_y = (uint) KoUnit::parseValue( str );
- geometry.setBottom( sheet()->rowPos( point.row(), 0) + end_y );
+ tqgeometry.setBottom( sheet()->rowPos( point.row(), 0) + end_y );
}
- obj->setGeometry( geometry );
+ obj->setGeometry( tqgeometry );
}
}
}
@@ -6744,8 +6744,8 @@ bool Cell::loadCellData(const TQDomElement & text, Paste::Operation op )
if( inside_tag )
{
inside_tag = false;
- if( tag.startsWith( "a href=\"", true ) )
- if( tag.endsWith( "\"" ) )
+ if( tag.tqstartsWith( "a href=\"", true ) )
+ if( tag.tqendsWith( "\"" ) )
qml_link = tag.mid( 8, tag.length()-9 );
tag = TQString();
}
diff --git a/kspread/kspread_cell.h b/kspread/kspread_cell.h
index fd100c453..500804f3d 100644
--- a/kspread/kspread_cell.h
+++ b/kspread/kspread_cell.h
@@ -265,7 +265,7 @@ public:
/**
* Moves around the cell. It cares about obscured and obscuring cells and
- * forces, relayout, calculation and redrawing of the cell.
+ * forces, retqlayout, calculation and redrawing of the cell.
*/
void move( int column, int row );
@@ -807,7 +807,7 @@ public:
void clearAllErrors();
/**
- * Calculates the layout of the cell, i,e, determines what should be shown
+ * Calculates the tqlayout of the cell, i,e, determines what should be shown
* for this cell, m_strOutText.
*/
void makeLayout( TQPainter &_painter, int _col, int _row );
@@ -900,9 +900,9 @@ public:
* In that case the cell usually displays "#####"
*
* LayoutDirty
- * Flag showing whether the current layout is OK.
+ * Flag showing whether the current tqlayout is OK.
* If you change for example the fonts point size, set this flag. When the
- * cell must draw itself on the screen it will first recalculate its layout.
+ * cell must draw itself on the screen it will first recalculate its tqlayout.
*
* CalcDirty
* Shows whether recalculation is necessary.
@@ -925,7 +925,7 @@ public:
* If this flag is set, then it is known that this cell has to be updated
* on the display. This means that somewhere in the calling stack there is a
* function which will call @ref Sheet::updateCell once it retains
- * the control. If a function changes the contents/layout of this cell and this
+ * the control. If a function changes the contents/tqlayout of this cell and this
* flag is not set, then the function must set it at once. After the changes
* are done the function must call <tt>m_pSheet->updateCell(...).
* The flag is cleared by the function format()->sheet()->updateCell.
diff --git a/kspread/kspread_cluster.cc b/kspread/kspread_cluster.cc
index 318ee7582..21fe0ef0f 100644
--- a/kspread/kspread_cluster.cc
+++ b/kspread/kspread_cluster.cc
@@ -1039,7 +1039,7 @@ bool ColumnCluster::insertColumn( int col )
int cx = col / KSPREAD_CLUSTER_LEVEL2;
int dx = col % KSPREAD_CLUSTER_LEVEL2;
- // Is there a column layout at the right most position ?
+ // Is there a column tqlayout at the right most position ?
// In this case the shift is impossible.
ColumnFormat** cl = m_cluster[ KSPREAD_CLUSTER_LEVEL1 - 1 ];
if ( cl && cl[ KSPREAD_CLUSTER_LEVEL2 - 1 ] )
@@ -1356,7 +1356,7 @@ bool RowCluster::insertRow( int row )
int cx = row / KSPREAD_CLUSTER_LEVEL2;
int dx = row % KSPREAD_CLUSTER_LEVEL2;
- // Is there a row layout at the bottom most position ?
+ // Is there a row tqlayout at the bottom most position ?
// In this case the shift is impossible.
RowFormat** cl = m_cluster[ KSPREAD_CLUSTER_LEVEL1 - 1 ];
if ( cl && cl[ KSPREAD_CLUSTER_LEVEL2 - 1 ] )
diff --git a/kspread/kspread_doc.cc b/kspread/kspread_doc.cc
index ea698845c..188dbe2ee 100644
--- a/kspread/kspread_doc.cc
+++ b/kspread/kspread_doc.cc
@@ -218,7 +218,7 @@ Doc::Doc( TQWidget *parentWidget, const char *widgetName, TQObject* parent, cons
if ( !name )
{
TQString tmp( "Document%1" );
- tmp = tmp.arg( d->s_docId++ );
+ tmp = tmp.tqarg( d->s_docId++ );
setName( tmp.local8Bit());//tmp.latin1() );
dcopObject();
}
@@ -941,7 +941,7 @@ void Doc::saveOasisDocumentStyles( KoStore* store, KoGenStyles& mainStyles ) con
styles = mainStyles.styles( KoGenStyle::STYLE_PAGELAYOUT );
it = styles.begin();
for ( ; it != styles.end() ; ++it ) {
- (*it).style->writeStyle( stylesWriter, mainStyles, "style:page-layout", (*it).name, "style:page-layout-properties", false /*don't close*/ );
+ (*it).style->writeStyle( stylesWriter, mainStyles, "style:page-tqlayout", (*it).name, "style:page-tqlayout-properties", false /*don't close*/ );
stylesWriter->endElement();
}
@@ -998,7 +998,7 @@ bool Doc::loadOasis( const TQDomDocument& doc, KoOasisStyles& oasisStyles, const
if ( localName.isEmpty() )
setErrorMessage( i18n( "Invalid OASIS OpenDocument file. No tag found inside office:body." ) );
else
- setErrorMessage( i18n( "This document is not a spreadsheet, but %1. Please try opening it with the appropriate application." ).arg( KoDocument::tagNameToDocumentType( localName ) ) );
+ setErrorMessage( i18n( "This document is not a spreadsheet, but %1. Please try opening it with the appropriate application." ).tqarg( KoDocument::tagNameToDocumentType( localName ) ) );
deleteLoadingInfo();
return false;
}
@@ -1086,7 +1086,7 @@ bool Doc::loadXML( TQIODevice *, const TQDomDocument& doc )
if ( spread.attribute( "mime" ) != "application/x-kspread" && spread.attribute( "mime" ) != "application/vnd.kde.kspread" )
{
d->isLoading = false;
- setErrorMessage( i18n( "Invalid document. Expected mimetype application/x-kspread or application/vnd.kde.kspread, got %1" ).arg( spread.attribute("mime") ) );
+ setErrorMessage( i18n( "Invalid document. Expected mimetype application/x-kspread or application/vnd.kde.kspread, got %1" ).tqarg( spread.attribute("mime") ) );
return false;
}
@@ -1095,7 +1095,7 @@ bool Doc::loadXML( TQIODevice *, const TQDomDocument& doc )
{
int ret = KMessageBox::warningContinueCancel(
0, i18n("This document was created with a newer version of KSpread (syntax version: %1)\n"
- "When you open it with this version of KSpread, some information may be lost.").arg(d->syntaxVersion),
+ "When you open it with this version of KSpread, some information may be lost.").tqarg(d->syntaxVersion),
i18n("File Format Mismatch"), KStdGuiItem::cont() );
if ( ret == KMessageBox::Cancel )
{
@@ -1179,7 +1179,7 @@ bool Doc::loadXML( TQIODevice *, const TQDomDocument& doc )
return false;
}
- //Backwards compatibility with older versions for paper layout
+ //Backwards compatibility with older versions for paper tqlayout
if ( d->syntaxVersion < 1 )
{
TQDomElement paper = spread.namedItem( "paper" ).toElement();
@@ -1549,7 +1549,7 @@ void Doc::setZoomAndResolution( int zoom, int dpiX, int dpiY )
void Doc::newZoomAndResolution( bool updateViews, bool /*forPrint*/ )
{
-/* layout();
+/* tqlayout();
updateAllFrames();*/
if ( updateViews )
{
@@ -1656,12 +1656,12 @@ void Doc::paintContent( TQPainter& painter, const TQRect& rect,
if ( m_zoomedResolutionX != zoomX )
d_zoom *= ( zoomX / m_zoomedResolutionX );
- // KSpread support zoom, therefore no need to scale with worldMatrix
- TQWMatrix matrix = painter.worldMatrix();
+ // KSpread support zoom, therefore no need to scale with tqworldMatrix
+ TQWMatrix matrix = painter.tqworldMatrix();
matrix.setMatrix( 1, 0, 0, 1, matrix.dx(), matrix.dy() );
TQRect prect = rect;
- prect.setWidth( (int) (prect.width() * painter.worldMatrix().m11()) );
- prect.setHeight( (int) (prect.height() * painter.worldMatrix().m22()) );
+ prect.setWidth( (int) (prect.width() * painter.tqworldMatrix().m11()) );
+ prect.setHeight( (int) (prect.height() * painter.tqworldMatrix().m22()) );
setZoomAndResolution( (int) ( d_zoom * 100 ), KoGlobal::dpiX(), KoGlobal::dpiY() );
// paint the content, now zoom is correctly set
kdDebug(36001)<<"paintContent-------------------------------------\n";
@@ -1731,7 +1731,7 @@ void Doc::paintCellRegions(TQPainter& painter, const TQRect &viewRect,
const Sheet* sheet, bool /*drawCursor*/)
{
//
- // Clip away children
+ // Clip away tqchildren
//
TQRegion rgn = painter.clipRegion();
@@ -1746,10 +1746,10 @@ void Doc::paintCellRegions(TQPainter& painter, const TQRect &viewRect,
- view->canvasWidget()->yOffset() );
}
else {
- matrix = painter.worldMatrix();
+ matrix = painter.tqworldMatrix();
}
-// TQPtrListIterator<KoDocumentChild> it( children() );
+// TQPtrListIterator<KoDocumentChild> it( tqchildren() );
// for( ; it.current(); ++it ) {
// // if ( ((Child*)it.current())->sheet() == sheet &&
// // !m_pView->hasDocumentInWindow( it.current()->document() ) )
@@ -2192,7 +2192,7 @@ void Doc::emitBeginOperation(bool waitCursor)
//are expected to be completed in a short time anyway.
TQCursor* activeOverride = static_cast<TQCursor*>(TQApplication::overrideCursor());
- if (waitCursor && ( (!activeOverride) || (activeOverride->shape() != TQt::waitCursor.shape()) ) )
+ if (waitCursor && ( (!activeOverride) || (activeOverride->tqshape() != TQt::waitCursor.tqshape()) ) )
{
TQApplication::setOverrideCursor(TQt::waitCursor);
}
@@ -2200,7 +2200,7 @@ void Doc::emitBeginOperation(bool waitCursor)
// /* just duplicate the current cursor on the stack, then */
// else if (TQApplication::overrideCursor() != NULL)
// {
-// TQApplication::setOverrideCursor(TQApplication::overrideCursor()->shape());
+// TQApplication::setOverrideCursor(TQApplication::overrideCursor()->tqshape());
// }
KoDocument::emitBeginOperation();
@@ -2379,7 +2379,7 @@ KoPictureCollection *Doc::pictureCollection()
return &d->m_pictureCollection;
}
-void Doc::repaint( const TQRect& rect )
+void Doc::tqrepaint( const TQRect& rect )
{
TQRect r;
TQPtrListIterator<KoView> it( views() );
@@ -2393,7 +2393,7 @@ void Doc::repaint( const TQRect& rect )
}
}
-void Doc::repaint( EmbeddedObject *obj )
+void Doc::tqrepaint( EmbeddedObject *obj )
{
TQPtrListIterator<KoView> it( views() );
for( ; it.current(); ++it )
@@ -2404,7 +2404,7 @@ void Doc::repaint( EmbeddedObject *obj )
}
}
-void Doc::repaint( const KoRect& rect )
+void Doc::tqrepaint( const KoRect& rect )
{
TQRect r;
TQPtrListIterator<KoView> it( views() );
diff --git a/kspread/kspread_doc.h b/kspread/kspread_doc.h
index 64d1fbf58..63320a96d 100644
--- a/kspread/kspread_doc.h
+++ b/kspread/kspread_doc.h
@@ -565,7 +565,7 @@ public:
virtual void emitBeginOperation();
/**
- * Mark the end of an operation and triggers a repaint of any cells or regions of cells which
+ * Mark the end of an operation and triggers a tqrepaint of any cells or regions of cells which
* have been marked as 'dirty' via calls to Sheet::setRegionPaintDirty
* See above comment to emitBeginOperation(bool).
*/
@@ -640,10 +640,10 @@ public:
void loadConfigFromFile();
bool configLoadFromFile() const;
- // repaint (update) all views
- void repaint( const TQRect& );
- void repaint( EmbeddedObject* );
- void repaint( const KoRect& );
+ // tqrepaint (update) all views
+ void tqrepaint( const TQRect& );
+ void tqrepaint( EmbeddedObject* );
+ void tqrepaint( const KoRect& );
virtual void addShell( KoMainWindow *shell );
diff --git a/kspread/kspread_editors.cc b/kspread/kspread_editors.cc
index 7f0fa282a..ddf41d317 100644
--- a/kspread/kspread_editors.cc
+++ b/kspread/kspread_editors.cc
@@ -315,11 +315,11 @@ TQObject( editor )
d->editor = editor;
d->hintLabel = 0;
- d->completionPopup = new TQVBox( editor->topLevelWidget(), 0, WType_Popup );
+ d->completionPopup = new TQVBox( editor->tqtopLevelWidget(), 0, WType_Popup );
d->completionPopup->setFrameStyle( TQFrame::Box | TQFrame::Plain );
d->completionPopup->setLineWidth( 1 );
d->completionPopup->installEventFilter( this );
- d->completionPopup->setSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Minimum);
+ d->completionPopup->tqsetSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Minimum);
d->completionListBox = new KListBox( d->completionPopup );
d->completionPopup->setFocusProxy( d->completionListBox );
@@ -430,7 +430,7 @@ void FunctionCompletion::showCompletion( const TQStringList &choices )
// size of the pop-up
d->completionPopup->setMaximumHeight( 100 );
- d->completionPopup->resize( d->completionListBox->sizeHint() +
+ d->completionPopup->resize( d->completionListBox->tqsizeHint() +
TQSize( d->completionListBox->verticalScrollBar()->width() + 4,
d->completionListBox->horizontalScrollBar()->height() + 4 ) );
int h = d->completionListBox->height();
@@ -612,7 +612,7 @@ void CellEditor::triggerFunctionAutoComplete()
TQStringList fnames = KSpread::FunctionRepository::self()->functionNames();
TQStringList choices;
for( unsigned i=0; i<fnames.count(); i++ )
- if( fnames[i].startsWith( id, false ) )
+ if( fnames[i].tqstartsWith( id, false ) )
choices.append( fnames[i] );
choices.sort();
@@ -828,7 +828,7 @@ void CellEditor::setEditorFont(TQFont const & font, bool updateSize)
d->fontLength = fm.width('x');
int mw = fm.width( d->textEdit->text() ) + d->fontLength;
- // don't make it smaller: then we would have to repaint the obscured cells
+ // don't make it smaller: then we would have to tqrepaint the obscured cells
if (mw < width())
mw = width();
@@ -1455,7 +1455,7 @@ EditWidget::EditWidget( TQWidget *_parent, Canvas *_canvas,
m_pCanvas = _canvas;
Q_ASSERT(m_pCanvas != NULL);
// Those buttons are created by the caller, so that they are inserted
- // properly in the layout - but they are then managed here.
+ // properly in the tqlayout - but they are then managed here.
m_pCancelButton = cancelButton;
m_pOkButton = okButton;
isArray = false;
diff --git a/kspread/kspread_format.cc b/kspread/kspread_format.cc
index b0960735d..ecebff607 100644
--- a/kspread/kspread_format.cc
+++ b/kspread/kspread_format.cc
@@ -2725,7 +2725,7 @@ void RowFormat::setBottomBorderPen( const TQPen & p )
Format::setBottomBorderPen( p );
}
-void RowFormat::setHide( bool _hide, bool repaint )
+void RowFormat::setHide( bool _hide, bool tqrepaint )
{
if ( _hide != m_bHide ) // only if we change the status
{
@@ -2734,14 +2734,14 @@ void RowFormat::setHide( bool _hide, bool repaint )
// Lower maximum size by height of row
m_pSheet->adjustSizeMaxY ( - dblHeight() );
m_bHide = _hide; //hide must be set after we requested the height
- m_pSheet->emit_updateRow( this, m_iRow, repaint );
+ m_pSheet->emit_updateRow( this, m_iRow, tqrepaint );
}
else
{
// Rise maximum size by height of row
m_bHide = _hide; //unhide must be set before we request the height
m_pSheet->adjustSizeMaxY ( dblHeight() );
- m_pSheet->emit_updateRow( this, m_iRow, repaint );
+ m_pSheet->emit_updateRow( this, m_iRow, tqrepaint );
}
}
}
diff --git a/kspread/kspread_format.h b/kspread/kspread_format.h
index 83b2daeeb..ed89807a2 100644
--- a/kspread/kspread_format.h
+++ b/kspread/kspread_format.h
@@ -22,7 +22,7 @@
#ifndef __kspread_format_h__
#define __kspread_format_h__
-#include <brush.h>
+#include <tqbrush.h>
#include <tqcolor.h>
#include <tqfont.h>
#include <tqpen.h>
@@ -557,7 +557,7 @@ public:
/**
* Sets the hide flag
*/
- void setHide( bool _hide, bool repaint = true );
+ void setHide( bool _hide, bool tqrepaint = true );
bool isHide()const { return m_bHide;}
bool operator==( const RowFormat& other ) const;
diff --git a/kspread/kspread_functions_conversion.cc b/kspread/kspread_functions_conversion.cc
index 23f2ca015..422468380 100644
--- a/kspread/kspread_functions_conversion.cc
+++ b/kspread/kspread_functions_conversion.cc
@@ -168,7 +168,7 @@ Value func_roman (valVector args, ValueCalc *calc, FuncExtra *)
if ((value < 0) || (value > 3999))
return Value::errorNA();
TQString result;
- result = TQString::fromLatin1 (RNThousands[(value / 1000)] +
+ result = TQString::tqfromLatin1 (RNThousands[(value / 1000)] +
RNHundreds[(value / 100) % 10] +
RNTens[(value / 10 ) % 10] +
RNUnits[(value) % 10]);
@@ -179,7 +179,7 @@ Value func_roman (valVector args, ValueCalc *calc, FuncExtra *)
// return < 0 if invalid
int func_arabic_helper (TQChar c)
{
- switch (c.upper().unicode())
+ switch (c.upper().tqunicode())
{
case 'M': return 1000;
case 'D': return 500;
diff --git a/kspread/kspread_functions_datetime.cc b/kspread/kspread_functions_datetime.cc
index 0136d298c..b139057d9 100644
--- a/kspread/kspread_functions_datetime.cc
+++ b/kspread/kspread_functions_datetime.cc
@@ -32,8 +32,8 @@
using namespace KSpread;
// prototypes, sorted
-Value func_currentDate (valVector args, ValueCalc *calc, FuncExtra *);
-Value func_currentDateTime (valVector args, ValueCalc *calc, FuncExtra *);
+Value func_tqcurrentDate (valVector args, ValueCalc *calc, FuncExtra *);
+Value func_tqcurrentDateTime (valVector args, ValueCalc *calc, FuncExtra *);
Value func_currentTime (valVector args, ValueCalc *calc, FuncExtra *);
Value func_date (valVector args, ValueCalc *calc, FuncExtra *);
Value func_datevalue (valVector args, ValueCalc *calc, FuncExtra *);
@@ -77,10 +77,10 @@ void RegisterDateTimeFunctions()
FunctionRepository* repo = FunctionRepository::self();
Function *f;
- f = new Function ("CURRENTDATE", func_currentDate);
+ f = new Function ("CURRENTDATE", func_tqcurrentDate);
f->setParamCount (0);
repo->add (f);
- f = new Function ("CURRENTDATETIME", func_currentDateTime);
+ f = new Function ("CURRENTDATETIME", func_tqcurrentDateTime);
f->setParamCount (0);
repo->add (f);
f = new Function ("CURRENTTIME", func_currentTime);
@@ -140,7 +140,7 @@ void RegisterDateTimeFunctions()
f = new Function ("MONTHS", func_months);
f->setParamCount (3);
repo->add (f);
- f = new Function ("NOW", func_currentDateTime);
+ f = new Function ("NOW", func_tqcurrentDateTime);
f->setParamCount (0);
repo->add (f);
f = new Function ("SECOND", func_second);
@@ -154,7 +154,7 @@ void RegisterDateTimeFunctions()
repo->add (f);
f = new Function ("TIMEVALUE", func_timevalue);
repo->add (f);
- f = new Function ("TODAY", func_currentDate);
+ f = new Function ("TODAY", func_tqcurrentDate);
f->setParamCount (0);
repo->add (f);
f = new Function ("WEEKDAY", func_weekday);
@@ -519,7 +519,7 @@ Value func_monthname (valVector args, ValueCalc *calc, FuncExtra *)
int number = calc->conv()->asInteger (args[0]).asInteger();
TQString monthName = calc->conv()->locale()->calendar()->monthName (number,
- TQDate::currentDate().year());
+ TQDate::tqcurrentDate().year());
if (monthName.isNull())
return Value::errorVALUE();
return Value (monthName);
@@ -555,10 +555,10 @@ Value func_time (valVector args, ValueCalc *calc, FuncExtra *)
return Value (TQTime (h, m, s));
}
-// Function: currentDate
-Value func_currentDate (valVector, ValueCalc *, FuncExtra *)
+// Function: tqcurrentDate
+Value func_tqcurrentDate (valVector, ValueCalc *, FuncExtra *)
{
- return Value (TQDate::currentDate ());
+ return Value (TQDate::tqcurrentDate ());
}
// Function: currentTime
@@ -567,10 +567,10 @@ Value func_currentTime (valVector, ValueCalc *, FuncExtra *)
return Value (TQTime::currentTime ());
}
-// Function: currentDateTime
-Value func_currentDateTime (valVector, ValueCalc *, FuncExtra *)
+// Function: tqcurrentDateTime
+Value func_tqcurrentDateTime (valVector, ValueCalc *, FuncExtra *)
{
- return Value (TQDateTime::currentDateTime ());
+ return Value (TQDateTime::tqcurrentDateTime ());
}
// Function: dayOfYear
diff --git a/kspread/kspread_functions_information.cc b/kspread/kspread_functions_information.cc
index 2a5775aae..52ae0f99f 100644
--- a/kspread/kspread_functions_information.cc
+++ b/kspread/kspread_functions_information.cc
@@ -158,8 +158,8 @@ Value func_info (valVector args, ValueCalc *calc, FuncExtra *)
struct utsname name;
if (uname (&name) >= 0)
{
- TQString os = TQString("%1 %2 (%3)").arg( name.sysname ).
- arg( name.release ).arg( name.machine );
+ TQString os = TQString("%1 %2 (%3)").tqarg( name.sysname ).
+ tqarg( name.release ).tqarg( name.machine );
return Value (os);
}
}
diff --git a/kspread/kspread_functions_text.cc b/kspread/kspread_functions_text.cc
index e61aff934..1f661d274 100644
--- a/kspread/kspread_functions_text.cc
+++ b/kspread/kspread_functions_text.cc
@@ -188,7 +188,7 @@ Value func_code (valVector args, ValueCalc *calc, FuncExtra *)
if (str.length() <= 0)
return Value::errorVALUE();
- return Value (str[0].unicode());
+ return Value (str[0].tqunicode());
}
// Function: COMPARE
@@ -496,11 +496,11 @@ Value func_rot (valVector args, ValueCalc *calc, FuncExtra *)
for( unsigned i=0; i<text.length(); i++ )
{
- unsigned c = text[i].upper().unicode();
+ unsigned c = text[i].upper().tqunicode();
if( ( c >= 'A' ) && ( c <= 'M' ) )
- text[i] = TQChar( text[i].unicode() + 13);
+ text[i] = TQChar( text[i].tqunicode() + 13);
if( ( c >= 'N' ) && ( c <= 'Z' ) )
- text[i] = TQChar( text[i].unicode() - 13);
+ text[i] = TQChar( text[i].tqunicode() - 13);
}
return Value (text);
diff --git a/kspread/kspread_generalProperty.cpp b/kspread/kspread_generalProperty.cpp
index 506626bf9..d2518494c 100644
--- a/kspread/kspread_generalProperty.cpp
+++ b/kspread/kspread_generalProperty.cpp
@@ -22,7 +22,7 @@
#include <tqcheckbox.h>
#include <tqgroupbox.h>
#include <tqlabel.h>
-#include <layout.h>
+#include <tqlayout.h>
#include <tqlineedit.h>
#include <knuminput.h>
@@ -38,11 +38,11 @@ GeneralProperty::GeneralProperty( TQWidget *parent, const char *name, GeneralVal
, m_generalValue( generalValue )
, m_unit( unit )
{
- TQVBoxLayout *layout = new TQVBoxLayout( this );
- layout->addWidget( m_ui = new KoGeneralPropertyUI( this ) );
+ TQVBoxLayout *tqlayout = new TQVBoxLayout( this );
+ tqlayout->addWidget( m_ui = new KoGeneralPropertyUI( this ) );
TQSpacerItem* spacer = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
- layout->addItem( spacer );
+ tqlayout->addItem( spacer );
if ( m_generalValue.m_name.isNull() )
{
diff --git a/kspread/kspread_map.cc b/kspread/kspread_map.cc
index a24c8cf25..7d55a8ff3 100644
--- a/kspread/kspread_map.cc
+++ b/kspread/kspread_map.cc
@@ -80,7 +80,7 @@ void Map::setProtected( TQCString const & passwd )
Sheet* Map::createSheet()
{
TQString s( i18n("Sheet%1") );
- s = s.arg( tableId++ );
+ s = s.tqarg( tableId++ );
Sheet *t = new Sheet ( this, s , s.utf8());
t->setSheetName( s, true ); // huh? (Werner)
return t;
@@ -159,7 +159,7 @@ void Map::loadOasisSettings( KoOasisSettings &settings )
void Map::saveOasisSettings( KoXmlWriter &settingsWriter )
{
- settingsWriter.addConfigItem( "ViewId", TQString::fromLatin1( "View1" ) );
+ settingsWriter.addConfigItem( "ViewId", TQString::tqfromLatin1( "View1" ) );
// Save visual info for the first view, such as active sheet and active cell
// It looks like a hack, but reopening a document creates only one view anyway (David)
View * view = m_doc->views().isEmpty() ? 0 : dynamic_cast<View*>(m_doc->views().getFirst());
diff --git a/kspread/kspread_object.cc b/kspread/kspread_object.cc
index 8c273700c..9257a3f57 100644
--- a/kspread/kspread_object.cc
+++ b/kspread/kspread_object.cc
@@ -55,8 +55,8 @@ class View;
* EmbeddedObject
*
**********************************************************/
-EmbeddedObject::EmbeddedObject( Sheet *_sheet, const KoRect& _geometry )
- : m_geometry( _geometry), m_sheet(_sheet), m_objectName(""), m_selected(false), m_protect(false), m_keepRatio(false), pen( TQt::black, 1, Qt::SolidLine )
+EmbeddedObject::EmbeddedObject( Sheet *_sheet, const KoRect& _tqgeometry )
+ : m_tqgeometry( _tqgeometry), m_sheet(_sheet), m_objectName(""), m_selected(false), m_protect(false), m_keepRatio(false), pen( TQt::black, 1, Qt::SolidLine )
{
angle = 0.0;
inObjList = true;
@@ -66,23 +66,23 @@ EmbeddedObject::EmbeddedObject( Sheet *_sheet, const KoRect& _geometry )
EmbeddedObject::~EmbeddedObject()
{
}
-KoRect EmbeddedObject::geometry()
+KoRect EmbeddedObject::tqgeometry()
{
- return m_geometry;
+ return m_tqgeometry;
}
void EmbeddedObject::setGeometry( const KoRect &rect )
{
- m_geometry = rect;
+ m_tqgeometry = rect;
}
void EmbeddedObject::moveBy( const KoPoint &_point )
{
- m_geometry.moveTopLeft( m_geometry.topLeft() + _point );
+ m_tqgeometry.moveTopLeft( m_tqgeometry.topLeft() + _point );
}
void EmbeddedObject::moveBy( double _dx, double _dy )
{
- m_geometry.moveTopLeft( m_geometry.topLeft() + KoPoint( _dx, _dy ) );
+ m_tqgeometry.moveTopLeft( m_tqgeometry.topLeft() + KoPoint( _dx, _dy ) );
}
void EmbeddedObject::resizeBy( const KoSize & _size )
@@ -92,7 +92,7 @@ void EmbeddedObject::resizeBy( const KoSize & _size )
void EmbeddedObject::resizeBy( double _dx, double _dy)
{
- m_geometry.setSize( KoSize( m_geometry.width()+_dx, m_geometry.height()+_dy) );
+ m_tqgeometry.setSize( KoSize( m_tqgeometry.width()+_dx, m_tqgeometry.height()+_dy) );
} // call (possibly reimplemented) setSize
bool EmbeddedObject::load( const TQDomElement& /*element*/ )
@@ -105,10 +105,10 @@ void EmbeddedObject::loadOasis(const TQDomElement &element, KoOasisLoadingContex
{
if(element.hasAttributeNS( KoXmlNS::draw, "name" ))
m_objectName = element.attributeNS( KoXmlNS::draw, "name", TQString());
- m_geometry.setX( KoUnit::parseValue( element.attributeNS( KoXmlNS::svg, "x", TQString() ) ) );
- m_geometry.setY( KoUnit::parseValue( element.attributeNS( KoXmlNS::svg, "y", TQString() ) ) );
- m_geometry.setWidth(KoUnit::parseValue( element.attributeNS( KoXmlNS::svg, "width", TQString() )) );
- m_geometry.setHeight(KoUnit::parseValue( element.attributeNS( KoXmlNS::svg, "height", TQString() ) ) );
+ m_tqgeometry.setX( KoUnit::parseValue( element.attributeNS( KoXmlNS::svg, "x", TQString() ) ) );
+ m_tqgeometry.setY( KoUnit::parseValue( element.attributeNS( KoXmlNS::svg, "y", TQString() ) ) );
+ m_tqgeometry.setWidth(KoUnit::parseValue( element.attributeNS( KoXmlNS::svg, "width", TQString() )) );
+ m_tqgeometry.setHeight(KoUnit::parseValue( element.attributeNS( KoXmlNS::svg, "height", TQString() ) ) );
//kdDebug()<<" orig.x() :"<<orig.x() <<" orig.y() :"<<orig.y() <<"ext.width() :"<<ext.width()<<" ext.height(): "<<ext.height()<<endl;
KoStyleStack &styleStack = context.styleStack();
@@ -126,15 +126,15 @@ void EmbeddedObject::saveOasisPosObject( KoXmlWriter &xmlWriter, int indexObj )
{
xmlWriter.addAttribute( "draw:id", "object" + TQString::number( indexObj ) );
//save all into pt
- xmlWriter.addAttributePt( "svg:x", sheet()->doc()->savingWholeDocument() ? m_geometry.x() : m_geometry.x() + 20.0 );
- xmlWriter.addAttributePt( "svg:y", sheet()->doc()->savingWholeDocument() ? m_geometry.y() : m_geometry.y() + 20.0 );
- xmlWriter.addAttributePt( "svg:width", m_geometry.width() );
- xmlWriter.addAttributePt( "svg:height", m_geometry.height() );
+ xmlWriter.addAttributePt( "svg:x", sheet()->doc()->savingWholeDocument() ? m_tqgeometry.x() : m_tqgeometry.x() + 20.0 );
+ xmlWriter.addAttributePt( "svg:y", sheet()->doc()->savingWholeDocument() ? m_tqgeometry.y() : m_tqgeometry.y() + 20.0 );
+ xmlWriter.addAttributePt( "svg:width", m_tqgeometry.width() );
+ xmlWriter.addAttributePt( "svg:height", m_tqgeometry.height() );
// if ( kAbs( angle ) > 1E-6 )
// {
// double value = -1 * ( ( double )angle* M_PI )/180.0;
-// TQString str=TQString( "rotate (%1)" ).arg( value );
+// TQString str=TQString( "rotate (%1)" ).tqarg( value );
// xmlWriter.addAttribute( "draw:transform", str );
// }
}
@@ -187,7 +187,7 @@ TQPixmap EmbeddedObject::toPixmap(double /*xZoom*/ , double /*yZoom*/)
void EmbeddedObject::calculateRequiredZoom( TQSize desiredSize, double& xZoom, double& yZoom)
{
- TQSize actualSize = geometry().size().toTQSize();
+ TQSize actualSize = tqgeometry().size().toTQSize();
xZoom = (double) desiredSize.width() / (double)actualSize.width();
yZoom = (double) desiredSize.height() / (double)actualSize.height();
@@ -199,8 +199,8 @@ void EmbeddedObject::paintSelection( TQPainter *_painter, SelectionMode mode )
return;
_painter->save();
- KoRect bound( geometry().left(), geometry().top(),
- geometry().width() , geometry().height() );
+ KoRect bound( tqgeometry().left(), tqgeometry().top(),
+ tqgeometry().width() , tqgeometry().height() );
TQRect zoomedBound = sheet()->doc()->zoomRect( bound ) ;
//_painter->setPen( TQPen( TQt::black, 1, TQPen::SolidLine ) );
@@ -261,14 +261,14 @@ void EmbeddedObject::paintSelection( TQPainter *_painter, SelectionMode mode )
_painter->restore();
}
-TQCursor EmbeddedObject::getCursor( const TQPoint &_point, ModifyType &_modType, TQRect &geometry) const
+TQCursor EmbeddedObject::getCursor( const TQPoint &_point, ModifyType &_modType, TQRect &tqgeometry) const
{
int px = /*sheet()->doc()->zoomItX*/(_point.x());
int py = /*sheet()->doc()->zoomItY*/(_point.y());
- int ox = /*sheet()->doc()->zoomItX*/(/*orig*/geometry.x());
- int oy = /*sheet()->doc()->zoomItY*/(/*orig*/geometry.y());
- int ow = /*sheet()->doc()->zoomItX*/(/*ext*/geometry.width());
- int oh = /*sheet()->doc()->zoomItY*/(/*ext*/geometry.height());
+ int ox = /*sheet()->doc()->zoomItX*/(/*orig*/tqgeometry.x());
+ int oy = /*sheet()->doc()->zoomItY*/(/*orig*/tqgeometry.y());
+ int ow = /*sheet()->doc()->zoomItX*/(/*ext*/tqgeometry.width());
+ int oh = /*sheet()->doc()->zoomItY*/(/*ext*/tqgeometry.height());
// if ( angle != 0.0 )
// {
@@ -367,10 +367,10 @@ void EmbeddedObject::doDelete()
* EmbeddedKOfficeObject
*
**********************************************************/
-EmbeddedKOfficeObject::EmbeddedKOfficeObject( Doc *parent, Sheet *_sheet, KoDocument* doc, const KoRect& geometry )
- : EmbeddedObject( _sheet, geometry ), m_parent(parent)
+EmbeddedKOfficeObject::EmbeddedKOfficeObject( Doc *parent, Sheet *_sheet, KoDocument* doc, const KoRect& tqgeometry )
+ : EmbeddedObject( _sheet, tqgeometry ), m_parent(parent)
{
- m_embeddedObject = new KoDocumentChild(parent, doc, geometry.toTQRect() );
+ m_embeddedObject = new KoDocumentChild(parent, doc, tqgeometry.toTQRect() );
}
EmbeddedKOfficeObject::EmbeddedKOfficeObject( Doc *parent, Sheet *_sheet )
@@ -399,7 +399,7 @@ bool EmbeddedKOfficeObject::saveOasisObjectAttributes( KSpreadOasisSaveContext &
kdDebug() << "EmbeddedKOfficeObject::saveOasisPart " << sc.partIndexObj << endl;
sc.xmlWriter.startElement( "draw:object" );
- const TQString name = TQString( "Object_%1" ).arg( sc.partIndexObj + 1 );
+ const TQString name = TQString( "Object_%1" ).tqarg( sc.partIndexObj + 1 );
++sc.partIndexObj;
m_embeddedObject->saveOasisAttributes( sc.xmlWriter, name );
@@ -417,7 +417,7 @@ bool EmbeddedKOfficeObject::load( const TQDomElement& element )
{
kdDebug() << "Loading EmbeddedKOfficeObject" << endl;
bool result = embeddedObject()->load( element );
- setGeometry( KoRect::fromTQRect( embeddedObject()->geometry() ) );
+ setGeometry( KoRect::fromTQRect( embeddedObject()->tqgeometry() ) );
return result;
}
@@ -436,7 +436,7 @@ void EmbeddedKOfficeObject::loadOasis(const TQDomElement &element, KoOasisLoadin
TQDomElement EmbeddedKOfficeObject::save( TQDomDocument& doc )
{
kdDebug() << "Saving EmbeddedKOfficeObject" << endl;
- embeddedObject()->setGeometry( geometry().toTQRect() );
+ embeddedObject()->setGeometry( tqgeometry().toTQRect() );
return m_embeddedObject->save( doc );
}
@@ -446,21 +446,21 @@ void EmbeddedKOfficeObject::draw( TQPainter *_painter )
int const penw = pen.width() ;
KoRect bound( 0, 0,
- geometry().width() - ( 2 * penw ), geometry().height() - ( 2 * penw ) );
+ tqgeometry().width() - ( 2 * penw ), tqgeometry().height() - ( 2 * penw ) );
TQRect const zoomedBound = sheet()->doc()->zoomRect( bound );
_painter->save();
- int const xOffset = sheet()->doc()->zoomItX( geometry().left() + penw);
- int const yOffset = sheet()->doc()->zoomItY( geometry().top() + penw );
+ int const xOffset = sheet()->doc()->zoomItX( tqgeometry().left() + penw);
+ int const yOffset = sheet()->doc()->zoomItY( tqgeometry().top() + penw );
- TQRect new_geometry = zoomedBound;
+ TQRect new_tqgeometry = zoomedBound;
//if ( translate )
//{
_painter->translate( xOffset , yOffset );
- new_geometry.moveBy( xOffset , yOffset );
- new_geometry.moveBy( -_painter->window().x(), -_painter->window().y() );
+ new_tqgeometry.moveBy( xOffset , yOffset );
+ new_tqgeometry.moveBy( -_painter->window().x(), -_painter->window().y() );
//}
_painter->setClipRect( zoomedBound, TQPainter::CoordPainter );
@@ -477,7 +477,7 @@ void EmbeddedKOfficeObject::draw( TQPainter *_painter )
zoomY );
- embeddedObject()->setGeometry( new_geometry );
+ embeddedObject()->setGeometry( new_tqgeometry );
_painter->restore();
EmbeddedObject::draw( _painter );
@@ -485,10 +485,10 @@ void EmbeddedKOfficeObject::draw( TQPainter *_painter )
TQPixmap EmbeddedKOfficeObject::toPixmap( double xZoom , double yZoom )
{
- TQPixmap pixmap( (int)( geometry().width()*xZoom ), (int)( geometry().height()*yZoom ) );
+ TQPixmap pixmap( (int)( tqgeometry().width()*xZoom ), (int)( tqgeometry().height()*yZoom ) );
TQPainter painter(&pixmap);
- TQRect bound( 0,0,(int)( geometry().width()*xZoom ), (int)(geometry().height()*yZoom) );
+ TQRect bound( 0,0,(int)( tqgeometry().width()*xZoom ), (int)(tqgeometry().height()*yZoom) );
embeddedObject()->document()->paintEverything(painter,bound,
embeddedObject()->isTransparent(),
0,
@@ -516,10 +516,10 @@ void EmbeddedKOfficeObject::deactivate()
void EmbeddedKOfficeObject::updateChildGeometry()
{
// KoZoomHandler* zh = m_sheet->doc();
-// embeddedObject()->setGeometry( zh->zoomRect( geometry() ), true );
+// embeddedObject()->setGeometry( zh->zoomRect( tqgeometry() ), true );
// return;
-// TQRect r = sheet()->doc()->zoomRect( geometry() );
+// TQRect r = sheet()->doc()->zoomRect( tqgeometry() );
// if ( _canvas )
// {
// kdDebug() << "_canvas->xOffset():" << _canvas->xOffset() << endl;
@@ -537,8 +537,8 @@ void EmbeddedKOfficeObject::updateChildGeometry()
*
**********************************************************/
-EmbeddedChart::EmbeddedChart( Doc *_spread, Sheet *_sheet, KoDocument* doc, const KoRect& geometry )
- : EmbeddedKOfficeObject( _spread, _sheet, doc, geometry )
+EmbeddedChart::EmbeddedChart( Doc *_spread, Sheet *_sheet, KoDocument* doc, const KoRect& tqgeometry )
+ : EmbeddedKOfficeObject( _spread, _sheet, doc, tqgeometry )
{
m_pBinding = 0;
}
@@ -687,8 +687,8 @@ KoChart::Part* EmbeddedChart::chart()
* EmbeddedPictureObject
*
**********************************************************/
-EmbeddedPictureObject::EmbeddedPictureObject( Sheet *_sheet, const KoRect& _geometry, KoPictureCollection *_imageCollection )
- : EmbeddedObject( _sheet, _geometry )
+EmbeddedPictureObject::EmbeddedPictureObject( Sheet *_sheet, const KoRect& _tqgeometry, KoPictureCollection *_imageCollection )
+ : EmbeddedObject( _sheet, _tqgeometry )
{
imageCollection = _imageCollection;
pen = KoPen( TQt::black, 1.0, Qt::NoPen );
@@ -706,8 +706,8 @@ EmbeddedPictureObject::EmbeddedPictureObject( Sheet *_sheet, const KoRect& _geom
}
-EmbeddedPictureObject::EmbeddedPictureObject( Sheet *_sheet, const KoRect& _geometry, KoPictureCollection *_imageCollection, const KoPictureKey & key )
- : EmbeddedObject( _sheet, _geometry )
+EmbeddedPictureObject::EmbeddedPictureObject( Sheet *_sheet, const KoRect& _tqgeometry, KoPictureCollection *_imageCollection, const KoPictureKey & key )
+ : EmbeddedObject( _sheet, _tqgeometry )
{
imageCollection = _imageCollection;
@@ -1015,7 +1015,7 @@ void EmbeddedPictureObject::loadOasis(const TQDomElement &element, KoOasisLoadin
strExtension=href.mid(result+1); // As we are using KoPicture, the extension should be without the dot.
}
TQString filename(href/*.mid(1)*/);
- const KoPictureKey key(filename, TQDateTime::currentDateTime(Qt::UTC));
+ const KoPictureKey key(filename, TQDateTime::tqcurrentDateTime(Qt::UTC));
image.setKey(key);
KoStore* store = context.store();
@@ -1149,10 +1149,10 @@ void EmbeddedPictureObject::loadOasis(const TQDomElement &element, KoOasisLoadin
void EmbeddedPictureObject::drawShadow( TQPainter* /*_painter*/, KoZoomHandler* /*_zoomHandler*/)
{
-// const double ox = /*orig*/m_geometry.x();
-// const double oy = /*orig*/m_geometry.y();
-// const double ow = /*ext*/m_geometry.width();
-// const double oh = /*ext*/m_geometry.height();
+// const double ox = /*orig*/m_tqgeometry.x();
+// const double oy = /*orig*/m_tqgeometry.y();
+// const double ow = /*ext*/m_tqgeometry.width();
+// const double oh = /*ext*/m_tqgeometry.height();
//
// _painter->save();
//
@@ -1208,7 +1208,7 @@ TQPixmap EmbeddedPictureObject::generatePixmap(KoZoomHandler*_zoomHandler)
{
const double penw = _zoomHandler->zoomItX( ( ( pen.style() == Qt::NoPen ) ? 1 : pen.width() ) / 2.0 );
- TQSize size( _zoomHandler->zoomSize( m_geometry.size() /*ext*/ ) );
+ TQSize size( _zoomHandler->zoomSize( m_tqgeometry.size() /*ext*/ ) );
//kdDebug(33001) << "EmbeddedPictureObject::generatePixmap size= " << size << endl;
TQPixmap pixmap(size);
TQPainter paint;
@@ -1221,8 +1221,8 @@ TQPixmap EmbeddedPictureObject::generatePixmap(KoZoomHandler*_zoomHandler)
paint.setBrush( getBrush() );
TQRect rect( (int)( penw ), (int)( penw ),
- (int)( _zoomHandler->zoomItX( /*ext*/m_geometry.width() ) - 2.0 * penw ),
- (int)( _zoomHandler->zoomItY( /*ext*/m_geometry.height() ) - 2.0 * penw ) );
+ (int)( _zoomHandler->zoomItX( /*ext*/m_tqgeometry.width() ) - 2.0 * penw ),
+ (int)( _zoomHandler->zoomItY( /*ext*/m_tqgeometry.height() ) - 2.0 * penw ) );
// if ( getFillType() == FT_BRUSH || !gradient )
paint.drawRect( rect );
@@ -1231,8 +1231,8 @@ TQPixmap EmbeddedPictureObject::generatePixmap(KoZoomHandler*_zoomHandler)
// gradient->setSize( size );
// paint.drawPixmap( (int)( penw ), (int)( penw ),
// gradient->pixmap(), 0, 0,
-// (int)( _zoomHandler->zoomItX( m_geometry/*ext*/.width() ) - 2 * penw ),
-// (int)( _zoomHandler->zoomItY( m_geometry/*ext*/.height() ) - 2 * penw ) );
+// (int)( _zoomHandler->zoomItX( m_tqgeometry/*ext*/.width() ) - 2 * penw ),
+// (int)( _zoomHandler->zoomItY( m_tqgeometry/*ext*/.height() ) - 2 * penw ) );
// }
@@ -1260,10 +1260,10 @@ void EmbeddedPictureObject::draw( TQPainter *_painter/*, KoZoomHandler*_zoomHand
// if ( shadowDistance > 0 && !drawContour )
// drawShadow(_painter, _zoomHandler);
- const double ox = /*orig*/m_geometry.x();
- const double oy = /*orig*/m_geometry.y();
- const double ow = /*ext*/m_geometry.width();
- const double oh = /*ext*/m_geometry.height();
+ const double ox = /*orig*/m_tqgeometry.x();
+ const double oy = /*orig*/m_tqgeometry.y();
+ const double ow = /*ext*/m_tqgeometry.width();
+ const double oh = /*ext*/m_tqgeometry.height();
//const double penw = _zoomHandler->zoomItX( ( ( pen.style() == Qt::NoPen ) ? 1.0 : pen.width() ) / 2.0 );
_painter->save();
diff --git a/kspread/kspread_object.h b/kspread/kspread_object.h
index b66d67ac5..46074109a 100644
--- a/kspread/kspread_object.h
+++ b/kspread/kspread_object.h
@@ -108,13 +108,13 @@ enum AlignType {
class EmbeddedObject
{
public:
- EmbeddedObject( Sheet *_sheet, const KoRect& _geometry );
+ EmbeddedObject( Sheet *_sheet, const KoRect& _tqgeometry );
virtual ~EmbeddedObject();
virtual ObjType getType() const { return OBJECT_GENERAL; }
virtual TQString getTypeString() const
{ return TQString(); }
- KoRect geometry();
+ KoRect tqgeometry();
void setGeometry( const KoRect &rect );
virtual void moveBy( const KoPoint &_point );
virtual void moveBy( double _dx, double _dy );
@@ -183,7 +183,7 @@ class EmbeddedObject
void paintSelection( TQPainter *_painter, SelectionMode selectionMode );
- virtual TQCursor getCursor( const TQPoint &_point, ModifyType &_modType, TQRect &geometry ) const;
+ virtual TQCursor getCursor( const TQPoint &_point, ModifyType &_modType, TQRect &tqgeometry ) const;
virtual void removeFromObjList()
{ inObjList = false; }
@@ -217,7 +217,7 @@ class EmbeddedObject
*/
void calculateRequiredZoom( TQSize desiredSize , double& xZoom, double& yZoom );
- KoRect m_geometry;
+ KoRect m_tqgeometry;
Sheet *m_sheet;
Canvas *m_canvas;
TQString m_objectName;
@@ -238,7 +238,7 @@ class EmbeddedObject
class EmbeddedKOfficeObject : public EmbeddedObject
{
public:
- EmbeddedKOfficeObject( Doc *parent, Sheet *_sheet, KoDocument* doc, const KoRect& geometry );
+ EmbeddedKOfficeObject( Doc *parent, Sheet *_sheet, KoDocument* doc, const KoRect& tqgeometry );
EmbeddedKOfficeObject( Doc *parent, Sheet *_sheet );
virtual ~EmbeddedKOfficeObject();
virtual ObjType getType() const { return OBJECT_KOFFICE_PART; }
@@ -314,8 +314,8 @@ class EmbeddedChart : public EmbeddedKOfficeObject
class EmbeddedPictureObject : public EmbeddedObject
{
public:
- EmbeddedPictureObject(Sheet *_sheet, const KoRect& _geometry, KoPictureCollection *_imageCollection );
- EmbeddedPictureObject(Sheet *_sheet, const KoRect& _geometry, KoPictureCollection *_imageCollection, const KoPictureKey & key );
+ EmbeddedPictureObject(Sheet *_sheet, const KoRect& _tqgeometry, KoPictureCollection *_imageCollection );
+ EmbeddedPictureObject(Sheet *_sheet, const KoRect& _tqgeometry, KoPictureCollection *_imageCollection, const KoPictureKey & key );
EmbeddedPictureObject( Sheet *_sheet, KoPictureCollection *_imageCollection );
virtual ~EmbeddedPictureObject();
EmbeddedPictureObject &operator=( const EmbeddedPictureObject & );
diff --git a/kspread/kspread_propertyEditor.cpp b/kspread/kspread_propertyEditor.cpp
index 3b84a3db3..6f38c25e3 100644
--- a/kspread/kspread_propertyEditor.cpp
+++ b/kspread/kspread_propertyEditor.cpp
@@ -280,7 +280,7 @@ KCommand * PropertyEditor::getCommand()
TQPtrListIterator<EmbeddedObject> it( m_objects );
for ( ; it.current(); ++it )
{
- KoRect oldRect = it.current()->geometry()/*getRect()*/;
+ KoRect oldRect = it.current()->tqgeometry()/*getRect()*/;
KoRect newRect = oldRect;
if ( change & GeneralProperty::Left )
@@ -446,7 +446,7 @@ GeneralProperty::GeneralValue PropertyEditor::getGeneralValue()
generalValue.m_protect = protect ? STATE_ON : STATE_OFF;
keepRatio = it.current()->isKeepRatio();
generalValue.m_keepRatio = keepRatio ? STATE_ON : STATE_OFF;
- generalValue.m_rect = it.current()->geometry()/*getRect()*/;
+ generalValue.m_rect = it.current()->tqgeometry()/*getRect()*/;
++it;
}
diff --git a/kspread/kspread_sheet.cc b/kspread/kspread_sheet.cc
index d0eb13d7e..09abcf8aa 100644
--- a/kspread/kspread_sheet.cc
+++ b/kspread/kspread_sheet.cc
@@ -29,9 +29,9 @@
#include <tqapplication.h>
#include <tqcheckbox.h>
-#include <clipboard.h>
+#include <tqclipboard.h>
#include <tqlabel.h>
-#include <layout.h>
+#include <tqlayout.h>
#include <tqlineedit.h>
#include <tqpicture.h>
#include <tqregexp.h>
@@ -151,7 +151,7 @@ void ChartBinding::cellChanged( Cell* /*changedCell*/ )
//Ensure display gets updated by marking all cells underneath the chart as
//dirty
- const TQRect chartGeometry = m_child->geometry().toTQRect();
+ const TQRect chartGeometry = m_child->tqgeometry().toTQRect();
double tmp;
int left = sheet()->leftColumn( chartGeometry.left() , tmp );
@@ -201,7 +201,7 @@ void ChartBinding::cellChanged( Cell* /*changedCell*/ )
// Force a redraw of the chart on all views
- /** TODO - replace the call below with something that will repaint this chart */
+ /** TODO - replace the call below with something that will tqrepaint this chart */
#endif
// sheet()->emit_polygonInvalidated( m_child->framePointArray() );
}
@@ -222,12 +222,12 @@ TextDrag::~TextDrag()
}
-TQByteArray TextDrag::encodedData( const char * mime ) const
+TQByteArray TextDrag::tqencodedData( const char * mime ) const
{
if ( strcmp( selectionMimeType(), mime ) == 0)
return m_kspread;
else
- return TQTextDrag::encodedData( mime );
+ return TQTextDrag::tqencodedData( mime );
}
bool TextDrag::canDecode( TQMimeSource* e )
@@ -1819,7 +1819,7 @@ struct SetSelectionFirstLetterUpperWorker : public Sheet::CellWorker
cell->setDisplayDirtyFlag();
TQString tmp = cell->text();
int len = tmp.length();
- cell->setCellText( (tmp.at(0).upper()+tmp.right(len-1)) );
+ cell->setCellText( (tmp.tqat(0).upper()+tmp.right(len-1)) );
cell->clearDisplayDirtyFlag();
}
};
@@ -3940,7 +3940,7 @@ void Sheet::swapCells( int x1, int y1, int x2, int y2, bool cpFormat )
}
// Dummy cell used for swapping cells.
- // In fact we copy only content and no layout
+ // In fact we copy only content and no tqlayout
// information. Imagine sorting in a sheet. Swapping
// the format while sorting is not what you would expect
// as a user.
@@ -5088,7 +5088,7 @@ void Sheet::copySelection( Selection* selectionInfo )
kd->setPlain( copyAsText(selectionInfo) );
kd->setKSpread( buffer.buffer() );
- TQApplication::clipboard()->setData( kd );
+ TQApplication::tqclipboard()->setData( kd );
}
void Sheet::cutSelection( Selection* selectionInfo )
@@ -5107,7 +5107,7 @@ void Sheet::cutSelection( Selection* selectionInfo )
kd->setPlain( copyAsText(selectionInfo) );
kd->setKSpread( buffer.buffer() );
- TQApplication::clipboard()->setData( kd );
+ TQApplication::tqclipboard()->setData( kd );
deleteSelection( selectionInfo, true );
}
@@ -5117,7 +5117,7 @@ void Sheet::paste( const TQRect& pasteArea, bool makeUndo,
bool insert, int insertTo, bool pasteFC,
TQClipboard::Mode clipboardMode )
{
- TQMimeSource * mime = TQApplication::clipboard()->data( clipboardMode );
+ TQMimeSource * mime = TQApplication::tqclipboard()->data( clipboardMode );
if ( !mime )
return;
@@ -5125,13 +5125,13 @@ void Sheet::paste( const TQRect& pasteArea, bool makeUndo,
if ( mime->provides( TextDrag::selectionMimeType() ) )
{
- b = mime->encodedData( TextDrag::selectionMimeType() );
+ b = mime->tqencodedData( TextDrag::selectionMimeType() );
}
else if( mime->provides( "text/plain" ) )
{
- // Note: TQClipboard::text() seems to do a better job than encodedData( "text/plain" )
+ // Note: TQClipboard::text() seems to do a better job than tqencodedData( "text/plain" )
// In particular it handles charsets (in the mimetype). Copied from KPresenter ;-)
- TQString _text = TQApplication::clipboard()->text( clipboardMode );
+ TQString _text = TQApplication::tqclipboard()->text( clipboardMode );
doc()->emitBeginOperation();
pasteTextPlain( _text, pasteArea );
emit sig_updateView( this );
@@ -5152,7 +5152,7 @@ void Sheet::paste( const TQRect& pasteArea, bool makeUndo,
void Sheet::pasteTextPlain( TQString &_text, TQRect pasteArea)
{
// TQString tmp;
-// tmp= TQString::fromLocal8Bit(_mime->encodedData( "text/plain" ));
+// tmp= TQString::fromLocal8Bit(_mime->tqencodedData( "text/plain" ));
if( _text.isEmpty() )
return;
@@ -5523,14 +5523,14 @@ void Sheet::loadSelectionUndo(const TQDomDocument& d, const TQRect& loadArea,
bool Sheet::testAreaPasteInsert()const
{
- TQMimeSource* mime = TQApplication::clipboard()->data( TQClipboard::Clipboard );
+ TQMimeSource* mime = TQApplication::tqclipboard()->data( TQClipboard::Clipboard );
if ( !mime )
return false;
TQByteArray b;
if ( mime->provides( "application/x-kspread-snippet" ) )
- b = mime->encodedData( "application/x-kspread-snippet" );
+ b = mime->tqencodedData( "application/x-kspread-snippet" );
else
return false;
@@ -6129,7 +6129,7 @@ KoRect Sheet::getRealRect( bool all )
{
if ( all || ( it.current()->isSelected() && ! it.current()->isProtect() ) )
- rect |= it.current()->geometry();
+ rect |= it.current()->tqgeometry();
}
return rect;
@@ -6149,12 +6149,12 @@ KCommand *Sheet::moveObject(View *_view, double diffx, double diffy)
if ( it.current()->isSelected() && !it.current()->isProtect())
{
_objects.append( it.current() );
- KoRect geometry = it.current()->geometry();
- geometry.moveBy( -canvas->xOffset(), -canvas->yOffset() );
- TQRect br = doc()->zoomRect( geometry/*it.current()->geometry()*/ );
+ KoRect tqgeometry = it.current()->tqgeometry();
+ tqgeometry.moveBy( -canvas->xOffset(), -canvas->yOffset() );
+ TQRect br = doc()->zoomRect( tqgeometry/*it.current()->tqgeometry()*/ );
br.moveBy( doc()->zoomItX( diffx ), doc()->zoomItY( diffy ) );
br.moveBy( doc()->zoomItX( -canvas->xOffset() ), doc()->zoomItY( -canvas->yOffset() ) );
- canvas->repaint( br ); // Previous position
+ canvas->tqrepaint( br ); // Previous position
canvas->repaintObject( it.current() ); // New position
createCommand=true;
}
@@ -6179,18 +6179,18 @@ KCommand *Sheet::moveObject(View *_view,const KoPoint &_move,bool key)
{
if ( it.current()->isSelected() && !it.current()->isProtect()) {
- KoRect geometry = it.current()->geometry();
- geometry.moveBy( -canvas->xOffset(), -canvas->yOffset() );
- TQRect oldBoundingRect = doc()->zoomRect( geometry );
+ KoRect tqgeometry = it.current()->tqgeometry();
+ tqgeometry.moveBy( -canvas->xOffset(), -canvas->yOffset() );
+ TQRect oldBoundingRect = doc()->zoomRect( tqgeometry );
- KoRect r = it.current()->geometry();
+ KoRect r = it.current()->tqgeometry();
r.moveBy( _move.x(), _move.y() );
it.current()->setGeometry( r );
_objects.append( it.current() );
- canvas->repaint( oldBoundingRect );
+ canvas->tqrepaint( oldBoundingRect );
canvas->repaintObject( it.current() );
}
}
@@ -6235,7 +6235,7 @@ void Sheet::unifyObjectName( EmbeddedObject *object ) {
if ( rx.search( objectName ) != -1 ) {
objectName.remove( rx );
}
- objectName += TQString(" (%1)").arg( count );
+ objectName += TQString(" (%1)").tqarg( count );
object->setObjectName( objectName );
}
}
@@ -6418,16 +6418,16 @@ bool Sheet::loadOasis( const TQDomElement& sheetElement, KoOasisLoadingContext&
if ( masterStyle )
{
loadSheetStyleFormat( masterStyle );
- if ( masterStyle->hasAttributeNS( KoXmlNS::style, "page-layout-name" ) )
+ if ( masterStyle->hasAttributeNS( KoXmlNS::style, "page-tqlayout-name" ) )
{
- TQString masterPageLayoutStyleName = masterStyle->attributeNS( KoXmlNS::style, "page-layout-name", TQString() );
+ TQString masterPageLayoutStyleName = masterStyle->attributeNS( KoXmlNS::style, "page-tqlayout-name", TQString() );
//kdDebug()<<"masterPageLayoutStyleName :"<<masterPageLayoutStyleName<<endl;
const TQDomElement *masterLayoutStyle = oasisContext.oasisStyles().findStyle( masterPageLayoutStyleName );
if ( masterLayoutStyle )
{
//kdDebug()<<"masterLayoutStyle :"<<masterLayoutStyle<<endl;
KoStyleStack styleStack;
- styleStack.setTypeProperties( "page-layout" );
+ styleStack.setTypeProperties( "page-tqlayout" );
styleStack.push( *masterLayoutStyle );
loadOasisMasterLayoutPage( styleStack );
}
@@ -6479,7 +6479,7 @@ bool Sheet::loadOasis( const TQDomElement& sheetElement, KoOasisLoadingContext&
loadRowFormat( rowElement, rowIndex, oasisContext, /*rowNode.isNull() ,*/ styleMap );
kdDebug()<<" table-row found :index row after "<<rowIndex<<endl;
}
- else if ( rowElement.localName() == "shapes" )
+ else if ( rowElement.localName() == "tqshapes" )
loadOasisObjects( rowElement, oasisContext );
}
}
@@ -6564,7 +6564,7 @@ void Sheet::loadOasisMasterLayoutPage( KoStyleStack &styleStack )
TQString orientation = "Portrait";
TQString format;
- // Laurent : Why we stored layout information as Millimeter ?!!!!!
+ // Laurent : Why we stored tqlayout information as Millimeter ?!!!!!
// kspread used point for all other attribute
// I don't understand :(
if ( styleStack.hasAttributeNS( KoXmlNS::fo, "page-width" ) )
@@ -6685,7 +6685,7 @@ void Sheet::loadOasisMasterLayoutPage( KoStyleStack &styleStack )
kdDebug()<<" table-centering unknown :"<<str<<endl;
#endif
}
- format = TQString( "%1x%2" ).arg( width ).arg( height );
+ format = TQString( "%1x%2" ).tqarg( width ).tqarg( height );
kdDebug()<<" format : "<<format<<endl;
d->print->setPaperLayout( left, top, right, bottom, format, orientation );
@@ -6717,7 +6717,7 @@ bool Sheet::loadColumnFormat(const TQDomElement& column, const KoOasisStyles& oa
kdDebug() << "Repeated: " << number << endl;
}
- Format layout( this , doc()->styleManager()->defaultStyle() );
+ Format tqlayout( this , doc()->styleManager()->defaultStyle() );
if ( column.hasAttributeNS( KoXmlNS::table, "default-cell-style-name" ) )
{
const TQString styleName = column.attributeNS( KoXmlNS::table, "default-cell-style-name", TQString() );
@@ -6726,7 +6726,7 @@ bool Sheet::loadColumnFormat(const TQDomElement& column, const KoOasisStyles& oa
Style* const style = styleMap[ styleName ];
if ( style )
{
- layout.setStyle( style );
+ tqlayout.setStyle( style );
isNonDefaultColumn = true;
}
}
@@ -6799,7 +6799,7 @@ bool Sheet::loadColumnFormat(const TQDomElement& column, const KoOasisStyles& oa
{
columnFormat = this->columnFormat( indexCol );
}
- columnFormat->copy( layout );
+ columnFormat->copy( tqlayout );
++indexCol;
}
@@ -6828,7 +6828,7 @@ bool Sheet::loadRowFormat( const TQDomElement& row, int &rowIndex, KoOasisLoadin
}
styleStack.setTypeProperties( "table-row" );
- Format layout( this , doc()->styleManager()->defaultStyle() );
+ Format tqlayout( this , doc()->styleManager()->defaultStyle() );
if ( row.hasAttributeNS( KoXmlNS::table,"default-cell-style-name" ) )
{
const TQString styleName = row.attributeNS( KoXmlNS::table, "default-cell-style-name", TQString() );
@@ -6837,7 +6837,7 @@ bool Sheet::loadRowFormat( const TQDomElement& row, int &rowIndex, KoOasisLoadin
Style* const style = styleMap[ styleName ];
if ( style )
{
- layout.setStyle( style );
+ tqlayout.setStyle( style );
isNonDefaultRow = true;
}
}
@@ -6908,7 +6908,7 @@ bool Sheet::loadRowFormat( const TQDomElement& row, int &rowIndex, KoOasisLoadin
{
rowFormat = this->rowFormat( rowIndex );
}
- rowFormat->copy( layout );
+ rowFormat->copy( tqlayout );
++rowIndex;
}
@@ -7171,7 +7171,7 @@ void Sheet::convertPart( const TQString & part, KoXmlWriter & xmlWriter ) const
TQDomElement t = dd.createElement( "text:date" );
t.setAttribute( "text:date-value", "0-00-00" );
// todo: "style:data-style-name", "N2"
- t.appendChild( dd.createTextNode( TQDate::currentDate().toString() ) );
+ t.appendChild( dd.createTextNode( TQDate::tqcurrentDate().toString() ) );
parent.appendChild( t );
#endif
}
@@ -7355,7 +7355,7 @@ TQString Sheet::saveOasisSheetStyleName( KoGenStyles &mainStyles )
KoGenStyle pageStyle( Doc::STYLE_PAGE, "table"/*FIXME I don't know if name is sheet*/ );
KoGenStyle pageMaster( Doc::STYLE_PAGEMASTER );
- pageMaster.addAttribute( "style:page-layout-name", d->print->saveOasisSheetStyleLayout( mainStyles ) );
+ pageMaster.addAttribute( "style:page-tqlayout-name", d->print->saveOasisSheetStyleLayout( mainStyles ) );
TQBuffer buffer;
buffer.open( IO_WriteOnly );
@@ -7391,7 +7391,7 @@ void Sheet::saveOasisColRowCell( KoXmlWriter& xmlWriter, KoGenStyles &mainStyles
currentColumnStyle.addPropertyPt( "style:column-width", column->dblWidth() );
currentColumnStyle.addProperty( "fo:break-before", "auto" );/*FIXME auto or not ?*/
- //style default layout for column
+ //style default tqlayout for column
KoGenStyle currentDefaultCellStyle; // the type is determined in saveOasisCellStyle
TQString currentDefaultCellStyleName = column->saveOasisCellStyle( currentDefaultCellStyle, mainStyles );
@@ -7774,7 +7774,7 @@ bool Sheet::loadXML( const TQDomElement& sheet )
// we just ignore 'ok' - if it didn't work, go on
}
- // Load the paper layout
+ // Load the paper tqlayout
TQDomElement paper = sheet.namedItem( "paper" ).toElement();
if ( !paper.isNull() )
{
@@ -8071,7 +8071,7 @@ void Sheet::updateCell( Cell */*cell*/, int _column, int _row )
updateCellArea(cellArea);
}
-void Sheet::emit_updateRow( RowFormat *_format, int _row, bool repaint )
+void Sheet::emit_updateRow( RowFormat *_format, int _row, bool tqrepaint )
{
if ( doc()->isLoading() )
return;
@@ -8081,7 +8081,7 @@ void Sheet::emit_updateRow( RowFormat *_format, int _row, bool repaint )
if ( c->row() == _row )
c->setLayoutDirtyFlag( true );
- if ( repaint )
+ if ( tqrepaint )
{
//All the cells in this row, or below this row will need to be repainted
//So add that region of the sheet to the paint dirty list.
@@ -8256,7 +8256,7 @@ bool Sheet::saveChildren( KoStore* _store, const TQString &_path )
{
if ( it.current()->sheet() == this && ( it.current()->getType() == OBJECT_KOFFICE_PART || it.current()->getType() == OBJECT_CHART ) )
{
- TQString path = TQString( "%1/%2" ).arg( _path ).arg( i++ );
+ TQString path = TQString( "%1/%2" ).tqarg( _path ).tqarg( i++ );
if ( !dynamic_cast<EmbeddedKOfficeObject*>( it.current() )->embeddedObject()->document()->saveToStore( _store, path ) )
return false;
}
@@ -8279,7 +8279,7 @@ bool Sheet::saveOasisObjects( KoStore */*store*/, KoXmlWriter &xmlWriter, KoGenS
{
if ( !objectFound )
{
- xmlWriter.startElement( "table:shapes" );
+ xmlWriter.startElement( "table:tqshapes" );
objectFound = true;
}
if ( !it.current()->saveOasisObject(sc) )
@@ -8565,7 +8565,7 @@ void Sheet::printDebug()
cellDescr += " | ";
cellDescr += cell->text();
if ( cell->isFormula() )
- cellDescr += TQString(" [result: %1]").arg( cell->value().asString() );
+ cellDescr += TQString(" [result: %1]").tqarg( cell->value().asString() );
kdDebug(36001) << cellDescr << endl;
}
}
diff --git a/kspread/kspread_sheet.h b/kspread/kspread_sheet.h
index 723e6807c..5d907810a 100644
--- a/kspread/kspread_sheet.h
+++ b/kspread/kspread_sheet.h
@@ -22,7 +22,7 @@
#ifndef KSPREAD_SHEET
#define KSPREAD_SHEET
-#include <clipboard.h>
+#include <tqclipboard.h>
#include <tqdragobject.h>
#include <tqintdict.h>
#include <tqmemarray.h>
@@ -160,7 +160,7 @@ public:
void setPlain( TQString const & _plain ) { setText( _plain ); }
void setKSpread( TQByteArray const & _kspread ) { m_kspread = _kspread; }
- virtual TQByteArray encodedData( const char * mime ) const;
+ virtual TQByteArray tqencodedData( const char * mime ) const;
virtual const char* format( int i ) const;
static bool canDecode( TQMimeSource * e );
@@ -240,11 +240,11 @@ public:
Doc* doc() const;
/**
- * Saves the sheet and all it's children in XML format
+ * Saves the sheet and all it's tqchildren in XML format
*/
virtual TQDomElement saveXML( TQDomDocument& );
/**
- * Loads the sheet and all it's children in XML format
+ * Loads the sheet and all it's tqchildren in XML format
*/
virtual bool loadXML( const TQDomElement& );
@@ -259,12 +259,12 @@ public:
void saveOasisPrintStyleLayout( KoGenStyle &style ) const;
/**
- * Saves a children
+ * Saves a tqchildren
*/
virtual bool saveChildren( KoStore* _store, const TQString &_path );
bool saveOasisObjects( KoStore *store, KoXmlWriter &xmlWriter, KoGenStyles& mainStyles, int & indexObj, int &partIndexObj );
/**
- * Loads a children
+ * Loads a tqchildren
*/
virtual bool loadChildren( KoStore* _store );
@@ -305,13 +305,13 @@ public:
void unifyObjectName( EmbeddedObject *object );
/**
- * Returns the layout direction of the sheet.
+ * Returns the tqlayout direction of the sheet.
*/
LayoutDirection layoutDirection() const;
/**
- * Sets the layout direction of the sheet. For example, for Arabic or Hebrew
- * documents, it is possibly to layout the sheet from right to left.
+ * Sets the tqlayout direction of the sheet. For example, for Arabic or Hebrew
+ * documents, it is possibly to tqlayout the sheet from right to left.
*/
void setLayoutDirection( LayoutDirection dir );
@@ -991,9 +991,9 @@ public:
void autofill( TQRect &src, TQRect &dest );
- bool insertChild( const KoRect& _geometry, KoDocumentEntry& );
+ bool insertChild( const KoRect& _tqgeometry, KoDocumentEntry& );
- bool insertChart( const KoRect& _geometry, KoDocumentEntry&, const TQRect& _data );
+ bool insertChart( const KoRect& _tqgeometry, KoDocumentEntry&, const TQRect& _data );
/**
@@ -1016,9 +1016,9 @@ public:
*/
bool insertPicture( const KoPoint& point, const TQPixmap& pixmap );
- void changeChildGeometry( EmbeddedKOfficeObject *_child, const KoRect& _geometry );
+ void changeChildGeometry( EmbeddedKOfficeObject *_child, const KoRect& _tqgeometry );
- const TQColorGroup& colorGroup() { return widget()->colorGroup(); }
+ const TQColorGroup& tqcolorGroup() { return widget()->tqcolorGroup(); }
int id() const;
@@ -1033,7 +1033,7 @@ public:
* Checks if the argument _column is out of the current maximum range of the vertical border
* If this is the case, the current maximum value m_iMaxColumn is adjusted and the vertical border
* is resized.
- * Use this function with care, as it involves a repaint of the border, when it is out of range.
+ * Use this function with care, as it involves a tqrepaint of the border, when it is out of range.
*/
void checkRangeHBorder ( int _column );
@@ -1048,7 +1048,7 @@ public:
* Checks if the argument _row is out of the current maximum range of the horizontal border
* If this is the case, the current maximum value m_iMaxRow is adjusted and the horizontal border
* is resized.
- * Use this function with care, as it involves a repaint of the border, when it is out of range.
+ * Use this function with care, as it involves a tqrepaint of the border, when it is out of range.
*/
void checkRangeVBorder ( int _row );
@@ -1064,7 +1064,7 @@ public:
#endif
/**
- * Calculates the cell if necessary, makes its layout if necessary,
+ * Calculates the cell if necessary, makes its tqlayout if necessary,
* and force redraw.
* Then it sets the cell's @ref Cell::m_bDisplayDirtyFlag to false.
*/
@@ -1102,7 +1102,7 @@ public:
*/
void refreshView(const Region& region);
- void emit_updateRow( RowFormat *_format, int _row, bool repaint = true );
+ void emit_updateRow( RowFormat *_format, int _row, bool tqrepaint = true );
void emit_updateColumn( ColumnFormat *_format, int _column );
/**
diff --git a/kspread/kspread_sheetprint.cc b/kspread/kspread_sheetprint.cc
index a70445eb7..c3c12117e 100644
--- a/kspread/kspread_sheetprint.cc
+++ b/kspread/kspread_sheetprint.cc
@@ -126,8 +126,8 @@ TQRect SheetPrint::cellsPrintRange()
}
}
- // Now look at the children
- TQPtrListIterator<KoDocumentChild> cit( m_pDoc->children() );
+ // Now look at the tqchildren
+ TQPtrListIterator<KoDocumentChild> cit( m_pDoc->tqchildren() );
double dummy;
int i;
for( ; cit.current(); ++cit )
@@ -190,7 +190,7 @@ bool SheetPrint::pageNeedsPrinting( TQRect& page_range )
}
// filled = true;
- //Page empty, but maybe children on it?
+ //Page empty, but maybe tqchildren on it?
TQRect intView = TQRect( TQPoint( m_pDoc->zoomItX( m_pSheet->dblColumnPos( page_range.left() ) ),
m_pDoc->zoomItY( m_pSheet->dblRowPos( page_range.top() ) ) ),
@@ -199,7 +199,7 @@ bool SheetPrint::pageNeedsPrinting( TQRect& page_range )
m_pDoc->zoomItY( m_pSheet->dblRowPos( page_range.bottom() ) +
m_pSheet->rowFormat( page_range.bottom() )->dblHeight() ) ) );
- TQPtrListIterator<KoDocumentChild> it( m_pDoc->children() );
+ TQPtrListIterator<KoDocumentChild> it( m_pDoc->tqchildren() );
for( ;it.current(); ++it )
{
TQRect bound = it.current()->boundingRect();
@@ -295,7 +295,7 @@ bool SheetPrint::print( TQPainter &painter, KPrinter *_printer )
( obj->getType() == OBJECT_CHART && m_bPrintCharts ) ) )
continue;
- TQRect zoomRect = m_pDoc->zoomRect( itObject.current()->geometry() );
+ TQRect zoomRect = m_pDoc->zoomRect( itObject.current()->tqgeometry() );
TQPixmap *p = new TQPixmap( zoomRect.size() );
TQPainter painter(p);
painter.fillRect( p->rect(), TQColor("white") );
@@ -575,24 +575,24 @@ void SheetPrint::printRect( TQPainter& painter, const KoPoint& topLeft,
}
//
- // Draw the children
+ // Draw the tqchildren
//
TQRect zoomedView = m_pDoc->zoomRect( view );
- //TQPtrListIterator<KoDocumentChild> it( m_pDoc->children() );
+ //TQPtrListIterator<KoDocumentChild> it( m_pDoc->tqchildren() );
//TQPtrListIterator<EmbeddedObject> itObject( m_pDoc->embeddedObjects() );
TQValueList<PrintObject *>::iterator itObject;
for ( itObject = m_printObjects.begin(); itObject != m_printObjects.end(); ++itObject ) {
EmbeddedObject *obj = (*itObject)->obj;
// TQString tmp=TQString("Testing child %1/%2 %3/%4 against view %5/%6 %7/%8")
-// .arg(it.current()->contentRect().left())
-// .arg(it.current()->contentRect().top())
-// .arg(it.current()->contentRect().right())
-// .arg(it.current()->contentRect().bottom())
-// .arg(view.left()).arg(view.top()).arg(zoomedView.right()).arg(zoomedView.bottom());
+// .tqarg(it.current()->contentRect().left())
+// .tqarg(it.current()->contentRect().top())
+// .tqarg(it.current()->contentRect().right())
+// .tqarg(it.current()->contentRect().bottom())
+// .tqarg(view.left()).tqarg(view.top()).tqarg(zoomedView.right()).tqarg(zoomedView.bottom());
// kdDebug(36001)<<tmp<<" offset "<<_childOffset.x()<<"/"<<_childOffset.y()<<endl;
- KoRect const bound = obj->geometry();
+ KoRect const bound = obj->tqgeometry();
TQRect zoomedBound = m_pDoc->zoomRect( KoRect(bound.left(), bound.top(),
bound.width(),
bound.height() ) );
@@ -614,14 +614,14 @@ void SheetPrint::printRect( TQPainter& painter, const KoPoint& topLeft,
-zoomedView.top() + m_pDoc->zoomItY( topLeft.y() ) );
//obj->draw( &painter );
- painter.drawPixmap( m_pDoc->zoomRect( obj->geometry() ).topLeft(), *(*itObject)->p ); //draw the cached object
+ painter.drawPixmap( m_pDoc->zoomRect( obj->tqgeometry() ).topLeft(), *(*itObject)->p ); //draw the cached object
//painter.fillRect(zoomedBound, TQBrush("red")); //for debug purpose
painter.restore();
}
}
- //Don't let obscuring cells and children overpaint this area
+ //Don't let obscuring cells and tqchildren overpaint this area
clipRegion -= TQRegion ( m_pDoc->zoomItX( leftBorderPts() + topLeft.x() ),
m_pDoc->zoomItY( topBorderPts() + topLeft.y() ),
m_pDoc->zoomItX( xpos ),
@@ -1273,7 +1273,7 @@ TQString SheetPrint::completeHeading( const TQString &_data, int _page, const TQ
fileName="";
TQString t(TQTime::currentTime().toString());
- TQString d(TQDate::currentDate().toString());
+ TQString d(TQDate::tqcurrentDate().toString());
TQString ta;
if ( !_sheet.isEmpty() )
ta = _sheet;
@@ -1303,7 +1303,7 @@ TQString SheetPrint::completeHeading( const TQString &_data, int _page, const TQ
full_name=p->pw_gecos;
if( email_addr.isEmpty())
- email_addr = TQString("%1@%2").arg(p->pw_name).arg(hostname);
+ email_addr = TQString("%1@%2").tqarg(p->pw_name).tqarg(hostname);
tmp = _data;
int pos = 0;
diff --git a/kspread/kspread_sheetprint.h b/kspread/kspread_sheetprint.h
index 1f22dc7da..0062476dc 100644
--- a/kspread/kspread_sheetprint.h
+++ b/kspread/kspread_sheetprint.h
@@ -148,12 +148,12 @@ public:
void setPaperOrientation(KoOrientation _orient);
/**
- * Returns the page layout
+ * Returns the page tqlayout
*/
KoPageLayout paperLayout() const;
/**
- * Changes the paper layout and repaints the currently displayed Sheet.
+ * Changes the paper tqlayout and repaints the currently displayed Sheet.
*/
void setPaperLayout( float _leftBorder, float _topBorder, float _rightBorder, float _bottomBoder,
KoFormat _paper, KoOrientation orientation );
@@ -449,7 +449,7 @@ private:
* the printing frame.
*
* @param _childOffset KoPoint used to calculate the correct position of
- * children, if there are repeated columns/rows.
+ * tqchildren, if there are repeated columns/rows.
*/
void printPage( TQPainter &_painter, const TQRect& page_range,
const KoRect& view, const KoPoint _childOffset );
@@ -492,7 +492,7 @@ private:
/**
* Returns a rect, which contains the cols and rows to be printed.
- * It respects the printrange and the children
+ * It respects the printrange and the tqchildren
*/
TQRect cellsPrintRange();
diff --git a/kspread/kspread_style.cc b/kspread/kspread_style.cc
index dc8b7add2..af5b91a1b 100644
--- a/kspread/kspread_style.cc
+++ b/kspread/kspread_style.cc
@@ -134,7 +134,7 @@ bool Style::operator == (const Style& style) const
if ( m_type != style.m_type )
return false;
// NOTE Stefan: Only compare the values of the set features.
- if ( // layout (4)
+ if ( // tqlayout (4)
( m_featuresSet & SAlignX ) && ( m_alignX != style.m_alignX ) ||
( m_featuresSet & SAlignY ) && ( m_alignY != style.m_alignY ) ||
( m_featuresSet & SAngle ) && ( m_rotateAngle != style.m_rotateAngle ) ||
diff --git a/kspread/kspread_style.h b/kspread/kspread_style.h
index a0e7f0d51..2ae6299cf 100644
--- a/kspread/kspread_style.h
+++ b/kspread/kspread_style.h
@@ -20,7 +20,7 @@
#ifndef __kspread_style__
#define __kspread_style__
-#include <brush.h>
+#include <tqbrush.h>
#include <tqcolor.h>
#include <tqfont.h>
#include <tqpen.h>
diff --git a/kspread/kspread_toolbox.cc b/kspread/kspread_toolbox.cc
index d2b6edcdc..06e7a6891 100644
--- a/kspread/kspread_toolbox.cc
+++ b/kspread/kspread_toolbox.cc
@@ -22,7 +22,7 @@
#include <twin.h>
-#include <layout.h>
+#include <tqlayout.h>
#include <tqspinbox.h>
#include <tqobjectlist.h>
@@ -59,7 +59,7 @@ void ToolBox::setEnabled( bool enable )
}
else
{
- if ( focusWidget() == this )
+ if ( tqfocusWidget() == this )
focusNextPrevChild( TRUE );
TQObjectList clo = childrenListObject();
if ( !clo.isEmpty() )
@@ -97,12 +97,12 @@ void ToolBox::childEvent( TQChildEvent* ev )
{
if ( ev->inserted() && ev->child()->isWidgetType() )
m_layout->addWidget( (TQWidget*)ev->child() );
- resize( sizeHint() );
+ resize( tqsizeHint() );
}
void ToolBox::mousePressEvent( TQMouseEvent* ev )
{
- m_startPos = geometry().topLeft();
+ m_startPos = tqgeometry().topLeft();
m_mousePos = ev->globalPos();
}
diff --git a/kspread/kspread_undo.cc b/kspread/kspread_undo.cc
index 28f592651..6036344ca 100644
--- a/kspread/kspread_undo.cc
+++ b/kspread/kspread_undo.cc
@@ -266,7 +266,7 @@ UndoRemoveColumn::UndoRemoveColumn( Doc *_doc, Sheet *_sheet, int _column,int _n
TQTextStream str( &buffer, IO_WriteOnly );
str << doc;
- // This is a terrible hack to store unicode
+ // This is a terrible hack to store tqunicode
// data in a TQCString in a way that
// TQCString::length() == TQCString().size().
// This allows us to treat the TQCString like a TQByteArray later on.
@@ -385,7 +385,7 @@ UndoRemoveRow::UndoRemoveRow( Doc *_doc, Sheet *_sheet, int _row,int _nbRow) :
TQTextStream str( &buffer, IO_WriteOnly );
str << doc;
- // This is a terrible hack to store unicode
+ // This is a terrible hack to store tqunicode
// data in a TQCString in a way that
// TQCString::length() == TQCString().size().
// This allows us to treat the TQCString like a TQByteArray later on.
@@ -942,20 +942,20 @@ void UndoCellFormat::copyFormat(TQValueList<layoutCell> & list,
/* Don't need to go through the loop twice...
for (int i = range.left(); i <= right; ++i)
{
- layoutColumn tmplayout;
- tmplayout.col = i;
- tmplayout.l = new ColumnFormat( sheet, i );
- tmplayout.l->copy( *(sheet->columnFormat( i )) );
- listCol.append(tmplayout);
+ layoutColumn tmptqlayout;
+ tmptqlayout.col = i;
+ tmptqlayout.l = new ColumnFormat( sheet, i );
+ tmptqlayout.l->copy( *(sheet->columnFormat( i )) );
+ listCol.append(tmptqlayout);
}
*/
for ( int c = range.left(); c <= right; ++c )
{
- layoutColumn tmplayout;
- tmplayout.col = c;
- tmplayout.l = new ColumnFormat( sheet, c );
- tmplayout.l->copy( *(sheet->columnFormat( c )) );
- listCol.append(tmplayout);
+ layoutColumn tmptqlayout;
+ tmptqlayout.col = c;
+ tmptqlayout.l = new ColumnFormat( sheet, c );
+ tmptqlayout.l->copy( *(sheet->columnFormat( c )) );
+ listCol.append(tmptqlayout);
cell = sheet->getFirstCellColumn( c );
while ( cell )
@@ -966,12 +966,12 @@ void UndoCellFormat::copyFormat(TQValueList<layoutCell> & list,
continue;
}
- layoutCell tmplayout;
- tmplayout.col = c;
- tmplayout.row = cell->row();
- tmplayout.l = new Format( sheet, 0 );
- tmplayout.l->copy( *(sheet->cellAt( tmplayout.col, tmplayout.row )->format()) );
- list.append(tmplayout);
+ layoutCell tmptqlayout;
+ tmptqlayout.col = c;
+ tmptqlayout.row = cell->row();
+ tmptqlayout.l = new Format( sheet, 0 );
+ tmptqlayout.l->copy( *(sheet->cellAt( tmptqlayout.col, tmptqlayout.row )->format()) );
+ list.append(tmptqlayout);
cell = sheet->getNextCellDown( c, cell->row() );
}
@@ -984,12 +984,12 @@ void UndoCellFormat::copyFormat(TQValueList<layoutCell> & list,
if ( range.left() <= col && right >= col
&& !c->isPartOfMerged())
{
- layoutCell tmplayout;
- tmplayout.col = c->column();
- tmplayout.row = c->row();
- tmplayout.l = new Format( sheet, 0 );
- tmplayout.l->copy( *(sheet->cellAt( tmplayout.col, tmplayout.row )) );
- list.append(tmplayout);
+ layoutCell tmptqlayout;
+ tmptqlayout.col = c->column();
+ tmptqlayout.row = c->row();
+ tmptqlayout.l = new Format( sheet, 0 );
+ tmptqlayout.l->copy( *(sheet->cellAt( tmptqlayout.col, tmptqlayout.row )) );
+ list.append(tmptqlayout);
}
}
*/
@@ -998,11 +998,11 @@ void UndoCellFormat::copyFormat(TQValueList<layoutCell> & list,
{
for ( int row = range.top(); row <= bottom; ++row )
{
- layoutRow tmplayout;
- tmplayout.row = row;
- tmplayout.l = new RowFormat( sheet, row );
- tmplayout.l->copy( *(sheet->rowFormat( row )) );
- listRow.append(tmplayout);
+ layoutRow tmptqlayout;
+ tmptqlayout.row = row;
+ tmptqlayout.l = new RowFormat( sheet, row );
+ tmptqlayout.l->copy( *(sheet->rowFormat( row )) );
+ listRow.append(tmptqlayout);
cell = sheet->getFirstCellRow( row );
while ( cell )
@@ -1012,12 +1012,12 @@ void UndoCellFormat::copyFormat(TQValueList<layoutCell> & list,
cell = sheet->getNextCellRight( cell->column(), row );
continue;
}
- layoutCell tmplayout;
- tmplayout.col = cell->column();
- tmplayout.row = row;
- tmplayout.l = new Format( sheet, 0 );
- tmplayout.l->copy( *(sheet->cellAt( cell->column(), row )->format()) );
- list.append(tmplayout);
+ layoutCell tmptqlayout;
+ tmptqlayout.col = cell->column();
+ tmptqlayout.row = row;
+ tmptqlayout.l = new Format( sheet, 0 );
+ tmptqlayout.l->copy( *(sheet->cellAt( cell->column(), row )->format()) );
+ list.append(tmptqlayout);
cell = sheet->getNextCellRight( cell->column(), row );
}
@@ -1030,12 +1030,12 @@ void UndoCellFormat::copyFormat(TQValueList<layoutCell> & list,
if ( range.top() <= row && bottom >= row
&& !c->isPartOfMerged())
{
- layoutCell tmplayout;
- tmplayout.col = c->column();
- tmplayout.row = c->row();
- tmplayout.l = new Format( sheet, 0 );
- tmplayout.l->copy( *(sheet->cellAt( tmplayout.col, tmplayout.row )) );
- list.append(tmplayout);
+ layoutCell tmptqlayout;
+ tmptqlayout.col = c->column();
+ tmptqlayout.row = c->row();
+ tmptqlayout.l = new Format( sheet, 0 );
+ tmptqlayout.l->copy( *(sheet->cellAt( tmptqlayout.col, tmptqlayout.row )) );
+ list.append(tmptqlayout);
}
}
*/
@@ -1048,12 +1048,12 @@ void UndoCellFormat::copyFormat(TQValueList<layoutCell> & list,
Cell * cell = sheet->nonDefaultCell( x, y );
if ( !cell->isPartOfMerged() )
{
- layoutCell tmplayout;
- tmplayout.col = x;
- tmplayout.row = y;
- tmplayout.l = new Format( sheet, 0 );
- tmplayout.l->copy( *(sheet->cellAt( x, y )->format()) );
- list.append(tmplayout);
+ layoutCell tmptqlayout;
+ tmptqlayout.col = x;
+ tmptqlayout.row = y;
+ tmptqlayout.l = new Format( sheet, 0 );
+ tmptqlayout.l->copy( *(sheet->cellAt( x, y )->format()) );
+ list.append(tmptqlayout);
}
}
}
@@ -1265,24 +1265,24 @@ void UndoSort::copyAll(TQValueList<layoutTextCell> & list, TQValueList<layoutCol
Cell * c;
for (int col = m_rctRect.left(); col <= m_rctRect.right(); ++col)
{
- layoutColumn tmplayout;
- tmplayout.col = col;
- tmplayout.l = new ColumnFormat( sheet, col );
- tmplayout.l->copy( *(sheet->columnFormat( col )) );
- listCol.append(tmplayout);
+ layoutColumn tmptqlayout;
+ tmptqlayout.col = col;
+ tmptqlayout.l = new ColumnFormat( sheet, col );
+ tmptqlayout.l->copy( *(sheet->columnFormat( col )) );
+ listCol.append(tmptqlayout);
c = sheet->getFirstCellColumn( col );
while ( c )
{
if ( !c->isPartOfMerged() )
{
- layoutTextCell tmplayout;
- tmplayout.col = col;
- tmplayout.row = c->row();
- tmplayout.l = new Format( sheet, 0 );
- tmplayout.l->copy( *(sheet->cellAt( tmplayout.col, tmplayout.row )->format()) );
- tmplayout.text = c->text();
- list.append(tmplayout);
+ layoutTextCell tmptqlayout;
+ tmptqlayout.col = col;
+ tmptqlayout.row = c->row();
+ tmptqlayout.l = new Format( sheet, 0 );
+ tmptqlayout.l->copy( *(sheet->cellAt( tmptqlayout.col, tmptqlayout.row )->format()) );
+ tmptqlayout.text = c->text();
+ list.append(tmptqlayout);
}
c = sheet->getNextCellDown( col, c->row() );
@@ -1294,24 +1294,24 @@ void UndoSort::copyAll(TQValueList<layoutTextCell> & list, TQValueList<layoutCol
Cell * c;
for ( int row = m_rctRect.top(); row <= m_rctRect.bottom(); ++row)
{
- layoutRow tmplayout;
- tmplayout.row = row;
- tmplayout.l = new RowFormat( sheet, row );
- tmplayout.l->copy( *(sheet->rowFormat( row )) );
- listRow.append(tmplayout);
+ layoutRow tmptqlayout;
+ tmptqlayout.row = row;
+ tmptqlayout.l = new RowFormat( sheet, row );
+ tmptqlayout.l->copy( *(sheet->rowFormat( row )) );
+ listRow.append(tmptqlayout);
c = sheet->getFirstCellRow( row );
while ( c )
{
if ( !c->isPartOfMerged() )
{
- layoutTextCell tmplayout;
- tmplayout.col = c->column();
- tmplayout.row = row;
- tmplayout.l = new Format( sheet, 0 );
- tmplayout.l->copy( *(sheet->cellAt( tmplayout.col, tmplayout.row )->format()) );
- tmplayout.text = c->text();
- list.append(tmplayout);
+ layoutTextCell tmptqlayout;
+ tmptqlayout.col = c->column();
+ tmptqlayout.row = row;
+ tmptqlayout.l = new Format( sheet, 0 );
+ tmptqlayout.l->copy( *(sheet->cellAt( tmptqlayout.col, tmptqlayout.row )->format()) );
+ tmptqlayout.text = c->text();
+ list.append(tmptqlayout);
}
c = sheet->getNextCellRight( c->column(), row );
}
@@ -1328,13 +1328,13 @@ void UndoSort::copyAll(TQValueList<layoutTextCell> & list, TQValueList<layoutCol
cell = sheet->nonDefaultCell( x, y );
if (!cell->isPartOfMerged())
{
- layoutTextCell tmplayout;
- tmplayout.col = x;
- tmplayout.row = y;
- tmplayout.l = new Format( sheet, 0 );
- tmplayout.l->copy( *(sheet->cellAt( x, y )->format()) );
- tmplayout.text = cell->text();
- list.append(tmplayout);
+ layoutTextCell tmptqlayout;
+ tmptqlayout.col = x;
+ tmptqlayout.row = y;
+ tmptqlayout.l = new Format( sheet, 0 );
+ tmptqlayout.l->copy( *(sheet->cellAt( x, y )->format()) );
+ tmptqlayout.text = cell->text();
+ list.append(tmptqlayout);
}
}
}
@@ -1557,7 +1557,7 @@ void UndoDelete::createListCell( TQCString &listCell,TQValueList<columnSize> &li
TQTextStream str( &buffer, IO_WriteOnly );
str << doc;
- // This is a terrible hack to store unicode
+ // This is a terrible hack to store tqunicode
// data in a TQCString in a way that
// TQCString::length() == TQCString().size().
// This allows us to treat the TQCString like a TQByteArray later on.
@@ -2243,7 +2243,7 @@ void UndoAutofill::createListCell( TQCString &list, Sheet* sheet )
TQTextStream str( &buffer, IO_WriteOnly );
str << doc;
- // This is a terrible hack to store unicode
+ // This is a terrible hack to store tqunicode
// data in a TQCString in a way that
// TQCString::length() == TQCString().size().
// This allows us to treat the TQCString like a TQByteArray later on.
@@ -2400,7 +2400,7 @@ UndoRemoveCellRow::UndoRemoveCellRow( Doc *_doc, Sheet *_sheet, const TQRect &re
TQTextStream str( &buffer, IO_WriteOnly );
str << doc;
- // This is a terrible hack to store unicode
+ // This is a terrible hack to store tqunicode
// data in a TQCString in a way that
// TQCString::length() == TQCString().size().
// This allows us to treat the TQCString like a TQByteArray later on.
@@ -2459,7 +2459,7 @@ UndoRemoveCellCol::UndoRemoveCellCol( Doc *_doc, Sheet *_sheet, const TQRect &_r
TQTextStream str( &buffer, IO_WriteOnly );
str << doc;
- // This is a terrible hack to store unicode
+ // This is a terrible hack to store tqunicode
// data in a TQCString in a way that
// TQCString::length() == TQCString().size().
// This allows us to treat the TQCString like a TQByteArray later on.
@@ -2529,7 +2529,7 @@ void UndoConditional::createListCell( TQCString &list, Sheet* sheet )
TQDomDocument doc = sheet->saveCellRegion( m_region );
str << doc;
- // This is a terrible hack to store unicode
+ // This is a terrible hack to store tqunicode
// data in a TQCString in a way that
// TQCString::length() == TQCString().size().
// This allows us to treat the TQCString like a TQByteArray later on.
@@ -2671,7 +2671,7 @@ void UndoCellPaste::createListCell(TQCString& listCell,
TQTextStream str( &buffer, IO_WriteOnly );
str << doc;
- // This is a terrible hack to store unicode
+ // This is a terrible hack to store tqunicode
// data in a TQCString in a way that
// TQCString::length() == TQCString().size().
// This allows us to treat the TQCString like a TQByteArray later on.
diff --git a/kspread/kspread_util.cc b/kspread/kspread_util.cc
index e84f1d47b..47edd2ace 100644
--- a/kspread/kspread_util.cc
+++ b/kspread/kspread_util.cc
@@ -53,7 +53,7 @@ bool KSpread::formatIsFraction (FormatType fmt)
//used in Point::init, Cell::encodeFormula and
-// dialogs/kspread_dlg_paperlayout.cc
+// dialogs/kspread_dlg_papertqlayout.cc
int KSpread::util_decodeColumnLabelText( const TQString &_col )
{
int col = 0;
@@ -72,20 +72,20 @@ int KSpread::util_decodeColumnLabelText( const TQString &_col )
return col;
}
-//used in dialogs/kspread_dlg_paperlayout.cc
+//used in dialogs/kspread_dlg_papertqlayout.cc
TQString KSpread::util_rangeColumnName( const TQRect &_area)
{
return TQString("%1:%2")
- .arg( Cell::columnName( _area.left()))
- .arg( Cell::columnName(_area.right()));
+ .tqarg( Cell::columnName( _area.left()))
+ .tqarg( Cell::columnName(_area.right()));
}
-//used in dialogs/kspread_dlg_paperlayout.cc
+//used in dialogs/kspread_dlg_papertqlayout.cc
TQString KSpread::util_rangeRowName( const TQRect &_area)
{
return TQString("%1:%2")
- .arg( _area.top())
- .arg(_area.bottom());
+ .tqarg( _area.top())
+ .tqarg(_area.bottom());
}
TQString KSpread::util_rangeName(const TQRect &_area)
@@ -933,7 +933,7 @@ TQString KSpread::convertOasisPenToString( const TQPen & pen )
// a fast algorithm for diagonals. A line width of 1 will
// also produce a 1 pixel wide line, but uses a slower more
// accurate algorithm for diagonals.
- TQString s = TQString( "%1pt " ).arg( (pen.width() == 0) ? 1 : pen.width() );
+ TQString s = TQString( "%1pt " ).tqarg( (pen.width() == 0) ? 1 : pen.width() );
switch( pen.style() )
{
case TQt::NoPen:
@@ -1065,7 +1065,7 @@ TQString KSpread::Oasis::decodeFormula(const TQString& expr, const KLocale* loca
}
// [ marks sheet name for 3-d cell, e.g ['Sales Q3'.A4]
- else if ( ch.unicode() == '[' )
+ else if ( ch.tqunicode() == '[' )
{
++i;
state = InReference;
diff --git a/kspread/kspread_value.cc b/kspread/kspread_value.cc
index a4532fdc4..898abd11b 100644
--- a/kspread/kspread_value.cc
+++ b/kspread/kspread_value.cc
@@ -22,7 +22,7 @@
#include <kdebug.h>
#include <tqstring.h>
-#include <textstream.h>
+#include <tqtextstream.h>
#include <float.h>
#include <math.h>
diff --git a/kspread/kspread_value.h b/kspread/kspread_value.h
index b43ac9097..0c76e40f1 100644
--- a/kspread/kspread_value.h
+++ b/kspread/kspread_value.h
@@ -22,7 +22,7 @@
#include <tqdatetime.h>
#include <tqstring.h>
-#include <textstream.h>
+#include <tqtextstream.h>
#include <koffice_export.h>
diff --git a/kspread/kspread_view.cc b/kspread/kspread_view.cc
index 67b326e56..cb947f34e 100644
--- a/kspread/kspread_view.cc
+++ b/kspread/kspread_view.cc
@@ -35,9 +35,9 @@
// TQt includes
#include <tqbuffer.h>
-#include <clipboard.h>
+#include <tqclipboard.h>
#include <tqcursor.h>
-#include <layout.h>
+#include <tqlayout.h>
#include <tqpaintdevicemetrics.h>
#include <tqregexp.h>
#include <tqtimer.h>
@@ -237,7 +237,7 @@ public:
TQPopupMenu *popupRow;
TQPopupMenu *popupColumn;
- TQPopupMenu* popupChild; // for embedded children
+ TQPopupMenu* popupChild; // for embedded tqchildren
TQPopupMenu* popupListChoose; // for list of choose
// the child for which the popup menu has been opened.
@@ -911,7 +911,7 @@ void View::Private::initActions()
actions->paperLayout = new KAction( i18n("Page Layout..."),
0, TQT_TQOBJECT(view), TQT_SLOT( paperLayoutDlg() ), ac, "paperLayout" );
- actions->paperLayout->setToolTip(i18n("Specify the layout of the spreadsheet for a printout."));
+ actions->paperLayout->setToolTip(i18n("Specify the tqlayout of the spreadsheet for a printout."));
actions->definePrintRange = new KAction( i18n("Define Print Range"),
0, TQT_TQOBJECT(view), TQT_SLOT( definePrintRange() ), ac, "definePrintRange" );
@@ -1473,7 +1473,7 @@ bool KPSheetSelectPage::isValid(TQString& /*msg*/)
TQString KPSheetSelectPage::printOptionForIndex(unsigned int index)
{
- return TQString("sheetprintorder%1").arg(index);
+ return TQString("sheetprintorder%1").tqarg(index);
}
void KPSheetSelectPage::prependAvailableSheet(const TQString& sheetname)
@@ -1880,7 +1880,7 @@ View::~View()
// of embedded child documents possible repaints in Sheet are not
// performed. The repains can happen if you delete an embedded document,
// which leads to an regionInvalidated() signal emission in KoView, which calls
- // repaint, etc.etc. :-) (Simon)
+ // tqrepaint, etc.etc. :-) (Simon)
delete d->selection;
delete d->choice;
@@ -1968,8 +1968,8 @@ void View::initView()
d->hBorderWidget = new HBorder( this, d->canvas,this );
d->vBorderWidget = new VBorder( this, d->canvas ,this );
- d->hBorderWidget->setSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Minimum );
- d->vBorderWidget->setSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Expanding );
+ d->hBorderWidget->tqsetSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Minimum );
+ d->vBorderWidget->tqsetSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Expanding );
d->canvas->setFocusPolicy( TQ_StrongFocus );
TQWidget::setFocusPolicy( TQ_StrongFocus );
@@ -3832,8 +3832,8 @@ void View::setActiveSheet( Sheet * _t, bool updateSheet )
if ( updateSheet )
{
d->tabBar->setActiveTab( _t->sheetName() );
- d->vBorderWidget->repaint();
- d->hBorderWidget->repaint();
+ d->vBorderWidget->tqrepaint();
+ d->hBorderWidget->tqrepaint();
d->activeSheet->setRegionPaintDirty(TQRect(TQPoint(0,0), TQPoint(KS_colMax, KS_rowMax)));
d->canvas->slotMaxColumn( d->activeSheet->maxColumn() );
d->canvas->slotMaxRow( d->activeSheet->maxRow() );
@@ -3914,8 +3914,8 @@ void View::changeSheet( const TQString& _name )
updateBorderButton();
//update visible area
- d->vBorderWidget->repaint();
- d->hBorderWidget->repaint();
+ d->vBorderWidget->tqrepaint();
+ d->hBorderWidget->tqrepaint();
d->canvas->slotMaxColumn( d->activeSheet->maxColumn() );
d->canvas->slotMaxRow( d->activeSheet->maxRow() );
t->setRegionPaintDirty( t->visibleRect( d->canvas ) );
@@ -4135,7 +4135,7 @@ void View::paste()
if (!koDocument()->isReadWrite()) // don't paste into a read only document
return;
- TQMimeSource *data = TQApplication::clipboard()->data( TQClipboard::Clipboard );
+ TQMimeSource *data = TQApplication::tqclipboard()->data( TQClipboard::Clipboard );
for ( int i=0; data->format(i) != 0; i++ )
kdDebug() << "format:" << data->format(i) << endl;
@@ -4143,7 +4143,7 @@ void View::paste()
{
canvasWidget()->deselectAllObjects();
TQCString returnedTypeMime = "application/vnd.oasis.opendocument.spreadsheet";
- const TQByteArray arr = data->encodedData( returnedTypeMime );
+ const TQByteArray arr = data->tqencodedData( returnedTypeMime );
if( arr.isEmpty() )
return;
TQBuffer buffer( arr );
@@ -4206,7 +4206,7 @@ void View::paste()
else
{
//TODO: What if the clipboard data is available in both pixmap and OASIS format? (ie. for embedded parts)
- TQPixmap clipboardPixmap = TQApplication::clipboard()->pixmap( TQClipboard::Clipboard );
+ TQPixmap clipboardPixmap = TQApplication::tqclipboard()->pixmap( TQClipboard::Clipboard );
if (!clipboardPixmap.isNull())
{
d->activeSheet->insertPicture( markerDocumentPosition() , clipboardPixmap );
@@ -4914,7 +4914,7 @@ void View::setupPrinter( KPrinter &prt )
SheetPrint* print = d->activeSheet->print();
- //apply page layout parameters
+ //apply page tqlayout parameters
KoFormat pageFormat = print->paperFormat();
prt.setPageSize( static_cast<KPrinter::PageSize>( KoPageFormat::printerPageSize( pageFormat ) ) );
@@ -4971,7 +4971,7 @@ void View::print( KPrinter &prt )
Sheet* sheet = doc()->map()->findSheet(*sheetlistiterator);
if (sheet == NULL)
{
- kdWarning() << i18n("Sheet %1 could not be found for printing").arg(*sheetlistiterator) << endl;
+ kdWarning() << i18n("Sheet %1 could not be found for printing").tqarg(*sheetlistiterator) << endl;
continue;
}
@@ -5038,7 +5038,7 @@ void View::print( KPrinter &prt )
if( !prt.previewOnly() )
{
KMessageBox::information( 0,
- i18n("Nothing to print for sheet %1.").arg(
+ i18n("Nothing to print for sheet %1.").tqarg(
d->activeSheet->sheetName()) );
//@todo: make sure we really can comment this out,
// what to do with partially broken printouts?
@@ -5051,13 +5051,13 @@ void View::print( KPrinter &prt )
this->setActiveSheet(selectedsheet);
}
-void View::insertChart( const TQRect& _geometry, KoDocumentEntry& _e )
+void View::insertChart( const TQRect& _tqgeometry, KoDocumentEntry& _e )
{
if ( !d->activeSheet )
return;
// Transform the view coordinates to document coordinates
- KoRect unzoomedRect = doc()->unzoomRect( _geometry );
+ KoRect unzoomedRect = doc()->unzoomRect( _tqgeometry );
unzoomedRect.moveBy( d->canvas->xOffset(), d->canvas->yOffset() );
InsertObjectCommand *cmd = 0;
@@ -5073,13 +5073,13 @@ void View::insertChart( const TQRect& _geometry, KoDocumentEntry& _e )
cmd->execute();
}
-void View::insertChild( const TQRect& _geometry, KoDocumentEntry& _e )
+void View::insertChild( const TQRect& _tqgeometry, KoDocumentEntry& _e )
{
if ( !d->activeSheet )
return;
// Transform the view coordinates to document coordinates
- KoRect unzoomedRect = doc()->unzoomRect( _geometry );
+ KoRect unzoomedRect = doc()->unzoomRect( _tqgeometry );
unzoomedRect.moveBy( d->canvas->xOffset(), d->canvas->yOffset() );
InsertObjectCommand *cmd = new InsertObjectCommand( unzoomedRect, _e, d->canvas );
@@ -5135,11 +5135,11 @@ void View::slotUpdateChildGeometry( EmbeddedKOfficeObject */*_child*/ )
assert( f != 0L );
// Are we already up to date ?
- if ( _child->geometry() == f->partGeometry() )
+ if ( _child->tqgeometry() == f->partGeometry() )
return;
// TODO zooming
- f->setPartGeometry( _child->geometry() );
+ f->setPartGeometry( _child->tqgeometry() );
*/
}
@@ -5498,7 +5498,7 @@ KoDocument * View::hitTest( const TQPoint& /*pos*/ )
// return 0;
// }
//
-// TQPtrListIterator<KoDocumentChild> it( doc()->children() );
+// TQPtrListIterator<KoDocumentChild> it( doc()->tqchildren() );
// for (; it.current(); ++it )
// {
// // Is the child document on the visible sheet ?
@@ -5896,7 +5896,7 @@ void View::slotListChoosePopupMenu( )
if ( d->activeSheet->layoutDirection()==Sheet::RightToLeft )
{
- p2.setX( p2.x() - d->popupListChoose->sizeHint().width() + 1 );
+ p2.setX( p2.x() - d->popupListChoose->tqsizeHint().width() + 1 );
}
d->popupListChoose->popup( p2 );
@@ -6401,7 +6401,7 @@ void View::styleDialog()
d->activeSheet->setRegionPaintDirty( d->activeSheet->visibleRect( d->canvas ) );
}
if ( d->canvas )
- d->canvas->repaint();
+ d->canvas->tqrepaint();
}
void View::paperLayoutDlg()
@@ -6748,9 +6748,9 @@ void View::zoomMinus()
if ( d->activeSheet != 0L )
d->activeSheet->setLayoutDirtyFlag();
- d->canvas->repaint();
- d->vBorderWidget->repaint();
- d->hBorderWidget->repaint();
+ d->canvas->tqrepaint();
+ d->vBorderWidget->tqrepaint();
+ d->hBorderWidget->tqrepaint();
}
void View::zoomPlus()
@@ -6763,9 +6763,9 @@ void View::zoomPlus()
if ( d->activeSheet != 0L )
d->activeSheet->setLayoutDirtyFlag();
- d->canvas->repaint();
- d->vBorderWidget->repaint();
- d->hBorderWidget->repaint();
+ d->canvas->tqrepaint();
+ d->vBorderWidget->tqrepaint();
+ d->hBorderWidget->tqrepaint();
}
*/
@@ -6911,9 +6911,9 @@ void View::slotAddSheet( Sheet *_sheet )
void View::slotRefreshView()
{
refreshView();
- d->canvas->repaint();
- d->vBorderWidget->repaint();
- d->hBorderWidget->repaint();
+ d->canvas->tqrepaint();
+ d->vBorderWidget->tqrepaint();
+ d->hBorderWidget->tqrepaint();
}
void View::slotUpdateView( Sheet *_sheet )
@@ -7209,7 +7209,7 @@ void View::transformPart()
if ( d->transformToolBox.isNull() )
{
- d->transformToolBox = new KoTransformToolBox( selectedChild(), topLevelWidget() );
+ d->transformToolBox = new KoTransformToolBox( selectedChild(), tqtopLevelWidget() );
d->transformToolBox->show();
d->transformToolBox->setDocumentChild( selectedChild() );
@@ -7537,7 +7537,7 @@ void View::runInspector()
TQColor View::highlightColor()
{
- return TQApplication::palette().active().highlight().light( 175 );
+ return TQApplication::tqpalette().active().highlight().light( 175 );
}
} // namespace KSpread
diff --git a/kspread/kspread_view.h b/kspread/kspread_view.h
index f9ce1bdd6..2dfecfa54 100644
--- a/kspread/kspread_view.h
+++ b/kspread/kspread_view.h
@@ -253,22 +253,22 @@ public:
/**
*
- * @param _geometry is the zoomed geometry of the new child.
+ * @param _tqgeometry is the zoomed tqgeometry of the new child.
* @param _entry is the entry to insert.
*
* @todo check validity of @p _entry docs.
*/
- void insertChart( const TQRect& _geometry, KoDocumentEntry& _entry );
+ void insertChart( const TQRect& _tqgeometry, KoDocumentEntry& _entry );
/**
*
- * @param _geometry is the geometry of the new child.
+ * @param _tqgeometry is the tqgeometry of the new child.
* @param _entry is the entry to insert.
*
* @todo check validity of @p _entry docs.
*/
- void insertChild( const TQRect& _geometry, KoDocumentEntry& _entry );
+ void insertChild( const TQRect& _tqgeometry, KoDocumentEntry& _entry );
- // void insertPicture( const TQRect& _geometry, KURL& _file );
+ // void insertPicture( const TQRect& _tqgeometry, KURL& _file );
virtual void print( KPrinter &printer );
virtual void setupPrinter( KPrinter &printer );
@@ -321,7 +321,7 @@ public:
void updateShowSheetMenu();
/**
- * Mark all selected cells / regions of cells as 'dirty' (ie. requiring a repaint)
+ * Mark all selected cells / regions of cells as 'dirty' (ie. requiring a tqrepaint)
* They will be repainted on the next call to paintUpdates()
*/
void markSelectionAsDirty();
diff --git a/kspread/manipulator.cc b/kspread/manipulator.cc
index f1a5838b4..bed111ba0 100644
--- a/kspread/manipulator.cc
+++ b/kspread/manipulator.cc
@@ -445,20 +445,20 @@ void FormatManipulator::copyFormat(TQValueList<layoutCell> & list,
/* Don't need to go through the loop twice...
for (int i = range.left(); i <= right; ++i)
{
- layoutColumn tmplayout;
- tmplayout.col = i;
- tmplayout.l = new ColumnFormat( m_sheet, i );
- tmplayout.l->copy( *(m_sheet->columnFormat( i )) );
- listCol.append(tmplayout);
+ layoutColumn tmptqlayout;
+ tmptqlayout.col = i;
+ tmptqlayout.l = new ColumnFormat( m_sheet, i );
+ tmptqlayout.l->copy( *(m_sheet->columnFormat( i )) );
+ listCol.append(tmptqlayout);
}
*/
for ( int col = range.left(); col <= right; ++col )
{
- layoutColumn tmplayout;
- tmplayout.col = col;
- tmplayout.l = new ColumnFormat( m_sheet, col );
- tmplayout.l->copy( *(m_sheet->columnFormat( col )) );
- listCol.append(tmplayout);
+ layoutColumn tmptqlayout;
+ tmptqlayout.col = col;
+ tmptqlayout.l = new ColumnFormat( m_sheet, col );
+ tmptqlayout.l->copy( *(m_sheet->columnFormat( col )) );
+ listCol.append(tmptqlayout);
cell = m_sheet->getFirstCellColumn( col );
while ( cell )
@@ -469,12 +469,12 @@ void FormatManipulator::copyFormat(TQValueList<layoutCell> & list,
continue;
}
- layoutCell tmplayout;
- tmplayout.col = col;
- tmplayout.row = cell->row();
- tmplayout.l = new Format( m_sheet, 0 );
- tmplayout.l->copy( *(m_sheet->cellAt( tmplayout.col, tmplayout.row )->format()) );
- list.append(tmplayout);
+ layoutCell tmptqlayout;
+ tmptqlayout.col = col;
+ tmptqlayout.row = cell->row();
+ tmptqlayout.l = new Format( m_sheet, 0 );
+ tmptqlayout.l->copy( *(m_sheet->cellAt( tmptqlayout.col, tmptqlayout.row )->format()) );
+ list.append(tmptqlayout);
cell = m_sheet->getNextCellDown( col, cell->row() );
}
@@ -487,12 +487,12 @@ void FormatManipulator::copyFormat(TQValueList<layoutCell> & list,
if ( range.left() <= col && right >= col
&& !cell->isPartOfMerged())
{
- layoutCell tmplayout;
- tmplayout.col = cell->column();
- tmplayout.row = cell->row();
- tmplayout.l = new Format( m_sheet, 0 );
- tmplayout.l->copy( *(m_sheet->cellAt( tmplayout.col, tmplayout.row )) );
- list.append(tmplayout);
+ layoutCell tmptqlayout;
+ tmptqlayout.col = cell->column();
+ tmptqlayout.row = cell->row();
+ tmptqlayout.l = new Format( m_sheet, 0 );
+ tmptqlayout.l->copy( *(m_sheet->cellAt( tmptqlayout.col, tmptqlayout.row )) );
+ list.append(tmptqlayout);
}
}
*/
@@ -501,11 +501,11 @@ void FormatManipulator::copyFormat(TQValueList<layoutCell> & list,
{
for ( int row = range.top(); row <= bottom; ++row )
{
- layoutRow tmplayout;
- tmplayout.row = row;
- tmplayout.l = new RowFormat( m_sheet, row );
- tmplayout.l->copy( *(m_sheet->rowFormat( row )) );
- listRow.append(tmplayout);
+ layoutRow tmptqlayout;
+ tmptqlayout.row = row;
+ tmptqlayout.l = new RowFormat( m_sheet, row );
+ tmptqlayout.l->copy( *(m_sheet->rowFormat( row )) );
+ listRow.append(tmptqlayout);
cell = m_sheet->getFirstCellRow( row );
while ( cell )
@@ -515,12 +515,12 @@ void FormatManipulator::copyFormat(TQValueList<layoutCell> & list,
cell = m_sheet->getNextCellRight( cell->column(), row );
continue;
}
- layoutCell tmplayout;
- tmplayout.col = cell->column();
- tmplayout.row = row;
- tmplayout.l = new Format( m_sheet, 0 );
- tmplayout.l->copy( *(m_sheet->cellAt( cell->column(), row )->format()) );
- list.append(tmplayout);
+ layoutCell tmptqlayout;
+ tmptqlayout.col = cell->column();
+ tmptqlayout.row = row;
+ tmptqlayout.l = new Format( m_sheet, 0 );
+ tmptqlayout.l->copy( *(m_sheet->cellAt( cell->column(), row )->format()) );
+ list.append(tmptqlayout);
cell = m_sheet->getNextCellRight( cell->column(), row );
}
@@ -533,12 +533,12 @@ void FormatManipulator::copyFormat(TQValueList<layoutCell> & list,
if ( range.top() <= row && bottom >= row
&& !cell->isPartOfMerged())
{
- layoutCell tmplayout;
- tmplayout.col = cell->column();
- tmplayout.row = cell->row();
- tmplayout.l = new Format( m_sheet, 0 );
- tmplayout.l->copy( *(m_sheet->cellAt( tmplayout.col, tmplayout.row )) );
- list.append(tmplayout);
+ layoutCell tmptqlayout;
+ tmptqlayout.col = cell->column();
+ tmptqlayout.row = cell->row();
+ tmptqlayout.l = new Format( m_sheet, 0 );
+ tmptqlayout.l->copy( *(m_sheet->cellAt( tmptqlayout.col, tmptqlayout.row )) );
+ list.append(tmptqlayout);
}
}
*/
@@ -551,12 +551,12 @@ void FormatManipulator::copyFormat(TQValueList<layoutCell> & list,
Cell * cell = m_sheet->nonDefaultCell( col, row );
if ( !cell->isPartOfMerged() )
{
- layoutCell tmplayout;
- tmplayout.col = col;
- tmplayout.row = row;
- tmplayout.l = new Format( m_sheet, 0 );
- tmplayout.l->copy( *(m_sheet->cellAt( col, row )->format()) );
- list.append(tmplayout);
+ layoutCell tmptqlayout;
+ tmptqlayout.col = col;
+ tmptqlayout.row = row;
+ tmptqlayout.l = new Format( m_sheet, 0 );
+ tmptqlayout.l->copy( *(m_sheet->cellAt( col, row )->format()) );
+ list.append(tmptqlayout);
}
}
}
@@ -1444,20 +1444,20 @@ double AdjustColumnRowManipulator::adjustColumnHelper(Cell* cell, int col, int r
if ( cell->textWidth() > long_max )
{
double indent = 0.0;
- Format::Align alignment = cell->format()->align(cell->column(), cell->row());
- if (alignment == Format::Undefined)
+ Format::Align tqalignment = cell->format()->align(cell->column(), cell->row());
+ if (tqalignment == Format::Undefined)
{
if (cell->value().isNumber() || cell->isDate() || cell->isTime())
{
- alignment = Format::Right;
+ tqalignment = Format::Right;
}
else
{
- alignment = Format::Left;
+ tqalignment = Format::Left;
}
}
- if (alignment == Format::Left)
+ if (tqalignment == Format::Left)
{
indent = cell->format()->getIndent( cell->column(), cell->row() );
}
diff --git a/kspread/plugins/calculator/configdlg.cpp b/kspread/plugins/calculator/configdlg.cpp
index e02d914dd..cec641931 100644
--- a/kspread/plugins/calculator/configdlg.cpp
+++ b/kspread/plugins/calculator/configdlg.cpp
@@ -29,7 +29,7 @@
#include <klocale.h>
#include <kdialog.h>
-#include <layout.h>
+#include <tqlayout.h>
// Undefine HAVE_LONG_DOUBLE for Beta 4 since RedHat 5.0 comes with a borken
// glibc
@@ -48,10 +48,10 @@ ConfigDlg::ConfigDlg(TQWidget *parent, const char *name, DefStruct *defstruct)
lay1->setSpacing( KDialog::spacingHint() );
box = new TQGroupBox(0, Qt::Vertical, i18n("Defaults"), this, "box");
- box->layout()->setSpacing(KDialog::spacingHint());
- box->layout()->setMargin(KDialog::marginHint());
+ box->tqlayout()->setSpacing(KDialog::spacingHint());
+ box->tqlayout()->setMargin(KDialog::marginHint());
- TQGridLayout *grid1 = new TQGridLayout(box->layout(),8,2);
+ TQGridLayout *grid1 = new TQGridLayout(box->tqlayout(),8,2);
label1 = new TQLabel(box);
label1->setText(i18n("Foreground color:"));
grid1->addWidget(label1,0,0);
diff --git a/kspread/plugins/calculator/kcalc.cpp b/kspread/plugins/calculator/kcalc.cpp
index b15f844ce..4c80e7b49 100644
--- a/kspread/plugins/calculator/kcalc.cpp
+++ b/kspread/plugins/calculator/kcalc.cpp
@@ -26,7 +26,7 @@
#include "version.h"
#include <klocale.h>
#include <knotifyclient.h>
-#include <layout.h>
+#include <tqlayout.h>
#include <tqobjectlist.h>
#include <tqpushbutton.h>
#include <kapplication.h>
@@ -80,7 +80,7 @@ TQtCalculator :: TQtCalculator( Calculator *_corba, TQWidget *parent, const char
// Create the display
calc_display = new DLabel( this, "display" );
calc_display->setFrameStyle( TQFrame::WinPanel | TQFrame::Sunken );
- calc_display->setAlignment( AlignRight|AlignVCenter );
+ calc_display->tqsetAlignment( AlignRight|AlignVCenter );
calc_display->setFocus();
calc_display->setFocusPolicy( TQ_StrongFocus );
@@ -89,18 +89,18 @@ TQtCalculator :: TQtCalculator( Calculator *_corba, TQWidget *parent, const char
statusINVLabel = new TQLabel( this, "INV" );
Q_CHECK_PTR( statusINVLabel );
statusINVLabel->setFrameStyle( TQFrame::Panel | TQFrame::Sunken );
- statusINVLabel->setAlignment( AlignCenter );
+ statusINVLabel->tqsetAlignment( AlignCenter );
statusINVLabel->setText("NORM");
statusHYPLabel = new TQLabel( this, "HYP" );
Q_CHECK_PTR( statusHYPLabel );
statusHYPLabel->setFrameStyle( TQFrame::Panel | TQFrame::Sunken );
- statusHYPLabel->setAlignment( AlignCenter );
+ statusHYPLabel->tqsetAlignment( AlignCenter );
statusERRORLabel = new TQLabel( this, "ERROR" );
Q_CHECK_PTR( statusERRORLabel );
statusERRORLabel->setFrameStyle( TQFrame::Panel | TQFrame::Sunken );
- statusERRORLabel->setAlignment( AlignLeft|AlignVCenter );
+ statusERRORLabel->tqsetAlignment( AlignLeft|AlignVCenter );
// create angle button group
@@ -390,12 +390,12 @@ TQtCalculator :: TQtCalculator( Calculator *_corba, TQWidget *parent, const char
mainLayout->addLayout(btnLayout);
mainLayout->addLayout(statusLayout);
- // button layout
+ // button tqlayout
btnLayout->addWidget(mSmallPage,0,AlignTop);
btnLayout->addSpacing(mInternalSpacing);
btnLayout->addWidget(mLargePage,0,AlignTop);
- // small button layout
+ // small button tqlayout
smallBtnLayout->addWidget(pbhyp, 0, 0);
smallBtnLayout->addWidget(pbinv, 0, 1);
smallBtnLayout->addWidget(pbA, 0, 2);
@@ -427,7 +427,7 @@ TQtCalculator :: TQtCalculator( Calculator *_corba, TQWidget *parent, const char
smallBtnLayout->setRowStretch(4, 0);
smallBtnLayout->setRowStretch(5, 0);
- // large button layout
+ // large button tqlayout
largeBtnLayout->addWidget(pbEE, 0, 0);
largeBtnLayout->addWidget(pbMR, 0, 1);
largeBtnLayout->addWidget(pbMplusminus, 0, 2);
@@ -472,11 +472,11 @@ TQtCalculator :: TQtCalculator( Calculator *_corba, TQWidget *parent, const char
topLayout->addWidget(calc_display, 10);
- // radiobutton layout
+ // radiobutton tqlayout
radioLayout->addWidget(base_group);
radioLayout->addWidget(angle_group);
- // status layout
+ // status tqlayout
statusLayout->addWidget(statusINVLabel);
statusLayout->addWidget(statusHYPLabel);
statusLayout->addWidget(statusERRORLabel, 10);
@@ -578,7 +578,7 @@ void TQtCalculator::updateGeometry()
s.setWidth(mSmallPage->fontMetrics().width("MMM"));
s.setHeight(mSmallPage->fontMetrics().lineSpacing());
- l = (TQObjectList*)mSmallPage->children(); // silence please
+ l = (TQObjectList*)mSmallPage->tqchildren(); // silence please
for(uint i=0; i < l->count(); i++)
{
@@ -586,20 +586,20 @@ void TQtCalculator::updateGeometry()
if( o->isWidgetType() )
{
margin = TQApplication::style().
- pixelMetric(TQStyle::PM_ButtonMargin, ((TQWidget *)o))*2;
+ tqpixelMetric(TQStyle::PM_ButtonMargin, ((TQWidget *)o))*2;
((TQWidget*)o)->setMinimumSize(s.width()+margin, s.height()+margin);
((TQWidget*)o)->installEventFilter( this );
((TQWidget*)o)->setAcceptDrops(true);
}
}
- l = (TQObjectList*)mLargePage->children(); // silence please
+ l = (TQObjectList*)mLargePage->tqchildren(); // silence please
- int h1 = pbF->minimumSize().height();
+ int h1 = pbF->tqminimumSize().height();
int h2 = (int)((((float)h1 + 4.0) / 5.0));
s.setWidth(mLargePage->fontMetrics().width("MMM") +
TQApplication::style().
- pixelMetric(TQStyle::PM_ButtonMargin, pbF)*2);
+ tqpixelMetric(TQStyle::PM_ButtonMargin, pbF)*2);
s.setHeight(h1 + h2);
for(uint i = 0; i < l->count(); i++)
@@ -621,7 +621,7 @@ void TQtCalculator::updateGeometry()
statusINVLabel->setMinimumWidth(s.width());
statusHYPLabel->setMinimumWidth(s.width());
- //setFixedSize(minimumSize());
+ //setFixedSize(tqminimumSize());
}
void TQtCalculator::exit()
@@ -1465,9 +1465,9 @@ void TQtCalculator::configclicked(){
lay1->setSpacing( KDialog::spacingHint() );
TQGroupBox *box = new TQGroupBox(0,Qt::Vertical,about,"box");
- box->layout()->setSpacing(KDialog::spacingHint());
- box->layout()->setMargin(KDialog::marginHint());
- TQGridLayout *grid1 = new TQGridLayout(box->layout(),2,2);
+ box->tqlayout()->setSpacing(KDialog::spacingHint());
+ box->tqlayout()->setMargin(KDialog::marginHint());
+ TQGridLayout *grid1 = new TQGridLayout(box->tqlayout(),2,2);
TQLabel *label = new TQLabel(box,"label");
TQLabel *label2 = new TQLabel(box,"label2");
@@ -1494,10 +1494,10 @@ void TQtCalculator::configclicked(){
"enabled. See the README for details.");
#endif
- label->setAlignment(AlignLeft|WordBreak|ExpandTabs);
+ label->tqsetAlignment(AlignLeft|WordBreak|ExpandTabs);
label->setText(labelstring);
- label2->setAlignment(AlignLeft|WordBreak|ExpandTabs);
+ label2->tqsetAlignment(AlignLeft|WordBreak|ExpandTabs);
label2->setText(labelstring2);
// HACK
@@ -1540,7 +1540,7 @@ void TQtCalculator::configclicked(){
set_precision();
set_style();
updateGeometry();
- resize(minimumSize());
+ resize(tqminimumSize());
}
delete configdlg;
}
@@ -1628,7 +1628,7 @@ void TQtCalculator::display_selected(){
if(calc_display->isLit()){
- TQClipboard *cb = TQApplication::clipboard();
+ TQClipboard *cb = TQApplication::tqclipboard();
cb->setText(calc_display->text());
selection_timer->start(100);
@@ -1643,7 +1643,7 @@ void TQtCalculator::display_selected(){
}
else{
- TQClipboard *cb = TQApplication::clipboard();
+ TQClipboard *cb = TQApplication::tqclipboard();
CALCAMNT result;
result = (CALCAMNT) cb->text().toDouble();
diff --git a/kspread/plugins/calculator/kcalc.h b/kspread/plugins/calculator/kcalc.h
index a1205bc2e..dfa67b633 100644
--- a/kspread/plugins/calculator/kcalc.h
+++ b/kspread/plugins/calculator/kcalc.h
@@ -35,7 +35,7 @@ using std::queue;
#include <ctype.h>
#include <tqlistbox.h>
-#include <clipboard.h>
+#include <tqclipboard.h>
#include <tqptrlist.h>
#include <tqaccel.h>
#include <tqtabdialog.h>
diff --git a/kspread/plugins/insertcalendar/kspread_insertcalendardialog.cc b/kspread/plugins/insertcalendar/kspread_insertcalendardialog.cc
index 0311c9137..d55c332b6 100644
--- a/kspread/plugins/insertcalendar/kspread_insertcalendardialog.cc
+++ b/kspread/plugins/insertcalendar/kspread_insertcalendardialog.cc
@@ -40,7 +40,7 @@ InsertCalendarDialog::InsertCalendarDialog(TQWidget* parent, const char* name)
//we start with a default calendar for the current month;
- TQDate first_day_in_month = TQDate::currentDate();
+ TQDate first_day_in_month = TQDate::tqcurrentDate();
first_day_in_month.setYMD(first_day_in_month.year(),first_day_in_month.month(),1);
TQDate last_day_in_month(first_day_in_month.year(),first_day_in_month.month(),first_day_in_month.daysInMonth());
diff --git a/kspread/plugins/insertcalendar/kspread_insertcalendardialogbase.ui b/kspread/plugins/insertcalendar/kspread_insertcalendardialogbase.ui
index d2c8fc085..712b11b4f 100644
--- a/kspread/plugins/insertcalendar/kspread_insertcalendardialogbase.ui
+++ b/kspread/plugins/insertcalendar/kspread_insertcalendardialogbase.ui
@@ -144,7 +144,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>400</width>
<height>19</height>
diff --git a/kspread/plugins/insertcalendar/kspread_plugininsertcalendar.cc b/kspread/plugins/insertcalendar/kspread_plugininsertcalendar.cc
index c0d5c1ca9..1bb16a959 100644
--- a/kspread/plugins/insertcalendar/kspread_plugininsertcalendar.cc
+++ b/kspread/plugins/insertcalendar/kspread_plugininsertcalendar.cc
@@ -194,7 +194,7 @@ void PluginInsertCalendar::slotInsertCalendar(const TQDate &start, const TQDate
int row = selection.y();
int col = selection.x();
int colstart = col; //this is where we get back after each week
- sheet->setText(row,colstart,i18n("Calendar from %1 to %2").arg(start.toString()).arg(end.toString()));
+ sheet->setText(row,colstart,i18n("Calendar from %1 to %2").tqarg(start.toString()).tqarg(end.toString()));
TQDate current(start);
// TQDate previous(current);
diff --git a/kspread/plugins/scripting/kspreadcore/kspreadcoremodule.cpp b/kspread/plugins/scripting/kspreadcore/kspreadcoremodule.cpp
index 9f67dfbb8..108516dc1 100644
--- a/kspread/plugins/scripting/kspreadcore/kspreadcoremodule.cpp
+++ b/kspread/plugins/scripting/kspreadcore/kspreadcoremodule.cpp
@@ -45,9 +45,9 @@ using namespace Kross::KSpreadCore;
KSpreadCoreModule::KSpreadCoreModule(Kross::Api::Manager* manager)
: Kross::Api::Module("kspreadcore") , m_manager(manager)
{
- TQMap<TQString, Object::Ptr> children = manager->getChildren();
- kdDebug() << " there are " << children.size() << endl;
- for(TQMap<TQString, Object::Ptr>::const_iterator it = children.begin(); it != children.end(); it++)
+ TQMap<TQString, Object::Ptr> tqchildren = manager->getChildren();
+ kdDebug() << " there are " << tqchildren.size() << endl;
+ for(TQMap<TQString, Object::Ptr>::const_iterator it = tqchildren.begin(); it != tqchildren.end(); it++)
{
kdDebug() << it.key() << " " << it.data() << endl;
}
diff --git a/kspread/plugins/scripting/scripting.cc b/kspread/plugins/scripting/scripting.cc
index a919b31d9..44f8fa014 100644
--- a/kspread/plugins/scripting/scripting.cc
+++ b/kspread/plugins/scripting/scripting.cc
@@ -43,9 +43,9 @@ Scripting::Scripting(TQObject *parent, const char *name, const TQStringList &)
setInstance(KSpreadScriptingFactory::instance());
kdDebug() << "Scripting plugin. Class: "
- << metaObject()->className()
+ << tqmetaObject()->className()
<< ", Parent: "
- << parent->metaObject()->className()
+ << parent->tqmetaObject()->className()
<< "\n";
if ( parent->inherits("KSpread::View") )
diff --git a/kspread/plugins/scripting/scripts/exporthtml/ExportHtml.py b/kspread/plugins/scripting/scripts/exporthtml/ExportHtml.py
index 529a2d26c..a34a4dd14 100755
--- a/kspread/plugins/scripting/scripts/exporthtml/ExportHtml.py
+++ b/kspread/plugins/scripting/scripts/exporthtml/ExportHtml.py
@@ -30,11 +30,11 @@ class Dialog(qt.QDialog):
import qt
qt.QDialog.__init__(self, parent, "Dialog", 1, qt.Qt.WDestructiveClose)
self.setCaption("Export to HTML File")
- layout = qt.QVBoxLayout(self)
+ tqlayout = qt.QVBoxLayout(self)
box = qt.QVBox(self)
box.setMargin(10)
box.setSpacing(10)
- layout.addWidget(box)
+ tqlayout.addWidget(box)
sheetbox = qt.QHBox(box)
sheetbox.setSpacing(6)
diff --git a/kspread/plugins/scripting/scripts/scripteditor/ScriptEditor.py b/kspread/plugins/scripting/scripts/scripteditor/ScriptEditor.py
index c6da1fe28..e3d6237c0 100755
--- a/kspread/plugins/scripting/scripts/scripteditor/ScriptEditor.py
+++ b/kspread/plugins/scripting/scripts/scripteditor/ScriptEditor.py
@@ -763,11 +763,11 @@ class SampleDialog(qt.QDialog):
import qt
qt.QDialog.__init__(self, parent, "SampleDialog", 1)
- layout = qt.QVBoxLayout(self)
+ tqlayout = qt.QVBoxLayout(self)
box = qt.QVBox(self)
box.setMargin(4)
box.setSpacing(10)
- layout.addWidget(box)
+ tqlayout.addWidget(box)
self.scrollview = qt.QScrollView(box)
self.scrollview.setResizePolicy(qt.QScrollView.AutoOne)
@@ -829,11 +829,11 @@ class MainDialog(qt.QDialog):
qt.QDialog.__init__(self, parent, "MainDialog", 1, qt.Qt.WDestructiveClose)
self.setCaption("Script Editor")
- layout = qt.QVBoxLayout(self)
+ tqlayout = qt.QVBoxLayout(self)
box = qt.QVBox(self)
box.setMargin(4)
box.setSpacing(10)
- layout.addWidget(box)
+ tqlayout.addWidget(box)
menu = qt.QMenuBar(box)
diff --git a/kspread/tests/inspector.cc b/kspread/tests/inspector.cc
index f861343c7..171797932 100644
--- a/kspread/tests/inspector.cc
+++ b/kspread/tests/inspector.cc
@@ -19,9 +19,9 @@
#include "inspector.h"
-#include <layout.h>
+#include <tqlayout.h>
#include <tqlistview.h>
-#include <textstream.h>
+#include <tqtextstream.h>
#include <kdialogbase.h>
@@ -65,7 +65,7 @@ static TQString boolAsString( bool b )
static TQString longAsHexstring( long l )
{
- return TQString("%1").arg(l, 8, 16);
+ return TQString("%1").tqarg(l, 8, 16);
}
static TQString dirAsString( Sheet::LayoutDirection dir )
diff --git a/kspread/tests/tester.cc b/kspread/tests/tester.cc
index cdadeaefe..05df95d10 100644
--- a/kspread/tests/tester.cc
+++ b/kspread/tests/tester.cc
@@ -20,7 +20,7 @@
#include "tester.h"
#include <tqstringlist.h>
-#include <textstream.h>
+#include <tqtextstream.h>
using namespace KSpread;
diff --git a/kspread/tests/testrunner.cc b/kspread/tests/testrunner.cc
index fa45c9c00..53fe60b3c 100644
--- a/kspread/tests/testrunner.cc
+++ b/kspread/tests/testrunner.cc
@@ -22,8 +22,8 @@
#include <tqapplication.h>
#include <tqdict.h>
#include <tqlabel.h>
-#include <layout.h>
-#include <textedit.h>
+#include <tqlayout.h>
+#include <tqtextedit.h>
#include <kcombobox.h>
#include <kdialogbase.h>
@@ -58,23 +58,23 @@ TestRunner::TestRunner():
d = new Private;
TQFrame* mainWidget = plainPage();
- TQGridLayout* layout = new TQGridLayout( mainWidget, 3, 4, marginHint(), spacingHint() );
+ TQGridLayout* tqlayout = new TQGridLayout( mainWidget, 3, 4, marginHint(), spacingHint() );
setMinimumSize( 360, 230 );
TQLabel* typeLabel = new TQLabel( "Type of Test:", mainWidget );
- layout->addWidget( typeLabel, 0, 0 );
+ tqlayout->addWidget( typeLabel, 0, 0 );
d->testType = new KComboBox( mainWidget );
- layout->addWidget( d->testType, 0, 1 );
+ tqlayout->addWidget( d->testType, 0, 1 );
- TQSpacerItem* spacerItem = new TQSpacerItem( 10, 10, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
- layout->addItem( spacerItem, 0, 2 );
+ TQSpacerItem* tqspacerItem = new TQSpacerItem( 10, 10, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
+ tqlayout->addItem( tqspacerItem, 0, 2 );
d->runButton = new KPushButton( "Run", mainWidget );
- layout->addWidget( d->runButton, 0, 3 );
+ tqlayout->addWidget( d->runButton, 0, 3 );
d->logView = new TQTextEdit( mainWidget );
- layout->addMultiCellWidget( d->logView, 2, 2, 0, 3 );
+ tqlayout->addMultiCellWidget( d->logView, 2, 2, 0, 3 );
d->logView->setTextFormat( TQt::LogText );
TQObject::connect( d->runButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( runTest() ) );
@@ -108,7 +108,7 @@ void TestRunner::runTest()
if( tester )
{
d->logView->clear();
- d->logView->append( TQString("Test: %1").arg( testName ) );
+ d->logView->append( TQString("Test: %1").tqarg( testName ) );
TQApplication::setOverrideCursor(TQt::waitCursor);
tester->run();
@@ -117,13 +117,13 @@ void TestRunner::runTest()
TQStringList errorList = tester->errors();
if( tester->failed() )
{
- d->logView->append( TQString( "%1 tests, <b>%2 failed.</b>").arg( tester->count() ).
+ d->logView->append( TQString( "%1 tests, <b>%2 failed.</b>").tqarg( tester->count() ).
arg( tester->failed() ) );
for( unsigned k = 0; k < errorList.count(); k++ )
d->logView->append( errorList[k] );
}
else
- d->logView->append( TQString( "%1 tests, everything is OK. ").arg( tester->count() ) );
+ d->logView->append( TQString( "%1 tests, everything is OK. ").tqarg( tester->count() ) );
d->logView->append( "Test finished." );
}
diff --git a/kspread/valueconverter.cc b/kspread/valueconverter.cc
index cd649c367..8dda86d17 100644
--- a/kspread/valueconverter.cc
+++ b/kspread/valueconverter.cc
@@ -228,11 +228,11 @@ Value ValueConverter::asDateTime (const Value &value) const
switch (value.type()) {
case Value::Empty:
- val.setValue (TQDateTime::currentDateTime());
+ val.setValue (TQDateTime::tqcurrentDateTime());
break;
case Value::Boolean:
//ignore the bool value... any better idea? ;)
- val.setValue (TQDateTime::currentDateTime());
+ val.setValue (TQDateTime::tqcurrentDateTime());
break;
case Value::Integer:
val.setValue (value.asFloat());
@@ -269,11 +269,11 @@ Value ValueConverter::asDate (const Value &value) const
switch (value.type()) {
case Value::Empty:
- val.setValue (TQDate::currentDate());
+ val.setValue (TQDate::tqcurrentDate());
break;
case Value::Boolean:
//ignore the bool value... any better idea? ;)
- val.setValue (TQDate::currentDate());
+ val.setValue (TQDate::tqcurrentDate());
break;
case Value::Integer:
val.setValue (value.asFloat());
diff --git a/kspread/valueformatter.cc b/kspread/valueformatter.cc
index 1eda41da0..9e3c57da4 100644
--- a/kspread/valueformatter.cc
+++ b/kspread/valueformatter.cc
@@ -358,15 +358,15 @@ TQString ValueFormatter::fractionFormat (double value, FormatType fmtType)
diff = fabs(result - calc);
}
}
- if( index1 == 0 ) return TQString("%1").arg( floor(value) );
- if( index1 == index ) return TQString("%1").arg( floor(value)+1 );
+ if( index1 == 0 ) return TQString("%1").tqarg( floor(value) );
+ if( index1 == index ) return TQString("%1").tqarg( floor(value)+1 );
if( floor(value) == 0)
- return TQString("%1/%2").arg( index1 ).arg( index );
+ return TQString("%1/%2").tqarg( index1 ).tqarg( index );
return TQString("%1 %2/%3")
- .arg( floor(value) )
- .arg( index1 )
- .arg( index );
+ .tqarg( floor(value) )
+ .tqarg( index1 )
+ .tqarg( index );
}
@@ -407,12 +407,12 @@ TQString ValueFormatter::fractionFormat (double value, FormatType fmtType)
else
{
if ( floor(value) == 0 )
- return TQString("%1/%2").arg(numerator).arg(denominator);
+ return TQString("%1/%2").tqarg(numerator).tqarg(denominator);
else
return TQString("%1 %2/%3")
- .arg(floor(value))
- .arg(numerator)
- .arg(denominator);
+ .tqarg(floor(value))
+ .tqarg(numerator)
+ .tqarg(denominator);
}
}
@@ -436,35 +436,35 @@ TQString ValueFormatter::timeFormat (const TQDateTime &dt, FormatType fmtType)
if (fmtType == Time_format1) { // 9 : 01 AM
return TQString("%1:%2 %3")
- .arg((pm ? h - 12 : h),2)
- .arg(minute,2)
- .arg(AMPM);
+ .tqarg((pm ? h - 12 : h),2)
+ .tqarg(minute,2)
+ .tqarg(AMPM);
}
if (fmtType == Time_format2) { //9:01:05 AM
return TQString("%1:%2:%3 %4")
- .arg((pm ? h-12 : h),2)
- .arg(minute,2)
- .arg(second,2)
- .arg(AMPM);
+ .tqarg((pm ? h-12 : h),2)
+ .tqarg(minute,2)
+ .tqarg(second,2)
+ .tqarg(AMPM);
}
if (fmtType == Time_format3) {
return TQString("%1 %2 %3 %4 %5 %6") // 9 h 01 min 28 s
- .arg(hour,2)
- .arg(i18n("h"))
- .arg(minute,2)
- .arg(i18n("min"))
- .arg(second,2)
- .arg(i18n("s"));
+ .tqarg(hour,2)
+ .tqarg(i18n("h"))
+ .tqarg(minute,2)
+ .tqarg(i18n("min"))
+ .tqarg(second,2)
+ .tqarg(i18n("s"));
}
if (fmtType == Time_format4) { // 9:01
- return TQString("%1:%2").arg(hour, 2).arg(minute, 2);
+ return TQString("%1:%2").tqarg(hour, 2).tqarg(minute, 2);
}
if (fmtType == Time_format5) { // 9:01:12
- return TQString("%1:%2:%3").arg(hour, 2).arg(minute, 2).arg(second, 2);
+ return TQString("%1:%2:%3").tqarg(hour, 2).tqarg(minute, 2).tqarg(second, 2);
}
TQDate d1(dt.date());
@@ -476,15 +476,15 @@ TQString ValueFormatter::timeFormat (const TQDateTime &dt, FormatType fmtType)
if (fmtType == Time_format6)
{ // [mm]:ss
m += (h * 60);
- return TQString("%1:%2").arg(m, 1).arg(second, 2);
+ return TQString("%1:%2").tqarg(m, 1).tqarg(second, 2);
}
if (fmtType == Time_format7) { // [h]:mm:ss
- return TQString("%1:%2:%3").arg(h, 1).arg(minute, 2).arg(second, 2);
+ return TQString("%1:%2:%3").tqarg(h, 1).tqarg(minute, 2).tqarg(second, 2);
}
if (fmtType == Time_format8)
{ // [h]:mm
m += (h * 60);
- return TQString("%1:%2").arg(h, 1).arg(minute, 2);
+ return TQString("%1:%2").tqarg(h, 1).tqarg(minute, 2);
}
return converter->locale()->formatTime( dt.time(), false );
@@ -540,7 +540,7 @@ TQString ValueFormatter::dateFormat (const TQDate &date, FormatType fmtType)
tmp += TQString::number(date.year());
}
else if (fmtType == date_format10) { /*F-99 */
- tmp = converter->locale()->calendar()->monthString(date, false).at(0) + "-";
+ tmp = converter->locale()->calendar()->monthString(date, false).tqat(0) + "-";
tmp += TQString::number(date.year()).right(2);
}
else if (fmtType == date_format11) { /*18/Feb */