Compare commits

...

81 Commits

Author SHA1 Message Date
TDE Gitea 61012c1a1f Reset submodule main/applications/development/ktechlab/admin to latest HEAD
2 years ago
Slávek Banko 4fce7d2c29
Remove cmake submodule since it has now been replaced by cmake-trinity dependency.
3 years ago
TDE Gitea 57bef1f1a9 Reset submodule main/applications/ktechlab/cmake to latest HEAD
3 years ago
TDE Gitea 37f3008377 Reset submodule main/applications/ktechlab/cmake to latest HEAD
3 years ago
TDE Gitea 8b4320d0ab Reset submodule main/applications/ktechlab/cmake to latest HEAD
3 years ago
TDE Gitea 92e1a25b54 Reset submodule main/applications/ktechlab/cmake to latest HEAD
3 years ago
TDE Gitea 5ada28a044 Reset submodule main/applications/ktechlab/admin to latest HEAD
3 years ago
TDE Gitea 8036759121 Reset submodule main/applications/ktechlab/cmake to latest HEAD
3 years ago
TDE Gitea 9e6bc70aeb Reset submodule main/applications/ktechlab/cmake to latest HEAD
3 years ago
TDE Gitea a14ac8fb0f Reset submodule main/applications/ktechlab/admin to latest HEAD
3 years ago
TDE Gitea 4f04d10e27 Reset submodule main/applications/ktechlab/cmake to latest HEAD
4 years ago
TDE Gitea 3ab28be8a7 Reset submodule main/applications/ktechlab/admin to latest HEAD
4 years ago
TDE Gitea d280883f9b Reset submodule main/applications/ktechlab/cmake to latest HEAD
4 years ago
TDE Gitea 244bee5016 Reset submodule main/applications/ktechlab/admin to latest HEAD
4 years ago
TDE Gitea 2f34e6590a Reset submodule main/applications/ktechlab/cmake to latest HEAD
4 years ago
TDE Gitea 129dc1cd78 Reset submodule main/applications/ktechlab/admin to latest HEAD
4 years ago
TDE Gitea c71c1f89b9 Reset submodule main/applications/ktechlab/cmake to latest HEAD
4 years ago
TDE Gitea 05825ed20b Reset submodule main/applications/ktechlab/cmake to latest HEAD
4 years ago
TDE Gitea 8591543405 Reset submodule main/applications/ktechlab/cmake to latest HEAD
4 years ago
TDE Gitea c63c7fe54b Reset submodule main/applications/ktechlab/admin to latest HEAD
4 years ago
TDE Gitea f91e0849bd Reset submodule main/applications/ktechlab/cmake to latest HEAD
4 years ago
TDE Gitea c681dd3653 Reset submodule main/applications/ktechlab/cmake to latest HEAD
4 years ago
TDE Gitea 074c5496d5 Reset submodule main/applications/ktechlab/cmake to latest HEAD
4 years ago
TDE Gitea e352803577 Reset submodule main/applications/ktechlab/cmake to latest HEAD
4 years ago
TDE Gitea 6fe9f5d3a5 Reset submodule main/applications/ktechlab/admin to latest HEAD
4 years ago
TDE Gitea c891ccf347 Reset submodule main/applications/ktechlab/cmake to latest HEAD
4 years ago
TDE Gitea b36b16eac6 Reset submodule main/applications/ktechlab/cmake to latest HEAD
4 years ago
TDE Gitea 2d6b8d24c1 Reset submodule main/applications/ktechlab/cmake to latest HEAD
4 years ago
TDE Gitea 8913d16e7d Reset submodule main/applications/ktechlab/cmake to latest HEAD
4 years ago
TDE Gitea 22272315b3 Reset submodule main/applications/ktechlab/cmake to latest HEAD
4 years ago
TDE Gitea b2f40e2dc6 Reset submodule main/applications/ktechlab/cmake to latest HEAD
4 years ago
TDE Gitea b767915af2 Reset submodule main/applications/ktechlab/cmake to latest HEAD
4 years ago
TDE Gitea 686f131ddc Reset submodule main/applications/ktechlab/cmake to latest HEAD
4 years ago
TDE Gitea 550e0e6822 Reset submodule main/applications/ktechlab/cmake to latest HEAD
4 years ago
Slávek Banko 66362b162a
Switch all submodules to https.
4 years ago
TDE Gitea 76f762d3cb Reset submodule main/applications/ktechlab/cmake to latest HEAD
5 years ago
TDE Gitea cab33b6ba1 Reset submodule main/applications/ktechlab/cmake to latest HEAD
5 years ago
TDE Gitea efb2ac5b1d Reset submodule main/applications/ktechlab/cmake to latest HEAD
5 years ago
TDE Gitea a9b10078dd Reset submodule main/applications/ktechlab/cmake to latest HEAD
5 years ago
TDE Gitea 3234521fda Reset submodule main/applications/ktechlab/admin to latest HEAD
5 years ago
TDE Gitea 58cedfce86 Reset submodule main/applications/ktechlab/cmake to latest HEAD
5 years ago
TDE Gitea f6b9ce959b Reset submodule main/applications/ktechlab/cmake to latest HEAD
5 years ago
TDE Gitea e44fb17456 Reset submodule main/applications/ktechlab/cmake to latest HEAD
5 years ago
TDE Gitea 37599d2e9e Reset submodule main/applications/ktechlab/cmake to latest HEAD
5 years ago
TDE Gitea 1b06d9421d Reset submodule main/applications/ktechlab/cmake to latest HEAD
5 years ago
TDE Gitea c1870990be Reset submodule main/applications/ktechlab/cmake to latest HEAD
5 years ago
TDE Gitea 8874e60d95 Reset submodule main/applications/ktechlab/admin to latest HEAD
5 years ago
TDE Gitea 4ef4a4fcd5 Reset submodule main/applications/ktechlab/cmake to latest HEAD
5 years ago
TDE Gitea 04f392c10d Reset submodule main/applications/ktechlab/cmake to latest HEAD
5 years ago
TDE Gitea d109764b77 Reset submodule main/applications/ktechlab/admin to latest HEAD
6 years ago
Slávek Banko 5ca286f2bc Reset submodule main/applications/ktechlab/admin to latest HEAD
6 years ago
Slávek Banko 8653e7eeae Reset submodule main/applications/ktechlab/admin to latest HEAD
6 years ago
Slávek Banko e610716522 Reset submodule main/applications/ktechlab/admin to latest HEAD
6 years ago
Slávek Banko 3e7337d2ab Reset submodule main/applications/ktechlab/cmake to latest HEAD
7 years ago
Slávek Banko af99269d41 Reset submodule main/applications/ktechlab/admin to latest HEAD
8 years ago
Slávek Banko 3b044b9c1b Reset submodule main/applications/ktechlab/cmake to latest HEAD
8 years ago
Slávek Banko 080158ef54 Reset submodule main/applications/ktechlab/admin to latest HEAD
8 years ago
Slávek Banko 075b6b537e Reset submodule main/applications/ktechlab/admin to latest HEAD
11 years ago
Slávek Banko 6d25ddd469 Reset submodule main/applications/ktechlab/admin to latest HEAD
11 years ago
Slávek Banko 322e38cdb4 Fix crash when component is added to the circuit
11 years ago
Slávek Banko 6f8853d29e Reset submodule main/applications/ktechlab/cmake to latest HEAD
11 years ago
Slávek Banko f11909068d Reset submodule main/applications/ktechlab/cmake to latest HEAD
11 years ago
Darrell Anderson 4319c010e8 Fix references to user profile directory.
11 years ago
Slávek Banko ef5499ef52 Reset submodule main/applications/ktechlab/cmake to latest HEAD
12 years ago
Slávek Banko 5653cb78a6 Reset submodule main/applications/ktechlab/cmake to latest HEAD
12 years ago
Slávek Banko 42d6c96789 Reset submodule main/applications/ktechlab/admin to latest HEAD
12 years ago
Slávek Banko 6e7dccfe5f Fix build without gpsim
12 years ago
Slávek Banko 84097910a7 Reset submodule main/applications/ktechlab/cmake to latest HEAD
12 years ago
Slávek Banko 76906a6eda Reset submodule main/applications/ktechlab/cmake to latest HEAD
12 years ago
Slávek Banko 07f7130d8a Reset submodule main/applications/ktechlab/admin to latest HEAD
12 years ago
Slávek Banko 0bf151be88 Update final HTML install path so all modules are consistent.
12 years ago
Darrell Anderson 6cf32770a9 Update HTML install path references.
12 years ago
Slávek Banko 5b9788efa8 Update autotools for new DSO linkage style
12 years ago
Timothy Pearson 8c42137774 Rename obsolete tq methods to standard names
12 years ago
Timothy Pearson 91ef45e89e Remove additional unneeded tq method conversions
12 years ago
Timothy Pearson e72829f3fa Rename old tq methods that no longer need a unique name
12 years ago
Timothy Pearson 0e831bb9c4 Fix FTBFS
12 years ago
Timothy Pearson 42992ffe42 Fix FTBFS with a bit of a hack around gpsim
12 years ago
Timothy Pearson 522839f942 Fix linker flags
12 years ago
Timothy Pearson 700fb3e4a9 Fix FTBFS on oneiric
12 years ago
Slávek Banko dc19b93fdf Add common directories
12 years ago

3
.gitmodules vendored

@ -0,0 +1,3 @@
[submodule "admin"]
path = admin
url = https://system@scm.trinitydesktop.org/scm/git/tde-common-admin

@ -430,12 +430,12 @@ if test "$1" = "default"; then
if test -z "$kde_htmldir"; then
if test -f /etc/debian_version; then
if dpkg -s kdelibs4 | grep Status | grep not-installed 2>&1 >/dev/null; then
kde_htmldir='\${prefix}/share/doc/HTML';
kde_htmldir='\${prefix}/share/doc/tde/HTML';
else
kde_htmldir='\${prefix}/share/doc/kde/HTML'
kde_htmldir='\${prefix}/share/doc/tde/HTML'
fi
else
kde_htmldir='\${prefix}/share/doc/HTML'
kde_htmldir='\${prefix}/share/doc/tde/HTML'
fi
fi

6
aclocal.m4 vendored

@ -442,12 +442,12 @@ if test "$1" = "default"; then
if test -z "$kde_htmldir"; then
if test -f /etc/debian_version; then
if dpkg -s kdelibs4 | grep Status | grep not-installed 2>&1 >/dev/null; then
kde_htmldir='\${prefix}/share/doc/HTML';
kde_htmldir='\${prefix}/share/doc/tde/HTML';
else
kde_htmldir='\${prefix}/share/doc/kde/HTML'
kde_htmldir='\${prefix}/share/doc/tde/HTML'
fi
else
kde_htmldir='\${prefix}/share/doc/HTML'
kde_htmldir='\${prefix}/share/doc/tde/HTML'
fi
fi

@ -0,0 +1 @@
Subproject commit 92a6d62b8f8f1836c43b54e3fb13b7ea7bb22e9f

@ -167,7 +167,7 @@ if test x$have_gpsim_0_21_4 == xyes || test x$have_gpsim_0_21_11 == xyes || test
for LIBREADLINE in "-lreadline" "-lreadline $LIBCURSES" "-lreadline -ltermcap" "-lreadline -lncurses" "-lreadline -lcurses"
do
LIBS="$ac_save_LIBS $LIBREADLINE"
LIB_GPSIM="$LIBREADLINE -lgpsim -lgpsim_eXdbm -lgpsimcli"
LIB_GPSIM="$LIBREADLINE -lgpsim -lgpsim_eXdbm -lgpsimcli -lgpsimgui"
AC_TRY_RUN([
/* program */
#include <stdio.h>

@ -102,7 +102,7 @@ if test x$have_gpsim_0_21_4 == xyes || test x$have_gpsim_0_21_11 == xyes || test
for LIBREADLINE in "-lreadline" "-lreadline $LIBCURSES" "-lreadline -ltermcap" "-lreadline -lncurses" "-lreadline -lcurses"
do
LIBS="$ac_save_LIBS $LIBREADLINE"
LIB_GPSIM="$LIBREADLINE -lgpsim -lgpsim_eXdbm -lgpsimcli"
LIB_GPSIM="$LIBREADLINE -lgpsim -lgpsim_eXdbm -lgpsimcli -lgpsimgui"
AC_TRY_RUN([
/* program */
#include <stdio.h>

@ -7,8 +7,8 @@ ktlicon_DATA = and.png cell.png logic_input.png logic_output.png nand.png \
spdt.png spst.png keypad.png opamp.png xnor.png circuit.png flowcode.png \
delay.png interrupt.png pinread.png pinwrite.png portread.png portwrite.png \
repeat.png while.png for.png assignment.png branch.png delay.png embed.png end.png \
for.png interrupt.png pinread.png pinwrite.png portread.png portwrite.png \
repeat.png start.png sub.png subcall.png unary.png while.png item.png ic1.png \
interrupt.png pinread.png pinwrite.png portread.png portwrite.png \
repeat.png start.png sub.png subcall.png unary.png item.png ic1.png \
ic2.png ic3.png voltagesignal.png currentsignal.png clockinput.png cccs.png \
ccvs.png vcvs.png vccs.png mechanics.png buffer.png external_connection.png \
logicprobe.png potentiometer.png resistordip.png bidirled.png project_library.png \

@ -155,7 +155,7 @@ void BTreeBase::pruneTree(BTreeNode *root, bool /*conditionalRoot*/)
{
// since we can't call compileError from in this class, we have a special way of handling it:
// Leave the tqchildren as they are, and set childOp to divbyzero
// Leave the children as they are, and set childOp to divbyzero
if( t.current()->childOp() == Expression::division )
{
t.current()->setChildOp(Expression::divbyzero);

@ -38,7 +38,7 @@ BTreeNode::BTreeNode(BTreeNode *p, BTreeNode *l, BTreeNode *r)
BTreeNode::~BTreeNode()
{
// Must not delete tqchildren as might be unlinking!!! deleteChildren();
// Must not delete children as might be unlinking!!! deleteChildren();
}
void BTreeNode::deleteChildren()

@ -46,7 +46,7 @@ class BTreeNode
*/
// void printTree();
/**
* Recursively delete all tqchildren of a node.
* Recursively delete all children of a node.
*/
void deleteChildren();
/**

@ -462,7 +462,7 @@ void Expression::buildTree( const TQString & unstrippedExpression, BTreeBase *tr
void Expression::doUnaryOp(Operation op, BTreeNode *node)
{
/* Note that this isn't for unary operations as such,
rather for things that are operations that have no direct tqchildren,
rather for things that are operations that have no direct children,
e.g. portx.n is high, and functionname(args)*/
if ( op == pin || op == notpin )

@ -971,14 +971,14 @@ TQString Code::generateCode( PIC14 * pic ) const
uchar reg = pic->gprStart();
TQStringList::const_iterator end = variables.end();
for ( TQStringList::const_iterator it = variables.begin(); it != end; ++it )
code += TQString("%1\tequ\t0x%2\n").tqarg( *it ).tqarg( TQString::number( reg++, 16 ) );
code += TQString("%1\tequ\t0x%2\n").arg( *it ).arg( TQString::number( reg++, 16 ) );
code += "\n";
}
TQString picString = pic->minimalTypeString();
code += TQString("list p=%1\n").tqarg( picString );
code += TQString("include \"p%2.inc\"\n\n").tqarg( picString.lower() );
code += TQString("list p=%1\n").arg( picString );
code += TQString("include \"p%2.inc\"\n\n").arg( picString.lower() );
code += "; Config options\n";
code += " __config _WDT_OFF\n\n";
@ -1347,7 +1347,7 @@ void Instruction::clearLinks()
//BEGIN Byte-Oriented File Register Operations
TQString Instr_addwf::code() const
{
return TQString("addwf\t%1,%2").tqarg( m_file.name() ).tqarg( m_dest );
return TQString("addwf\t%1,%2").arg( m_file.name() ).arg( m_dest );
}
void Instr_addwf::generateLinksAndStates( Code::iterator current )
@ -1400,7 +1400,7 @@ ProcessorBehaviour Instr_addwf::behaviour() const
TQString Instr_andwf::code() const
{
return TQString("andwf\t%1,%2").tqarg( m_file.name() ).tqarg( m_dest );
return TQString("andwf\t%1,%2").arg( m_file.name() ).arg( m_dest );
}
void Instr_andwf::generateLinksAndStates( Code::iterator current )
@ -1434,7 +1434,7 @@ ProcessorBehaviour Instr_andwf::behaviour() const
TQString Instr_clrf::code() const
{
return TQString("clrf\t%1").tqarg( m_file.name() );
return TQString("clrf\t%1").arg( m_file.name() );
}
void Instr_clrf::generateLinksAndStates( Code::iterator current )
@ -1468,7 +1468,7 @@ ProcessorBehaviour Instr_clrf::behaviour() const
TQString Instr_decf::code() const
{
return TQString("decf\t%1,%2").tqarg( m_file.name() ).tqarg( m_dest );
return TQString("decf\t%1,%2").arg( m_file.name() ).arg( m_dest );
}
void Instr_decf::generateLinksAndStates( Code::iterator current )
@ -1496,7 +1496,7 @@ ProcessorBehaviour Instr_decf::behaviour() const
TQString Instr_decfsz::code() const
{
return TQString("decfsz\t%1,%2").tqarg( m_file.name() ).tqarg( m_dest );
return TQString("decfsz\t%1,%2").arg( m_file.name() ).arg( m_dest );
}
void Instr_decfsz::generateLinksAndStates( Code::iterator current )
@ -1520,7 +1520,7 @@ ProcessorBehaviour Instr_decfsz::behaviour() const
TQString Instr_incf::code() const
{
return TQString("incf\t%1,%2").tqarg( m_file.name() ).tqarg( m_dest );
return TQString("incf\t%1,%2").arg( m_file.name() ).arg( m_dest );
}
void Instr_incf::generateLinksAndStates( Code::iterator current )
@ -1550,7 +1550,7 @@ ProcessorBehaviour Instr_incf::behaviour() const
TQString Instr_iorwf::code() const
{
return TQString("iorwf\t%1,%2").tqarg( m_file.name() ).tqarg( m_dest );
return TQString("iorwf\t%1,%2").arg( m_file.name() ).arg( m_dest );
}
void Instr_iorwf::generateLinksAndStates( Code::iterator current )
@ -1579,7 +1579,7 @@ ProcessorBehaviour Instr_iorwf::behaviour() const
TQString Instr_movf::code() const
{
return TQString("movf\t%1,%2").tqarg( m_file.name() ).tqarg( m_dest );
return TQString("movf\t%1,%2").arg( m_file.name() ).arg( m_dest );
}
void Instr_movf::generateLinksAndStates( Code::iterator current )
@ -1625,7 +1625,7 @@ ProcessorBehaviour Instr_movf::behaviour() const
TQString Instr_movwf::code() const
{
return TQString("movwf\t%1").tqarg( m_file.name() );
return TQString("movwf\t%1").arg( m_file.name() );
}
void Instr_movwf::generateLinksAndStates( Code::iterator current )
@ -1655,7 +1655,7 @@ ProcessorBehaviour Instr_movwf::behaviour() const
TQString Instr_rlf::code() const
{
return TQString("rlf\t%1,%2").tqarg( m_file.name() ).tqarg( m_dest );
return TQString("rlf\t%1,%2").arg( m_file.name() ).arg( m_dest );
}
void Instr_rlf::generateLinksAndStates( Code::iterator current )
@ -1686,7 +1686,7 @@ ProcessorBehaviour Instr_rlf::behaviour() const
TQString Instr_rrf::code() const
{
return TQString("rrf\t%1,%2").tqarg( m_file.name() ).tqarg( m_dest );
return TQString("rrf\t%1,%2").arg( m_file.name() ).arg( m_dest );
}
void Instr_rrf::generateLinksAndStates( Code::iterator current )
@ -1716,7 +1716,7 @@ ProcessorBehaviour Instr_rrf::behaviour() const
TQString Instr_subwf::code() const
{
return TQString("subwf\t%1,%2").tqarg( m_file.name() ).tqarg( m_dest );
return TQString("subwf\t%1,%2").arg( m_file.name() ).arg( m_dest );
}
void Instr_subwf::generateLinksAndStates( Code::iterator current )
@ -1774,7 +1774,7 @@ ProcessorBehaviour Instr_subwf::behaviour() const
TQString Instr_swapf::code() const
{
return TQString("swapf\t%1,%2").tqarg( m_file.name() ).tqarg( m_dest );
return TQString("swapf\t%1,%2").arg( m_file.name() ).arg( m_dest );
}
void Instr_swapf::generateLinksAndStates( Code::iterator current )
@ -1801,7 +1801,7 @@ ProcessorBehaviour Instr_swapf::behaviour() const
TQString Instr_xorwf::code() const
{
return TQString("xorwf\t%1,%2").tqarg( m_file.name() ).tqarg( m_dest );
return TQString("xorwf\t%1,%2").arg( m_file.name() ).arg( m_dest );
}
void Instr_xorwf::generateLinksAndStates( Code::iterator current )
@ -1833,7 +1833,7 @@ ProcessorBehaviour Instr_xorwf::behaviour() const
//BEGIN Bit-Oriented File Register Operations
TQString Instr_bcf::code() const
{
return TQString("bcf\t\t%1,%2").tqarg( m_file.name() ).tqarg( m_bit.name() );
return TQString("bcf\t\t%1,%2").arg( m_file.name() ).arg( m_bit.name() );
}
void Instr_bcf::generateLinksAndStates( Code::iterator current )
@ -1857,7 +1857,7 @@ ProcessorBehaviour Instr_bcf::behaviour() const
TQString Instr_bsf::code() const
{
return TQString("bsf\t\t%1,%2").tqarg( m_file.name() ).tqarg( m_bit.name() );
return TQString("bsf\t\t%1,%2").arg( m_file.name() ).arg( m_bit.name() );
}
void Instr_bsf::generateLinksAndStates( Code::iterator current )
@ -1880,7 +1880,7 @@ ProcessorBehaviour Instr_bsf::behaviour() const
TQString Instr_btfsc::code() const
{
return TQString("btfsc\t%1,%2").tqarg( m_file.name() ).tqarg( m_bit.name() );
return TQString("btfsc\t%1,%2").arg( m_file.name() ).arg( m_bit.name() );
}
void Instr_btfsc::generateLinksAndStates( Code::iterator current )
@ -1907,7 +1907,7 @@ ProcessorBehaviour Instr_btfsc::behaviour() const
TQString Instr_btfss::code() const
{
return TQString("btfss\t%1,%2").tqarg( m_file.name() ).tqarg( m_bit.name() );
return TQString("btfss\t%1,%2").arg( m_file.name() ).arg( m_bit.name() );
}
void Instr_btfss::generateLinksAndStates( Code::iterator current )
@ -1937,7 +1937,7 @@ ProcessorBehaviour Instr_btfss::behaviour() const
//BEGIN Literal and Control Operations
TQString Instr_addlw::code() const
{
return TQString("addlw\t%1").tqarg( m_literal );
return TQString("addlw\t%1").arg( m_literal );
}
void Instr_addlw::generateLinksAndStates( Code::iterator current )
@ -1964,7 +1964,7 @@ ProcessorBehaviour Instr_addlw::behaviour() const
TQString Instr_andlw::code() const
{
return TQString("andlw\t%1").tqarg( m_literal );
return TQString("andlw\t%1").arg( m_literal );
}
void Instr_andlw::generateLinksAndStates( Code::iterator current )
@ -1991,7 +1991,7 @@ ProcessorBehaviour Instr_andlw::behaviour() const
TQString Instr_call::code() const
{
return TQString("call\t%1").tqarg( m_label );
return TQString("call\t%1").arg( m_label );
}
void Instr_call::generateLinksAndStates( Code::iterator current )
@ -2064,7 +2064,7 @@ void Instr_call::linkReturns( Instruction * current, Instruction * returnPoint )
TQString Instr_goto::code() const
{
return TQString("goto\t%1").tqarg( m_label );
return TQString("goto\t%1").arg( m_label );
}
void Instr_goto::generateLinksAndStates( Code::iterator current )
@ -2085,7 +2085,7 @@ ProcessorBehaviour Instr_goto::behaviour() const
TQString Instr_iorlw::code() const
{
return TQString("iorlw\t%1").tqarg( m_literal );
return TQString("iorlw\t%1").arg( m_literal );
}
void Instr_iorlw::generateLinksAndStates( Code::iterator current )
@ -2112,7 +2112,7 @@ ProcessorBehaviour Instr_iorlw::behaviour() const
TQString Instr_movlw::code() const
{
return TQString("movlw\t%1").tqarg( m_literal );
return TQString("movlw\t%1").arg( m_literal );
}
void Instr_movlw::generateLinksAndStates( Code::iterator current )
@ -2153,7 +2153,7 @@ ProcessorBehaviour Instr_retfie::behaviour() const
TQString Instr_retlw::code() const
{
return TQString("retlw\t%1").tqarg( m_literal );
return TQString("retlw\t%1").arg( m_literal );
}
void Instr_retlw::generateLinksAndStates( Code::iterator current )
@ -2219,7 +2219,7 @@ ProcessorBehaviour Instr_sleep::behaviour() const
TQString Instr_sublw::code() const
{
return TQString("sublw\t%1").tqarg( m_literal );
return TQString("sublw\t%1").arg( m_literal );
}
void Instr_sublw::generateLinksAndStates( Code::iterator current )
@ -2264,7 +2264,7 @@ ProcessorBehaviour Instr_sublw::behaviour() const
TQString Instr_xorlw::code() const
{
return TQString("xorlw\t%1").tqarg( m_literal );
return TQString("xorlw\t%1").arg( m_literal );
}
void Instr_xorlw::generateLinksAndStates( Code::iterator current )

@ -56,7 +56,7 @@ Microbe::Microbe()
{
for ( unsigned col = 0; col < 6; ++col )
{
m_aliasList[ TQString("Keypad_%1_%2").tqarg(row+1).tqarg(col+1) ] = TQString::number( bv[row][col] );
m_aliasList[ TQString("Keypad_%1_%2").arg(row+1).arg(col+1) ] = TQString::number( bv[row][col] );
}
}
@ -84,7 +84,7 @@ TQString Microbe::compile( const TQString & url, bool showSource, bool optimize
}
else
{
m_errorReport += i18n("Could not open file '%1'\n").tqarg(url);
m_errorReport += i18n("Could not open file '%1'\n").arg(url);
return 0;
}
@ -216,7 +216,7 @@ void Microbe::compileError( MistakeType type, const TQString & context, const So
message = i18n("Unknown statement");
break;
case InvalidPort:
message = i18n("Port '%1' is not supported by target PIC").tqarg(context);
message = i18n("Port '%1' is not supported by target PIC").arg(context);
break;
case UnassignedPin:
message = i18n("Pin identifier was not followed by '='");
@ -225,19 +225,19 @@ void Microbe::compileError( MistakeType type, const TQString & context, const So
message = i18n("Pin state can only be 'high' or 'low'");
break;
case UnassignedPort:
message = i18n("Invalid token '%1'. Port identifier should be followed by '='").tqarg(context);
message = i18n("Invalid token '%1'. Port identifier should be followed by '='").arg(context);
break;
case UnexpectedStatementBeforeBracket:
message = i18n("Unexpected statement before '{'");
break;
case MismatchedBrackets:
message = i18n("Mismatched brackets in expression '%1'").tqarg(context);
message = i18n("Mismatched brackets in expression '%1'").arg(context);
break;
case InvalidEquals:
message = i18n("Invalid '=' found in expression");
break;
case ReservedKeyword:
message = i18n("Reserved keyword '%1' cannot be a variable name.").tqarg(context);
message = i18n("Reserved keyword '%1' cannot be a variable name.").arg(context);
break;
case ConsecutiveOperators:
message = i18n("Nothing between operators");
@ -249,10 +249,10 @@ void Microbe::compileError( MistakeType type, const TQString & context, const So
if ( context.isEmpty() )
message = i18n("Unknown variable");
else
message = i18n("Unknown variable '%1'").tqarg(context);
message = i18n("Unknown variable '%1'").arg(context);
break;
case UnopenableInclude:
message = i18n("Could not open include file '%1'").tqarg(context);
message = i18n("Could not open include file '%1'").arg(context);
break;
case DivisionByZero:
message = i18n("Division by zero");
@ -267,7 +267,7 @@ void Microbe::compileError( MistakeType type, const TQString & context, const So
message = i18n("Delay must be a positive constant value");
break;
case HighLowExpected:
message = i18n("'high' or 'low' expected after pin expression '%1'").tqarg(context);
message = i18n("'high' or 'low' expected after pin expression '%1'").arg(context);
break;
case InvalidComparison:
message = i18n("Comparison operator in '%1' is not recognized");
@ -285,7 +285,7 @@ void Microbe::compileError( MistakeType type, const TQString & context, const So
message = i18n("Extra tokens at end of line");
break;
case FixedStringExpected:
message = i18n("Expected '%1'").tqarg(context);
message = i18n("Expected '%1'").arg(context);
break;
case PinListExpected:
message = i18n("Pin list expected");
@ -300,19 +300,19 @@ void Microbe::compileError( MistakeType type, const TQString & context, const So
message = i18n("Interrupt already definied");
break;
case ReadOnlyVariable:
message = i18n("Variable '%1' is read only").tqarg(context);
message = i18n("Variable '%1' is read only").arg(context);
break;
case WriteOnlyVariable:
message = i18n("Variable '%1' is write only").tqarg(context);
message = i18n("Variable '%1' is write only").arg(context);
break;
case InvalidPinMapSize:
message = i18n("Invalid pin list size");
break;
case VariableRedefined:
message = i18n("Variable '%1' is already defined").tqarg(context);
message = i18n("Variable '%1' is already defined").arg(context);
break;
case InvalidVariableName:
message = i18n("'%1' is not a valid variable name").tqarg(context);
message = i18n("'%1' is not a valid variable name").arg(context);
break;
case VariableExpected:
message = i18n("Variable expected");
@ -324,10 +324,10 @@ void Microbe::compileError( MistakeType type, const TQString & context, const So
m_errorReport += TQString("%1:%2:Error [%3] %4\n")
.tqarg( sourceLine.url() )
.tqarg( sourceLine.line()+1 )
.tqarg( type )
.tqarg( message );
.arg( sourceLine.url() )
.arg( sourceLine.line()+1 )
.arg( type )
.arg( message );
}
@ -418,7 +418,7 @@ bool Microbe::isInterruptUsed( const TQString & interruptName )
TQString Microbe::dest() const
{
return TQString("__op%1").tqarg(m_dest);
return TQString("__op%1").arg(m_dest);
}

@ -156,7 +156,7 @@ class Microbe
/**
* This is for generating unique numbers for computer generated labels.
*/
TQString uniqueLabel() { return TQString("__%1").tqarg(m_uniqueLabel++); }
TQString uniqueLabel() { return TQString("__%1").arg(m_uniqueLabel++); }
/**
* If alias is an alias for something then it returns that something,
* otherwise it just returns alias (which in that case is not an alias!)

@ -212,7 +212,7 @@ Code * Parser::parse( const SourceLineList & lines )
OutputFieldMap fieldMap;
if ( (*sit).content.line() >= 0 )
m_code->append( new Instr_sourceCode( TQString("#MSRC\t%1; %2\t%3").tqarg( (*sit).content.line() + 1 ).tqarg( (*sit).content.url() ).tqarg( (*sit).content.text() ) ));
m_code->append( new Instr_sourceCode( TQString("#MSRC\t%1; %2\t%3").arg( (*sit).content.line() + 1 ).arg( (*sit).content.url() ).arg( (*sit).content.text() ) ));
bool showBracesInSource = (*sit).hasBracedCode();
if ( showBracesInSource )
m_code->append(new Instr_sourceCode("{"));

@ -70,7 +70,7 @@ PortPin PIC14::toPortPin( const TQString & portPinString )
// In form e.g. RB3
if ( portPinString.length() == 3 )
{
port = TQString("PORT%1").tqarg( portPinString[1].upper() );
port = TQString("PORT%1").arg( portPinString[1].upper() );
pin = TQString( portPinString[2] ).toInt();
}
else
@ -135,7 +135,7 @@ PIC14::Type PIC14::toType( const TQString & _text )
if ( text == "16F628" )
return P16F628;
cerr << TQString("%1 is not a known PIC identifier\n").tqarg(_text);
cerr << TQString("%1 is not a known PIC identifier\n").arg(_text);
return unknown;
}
@ -897,7 +897,7 @@ void PIC14::SsevenSegment( const Variable & pinMap )
assert( pinMap.type() == Variable::sevenSegmentType );
assert( pinMap.portPinList().size() == 7 );
TQString subName = TQString("__output_seven_segment_%1").tqarg( pinMap.name() );
TQString subName = TQString("__output_seven_segment_%1").arg( pinMap.name() );
m_pCode->append( new Instr_call( subName ) );
@ -967,7 +967,7 @@ void PIC14::SsevenSegment( const Variable & pinMap )
if ( !portOutput[port].used )
continue;
TQString portName = TQString("PORT%1").tqarg( char('A'+port) );
TQString portName = TQString("PORT%1").arg( char('A'+port) );
// Save the current value of the port pins that we should not be writing to
m_pCode->append( new Instr_movf( portName, 0 ), Code::Subroutine );
@ -977,7 +977,7 @@ void PIC14::SsevenSegment( const Variable & pinMap )
if ( overwrittenW )
m_pCode->append( new Instr_movf("__i",0), Code::Subroutine );
m_pCode->append( new Instr_call( subName + TQString("_lookup_%1").tqarg(port) ), Code::Subroutine );
m_pCode->append( new Instr_call( subName + TQString("_lookup_%1").arg(port) ), Code::Subroutine );
overwrittenW = true;
// Restore the state of the pins which aren't used
@ -996,7 +996,7 @@ void PIC14::SsevenSegment( const Variable & pinMap )
if ( !portOutput[port].used )
continue;
m_pCode->queueLabel( subName + TQString("_lookup_%1").tqarg(port), Code::LookupTable );
m_pCode->queueLabel( subName + TQString("_lookup_%1").arg(port), Code::LookupTable );
m_pCode->append( new Instr_andlw(15), Code::LookupTable );
// Generate the lookup table
@ -1020,9 +1020,9 @@ void PIC14::Skeypad( const Variable & pinMap )
assert( pinMap.type() == Variable::keypadType );
assert( pinMap.portPinList().size() >= 7 ); // 4 rows, at least 3 columns
TQString subName = TQString("__wait_read_keypad_%1").tqarg( pinMap.name() );
TQString waitName = TQString("__wait_keypad_%1").tqarg( pinMap.name() );
TQString readName = TQString("__read_keypad_%1").tqarg( pinMap.name() );
TQString subName = TQString("__wait_read_keypad_%1").arg( pinMap.name() );
TQString waitName = TQString("__wait_keypad_%1").arg( pinMap.name() );
TQString readName = TQString("__read_keypad_%1").arg( pinMap.name() );
m_pCode->append( new Instr_call( subName ) );
@ -1084,7 +1084,7 @@ void PIC14::Skeypad( const Variable & pinMap )
{
PortPin colPin = pinMap.portPinList()[4+col];
m_pCode->append( new Instr_btfsc( colPin.port(), TQString::number( colPin.pin() ) ), Code::Subroutine );
m_pCode->append( new Instr_retlw( mb->alias( TQString("Keypad_%1_%2").tqarg(row+1).tqarg(col+1) ).toInt( 0, 0 ) ), Code::Subroutine );
m_pCode->append( new Instr_retlw( mb->alias( TQString("Keypad_%1_%2").arg(row+1).arg(col+1) ).toInt( 0, 0 ) ), Code::Subroutine );
}
// Make the low again

@ -34,8 +34,8 @@ Traverser::~Traverser()
BTreeNode * Traverser::start()
{
/* To find the start we will iterate, or possibly recurse
down the tree, each time turning down the node that has tqchildren,
if they both have no tqchildren we have reached the end and it shouldn't
down the tree, each time turning down the node that has children,
if they both have no children we have reached the end and it shouldn't
really matter which we pick (check this algorithm) */
BTreeNode *n = m_root;

@ -11,7 +11,7 @@ INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/src/drawparts \
-I$(top_srcdir)/src/languages -I$(top_srcdir)/src/mechanics -I$(top_srcdir)/src/micro $(all_includes)
# the library search path.
ktechlab_LDFLAGS = -module $(all_libraries) $(KDE_RPATH)
ktechlab_LDFLAGS = -module $(all_libraries) $(KDE_RPATH) $(LIB_QT) $(LIB_KDECORE) $(LIB_KDEUI) -lDCOP $(LIB_KPARTS) $(LIB_GPSIM)
# the libraries to link against.
ktechlab_LDADD = $(top_builddir)/src/gui/libgui.la \
@ -19,7 +19,7 @@ ktechlab_LDADD = $(top_builddir)/src/gui/libgui.la \
$(top_builddir)/src/mechanics/libmechanics.la $(top_builddir)/src/electronics/libelectronics.la \
$(top_builddir)/src/electronics/simulation/libelements.la $(top_builddir)/src/electronics/components/libcomponents.la \
$(top_builddir)/src/languages/liblanguages.la $(top_builddir)/src/drawparts/libdrawparts.la \
$(top_builddir)/src/core/libcore.la -lkutils $(LIB_GPSIM) -lktexteditor $(LIB_KFILE) $(LIB_KDEPRINT)
$(top_builddir)/src/core/libcore.la -lkutils -lktexteditor $(LIB_KFILE) $(LIB_KDEPRINT) $(LIB_QT) $(LIB_GPSIM)
# which sources should be compiled for ktechlab
ktechlab_SOURCES = ktechlab.cpp node.cpp connector.cpp itemlibrary.cpp \

@ -352,17 +352,17 @@ bool Button::state() const
TQRect Button::recommendedRect() const
{
TQSize tqsizeHint = m_button->tqsizeHint();
if ( tqsizeHint.width() < m_originalRect.width() )
tqsizeHint.setWidth( m_originalRect.width() );
TQSize sizeHint = m_button->sizeHint();
if ( sizeHint.width() < m_originalRect.width() )
sizeHint.setWidth( m_originalRect.width() );
// Hmm...for now, lets just keep the recomended rect the same height as the original rect
tqsizeHint.setHeight( m_originalRect.height() );
sizeHint.setHeight( m_originalRect.height() );
int hdw = (tqsizeHint.width() - m_originalRect.width())/2;
int hdh = (tqsizeHint.height() - m_originalRect.height())/2;
int hdw = (sizeHint.width() - m_originalRect.width())/2;
int hdh = (sizeHint.height() - m_originalRect.height())/2;
return TQRect( m_originalRect.x()-hdw, m_originalRect.y()-hdh, tqsizeHint.width(), tqsizeHint.height() );
return TQRect( m_originalRect.x()-hdw, m_originalRect.y()-hdh, sizeHint.width(), sizeHint.height() );
}

@ -62,8 +62,8 @@ CircuitView::CircuitView( CircuitDocument * circuitDocument, ViewContainer *view
m_pViewIface = new CircuitViewIface(this);
m_statusBar->insertItem( "", ViewStatusBar::SimulationState );
connect( Simulator::self(), TQT_SIGNAL(simulatingStateChanged(bool )), this, TQT_SLOT(slotUpdateRunningtqStatus(bool )) );
slotUpdateRunningtqStatus( Simulator::self()->isSimulating() );
connect( Simulator::self(), TQT_SIGNAL(simulatingStateChanged(bool )), this, TQT_SLOT(slotUpdateRunningStatus(bool )) );
slotUpdateRunningStatus( Simulator::self()->isSimulating() );
}
@ -74,7 +74,7 @@ CircuitView::~CircuitView()
}
void CircuitView::slotUpdateRunningtqStatus( bool isRunning )
void CircuitView::slotUpdateRunningStatus( bool isRunning )
{
m_statusBar->changeItem( isRunning ? i18n("Simulation Running") : i18n("Simulation Paused"), ViewStatusBar::SimulationState );
}

@ -27,7 +27,7 @@ public:
~CircuitView();
public slots:
virtual void slotUpdateRunningtqStatus( bool isRunning );
virtual void slotUpdateRunningStatus( bool isRunning );
protected:
virtual void dragEnterEvent( TQDragEnterEvent * e );

@ -65,8 +65,8 @@ int CNItem::rtti() const
bool CNItem::preResize( TQRect sizeRect )
{
if ( (std::abs((double)sizeRect.width()) < tqminimumSize().width()) ||
(std::abs((double)sizeRect.height()) < tqminimumSize().height()) )
if ( (std::abs((double)sizeRect.width()) < minimumSize().width()) ||
(std::abs((double)sizeRect.height()) < minimumSize().height()) )
return false;
updateConnectorPoints(false);
@ -84,16 +84,16 @@ void CNItem::setVisible( bool yes )
{
if (b_deleted)
{
Item::tqsetVisible(false);
Item::setVisible(false);
return;
}
Item::tqsetVisible(yes);
Item::setVisible(yes);
const TextMap::iterator textMapEnd = m_textMap.end();
for ( TextMap::iterator it = m_textMap.begin(); it != textMapEnd; ++it )
{
it.data()->tqsetVisible(yes);
it.data()->setVisible(yes);
}
const NodeMap::iterator nodeMapEnd = m_nodeMap.end();
@ -133,8 +133,8 @@ void CNItem::updateNodeLevels()
it.data().node->setLevel(l);
}
const ItemList::iterator end = m_tqchildren.end();
for ( ItemList::iterator it = m_tqchildren.begin(); it != end; ++it )
const ItemList::iterator end = m_children.end();
for ( ItemList::iterator it = m_children.begin(); it != end; ++it )
{
if ( CNItem *cnItem = dynamic_cast<CNItem*>((Item*)*it) )
cnItem->updateNodeLevels();

@ -165,7 +165,7 @@ protected:
* @param pos is the position that the text occupies relative to the top left corner of the CNItem.
* @param display is the actual text to be displayed.
* @param internal is used to determine the z-level of the text - whether it should be below or above the item
* @param flags Text tqalignment flags - TQt::AlignmentFlags and TQt::TextFlags OR'd together.
* @param flags Text alignment flags - TQt::AlignmentFlags and TQt::TextFlags OR'd together.
*/
Text* addDisplayText( const TQString &id, const TQRect & pos, const TQString &display, bool internal = true, int flags = TQt::AlignHCenter | TQt::AlignVCenter );
void setDisplayText( const TQString &id, const TQString &display );

@ -138,13 +138,13 @@ public:
/**
* Returns a list of all the Nodes in the group.
* @param excludeParented if false, then nodes that are fully contained
* within item tqchildren will also be returned.
* within item children will also be returned.
*/
NodeList nodes( bool excludeParented = true ) const;
/**
* Returns a list of all the Connectors in the group.
* @param excludeParented if false, then connectors that are fully contained
* within item tqchildren will also be returned.
* within item children will also be returned.
*/
ConnectorList connectors( bool excludeParented = true ) const;
/**

@ -585,7 +585,7 @@ void Connector::setVisible( bool yes )
if ( !canvas() || isVisible() == yes )
return;
TQCanvasPolygon::tqsetVisible(yes);
TQCanvasPolygon::setVisible(yes);
updateConnectorLines();
}
@ -616,7 +616,7 @@ void Connector::updateConnectorLines()
item->setZ(z);
item->setPen(pen);
item->setBrush(color);
item->tqsetVisible( isVisible() );
item->setVisible( isVisible() );
}
}

@ -56,3 +56,9 @@ int main(int argc, char **argv)
args->clear(); // Free up some memory
return app.exec();
}
void exit_gpsim(int ret)
{
printf("gpsim attempted to call exit_gpsim(%d), ***IGNORING***\n", ret);
// exit(ret);
}

@ -99,7 +99,7 @@ Document* DocManager::openURL( const KURL &url, ViewArea *viewArea )
TQFile file(url.path());
if ( file.open(IO_ReadOnly) == false )
{
KMessageBox::sorry( 0l, i18n("Could not open '%1'").tqarg( url.prettyURL() ) );
KMessageBox::sorry( 0l, i18n("Could not open '%1'").arg( url.prettyURL() ) );
return 0l;
}
file.close();
@ -166,7 +166,7 @@ TQString DocManager::untitledName( int type )
case Document::dt_circuit:
{
if ( m_countCircuit>1 )
name = i18n("Untitled (Circuit %1)").tqarg(TQString::number(m_countCircuit));
name = i18n("Untitled (Circuit %1)").arg(TQString::number(m_countCircuit));
else
name = i18n("Untitled (Circuit)");
m_countCircuit++;
@ -175,7 +175,7 @@ TQString DocManager::untitledName( int type )
case Document::dt_flowcode:
{
if ( m_countFlowCode>1 )
name = i18n("Untitled (FlowCode %1)").tqarg(TQString::number(m_countFlowCode));
name = i18n("Untitled (FlowCode %1)").arg(TQString::number(m_countFlowCode));
else
name = i18n("Untitled (FlowCode)");
m_countFlowCode++;
@ -184,7 +184,7 @@ TQString DocManager::untitledName( int type )
case Document::dt_mechanics:
{
if ( m_countMechanics>1 )
name = i18n("Untitled (Mechanics %1)").tqarg(TQString::number(m_countMechanics));
name = i18n("Untitled (Mechanics %1)").arg(TQString::number(m_countMechanics));
else
name = i18n("Untitled (Mechanics)");
m_countMechanics++;
@ -193,7 +193,7 @@ TQString DocManager::untitledName( int type )
default:
{
if ( m_countOther>1 )
name = i18n("Untitled (%1)").tqarg(TQString::number(m_countOther));
name = i18n("Untitled (%1)").arg(TQString::number(m_countOther));
else
name = i18n("Untitled");
m_countOther++;
@ -431,7 +431,7 @@ CircuitDocument *DocManager::openCircuitFile( const KURL &url, ViewArea *viewAre
if ( !document->openURL(url) )
{
KMessageBox::sorry( 0l, i18n("Could not open Circuit file \"%1\"").tqarg(url.prettyURL()) );
KMessageBox::sorry( 0l, i18n("Could not open Circuit file \"%1\"").arg(url.prettyURL()) );
document->deleteLater();
return 0l;
}
@ -448,7 +448,7 @@ FlowCodeDocument *DocManager::openFlowCodeFile( const KURL &url, ViewArea *viewA
if ( !document->openURL(url) )
{
KMessageBox::sorry( 0l, i18n("Could not open FlowCode file \"%1\"").tqarg(url.prettyURL()) );
KMessageBox::sorry( 0l, i18n("Could not open FlowCode file \"%1\"").arg(url.prettyURL()) );
document->deleteLater();
return 0l;
}
@ -465,7 +465,7 @@ MechanicsDocument *DocManager::openMechanicsFile( const KURL &url, ViewArea *vie
if ( !document->openURL(url) )
{
KMessageBox::sorry( 0l, i18n("Could not open Mechanics file \"%1\"").tqarg(url.prettyURL()) );
KMessageBox::sorry( 0l, i18n("Could not open Mechanics file \"%1\"").arg(url.prettyURL()) );
document->deleteLater();
return 0l;
}
@ -486,7 +486,7 @@ TextDocument *DocManager::openTextFile( const KURL &url, ViewArea *viewArea )
if ( !document->openURL(url) )
{
KMessageBox::sorry( 0l, i18n("Could not open text file \"%1\"").tqarg(url.prettyURL()) );
KMessageBox::sorry( 0l, i18n("Could not open text file \"%1\"").arg(url.prettyURL()) );
document->deleteLater();
return 0l;
}

@ -110,7 +110,7 @@ bool Document::getURL( const TQString &types )
if ( TQFile::exists( url.path() ) )
{
int query = KMessageBox::warningYesNo( p_ktechlab,
i18n( "A file named \"%1\" already exists. Are you sure you want to overwrite it?" ).tqarg( url.fileName() ),
i18n( "A file named \"%1\" already exists. Are you sure you want to overwrite it?" ).arg( url.fileName() ),
i18n( "Overwrite File?" ),
i18n( "Overwrite" ),
KStdGuiItem::cancel() );
@ -135,7 +135,7 @@ bool Document::fileClose()
p_ktechlab->tabWidget()->setCurrentPage( p_ktechlab->tabWidget()->indexOf(viewContainer) );
int choice = KMessageBox::warningYesNoCancel( p_ktechlab,
i18n("The document \'%1\' has been modified.\nDo you want to save it?").tqarg(name),
i18n("The document \'%1\' has been modified.\nDo you want to save it?").arg(name),
i18n("Save Document?"),
i18n("Save"),
i18n("Discard") );

@ -97,7 +97,7 @@ void DPText::postResize()
}
TQSize DPText::tqminimumSize() const
TQSize DPText::minimumSize() const
{
return TQSize( 48, 24 );
}

@ -29,7 +29,7 @@ public:
virtual void setSelected( bool yes );
virtual TQSize tqminimumSize() const;
virtual TQSize minimumSize() const;
protected:
virtual void postResize();

@ -101,7 +101,7 @@ void DPRectangle::dataChanged()
}
TQSize DPRectangle::tqminimumSize() const
TQSize DPRectangle::minimumSize() const
{
int side = TQMAX(16, pen().width()+2);
return TQSize( side, side );

@ -30,7 +30,7 @@ class DPRectangle : public DrawPart
virtual void setSelected( bool yes );
virtual TQSize tqminimumSize() const;
virtual TQSize minimumSize() const;
protected:
virtual void drawShape( TQPainter &p );

@ -482,7 +482,7 @@ void Component::initDIPSymbol( const TQStringList & pins, int _width )
}
// TQString createNode( double _x, double _y, int tqshape, int orientation, const TQString &name, int type, bool isInput = true );
// TQString createNode( double _x, double _y, int shape, int orientation, const TQString &name, int type, bool isInput = true );
void Component::init1PinLeft( int h1 )
{

@ -244,7 +244,7 @@ class Component : public CNItem
protected:
/**
* Convenience functionality provided for components in a port tqshape
* Convenience functionality provided for components in a port shape
* (such as ParallelPortComponent and SerialPortComponent).
*/
void drawPortShape( TQPainter & p );
@ -263,7 +263,7 @@ class Component : public CNItem
void initDIP( const TQStringList & pins );
/**
* Creates the DIP symbol:
* @li constructs rectangular tqshape
* @li constructs rectangular shape
* @li puts on text labels in appropriate positions from TQStringList pins
*/
void initDIPSymbol( const TQStringList & pins, int width );

@ -107,7 +107,7 @@ void BusSplitter::dataChanged()
TQString BusSplitter::outNodeID( unsigned node ) const
{
return TQString("out_%1").tqarg(TQString::number(node));
return TQString("out_%1").arg(TQString::number(node));
}

@ -66,7 +66,7 @@ ECKeyPad::ECKeyPad( ICNDocument *icnDocument, bool newItem, const char *id )
v->setValue(5e-3);
for ( int i = 0; i < 4; i++ )
createPin( 0, -32+i*24, 0, TQString("row_%1").tqarg(TQString::number(i)) );
createPin( 0, -32+i*24, 0, TQString("row_%1").arg(TQString::number(i)) );
m_numCols = 0;
}
@ -79,7 +79,7 @@ ECKeyPad::~ECKeyPad()
TQString ECKeyPad::buttonID( int row, int col ) const
{
return TQString("b_%1_%2").tqarg(TQString::number(row)).tqarg(TQString::number(col));
return TQString("b_%1_%2").arg(TQString::number(row)).arg(TQString::number(col));
}

@ -98,7 +98,7 @@ void ECPotentiometer::drawShape( TQPainter &p )
pa[1] = TQPoint( 4, -3 );
pa[2] = TQPoint( 4, 3 );
int space = m_pSlider->tqstyle().tqpixelMetric( TQStyle::PM_SliderSpaceAvailable, m_pSlider );
int space = m_pSlider->style().pixelMetric( TQStyle::PM_SliderSpaceAvailable, m_pSlider );
int base_y = _y + (( angleDegrees() == 0 || angleDegrees() == 270 ) ? 1 : -1) * int( space * m_sliderProp );
pa.translate( _x+16, base_y );

@ -119,9 +119,9 @@ void MagnitudeComparator::initPins()
for ( int i = 0; i < space; i++ )
leftPins << "";
for ( int i = 0; i < newABLogicCount; i++ )
leftPins << TQString("A%1").tqarg( TQString::number(i) );
leftPins << TQString("A%1").arg( TQString::number(i) );
for ( int i = 0; i < newABLogicCount; i++ )
leftPins << TQString("B%1").tqarg( TQString::number(i) );
leftPins << TQString("B%1").arg( TQString::number(i) );
for ( int i = 0; i < space; i++ )
leftPins << "";

@ -223,11 +223,11 @@ void MatrixDisplay::initPins( unsigned numRows, unsigned numCols )
TQString MatrixDisplay::colPinID( int col ) const
{
return TQString("col_%1").tqarg(TQString::number(col));
return TQString("col_%1").arg(TQString::number(col));
}
TQString MatrixDisplay::rowPinID( int row ) const
{
return TQString("row_%1").tqarg(TQString::number(row));
return TQString("row_%1").arg(TQString::number(row));
}

@ -87,7 +87,7 @@ ParallelPortComponent::ParallelPortComponent( ICNDocument *icnDocument, bool new
//BEGIN Data register
for ( int i = 0; i < 8; ++i )
{
TQString id = TQString("D%1").tqarg(i);
TQString id = TQString("D%1").arg(i);
TQString name = id;
pin = createPin( -40, -80 + 16*i, 0, id );
@ -99,20 +99,20 @@ ParallelPortComponent::ParallelPortComponent( ICNDocument *icnDocument, bool new
//END Data register
//BEGIN tqStatus register
//BEGIN Status register
TQString statusNames[] = { "ERR", "ON", "PE", "ACK", "BUSY" };
// The statusIDs are referenced in the save file and must not change
TQString statusIDs[] = { "ERROR", "ONLINE", "PE", "ACK", "BUSY" };
// Bits 0...2 in the tqStatus register are not used
// Bits 0...2 in the Status register are not used
for ( int i = 3; i < 8; ++i )
{
TQString id = statusIDs[i-3];
TQString name = statusNames[i-3];
// Bit 3 (pin 15) doesn't not follow the same positioning pattern as
// the other pins in the tqStatus register.
// the other pins in the Status register.
if ( i == 3 )
{
pin = createPin( 40, -72, 180, id );
@ -126,7 +126,7 @@ ParallelPortComponent::ParallelPortComponent( ICNDocument *icnDocument, bool new
m_pLogic[i+8] = createLogicOut( pin, false );
}
//END tqStatus register
//END Status register
//BEGIN Control register
@ -167,7 +167,7 @@ ParallelPortComponent::ParallelPortComponent( ICNDocument *icnDocument, bool new
// And make the rest of the pins ground
for ( int i = 0; i < 8; ++i )
{
pin = createPin( 40, -24 + i*16, 180, TQString("GND%1").tqarg( i ) );
pin = createPin( 40, -24 + i*16, 180, TQString("GND%1").arg( i ) );
pin->pin()->setGroundType( Pin::gt_always );
}
#endif
@ -200,7 +200,7 @@ void ParallelPortComponent::initPort( const TQString & port )
if ( ! m_pParallelPort->openPort( port ) )
{
p_itemDocument->canvas()->setMessage( i18n("Could not open port %1").tqarg( port ) );
p_itemDocument->canvas()->setMessage( i18n("Could not open port %1").arg( port ) );
return;
}
}
@ -228,8 +228,8 @@ void ParallelPortComponent::controlCallback( bool )
void ParallelPortComponent::stepNonLogic()
{
uchar status = m_pParallelPort->readFromRegister( ParallelPort::tqStatus );
// Bits 0...2 in the tqStatus register are not used
uchar status = m_pParallelPort->readFromRegister( ParallelPort::Status );
// Bits 0...2 in the Status register are not used
for ( int i = 3; i < 8; ++i )
m_pLogic[i + 8]->setHigh( status | (1 << i) );
}

@ -40,7 +40,7 @@ class ParallelPortComponent : public CallbackClass, public Component
void dataCallback( bool );
void controlCallback( bool );
/// Registers: { Data[0...7], tqStatus[0...5], 0[6...7], Control[0...4], 0[5...7] }
/// Registers: { Data[0...7], Status[0...5], 0[6...7], Control[0...4], 0[5...7] }
LogicOut * m_pLogic[24];
ParallelPort * m_pParallelPort;

@ -159,14 +159,14 @@ void PICComponent::initPIC( bool forceReload )
case GpsimProcessor::DoesntExist:
if ( newProgram == _def_PICComponent_fileName && !newProgram.isEmpty() )
break;
KMessageBox::sorry( 0l, i18n("The file \"%1\" does not exist.").tqarg( newProgram ) );
KMessageBox::sorry( 0l, i18n("The file \"%1\" does not exist.").arg( newProgram ) );
m_picFile = TQString();
break;
case GpsimProcessor::IncorrectType:
if ( newProgram == _def_PICComponent_fileName && !newProgram.isEmpty() )
break;
KMessageBox::sorry( 0L, i18n("\"%1\" is not a valid PIC program.\nThe file must exist, and the extension should be \".cod\", \".asm\", \".flowcode\", \".basic\", \".microbe\" or \".c\".\n\".hex\" is allowed, provided that there is a corresponding \".cod\" file.").tqarg(newProgram) );
KMessageBox::sorry( 0L, i18n("\"%1\" is not a valid PIC program.\nThe file must exist, and the extension should be \".cod\", \".asm\", \".flowcode\", \".basic\", \".microbe\" or \".c\".\n\".hex\" is allowed, provided that there is a corresponding \".cod\" file.").arg(newProgram) );
m_picFile = TQString();
break;
@ -375,7 +375,7 @@ void PICComponent::slotCODCreationSucceeded()
delete m_pGpsim;
m_pGpsim = new GpsimProcessor(m_symbolFile);
if ( m_pGpsim->codLoadtqStatus() == GpsimProcessor::CodSuccess )
if ( m_pGpsim->codLoadStatus() == GpsimProcessor::CodSuccess )
{
MicroInfo * microInfo = m_pGpsim->microInfo();
property("lastPackage")->setValue( microInfo->id() );
@ -387,7 +387,7 @@ void PICComponent::slotCODCreationSucceeded()
else
{
m_pGpsim->displayCodLoadtqStatus();
m_pGpsim->displayCodLoadStatus();
delete m_pGpsim;
m_pGpsim = 0l;
}

@ -128,13 +128,13 @@ void RAM::initPins()
TQStringList leftPins; // Pins on left of IC
leftPins << "CS" << "OE" << "WE";
for ( int i = 0; i < newAddressSize; ++i )
leftPins << TQString("A%1").tqarg( TQString::number(i) );
leftPins << TQString("A%1").arg( TQString::number(i) );
TQStringList rightPins; // Pins on right of IC
for ( unsigned i = newWordSize; i > 0; --i )
rightPins << TQString("DI%1").tqarg( TQString::number(i-1) );
rightPins << TQString("DI%1").arg( TQString::number(i-1) );
for ( unsigned i = newWordSize; i > 0; --i )
rightPins << TQString("DO%1").tqarg( TQString::number(i-1) );
rightPins << TQString("DO%1").arg( TQString::number(i-1) );
// Make pin lists of consistent sizes
for ( unsigned i = leftPins.size(); i < rightPins.size(); ++i )
@ -177,11 +177,11 @@ void RAM::initPins()
for ( int i = oldWordSize; i < newWordSize; ++i )
{
node = ecNodeWithID( TQString("DI%1").tqarg( TQString::number(i) ) );
node = ecNodeWithID( TQString("DI%1").arg( TQString::number(i) ) );
m_dataIn.insert( i, createLogicIn(node) );
m_dataIn[i]->setCallback( this, (CallbackPtr)(&RAM::inStateChanged) );
node = ecNodeWithID( TQString("DO%1").tqarg( TQString::number(i) ) );
node = ecNodeWithID( TQString("DO%1").arg( TQString::number(i) ) );
m_dataOut.insert( i, createLogicOut(node, false) );
}
}
@ -189,12 +189,12 @@ void RAM::initPins()
{
for ( int i = newWordSize; i < oldWordSize; ++i )
{
TQString id = TQString("DO%1").tqarg( TQString::number(i) );
TQString id = TQString("DO%1").arg( TQString::number(i) );
removeDisplayText(id);
removeElement( m_dataIn[i], false );
removeNode(id);
id = TQString("DI%1").tqarg( TQString::number(i) );
id = TQString("DI%1").arg( TQString::number(i) );
removeDisplayText(id);
removeElement( m_dataOut[i], false );
removeNode(id);
@ -210,7 +210,7 @@ void RAM::initPins()
for ( int i = oldAddressSize; i < newAddressSize; ++i )
{
node = ecNodeWithID( TQString("A%1").tqarg( TQString::number(i) ) );
node = ecNodeWithID( TQString("A%1").arg( TQString::number(i) ) );
m_address.insert( i, createLogicIn(node) );
m_address[i]->setCallback( this, (CallbackPtr)(&RAM::inStateChanged) );
}
@ -219,7 +219,7 @@ void RAM::initPins()
{
for ( int i = newAddressSize; i < oldAddressSize; ++i )
{
TQString id = TQString("A%1").tqarg( TQString::number(i) );
TQString id = TQString("A%1").arg( TQString::number(i) );
removeDisplayText(id);
removeElement( m_address[i], false );
removeNode(id);

@ -245,7 +245,7 @@ void ECRotoSwitch::setUpSwitches()
for(int i=0; i<m_numPositions; i++)
{
SwitchPosition& sp = m_positions[i];
TQString pinName = TQString("pin_%1").tqarg(i);
TQString pinName = TQString("pin_%1").arg(i);
removeNode(pinName);
removeSwitch(sp.posSwitch);
}
@ -284,7 +284,7 @@ void ECRotoSwitch::setUpSwitches()
// kdDebug() << contactX <<", "<< contactY <<endl;
sp.node = createPin(contactX,-contactY,sp.pinAngle,TQString("pin_%1").tqarg(i));
sp.node = createPin(contactX,-contactY,sp.pinAngle,TQString("pin_%1").arg(i));
sp.posSwitch = createSwitch(m_inNode, sp.node, true);
sp.isMomentary = false;//(map[i] == 'M');
m_positions.push_back(sp);

@ -197,7 +197,7 @@ void SerialPortComponent::initPort( const TQString & port, unsigned baudRate )
if ( ! m_pSerialPort->openPort( port, baudRate ) )
{
p_itemDocument->canvas()->setMessage( i18n("Could not open port %1").tqarg( port ) );
p_itemDocument->canvas()->setMessage( i18n("Could not open port %1").arg( port ) );
return;
}
}

@ -175,7 +175,7 @@ void ECNode::drawShape( TQPainter &p )
{
bool drawDivPoint;
TQPoint divPoint = findConnectorDivergePoint(&drawDivPoint);
m_pinPoint->tqsetVisible(drawDivPoint);
m_pinPoint->setVisible(drawDivPoint);
m_pinPoint->move( divPoint.x()-1, divPoint.y()-1 );
}

@ -89,7 +89,7 @@ GpsimProcessor::GpsimProcessor( TQString symbolFile, TQObject *parent )
m_bCanExecuteNextCycle = true;
m_bIsRunning = false;
m_pPicProcessor = 0l;
m_codLoadtqStatus = CodUnknown;
m_codLoadStatus = CodUnknown;
m_pRegisterMemory = 0l;
m_debugMode = GpsimDebugger::AsmDebugger;
m_pDebugger[0] = m_pDebugger[1] = 0l;
@ -101,37 +101,37 @@ GpsimProcessor::GpsimProcessor( TQString symbolFile, TQObject *parent )
switch ( (cod_errors)load_symbol_file( &tempProcessor, fileName ) )
{
case COD_SUCCESS:
m_codLoadtqStatus = CodSuccess;
m_codLoadStatus = CodSuccess;
break;
case COD_FILE_NOT_FOUND:
m_codLoadtqStatus = CodFileNotFound;
m_codLoadStatus = CodFileNotFound;
break;
case COD_UNRECOGNIZED_PROCESSOR:
m_codLoadtqStatus = CodUnrecognizedProcessor;
m_codLoadStatus = CodUnrecognizedProcessor;
break;
case COD_FILE_NAME_TOO_LONG:
m_codLoadtqStatus = CodFileNameTooLong;
m_codLoadStatus = CodFileNameTooLong;
break;
case COD_LST_NOT_FOUND:
m_codLoadtqStatus = CodLstNotFound;
m_codLoadStatus = CodLstNotFound;
break;
case COD_BAD_FILE:
m_codLoadtqStatus = CodBadFile;
m_codLoadStatus = CodBadFile;
break;
default:
m_codLoadtqStatus = CodUnknown;
m_codLoadStatus = CodUnknown;
}
#else // GPSIM_0_21_11+
FILE * pFile = fopen( fileName, "r" );
if ( !pFile )
m_codLoadtqStatus = CodFileUnreadable;
m_codLoadStatus = CodFileUnreadable;
else
m_codLoadtqStatus = ( ProgramFileTypeList::GetList().LoadProgramFile( & tempProcessor, fileName, pFile ) ) ? CodSuccess : CodFailure;
m_codLoadStatus = ( ProgramFileTypeList::GetList().LoadProgramFile( & tempProcessor, fileName, pFile ) ) ? CodSuccess : CodFailure;
#endif
m_pPicProcessor = dynamic_cast<pic_processor*>(tempProcessor);
if ( codLoadtqStatus() == CodSuccess )
if ( codLoadStatus() == CodSuccess )
{
m_pRegisterMemory = new RegisterSet( m_pPicProcessor );
m_pDebugger[0] = new GpsimDebugger( GpsimDebugger::AsmDebugger, this );
@ -154,33 +154,33 @@ GpsimProcessor::~GpsimProcessor()
}
void GpsimProcessor::displayCodLoadtqStatus( )
void GpsimProcessor::displayCodLoadStatus( )
{
switch (m_codLoadtqStatus)
switch (m_codLoadStatus)
{
case CodSuccess:
break;
case CodFileNotFound:
KMessageBox::sorry( 0l, i18n("The cod file \"%1\" was not found.").tqarg(m_symbolFile), i18n("File Not Found") );
KMessageBox::sorry( 0l, i18n("The cod file \"%1\" was not found.").arg(m_symbolFile), i18n("File Not Found") );
break;
case CodUnrecognizedProcessor:
KMessageBox::sorry( 0l, i18n("The processor for cod file \"%1\" is unrecognized.").tqarg(m_symbolFile), i18n("Unrecognized Processor") );
KMessageBox::sorry( 0l, i18n("The processor for cod file \"%1\" is unrecognized.").arg(m_symbolFile), i18n("Unrecognized Processor") );
break;
case CodFileNameTooLong:
KMessageBox::sorry( 0l, i18n("The file name \"%1\" is too long.").tqarg(m_symbolFile), i18n("Filename Too Long") );
KMessageBox::sorry( 0l, i18n("The file name \"%1\" is too long.").arg(m_symbolFile), i18n("Filename Too Long") );
break;
case CodLstNotFound:
KMessageBox::sorry( 0l, i18n("The lst file associated with the cod file \"%1\" was not found.").tqarg(m_symbolFile), i18n("LST File Not Found") );
KMessageBox::sorry( 0l, i18n("The lst file associated with the cod file \"%1\" was not found.").arg(m_symbolFile), i18n("LST File Not Found") );
break;
case CodBadFile:
KMessageBox::sorry( 0l, i18n("The cod file \"%1\" is bad.").tqarg(m_symbolFile), i18n("Bad File") );
KMessageBox::sorry( 0l, i18n("The cod file \"%1\" is bad.").arg(m_symbolFile), i18n("Bad File") );
break;
case CodFileUnreadable:
KMessageBox::sorry( 0l, i18n("The cod file \"%1\" could not be read from.").tqarg(m_symbolFile), i18n("Unreadable File") );
KMessageBox::sorry( 0l, i18n("The cod file \"%1\" could not be read from.").arg(m_symbolFile), i18n("Unreadable File") );
break;
case CodFailure:
case CodUnknown:
KMessageBox::sorry( 0l, i18n("An error occured with the cod file \"%1\".").tqarg(m_symbolFile), i18n("Error") );
KMessageBox::sorry( 0l, i18n("An error occured with the cod file \"%1\".").arg(m_symbolFile), i18n("Error") );
break;
}
}

@ -252,7 +252,7 @@ class GpsimProcessor : public TQObject
public:
/**
* Create a new gpsim processor. After calling this constructor, you
* should always call codLoadtqStatus() to ensure that the cod file was
* should always call codLoadStatus() to ensure that the cod file was
* loaded successfully.
*/
GpsimProcessor( TQString symbolFile, TQObject *parent = 0 );
@ -261,7 +261,7 @@ class GpsimProcessor : public TQObject
void setDebugMode( GpsimDebugger::Type mode ) { m_debugMode = mode; }
GpsimDebugger * currentDebugger() const { return m_pDebugger[m_debugMode]; }
enum CodLoadtqStatus
enum CodLoadStatus
{
CodSuccess,
CodFileNotFound,
@ -284,14 +284,14 @@ class GpsimProcessor : public TQObject
/**
* @return status of opening the COD file
* @see displayCodLoadtqStatus
* @see displayCodLoadStatus
*/
CodLoadtqStatus codLoadtqStatus() const { return m_codLoadtqStatus; }
CodLoadStatus codLoadStatus() const { return m_codLoadStatus; }
/**
* Popups a messagebox to the user according to the CodLoadtqStatus. Will
* only popup a messagebox if the CodLoadtqStatus wasn't CodSuccess.
* Popups a messagebox to the user according to the CodLoadStatus. Will
* only popup a messagebox if the CodLoadStatus wasn't CodSuccess.
*/
void displayCodLoadtqStatus();
void displayCodLoadStatus();
/**
* Returns a list of source files for the currently running program.
*/
@ -373,7 +373,7 @@ class GpsimProcessor : public TQObject
void emitLineReached();
pic_processor * m_pPicProcessor;
CodLoadtqStatus m_codLoadtqStatus;
CodLoadStatus m_codLoadStatus;
const TQString m_symbolFile;
RegisterSet * m_pRegisterMemory;
GpsimDebugger::Type m_debugMode;

@ -207,28 +207,28 @@ TQStringList SerialPort::ports( unsigned probeResult )
for ( int i = 0; i < 8; ++i )
{
TQString dev = TQString("/dev/ttyS%1").tqarg(i);
TQString dev = TQString("/dev/ttyS%1").arg(i);
if ( probe(dev) & probeResult )
list << dev;
}
for ( unsigned i = 0; i < 8; ++i )
{
TQString dev = TQString("/dev/tts/%1").tqarg(i);
TQString dev = TQString("/dev/tts/%1").arg(i);
if ( probe(dev) & probeResult )
list << dev;
}
for ( unsigned i = 0; i < 8; ++i )
{
TQString dev = TQString("/dev/ttyUSB%1").tqarg(i);
TQString dev = TQString("/dev/ttyUSB%1").arg(i);
if ( probe(dev) & probeResult )
list << dev;
}
for ( unsigned i = 0; i < 8; ++i )
{
TQString dev = TQString("/dev/usb/tts/%1").tqarg(i);
TQString dev = TQString("/dev/usb/tts/%1").arg(i);
if ( probe(dev) & probeResult )
list << dev;
}
@ -277,7 +277,7 @@ void ParallelPort::reset()
{
m_file = -1;
m_reg[Data] = 0;
m_reg[tqStatus] = 0;
m_reg[Status] = 0;
m_reg[Control] = 0;
m_outputPins = INPUT_MODE_BIT | IRTQ_MODE_BIT;
m_inputPins = ALWAYS_INPUT_PINS | INPUT_MODE_BIT | IRTQ_MODE_BIT;
@ -309,7 +309,7 @@ int ParallelPort::pinState( int pins )
value |= ((readFromRegister( Data ) & ((pins & DATA_PINS) >> 0)) << 0);
if ( pins & STATUS_PINS )
value |= ((readFromRegister( tqStatus ) & ((pins & STATUS_PINS) >> 8)) << 8);
value |= ((readFromRegister( Status ) & ((pins & STATUS_PINS) >> 8)) << 8);
if ( pins & CONTROL_PINS )
value |= ((readFromRegister( Control ) & ((pins & CONTROL_PINS) >> 16)) << 16);
@ -453,14 +453,14 @@ TQStringList ParallelPort::ports( unsigned probeResult )
for ( unsigned i = 0; i < 8; ++i )
{
TQString dev = TQString("/dev/parport%1").tqarg(i);
TQString dev = TQString("/dev/parport%1").arg(i);
if ( probe(dev) & probeResult )
list << dev;
}
for ( unsigned i = 0; i < 8; ++i )
{
TQString dev = TQString("/dev/parports/%1").tqarg(i);
TQString dev = TQString("/dev/parports/%1").arg(i);
if ( probe(dev) & probeResult )
list << dev;
}

@ -120,7 +120,7 @@ class ParallelPort : public Port
DATA_PINS = PIN02 | PIN03 | PIN04 | PIN05 | PIN06
| PIN07 | PIN08 | PIN09,
// tqStatus Register
// Status Register
// Offset: Base + 1
// Read only
PIN15 = 1 << 11, // Error
@ -146,7 +146,7 @@ class ParallelPort : public Port
enum Register
{
Data = 0,
tqStatus = 1,
Status = 1,
Control = 2,
};

@ -101,9 +101,9 @@ void Capacitance::time_step()
i_eq_old = i_eq_new;
}
bool Capacitance::updatetqStatus()
bool Capacitance::updateStatus()
{
b_status = Reactive::updatetqStatus();
b_status = Reactive::updateStatus();
if ( m_method == Capacitance::m_none ) b_status = false;
return b_status;
}
@ -111,7 +111,7 @@ bool Capacitance::updatetqStatus()
void Capacitance::setMethod( Method m )
{
m_method = m;
updatetqStatus();
updateStatus();
}

@ -42,7 +42,7 @@ public:
protected:
virtual void updateCurrents();
virtual bool updatetqStatus();
virtual bool updateStatus();
private:
double m_cap; // Capacitance

@ -55,7 +55,7 @@ void Element::setElementSet( ElementSet *c )
p_eSet = c;
p_A = p_eSet->matrix();
p_b = p_eSet->b();
updatetqStatus();
updateStatus();
}
void Element::componentDeleted()
@ -113,7 +113,7 @@ void Element::setCNodes( const int n0, const int n1, const int n2, const int n3
p_cnode[1] = (n1>-1)?p_eSet->cnodes()[n1]:(n1==-1?p_eSet->ground():0l);
p_cnode[2] = (n2>-1)?p_eSet->cnodes()[n2]:(n2==-1?p_eSet->ground():0l);
p_cnode[3] = (n3>-1)?p_eSet->cnodes()[n3]:(n3==-1?p_eSet->ground():0l);
updatetqStatus();
updateStatus();
}
void Element::setCBranches( const int b0, const int b1, const int b2, const int b3 )
@ -128,10 +128,10 @@ void Element::setCBranches( const int b0, const int b1, const int b2, const int
p_cbranch[1] = (b1>-1)?p_eSet->cbranches()[b1]:0l;
p_cbranch[2] = (b2>-1)?p_eSet->cbranches()[b2]:0l;
p_cbranch[3] = (b3>-1)?p_eSet->cbranches()[b3]:0l;
updatetqStatus();
updateStatus();
}
bool Element::updatetqStatus()
bool Element::updateStatus()
{
// First, set status to false if all nodes in use are ground
b_status = false;

@ -188,7 +188,7 @@ protected:
/**
* Update the status, returning b_status
*/
virtual bool updatetqStatus();
virtual bool updateStatus();
/**
* Set by child class - the number of branches that the element uses
* Typically, this is 0, but could be 1 (e.g. independent voltage source)

@ -109,9 +109,9 @@ void Inductance::time_step()
}
bool Inductance::updatetqStatus()
bool Inductance::updateStatus()
{
b_status = Reactive::updatetqStatus();
b_status = Reactive::updateStatus();
if ( m_method == Inductance::m_none )
b_status = false;
return b_status;
@ -121,6 +121,6 @@ bool Inductance::updatetqStatus()
void Inductance::setMethod( Method m )
{
m_method = m;
updatetqStatus();
updateStatus();
}

@ -42,7 +42,7 @@ class Inductance : public Reactive
protected:
virtual void updateCurrents();
virtual bool updatetqStatus();
virtual bool updateStatus();
private:
double m_inductance; // Inductance

@ -288,7 +288,7 @@ void Matrix::displayLU()
Map::Map( const uint size )
{
m_size = size;
m_map = new ETMap( m_size );
m_map = new ETMap( m_size, std::vector<uint>( m_size ) );
reset();
}

@ -26,11 +26,11 @@ Reactive::~Reactive()
void Reactive::setDelta( double delta )
{
m_delta = delta;
updatetqStatus();
updateStatus();
}
bool Reactive::updatetqStatus()
bool Reactive::updateStatus()
{
return Element::updatetqStatus();
return Element::updateStatus();
}

@ -34,7 +34,7 @@ public:
virtual void time_step() = 0;
protected:
virtual bool updatetqStatus();
virtual bool updateStatus();
double m_delta; // Delta time interval
};

@ -50,7 +50,7 @@ public:
static void addSubcircuit( const TQString &name, const TQString &subcircuitXml );
/**
* returns a path to the appdata dir, e.g. genFileName(2) might return
* ~/.kde/share/apps/ktechlab/subcircuit_2.circuit
* ~/.trinity/share/apps/ktechlab/subcircuit_2.circuit
*/
static TQString genFileName( const int nextId );
/**

@ -101,7 +101,7 @@ void FlowContainer::createBotContainerNode()
}
TQSize FlowContainer::tqminimumSize() const
TQSize FlowContainer::minimumSize() const
{
return TQSize( 160, 64 );
}
@ -165,7 +165,7 @@ void FlowContainer::childRemoved( Item *child )
FlowPart::childRemoved(child);
if (!b_expanded)
child->tqsetVisible(true);
child->setVisible(true);
disconnect( this, TQT_SIGNAL(movedBy(double, double )), child, TQT_SLOT(moveBy(double, double )) );
}
@ -374,17 +374,17 @@ void FlowContainer::updateContainedVisibility()
if (m_ext_out)
m_ext_out->setVisible( isVisible() );
const ItemList::iterator cEnd = m_tqchildren.end();
for ( ItemList::iterator it = m_tqchildren.begin(); it != cEnd; ++it )
const ItemList::iterator cEnd = m_children.end();
for ( ItemList::iterator it = m_children.begin(); it != cEnd; ++it )
{
if (*it)
(*it)->tqsetVisible( isVisible() && b_expanded );
(*it)->setVisible( isVisible() && b_expanded );
}
m_rectangularOverlay->setVisible( isVisible() && b_expanded );
NodeGroupList hidableNodeGroups;
p_icnDocument->getTranslatable( tqchildren(true) += GuardedItem(this), 0, 0, &hidableNodeGroups );
p_icnDocument->getTranslatable( children(true) += GuardedItem(this), 0, 0, &hidableNodeGroups );
NodeGroupList::iterator hngEnd = hidableNodeGroups.end();
for ( NodeGroupList::iterator it = hidableNodeGroups.begin(); it != hngEnd; ++it )

@ -47,7 +47,7 @@ public:
virtual void setSelected( bool yes );
virtual void setVisible( bool yes );
virtual TQSize tqminimumSize() const;
virtual TQSize minimumSize() const;
/**
* Update the visibility of items, connectors, nodes in the flowcontainer
*/

@ -51,7 +51,7 @@ CallSub::~CallSub()
void CallSub::dataChanged()
{
setCaption( i18n("Call %1").tqarg(dataString("sub")) );
setCaption( i18n("Call %1").arg(dataString("sub")) );
}
void CallSub::generateMicrobe( FlowCode *code )

@ -58,7 +58,7 @@ Count::~Count()
void Count::dataChanged()
{
double count = dataDouble("1-length");
setCaption( i18n("Count %1 for %2 sec").tqarg(dataString("0-trigger")).tqarg(TQString::number( count / getMultiplier(count), 'g', 3 ) + getNumberMag(count)) );
setCaption( i18n("Count %1 for %2 sec").arg(dataString("0-trigger")).arg(TQString::number( count / getMultiplier(count), 'g', 3 ) + getNumberMag(count)) );
}
void Count::generateMicrobe( FlowCode *code )

@ -53,7 +53,7 @@ Delay::~Delay()
void Delay::dataChanged()
{
double delay = dataDouble("delay_length");
setCaption( i18n("Delay for %1 sec").tqarg(TQString::number( delay / getMultiplier(delay), 'g', 3 )+getNumberMag(delay)) );
setCaption( i18n("Delay for %1 sec").arg(TQString::number( delay / getMultiplier(delay), 'g', 3 )+getNumberMag(delay)) );
}
void Delay::generateMicrobe( FlowCode *code )

@ -59,7 +59,7 @@ Embed::~Embed()
void Embed::dataChanged()
{
const TQString sample = dataString("code").left(10).replace("\n"," ");
setCaption( i18n("%1: %2...").tqarg(dataString("type")).tqarg(sample) );
setCaption( i18n("%1: %2...").arg(dataString("type")).arg(sample) );
}

@ -186,7 +186,7 @@ void FlowPart::initSymbol( FlowPart::FlowSymbol symbol, int width )
case FlowPart::ps_io:
{
// define parallelogram tqshape
// define parallelogram shape
TQPointArray pa(4);
pa[0] = TQPoint( -(width-10)/2, -16 );
pa[1] = TQPoint( width/2, -16 );
@ -292,7 +292,7 @@ void FlowPart::drawShape( TQPainter &p )
case FlowPart::ps_decision:
{
// TODO Make the tqshape nice and pretty with rounded corners
// TODO Make the shape nice and pretty with rounded corners
CNItem::drawShape(p);
break;
}

@ -42,8 +42,8 @@ public:
ps_call, // Call - Rectangular box with double vertical lines at either end
ps_io, // I/O - Slanter rectangular box
ps_round, // Start/End - Rounded rectangular box
ps_decision, // Decision - Diamond tqshape
ps_other // Custom tqshape, which is ignored by FlowPart
ps_decision, // Decision - Diamond shape
ps_other // Custom shape, which is ignored by FlowPart
};
FlowPart( ICNDocument *icnDocument, bool newItem, const TQString &id );
virtual ~FlowPart();
@ -167,7 +167,7 @@ protected:
*/
void createAltOutput();
/**
* Initialises a symbol, by calling setItemPoints with the tqshape
* Initialises a symbol, by calling setItemPoints with the shape
*/
void initSymbol( FlowPart::FlowSymbol symbol, int width = 48 );

@ -59,7 +59,7 @@ InputButton::~InputButton()
void InputButton::dataChanged()
{
setCaption( i18n("Continue on %1 %2").tqarg(dataString("0-trigger")).tqarg(dataString("1-pin")) );
setCaption( i18n("Continue on %1 %2").arg(dataString("0-trigger")).arg(dataString("1-pin")) );
}

@ -55,7 +55,7 @@ Interrupt::~Interrupt()
void Interrupt::dataChanged()
{
setCaption( i18n("Interrupt %1").tqarg(dataString("interrupt")) );
setCaption( i18n("Interrupt %1").arg(dataString("interrupt")) );
}
void Interrupt::generateMicrobe( FlowCode *code )

@ -55,12 +55,12 @@ Keypad::~Keypad()
void Keypad::dataChanged()
{
setCaption( i18n("Read %1 to %2").tqarg( dataString( "keypad" ) ).tqarg( dataString( "variable" ) ) );
setCaption( i18n("Read %1 to %2").arg( dataString( "keypad" ) ).arg( dataString( "variable" ) ) );
}
void Keypad::generateMicrobe( FlowCode *code )
{
code->addCode( TQString("%1 = %2").tqarg( dataString("variable") ).tqarg( dataString("keypad") ) );
code->addCode( TQString("%1 = %2").arg( dataString("variable") ).arg( dataString("keypad") ) );
code->addCodeBranch( outputPart("stdoutput") );
}

@ -186,10 +186,10 @@ void PinMapDocument::init( const PinMapping & pinMapping, MicroInfo * microInfo
{
TQStringList::const_iterator it = pins.begin();
for ( unsigned row = 0; (row < 4) && (it != end); ++row, ++it )
createConnector( m_pKeypad->childNode( TQString("row_%1").tqarg( row ) ), m_pPicComponent->childNode( *it ) );
createConnector( m_pKeypad->childNode( TQString("row_%1").arg( row ) ), m_pPicComponent->childNode( *it ) );
for ( unsigned col = 0; (col < keypadCols) && (it != end); ++col, ++it )
createConnector( m_pKeypad->childNode( TQString("col_%1").tqarg( col ) ), m_pPicComponent->childNode( *it ) );
createConnector( m_pKeypad->childNode( TQString("col_%1").arg( col ) ), m_pPicComponent->childNode( *it ) );
}
clearHistory(); // Don't allow undoing of initial creation of stuff
@ -255,17 +255,17 @@ PinMapping PinMapDocument::pinMapping() const
case PinMapping::Keypad_4x3:
for ( unsigned i = 0; i < 4; ++i )
attachedIDs << TQString("row_%1").tqarg(i);
attachedIDs << TQString("row_%1").arg(i);
for ( unsigned i = 0; i < 3; ++i )
attachedIDs << TQString("col_%1").tqarg(i);
attachedIDs << TQString("col_%1").arg(i);
attached = m_pKeypad;
break;
case PinMapping::Keypad_4x4:
for ( unsigned i = 0; i < 4; ++i )
attachedIDs << TQString("row_%1").tqarg(i);
attachedIDs << TQString("row_%1").arg(i);
for ( unsigned i = 0; i < 4; ++i )
attachedIDs << TQString("col_%1").tqarg(i);
attachedIDs << TQString("col_%1").arg(i);
attached = m_pKeypad;
break;

@ -68,7 +68,7 @@ Pulse::~Pulse()
void Pulse::dataChanged()
{
double pulse = dataDouble("0-duration");
setCaption( i18n("Pulse %1 for %2 sec").tqarg(dataString("3-pin")).tqarg(TQString::number( pulse / getMultiplier(pulse), 'f', 1 ) + getNumberMag(pulse)) );
setCaption( i18n("Pulse %1 for %2 sec").arg(dataString("3-pin")).arg(TQString::number( pulse / getMultiplier(pulse), 'f', 1 ) + getNumberMag(pulse)) );
}
void Pulse::generateMicrobe( FlowCode *code )

@ -58,7 +58,7 @@ ReadPort::~ReadPort()
void ReadPort::dataChanged()
{
setCaption( i18n("Read %1 to %2").tqarg(dataString("0-port")).tqarg(dataString("1-var")) );
setCaption( i18n("Read %1 to %2").arg(dataString("0-port")).arg(dataString("1-var")) );
}
void ReadPort::generateMicrobe( FlowCode *code )

@ -62,7 +62,7 @@ Repeat::~Repeat()
void Repeat::dataChanged()
{
setCaption( i18n("repeat until %1 %2 %3").tqarg(dataString("0var1")).tqarg(dataString("1op")).tqarg(dataString("2var2")) );
setCaption( i18n("repeat until %1 %2 %3").arg(dataString("0var1")).arg(dataString("1op")).arg(dataString("2var2")) );
}
void Repeat::generateMicrobe( FlowCode *code )

@ -59,7 +59,7 @@ SetPin::~SetPin()
void SetPin::dataChanged()
{
setCaption( i18n("Set %1 %2").tqarg(dataString("pin")).tqarg(dataString("state")) );
setCaption( i18n("Set %1 %2").arg(dataString("pin")).arg(dataString("state")) );
}
void SetPin::generateMicrobe( FlowCode *code )

@ -59,13 +59,13 @@ SevenSeg::~SevenSeg()
void SevenSeg::dataChanged()
{
setCaption( i18n("Display %1 on %2").tqarg( dataString("expression") ).tqarg( dataString("sevenseg") ) );
setCaption( i18n("Display %1 on %2").arg( dataString("expression") ).arg( dataString("sevenseg") ) );
}
void SevenSeg::generateMicrobe( FlowCode *code )
{
code->addCode( TQString("%1 = %2").tqarg( dataString("sevenseg") ).tqarg( dataString("expression") ) );
code->addCode( TQString("%1 = %2").arg( dataString("sevenseg") ).arg( dataString("expression") ) );
code->addCodeBranch( outputPart("stdoutput") );
}

@ -62,7 +62,7 @@ While::~While()
void While::dataChanged()
{
setCaption( i18n("while %1 %2 %3").tqarg(dataString("0var1")).tqarg(dataString("1op")).tqarg(dataString("2var2")) );
setCaption( i18n("while %1 %2 %3").arg(dataString("0var1")).arg(dataString("1op")).arg(dataString("2var2")) );
}
void While::generateMicrobe( FlowCode *code )

@ -59,7 +59,7 @@ WritePort::~WritePort()
void WritePort::dataChanged()
{
setCaption( i18n("Write %1 to %2").tqarg(dataString("0-var")).tqarg(dataString("1-port")) );
setCaption( i18n("Write %1 to %2").arg(dataString("0-var")).arg(dataString("1-port")) );
}

@ -185,7 +185,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>20</width>
<height>484</height>

@ -42,18 +42,18 @@ ContextHelp::ContextHelp( KateMDI::ToolView * parent )
{
TQWhatsThis::add( this, i18n("Provides context-sensitive help relevant to the current editing being performed.") );
TQVBoxLayout *vtqlayout = new TQVBoxLayout( this, 0, 6 );
TQVBoxLayout *vlayout = new TQVBoxLayout( this, 0, 6 );
m_nameLbl = new TQLabel( this, "" );
vtqlayout->addWidget(m_nameLbl);
vtqlayout->addSpacing(8);
vlayout->addWidget(m_nameLbl);
vlayout->addSpacing(8);
m_info = new TQTextBrowser( this, "" );
vtqlayout->addWidget(m_info);
m_info->tqsetSizePolicy( TQSizePolicy::MinimumExpanding, TQSizePolicy::MinimumExpanding );
vlayout->addWidget(m_info);
m_info->setSizePolicy( TQSizePolicy::MinimumExpanding, TQSizePolicy::MinimumExpanding );
TQSpacerItem *spacer3 = new TQSpacerItem( 1, 1, TQSizePolicy::Preferred, TQSizePolicy::Preferred );
vtqlayout->addItem(spacer3);
vlayout->addItem(spacer3);
slotClear();
}

@ -81,7 +81,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>20</width>
<height>20</height>

@ -40,7 +40,7 @@ DoubleSpinBox::DoubleSpinBox( double lower, double upper, double minAbs, double
m_minAbsValue = minAbs;
m_queuedSuffix = TQString();
editor()->tqsetAlignment( TQt::AlignRight );
editor()->setAlignment( TQt::AlignRight );
connect( this, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(checkIfChanged()) );
TQSpinBox::setMinValue( -(1<<30) );
@ -129,7 +129,7 @@ double DoubleSpinBox::getMult()
if ( text.length() == 0 )
return 1.0;
if ( text.tqendsWith( m_unit, false ) )
if ( text.endsWith( m_unit, false ) )
text = text.remove( text.length() - m_unit.length(), m_unit.length() );
text.stripWhiteSpace();

@ -152,7 +152,7 @@
</property>
<widget class="TQLayoutWidget">
<property name="name">
<cstring>tqlayout8_2</cstring>
<cstring>layout8_2</cstring>
</property>
<grid>
<property name="name">
@ -217,7 +217,7 @@
<property name="scaledContents">
<bool>false</bool>
</property>
<property name="tqalignment">
<property name="alignment">
<set>WordBreak|AlignVCenter</set>
</property>
</widget>
@ -233,7 +233,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>20</width>
<height>40</height>

@ -87,7 +87,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>20</width>
<height>16</height>
@ -207,7 +207,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>40</width>
<height>20</height>
@ -224,7 +224,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>40</width>
<height>20</height>
@ -241,7 +241,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>40</width>
<height>20</height>

@ -42,17 +42,17 @@ ItemEditor::ItemEditor( KateMDI::ToolView * parent )
{
TQWhatsThis::add( this, i18n("This allows editing of advanced properties of the selected item(s). Right click on the picture of the item to set the orientation.") );
TQVBoxLayout *vtqlayout = new TQVBoxLayout( this, 0, 6 );
TQVBoxLayout *vlayout = new TQVBoxLayout( this, 0, 6 );
m_nameLbl = new TQLabel( this, "" );
vtqlayout->addWidget(m_nameLbl);
vtqlayout->addSpacing(8);
vlayout->addWidget(m_nameLbl);
vlayout->addSpacing(8);
propList = new PropertiesListView(this);
vtqlayout->addWidget(propList);
vlayout->addWidget(propList);
TQWhatsThis::add(propList,i18n("<qt>Shows properties associated with the currently selected item(s).<p>Select a property to change its value. If multiple items are selected with different values then the property will appear greyed out, use ""Merge Properties"" to make them the same.<p>Select ""Defaults to set all properties to their default values"""));
TQHBoxLayout *h1Layout = new TQHBoxLayout( vtqlayout, 4 );
TQHBoxLayout *h1Layout = new TQHBoxLayout( vlayout, 4 );
TQSpacerItem *spacer1 = new TQSpacerItem( 1, 1 );
h1Layout->addItem(spacer1);
@ -67,7 +67,7 @@ ItemEditor::ItemEditor( KateMDI::ToolView * parent )
h1Layout->addWidget(m_mergeBtn);
// Qt::Orientation widget stuff
TQHBoxLayout *h2Layout = new TQHBoxLayout( vtqlayout, 6 );
TQHBoxLayout *h2Layout = new TQHBoxLayout( vlayout, 6 );
TQSpacerItem *spacer2 = new TQSpacerItem( 1, 1 );
h2Layout->addItem(spacer2);
m_orientationWidget = new OrientationWidget(this);

@ -163,7 +163,7 @@ void ItemSelector::slotContextMenuRequested( TQListViewItem* item, const TQPoint
}
TQPopupMenu *menu = new TQPopupMenu(this);
menu->insertItem( i18n("Remove %1").tqarg(item->text(0)), this, TQT_SLOT(slotRemoveSelectedItem()), TQt::Key_Delete );
menu->insertItem( i18n("Remove %1").arg(item->text(0)), this, TQT_SLOT(slotRemoveSelectedItem()), TQt::Key_Delete );
menu->popup(pos);
}
@ -177,7 +177,7 @@ void ItemSelector::slotRemoveSelectedItem()
emit itemRemoved( item->key( 0, 0 ) );
ILVItem *parent = dynamic_cast<ILVItem*>(item->TQListViewItem::parent());
delete item;
// Get rid of the category as well if it has no tqchildren
// Get rid of the category as well if it has no children
if ( parent && !parent->firstChild() )
{
m_categories.remove(parent->text(0));

@ -239,7 +239,7 @@
These values will apply to all components, apart from the PIC, whose pins' impedances depend on the pin in use.</string>
</property>
<property name="tqalignment">
<property name="alignment">
<set>WordBreak|AlignVCenter</set>
</property>
</widget>
@ -253,7 +253,7 @@ These values will apply to all components, apart from the PIC, whose pins' imped
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>20</width>
<height>16</height>

@ -49,23 +49,23 @@ void LogView::addOutput( TQString text, OutputType outputType, MessageInfo messa
switch(outputType)
{
case LogView::ot_important:
append( TQString("<font color=\"#000000\"><b>%1</b></font>").tqarg(text) );
append( TQString("<font color=\"#000000\"><b>%1</b></font>").arg(text) );
break;
case LogView::ot_info:
append( TQString("<font color=\"#000000\"><i>%1</i></font>").tqarg(text) );
append( TQString("<font color=\"#000000\"><i>%1</i></font>").arg(text) );
break;
case LogView::ot_message:
append( TQString("<font color=\"#000000\">%1</font>").tqarg(text) );
append( TQString("<font color=\"#000000\">%1</font>").arg(text) );
break;
case LogView::ot_warning:
append( TQString("<font color=\"#666666\">%1</font>").tqarg(text) );
append( TQString("<font color=\"#666666\">%1</font>").arg(text) );
break;
case LogView::ot_error:
append( TQString("<font color=\"#800000\">%1</font>").tqarg(text) );
append( TQString("<font color=\"#800000\">%1</font>").arg(text) );
break;
}

@ -35,13 +35,13 @@ MicroSelectWidget::MicroSelectWidget( TQWidget* parent, const char* name, WFlags
m_pMicroFamilyLabel->setText( i18n("Family") );
m_pMicroFamily = new KComboBox( FALSE, this, "m_pMicroFamily" );
m_pMicroFamily->tqsetSizePolicy( TQSizePolicy::MinimumExpanding, TQSizePolicy::Preferred );
m_pMicroFamily->setSizePolicy( TQSizePolicy::MinimumExpanding, TQSizePolicy::Preferred );
m_pMicroLabel = new TQLabel( this, "m_pMicroLabel" );
m_pMicroLabel->setText( i18n("Micro") );
m_pMicro = new KComboBox( FALSE, this, "m_pMicro" );
m_pMicro->tqsetSizePolicy( TQSizePolicy::MinimumExpanding, TQSizePolicy::Preferred );
m_pMicro->setSizePolicy( TQSizePolicy::MinimumExpanding, TQSizePolicy::Preferred );
m_pMicro->setEditable( TRUE );
m_pMicro->setAutoCompletion(true);
updateFromAllowed();

@ -69,10 +69,10 @@ MicroSettingsDlg::MicroSettingsDlg( MicroSettings * microSettings, TQWidget *par
TQGroupBox * groupBox = new TQGroupBox( *it, m_pWidget->portsGroupBox );
groupBox->setColumnLayout(0, Qt::Vertical );
groupBox->tqlayout()->setSpacing( 6 );
groupBox->tqlayout()->setMargin( 11 );
TQGridLayout * groupBoxLayout = new TQGridLayout( groupBox->tqlayout() );
groupBoxLayout->tqsetAlignment( TQt::AlignTop );
groupBox->layout()->setSpacing( 6 );
groupBox->layout()->setMargin( 11 );
TQGridLayout * groupBoxLayout = new TQGridLayout( groupBox->layout() );
groupBoxLayout->setAlignment( TQt::AlignTop );
// TODO: replace this with i18n( "the type", "Type (TRIS register):" );
groupBoxLayout->addWidget( new TQLabel( i18n("Type (TRIS register):"), groupBox ), 0, 0 );
@ -84,8 +84,8 @@ MicroSettingsDlg::MicroSettingsDlg( MicroSettings * microSettings, TQWidget *par
m_portStateEdit[row] = new KLineEdit( portState, groupBox );
groupBoxLayout->addWidget( m_portStateEdit[row], 1, 1 );
// (dynamic_cast<TQVBoxLayout*>(m_pWidget->portsGroupBox->tqlayout()))->insertWidget( row, groupBox );
(dynamic_cast<TQVBoxLayout*>(m_pWidget->portsGroupBox->tqlayout()))->addWidget( groupBox );
// (dynamic_cast<TQVBoxLayout*>(m_pWidget->portsGroupBox->layout()))->insertWidget( row, groupBox );
(dynamic_cast<TQVBoxLayout*>(m_pWidget->portsGroupBox->layout()))->addWidget( groupBox );
}
//END Initialize initial port settings
@ -370,26 +370,26 @@ void MicroSettingsDlg::savePort( int row )
TQString typeText = m_portTypeEdit[row]->text();
bool typeOk = true;
if ( typeText.tqstartsWith( "0x", false ) ) type = typeText.remove(0,2).toInt( &typeOk, 16 );
if ( typeText.startsWith( "0x", false ) ) type = typeText.remove(0,2).toInt( &typeOk, 16 );
else if ( typeText.contains( TQRegExp("[^01]") ) ) type = typeText.toInt( &typeOk, 10 );
else type = typeText.toInt( &typeOk, 2 );
if ( !typeOk )
{
// KMessageBox::sorry( this, i18n("Unregnised Port Type: %1").tqarg(typeText) );
// KMessageBox::sorry( this, i18n("Unregnised Port Type: %1").arg(typeText) );
return;
}
TQString stateText = m_portStateEdit[row]->text();
bool stateOk = true;
if ( stateText.tqstartsWith( "0x", false ) ) state = stateText.remove(0,2).toInt( &stateOk, 16 );
if ( stateText.startsWith( "0x", false ) ) state = stateText.remove(0,2).toInt( &stateOk, 16 );
else if ( stateText.contains( TQRegExp("[^01]") ) ) state = stateText.toInt( &stateOk, 10 );
else state = stateText.toInt( &stateOk, 2 );
if ( !stateOk )
{
// KMessageBox::sorry( this, i18n("Unregnised Port State: %1").tqarg(stateText) );
// KMessageBox::sorry( this, i18n("Unregnised Port State: %1").arg(stateText) );
return;
}
@ -406,12 +406,12 @@ void MicroSettingsDlg::saveVariable( int row )
TQString valueText = m_pWidget->variables->text( row, 1 );
int value;
bool ok = true;
if ( valueText.tqstartsWith( "0x", false ) ) value = valueText.remove(0,2).toInt( &ok, 16 );
if ( valueText.startsWith( "0x", false ) ) value = valueText.remove(0,2).toInt( &ok, 16 );
else value = valueText.toInt( &ok, 10 );
if (!ok)
{
KMessageBox::sorry( this, i18n("Invalid variable value: %1").tqarg(valueText) );
KMessageBox::sorry( this, i18n("Invalid variable value: %1").arg(valueText) );
return;
}

@ -96,7 +96,7 @@ Drag it to set the type (input/output).</string>
<property name="name">
<cstring>variables</cstring>
</property>
<property name="tqminimumSize">
<property name="minimumSize">
<size>
<width>0</width>
<height>64</height>
@ -145,7 +145,7 @@ Drag it to set the type (input/output).</string>
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>60</width>
<height>20</height>

@ -59,7 +59,7 @@ Creates a new circuit, with drag and drop editor. Real time simulation of the ci
<property name="text">
<string>File Type:</string>
</property>
<property name="tqalignment">
<property name="alignment">
<set>AlignVCenter</set>
</property>
</widget>
@ -75,7 +75,7 @@ Creates a new circuit, with drag and drop editor. Real time simulation of the ci
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="tqminimumSize">
<property name="minimumSize">
<size>
<width>500</width>
<height>150</height>
@ -128,13 +128,13 @@ Creates a new circuit, with drag and drop editor. Real time simulation of the ci
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="tqminimumSize">
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="tqmaximumSize">
<property name="maximumSize">
<size>
<width>32767</width>
<height>32767</height>
@ -151,7 +151,7 @@ Creates a new circuit, with drag and drop editor. Real time simulation of the ci
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>20</width>
<height>0</height>

@ -64,7 +64,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>20</width>
<height>21</height>
@ -83,7 +83,7 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="tqminimumSize">
<property name="minimumSize">
<size>
<width>300</width>
<height>0</height>
@ -112,7 +112,7 @@
<property name="name">
<cstring>typeCombo</cstring>
</property>
<property name="tqminimumSize">
<property name="minimumSize">
<size>
<width>200</width>
<height>0</height>

@ -48,7 +48,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>20</width>
<height>16</height>

@ -30,7 +30,7 @@ const int _size = 44;
OrientationWidget::OrientationWidget(TQWidget *parent, const char *name)
: TQWidget(parent, name)
{
TQGridLayout *tqlayout = new TQGridLayout( this, 2, 4, 0, 4 );
TQGridLayout *layout = new TQGridLayout( this, 2, 4, 0, 4 );
p_activeFlowPart = 0l;
for ( int row=0; row<2; ++row )
@ -39,7 +39,7 @@ OrientationWidget::OrientationWidget(TQWidget *parent, const char *name)
{
TQPushButton *btn = new TQPushButton(this);
m_toolBtn[row][col] = btn;
tqlayout->addWidget( btn, row, col );
layout->addWidget( btn, row, col );
btn->setFixedSize( _size+6, _size+6 );
// btn->setFlat(true);
btn->setEnabled(false);

@ -77,7 +77,7 @@ void OscilloscopeView::updateView()
void OscilloscopeView::updateViewTimeout()
{
b_needRedraw = true;
tqrepaint(false);
repaint(false);
updateTimeLabel();
}
@ -130,7 +130,7 @@ void OscilloscopeView::mousePressEvent( TQMouseEvent *event )
for ( uint i=0; i<5; ++i )
{
const int num = fps[i];
fpsMenu.insertItem( i18n("%1 fps").tqarg(num), num );
fpsMenu.insertItem( i18n("%1 fps").arg(num), num );
fpsMenu.setItemChecked( num, num == m_fps );
}

@ -33,7 +33,7 @@ class OscilloscopeView : public TQFrame
public slots:
/**
* Sets the needRedraw flag to true, and then class tqrepaint
* Sets the needRedraw flag to true, and then class repaint
*/
void updateView();
void slotSetFrameRate( int fps );

@ -27,7 +27,7 @@
</property>
<widget class="TQLayoutWidget" row="0" column="3" rowspan="2" colspan="1">
<property name="name">
<cstring>tqlayout7</cstring>
<cstring>layout7</cstring>
</property>
<grid>
<property name="name">
@ -67,13 +67,13 @@
<property name="name">
<cstring>probePositioner</cstring>
</property>
<property name="tqminimumSize">
<property name="minimumSize">
<size>
<width>16</width>
<height>0</height>
</size>
</property>
<property name="tqmaximumSize">
<property name="maximumSize">
<size>
<width>16</width>
<height>32767</height>
@ -92,7 +92,7 @@
</widget>
<widget class="TQLayoutWidget" row="0" column="1" rowspan="2" colspan="1">
<property name="name">
<cstring>tqlayout9</cstring>
<cstring>layout9</cstring>
</property>
<vbox>
<property name="name">
@ -111,7 +111,7 @@
<property name="text">
<string>Zoom</string>
</property>
<property name="tqalignment">
<property name="alignment">
<set>AlignCenter</set>
</property>
</widget>
@ -150,7 +150,7 @@
<property name="sizeType">
<enum>MinimumExpanding</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>20</width>
<height>30</height>
@ -164,7 +164,7 @@
<property name="text">
<string></string>
</property>
<property name="tqalignment">
<property name="alignment">
<set>AlignCenter</set>
</property>
</widget>
@ -178,7 +178,7 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>20</width>
<height>6</height>
@ -216,7 +216,7 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>6</width>
<height>6</height>
@ -233,7 +233,7 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>6</width>
<height>6</height>

@ -20,7 +20,7 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="tqminimumSize">
<property name="minimumSize">
<size>
<width>450</width>
<height>0</height>
@ -115,7 +115,7 @@
<property name="name">
<cstring>m_pMicroSelect</cstring>
</property>
<property name="tqminimumSize">
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
@ -132,7 +132,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>20</width>
<height>0</height>

@ -43,7 +43,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>295</width>
<height>20</height>
@ -215,7 +215,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
<cstring>tqlayout5</cstring>
<cstring>layout5</cstring>
</property>
<hbox>
<property name="name">
@ -249,7 +249,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>20</width>
<height>16</height>

@ -46,8 +46,8 @@ void PIEditor::valueChanged( TQVariant /*variant*/ )
PIBool::PIBool(TQString id, Variant *data, TQWidget *parent, const char *name )
: PIEditor( id, data, parent, name )
{
TQHBoxLayout *tqlayout = new TQHBoxLayout(this);
tqlayout->setAutoAdd(true);
TQHBoxLayout *layout = new TQHBoxLayout(this);
layout->setAutoAdd(true);
m_comboBox = new KComboBox(this);
m_comboBox->insertItem( i18n("True"), 0 );
@ -82,8 +82,8 @@ void PIBool::valueChanged( TQVariant /*variant*/ )
PIColor::PIColor(TQString id, Variant *data, TQWidget *parent, const char *name )
: PIEditor(id,data,parent, name)
{
TQHBoxLayout *tqlayout = new TQHBoxLayout(this);
tqlayout->setAutoAdd(true);
TQHBoxLayout *layout = new TQHBoxLayout(this);
layout->setAutoAdd(true);
m_combo = new ColorCombo( (ColorCombo::ColorScheme)m_data->colorScheme(), this );
m_combo->setColor(m_data->value().toColor());
@ -117,8 +117,8 @@ void PIColor::valueChanged( TQVariant /*variant*/ )
PIDouble::PIDouble(TQString id, Variant *data, TQWidget *parent, const char *name )
: PIEditor(id,data,parent, name)
{
TQHBoxLayout *tqlayout = new TQHBoxLayout(this);
tqlayout->setAutoAdd(true);
TQHBoxLayout *layout = new TQHBoxLayout(this);
layout->setAutoAdd(true);
spin = new DoubleSpinBox(m_data->minValue(),m_data->maxValue(),m_data->minAbsValue(),m_data->value().toDouble(),m_data->unit(),this);
@ -145,8 +145,8 @@ void PIDouble::valueChanged( TQVariant /*variant*/ )
PIFilename::PIFilename(TQString id, Variant *data, TQWidget *parent, const char *name )
: PIEditor(id,data,parent, name)
{
TQHBoxLayout *tqlayout = new TQHBoxLayout(this);
tqlayout->setAutoAdd(true);
TQHBoxLayout *layout = new TQHBoxLayout(this);
layout->setAutoAdd(true);
m_combo = 0L;
if( m_data->allowed().count() == 0 )
@ -196,8 +196,8 @@ void PIFilename::valueChanged( TQVariant /*variant*/ )
PIInt::PIInt( const TQString &id, Variant *data, TQWidget *parent, const char *name )
: PIEditor( id, data, parent, name )
{
TQHBoxLayout *tqlayout = new TQHBoxLayout(this);
tqlayout->setAutoAdd(true);
TQHBoxLayout *layout = new TQHBoxLayout(this);
layout->setAutoAdd(true);
spin = new KIntSpinBox( (int)m_data->minValue(), (int)m_data->maxValue(), 1, m_data->value().toInt(), 10, this );
@ -224,8 +224,8 @@ void PIInt::valueChanged( TQVariant /*variant*/ )
PILineEdit::PILineEdit(TQString id, Variant *data, TQWidget *parent, const char *name)
: PIEditor( id, data, parent, name)
{
TQHBoxLayout *tqlayout = new TQHBoxLayout(this);
tqlayout->setAutoAdd(true);
TQHBoxLayout *layout = new TQHBoxLayout(this);
layout->setAutoAdd(true);
m_edit = new KLineEdit( m_data->value().toString() , this );
connect(m_edit,TQT_SIGNAL(textChanged(const TQString&)),this,TQT_SLOT(slotEditTextChanged()));
}
@ -251,8 +251,8 @@ void PILineEdit::valueChanged( TQVariant /*variant*/ )
PIStringCombo::PIStringCombo(TQString id, Variant *data, TQWidget *parent, const char *name)
: PIEditor( id, data, parent, name)
{
TQHBoxLayout *tqlayout = new TQHBoxLayout(this);
tqlayout->setAutoAdd(true);
TQHBoxLayout *layout = new TQHBoxLayout(this);
layout->setAutoAdd(true);
m_combo = new KComboBox( this );
m_combo->insertStringList(m_data->allowed());

@ -41,7 +41,7 @@ ProbePositioner::~ProbePositioner()
void ProbePositioner::forceRepaint()
{
b_needRedraw = true;
tqrepaint(false);
repaint(false);
}

@ -26,7 +26,7 @@
<property name="name">
<cstring>m_pMicroSelect</cstring>
</property>
<property name="tqminimumSize">
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
@ -43,7 +43,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>20</width>
<height>16</height>

@ -50,7 +50,7 @@
<property name="name">
<cstring>m_pMicroSelect</cstring>
</property>
<property name="tqminimumSize">
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
@ -83,7 +83,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>20</width>
<height>0</height>

@ -165,8 +165,8 @@ LinkerOptionsDlg::LinkerOptionsDlg( LinkerOptions * linkingOptions, TQWidget *pa
delete m_pWidget->m_pExternalLibraries;
m_pWidget->m_pExternalLibraries = new KEditListBox( i18n("Link libraries outside project"), m_pExternalLibraryRequester->customEditor(), m_pWidget );
m_pWidget->m_pExternalLibraries->tqlayout()->setMargin(11);
(dynamic_cast<TQGridLayout*>(m_pWidget->tqlayout()))->addMultiCellWidget( m_pWidget->m_pExternalLibraries, 7, 7, 0, 1 );
m_pWidget->m_pExternalLibraries->layout()->setMargin(11);
(dynamic_cast<TQGridLayout*>(m_pWidget->layout()))->addMultiCellWidget( m_pWidget->m_pExternalLibraries, 7, 7, 0, 1 );
#if defined(KDE_MAKE_VERSION)
# if KDE_VERSION >= KDE_MAKE_VERSION(3,4,0)

@ -191,18 +191,18 @@ void PropertiesListView::slotSelectionChanged(TQListViewItem *item)
connect(m_editor,TQT_SIGNAL(editorDataChanged(const TQString&,TQVariant)),this,TQT_SLOT(slotDataChanged(const TQString&,TQVariant)));
int x = columnWidth(0);
int y = viewportToContents(TQPoint(0,tqitemRect(p_lastItem).y())).y();
int y = viewportToContents(TQPoint(0,itemRect(p_lastItem).y())).y();
addChild(m_editor,x,y);
m_editor->setFocus();
m_editor->show();
m_editor->setGeometry(TQRect(x,y,columnWidth(1),tqitemRect(p_lastItem).height()));
m_editor->setGeometry(TQRect(x,y,columnWidth(1),itemRect(p_lastItem).height()));
if(p_lastItem->data()->type() == Variant::Type::FileName)
{
// The folder button in the KURLComboBox has a minimum size taller than
// the height of the ListViewItems so this is a temporary kludge to
// make it look slightly acceptable.
m_editor->setGeometry(TQRect(x,y,columnWidth(1),tqitemRect(p_lastItem).height()+7));
m_editor->setGeometry(TQRect(x,y,columnWidth(1),itemRect(p_lastItem).height()+7));
}
// Active the editor as appropriate
@ -271,7 +271,7 @@ void PropertiesListView::headerSizeChanged(int section, int /*oldSize*/, int new
// Resize the editor to the new column width
// and move it to the right place.
TQRect rect = m_editor->tqgeometry();
TQRect rect = m_editor->geometry();
rect.setWidth(newSize);
rect.setX( columnWidth(0) );
m_editor->setGeometry(rect);

@ -111,7 +111,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
@ -225,7 +225,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
@ -397,7 +397,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
@ -537,7 +537,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
@ -570,7 +570,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="tqsizeHint">
<property name="sizeHint">
<size>
<width>20</width>
<height>16</height>

@ -104,19 +104,19 @@ void SettingsDlg::slotUpdateRefreshRateLabel( int sliderValue )
switch(sliderValue)
{
case 0:
m_generalOptionsWidget->refreshRateLabel->setText( i18n("Lowest (%1 FPS)").tqarg(number) );
m_generalOptionsWidget->refreshRateLabel->setText( i18n("Lowest (%1 FPS)").arg(number) );
break;
case 1:
m_generalOptionsWidget->refreshRateLabel->setText( i18n("Low (%1 FPS)").tqarg(number) );
m_generalOptionsWidget->refreshRateLabel->setText( i18n("Low (%1 FPS)").arg(number) );
break;
case 2:
m_generalOptionsWidget->refreshRateLabel->setText( i18n("Medium (%1 FPS)").tqarg(number) );
m_generalOptionsWidget->refreshRateLabel->setText( i18n("Medium (%1 FPS)").arg(number) );
break;
case 3:
m_generalOptionsWidget->refreshRateLabel->setText( i18n("High (%1 FPS)").tqarg(number) );
m_generalOptionsWidget->refreshRateLabel->setText( i18n("High (%1 FPS)").arg(number) );
break;
case 4:
m_generalOptionsWidget->refreshRateLabel->setText( i18n("Highest (%1 FPS)").tqarg(number) );
m_generalOptionsWidget->refreshRateLabel->setText( i18n("Highest (%1 FPS)").arg(number) );
break;
default:
m_generalOptionsWidget->refreshRateLabel->setText( i18n("Unknown value") );
@ -141,9 +141,9 @@ void SettingsDlg::slotUpdatePicProgrammerDescription()
TQString programLocation = KStandardDirs::findExe( executable );
if ( programLocation.isNull() )
description.prepend( i18n("<b>%1</b> cannot be found.<br>").tqarg( executable ) );
description.prepend( i18n("<b>%1</b> cannot be found.<br>").arg( executable ) );
else
description.prepend( i18n("<b>%1</b> found: %2<br>").tqarg( executable ).tqarg(programLocation) );
description.prepend( i18n("<b>%1</b> found: %2<br>").arg( executable ).arg(programLocation) );
m_picProgrammerConfigWidget->m_pProgrammerDescription->setText( description );
m_picProgrammerConfigWidget->removeButton->setEnabled( customProgrammer );
@ -193,7 +193,7 @@ void SettingsDlg::slotRemoveProgrammerConfig()
TQString program = combo->currentText();
KMessageBox::ButtonCode confirm = (KMessageBox::ButtonCode)KMessageBox::warningContinueCancel( this, i18n("Remove programmer configuration \"%1\"?").tqarg(program), i18n("Remove \"%1\"").tqarg(program), i18n("Remove") );
KMessageBox::ButtonCode confirm = (KMessageBox::ButtonCode)KMessageBox::warningContinueCancel( this, i18n("Remove programmer configuration \"%1\"?").arg(program), i18n("Remove \"%1\"").arg(program), i18n("Remove") );
if ( confirm == KMessageBox::Cancel )
return;

@ -1030,7 +1030,7 @@ void ICNDocument::copy()
data.addNodes( nodeList );
data.addConnectors( connectorList );
KApplication::tqclipboard()->setText( data.toXML(), TQClipboard::Clipboard );
KApplication::clipboard()->setText( data.toXML(), TQClipboard::Clipboard );
}
void ICNDocument::selectAll()
@ -1142,7 +1142,7 @@ void ICNDocument::requestRerouteInvalidatedConnectors()
}
void ICNDocument::rerouteInvalidatedConnectors()
{
tqApp->tqprocessEvents(300);
tqApp->processEvents(300);
// We only ever need to add the connector points for CNItem's when we're about to reroute...
addAllItemConnectorPoints();

@ -313,11 +313,11 @@ bool Item::mouseDoubleClickEvent( const EventInfo &eventInfo )
KDialogBase *dlg = new KDialogBase( 0l, "", true, v->editorCaption(), KDialogBase::Ok|KDialogBase::Cancel|KDialogBase::User1, KDialogBase::Ok, false, KStdGuiItem::clear() );
TQFrame *frame = dlg->makeMainWidget();
TQVBoxLayout *tqlayout = new TQVBoxLayout( frame, 0, dlg->spacingHint() );
TQVBoxLayout *layout = new TQVBoxLayout( frame, 0, dlg->spacingHint() );
KTextEdit *textEdit = new KTextEdit( frame );
textEdit->setTextFormat( PlainText );
textEdit->setText( v->value().toString() );
tqlayout->addWidget( textEdit, 10 );
layout->addWidget( textEdit, 10 );
textEdit->setFocus();
connect( dlg, TQT_SIGNAL( user1Clicked() ), textEdit, TQT_SLOT( clear() ) );
dlg->setMinimumWidth( 600 );
@ -381,22 +381,22 @@ int Item::level() const
}
ItemList Item::tqchildren( bool includeGrandChildren ) const
ItemList Item::children( bool includeGrandChildren ) const
{
if (!includeGrandChildren)
return m_tqchildren;
return m_children;
ItemList tqchildren = m_tqchildren;
ItemList::const_iterator end = m_tqchildren.end();
for ( ItemList::const_iterator it = m_tqchildren.begin(); it != end; ++it )
ItemList children = m_children;
ItemList::const_iterator end = m_children.end();
for ( ItemList::const_iterator it = m_children.begin(); it != end; ++it )
{
if (!*it)
continue;
tqchildren += (*it)->tqchildren(true);
children += (*it)->children(true);
}
return tqchildren;
return children;
}
@ -417,7 +417,7 @@ void Item::addChild( Item *child )
return;
}
m_tqchildren.append(child);
m_children.append(child);
connect( child, TQT_SIGNAL(removed(Item* )), this, TQT_SLOT(removeChild(Item* )) );
child->setParentItem(this);
@ -428,10 +428,10 @@ void Item::addChild( Item *child )
void Item::removeChild( Item *child )
{
if ( !child || !m_tqchildren.contains(child) )
if ( !child || !m_children.contains(child) )
return;
m_tqchildren.remove(child);
m_children.remove(child);
disconnect( child, TQT_SIGNAL(removed(Item* )), this, TQT_SLOT(removeChild(Item* )) );
childRemoved(child);
@ -441,8 +441,8 @@ void Item::removeChild( Item *child )
bool Item::contains( Item *item, bool direct ) const
{
const ItemList::const_iterator end = m_tqchildren.end();
for ( ItemList::const_iterator it = m_tqchildren.begin(); it != end; ++it )
const ItemList::const_iterator end = m_children.end();
for ( ItemList::const_iterator it = m_children.begin(); it != end; ++it )
{
if ( (Item*)*it == item || ( !direct && (*it)->contains( item, false ) ) )
return true;
@ -468,8 +468,8 @@ void Item::updateZ( int baseZ )
setZ(z);
const ItemList::const_iterator end = m_tqchildren.end();
for ( ItemList::const_iterator it = m_tqchildren.begin(); it != end; ++it )
const ItemList::const_iterator end = m_children.end();
for ( ItemList::const_iterator it = m_children.begin(); it != end; ++it )
{
if (*it)
(*it)->updateZ(baseZ+1);

@ -130,7 +130,7 @@ public:
bool isRaised() const { return m_bIsRaised; }
/**
* Sets this item to the given baseZ level, and calls this function for the
* tqchildren with baseZ incremented by one. Reinherit this function to set
* children with baseZ incremented by one. Reinherit this function to set
* the Z of attached stuff (such as nodes).
*/
virtual void updateZ( int baseZ );
@ -143,12 +143,12 @@ public:
*/
void addChild( Item *child );
/**
* Returns the list of tqchildren.
* Returns the list of children.
* @param if includeGrandChildren is true then this list will also contain
* the tqchildren's tqchildren, and so on recursively, instead of just the
* immediate tqchildren.
* the children's children, and so on recursively, instead of just the
* immediate children.
*/
ItemList tqchildren( bool includeGrandChildren = false ) const;
ItemList children( bool includeGrandChildren = false ) const;
/**
* Returns whether we have the given child as either a direct child, or as
* either a direct or indirect child
@ -173,7 +173,7 @@ public:
* Reinherit this function if you want to determine what the minimum size is
* that this item can be resized to.
*/
virtual TQSize tqminimumSize() const { return TQSize(0,0); }
virtual TQSize minimumSize() const { return TQSize(0,0); }
int offsetX() const { return m_sizeRect.x(); }
int offsetY() const { return m_sizeRect.y(); }
int width() const { return m_sizeRect.width(); }
@ -259,17 +259,17 @@ protected slots:
protected:
/**
* Reinherit this function if you want to do anything with tqchildren. Called
* Reinherit this function if you want to do anything with children. Called
* after the parent is changed, with the old parent and the new parent.
*/
virtual void reparented( Item */*oldParent*/, Item */*newParent*/ ) {};
/**
* Reinherit this function if you want to do anything with tqchildren. Called
* Reinherit this function if you want to do anything with children. Called
* after a child has been added.
*/
virtual void childAdded( Item * ) {};
/**
* Reinherit this function if you want to do anything with tqchildren. Called
* Reinherit this function if you want to do anything with children. Called
* after a child has been removed.
*/
virtual void childRemoved( Item * ) {};
@ -290,7 +290,7 @@ protected:
TQString m_name, m_desc; // Name and description
TQString m_type;
GuardedItem p_parentItem; // If attached to a parent item
ItemList m_tqchildren;
ItemList m_children;
TQGuardedPtr<ItemDocument> p_itemDocument;
TQPointArray m_itemPoints; // The unorientated and unsized item points

@ -266,7 +266,7 @@ void ItemDocument::print()
p.setClipRect( 0, 0, w, h, TQPainter::CoordPainter );
// Send off the painter for drawing
m_canvas->tqsetBackgroundPixmap( 0 );
m_canvas->setBackgroundPixmap( 0 );
TQRect bounding = canvasBoundingRect();
unsigned int rows = (unsigned) std::ceil( double( bounding.height() ) / double( h ) );
@ -406,7 +406,7 @@ void ItemDocument::cut()
void ItemDocument::paste()
{
TQString xml = KApplication::tqclipboard()->text( TQClipboard::Clipboard );
TQString xml = KApplication::clipboard()->text( TQClipboard::Clipboard );
if ( xml.isEmpty() )
return;
@ -672,7 +672,7 @@ void ItemDocument::updateBackground()
}
pm.setDefaultOptimization( TQPixmap::BestOptim );
m_canvas->tqsetBackgroundPixmap(pm); // and the finale.
m_canvas->setBackgroundPixmap(pm); // and the finale.
}
@ -820,7 +820,7 @@ void ItemDocument::exportToImage()
if ( TQFile::exists( url.path() ) )
{
int query = KMessageBox::warningYesNo( p_ktechlab, i18n( "A file named \"%1\" already exists. " "Are you sure you want to overwrite it?" ).tqarg( url.fileName() ), i18n( "Overwrite File?" ), i18n( "Overwrite" ), KStdGuiItem::cancel() );
int query = KMessageBox::warningYesNo( p_ktechlab, i18n( "A file named \"%1\" already exists. " "Are you sure you want to overwrite it?" ).arg( url.fileName() ), i18n( "Overwrite File?" ), i18n( "Overwrite" ), KStdGuiItem::cancel() );
if ( query == KMessageBox::No ) return;
}
@ -894,7 +894,7 @@ void ItemDocument::exportToImage()
TQPainter p(outputImage);
m_canvas->tqsetBackgroundPixmap(TQPixmap());
m_canvas->setBackgroundPixmap(TQPixmap());
m_canvas->drawArea( saveArea, &p );
updateBackground();
@ -924,7 +924,7 @@ void ItemDocument::exportToImage()
saveResult = dynamic_cast<TQPixmap*>(outputImage)->save( url.path(), type );
}
//if(saveResult == true) KMessageBox::information( this, i18n("Sucessfully exported to \"%1\"").tqarg( url.filename() ), i18n("Image Export") );
//if(saveResult == true) KMessageBox::information( this, i18n("Sucessfully exported to \"%1\"").arg( url.filename() ), i18n("Image Export") );
//else KMessageBox::information( this, i18n("Export failed"), i18n("Image Export") );
if ( type == "SVG" )
@ -1170,7 +1170,7 @@ void CanvasTip::display( const TQPoint &pos )
{
TQString text;
for ( unsigned i = 0; i < num; i++ )
text += TQString(" %1: %2\n").tqarg( TQString::number(i) ).tqarg( displayText(i) );
text += TQString(" %1: %2\n").arg( TQString::number(i) ).arg( displayText(i) );
setText(text);
}
}
@ -1182,10 +1182,10 @@ TQString CanvasTip::displayText( unsigned num ) const
return TQString();
return TQString(" %1%2V %3%4A ")
.tqarg( TQString::number( m_v[num] / CNItem::getMultiplier(m_v[num]), 'g', 3 ) )
.tqarg( CNItem::getNumberMag( m_v[num] ) )
.tqarg( TQString::number( m_i[num] / CNItem::getMultiplier(m_i[num]), 'g', 3 ) )
.tqarg( CNItem::getNumberMag( m_i[num] ) );
.arg( TQString::number( m_v[num] / CNItem::getMultiplier(m_v[num]), 'g', 3 ) )
.arg( CNItem::getNumberMag( m_v[num] ) )
.arg( TQString::number( m_i[num] / CNItem::getMultiplier(m_i[num]), 'g', 3 ) )
.arg( CNItem::getNumberMag( m_i[num] ) );
}
@ -1304,9 +1304,9 @@ void Canvas::drawForeground ( TQPainter &p, const TQRect & clip )
return;
}
p.setBrush( firstView->tqcolorGroup().background() );
p.setBrush( firstView->colorGroup().background() );
p.drawRoundRect( x, y, w+2*b, h+2*b, (8*200)/(w+2*b), (8*200)/(h+2*b) );
t->draw( &p, x+b, y+b, TQRect(), firstView->tqcolorGroup() );
t->draw( &p, x+b, y+b, TQRect(), firstView->colorGroup() );
delete t;
}

@ -110,7 +110,7 @@ bool ItemDocumentData::loadData( const KURL &url )
TQFile file(target);
if ( !file.open( IO_ReadOnly ) )
{
KMessageBox::sorry( 0l, i18n("Could not open %1 for reading").tqarg(target) );
KMessageBox::sorry( 0l, i18n("Could not open %1 for reading").arg(target) );
return false;
}
@ -132,7 +132,7 @@ bool ItemDocumentData::fromXML( const TQString &xml )
TQString errorMessage;
if ( !doc.setContent( xml, &errorMessage ) )
{
KMessageBox::sorry( 0l, i18n("Couldn't parse xml:\n%1").tqarg(errorMessage) );
KMessageBox::sorry( 0l, i18n("Couldn't parse xml:\n%1").arg(errorMessage) );
return false;
}
@ -180,7 +180,7 @@ bool ItemDocumentData::saveData( const KURL &url )
TQFile file( url.path() );
if ( !file.open(IO_WriteOnly) )
{
KMessageBox::sorry( 0l, i18n("Could not open '%1' for writing. Check that you have write permissions").tqarg(url.path()), i18n("Saving File") );
KMessageBox::sorry( 0l, i18n("Could not open '%1' for writing. Check that you have write permissions").arg(url.path()), i18n("Saving File") );
return false;
}
@ -1001,7 +1001,7 @@ void ItemDocumentData::mergeWithDocument( ItemDocument *itemDocument, bool selec
if (item)
{
//HACK We move the item now before restoreFromItemData is called later, in case it is to be parented
//(as we don't want to move tqchildren)...
//(as we don't want to move children)...
item->move( it.data().x, it.data().y );
}
}

@ -52,22 +52,22 @@ ItemList ItemGroup::items( bool excludeParentedItems ) const
do
{
oldSize = items.size();
ItemList tqchildren;
ItemList children;
ItemList::iterator end = parents.end();
for ( ItemList::iterator it = parents.begin(); it != end; ++it )
tqchildren += (*it)->tqchildren();
children += (*it)->children();
end = tqchildren.end();
for ( ItemList::iterator it = tqchildren.begin(); it != end; ++it )
end = children.end();
for ( ItemList::iterator it = children.begin(); it != end; ++it )
{
if ( tqchildren.contains(*it) > 1 )
if ( children.contains(*it) > 1 )
*it = 0l;
}
tqchildren.remove((Item*)0l);
children.remove((Item*)0l);
items += tqchildren;
parents = tqchildren;
items += children;
parents = children;
}
while ( oldSize != items.size() );
@ -148,19 +148,19 @@ void ItemGroup::registerItem( Item *item )
}
m_itemList += item;
updateAreSametqStatus();
updateAreSameStatus();
}
void ItemGroup::unregisterItem( Item *item )
{
if ( m_itemList.remove(item) > 0 ) {
updateAreSametqStatus();
updateAreSameStatus();
}
}
void ItemGroup::updateAreSametqStatus()
void ItemGroup::updateAreSameStatus()
{
b_itemsAreSameType = true;

@ -124,7 +124,7 @@ protected:
* Subclasses must call this to unregister the item with the data interface
*/
void unregisterItem( Item *item );
void updateAreSametqStatus();
void updateAreSameStatus();
ItemList m_itemList;
bool b_itemsAreSameType;

@ -237,7 +237,7 @@ TQWidget * ItemInterface::configWidget()
// Create new widget with the toolbar or dialog as the parent
TQWidget * configWidget = new TQWidget( parent, "tbConfigWidget" );
configWidget->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::MinimumExpanding, TQSizePolicy::MinimumExpanding, 1, 1 ) );
configWidget->setSizePolicy( TQSizePolicy( TQSizePolicy::MinimumExpanding, TQSizePolicy::MinimumExpanding, 1, 1 ) );
TQHBoxLayout * configLayout = new TQHBoxLayout( configWidget );
// configLayout->setAutoAdd( true );
@ -396,7 +396,7 @@ TQWidget * ItemInterface::configWidget()
{
TQSizePolicy p( TQSizePolicy::MinimumExpanding, TQSizePolicy::Fixed, 1, 1 );
editWidget->tqsetSizePolicy( p );
editWidget->setSizePolicy( p );
editWidget->setMaximumWidth( 250 );
break;
}

@ -381,7 +381,7 @@ TQImage ItemLibrary::itemImage( Item *item, const uint maxSize )
p.setPen( item->pen() );
p.setBrush( item->brush() );
// Now draw the tqshape :-)
// Now draw the shape :-)
const bool sel = item->isSelected();
if (sel)
{

@ -86,8 +86,8 @@ ItemView::ItemView( ItemDocument * itemDocument, ViewContainer *viewContainer, u
setXMLFile( "ktechlabitemviewui.rc" );
m_pUpdateStatusTmr = new TQTimer(this);
connect( m_pUpdateStatusTmr, TQT_SIGNAL(timeout()), this, TQT_SLOT(updatetqStatus()) );
connect( this, TQT_SIGNAL(viewUnfocused()), this, TQT_SLOT(stopUpdatingtqStatus()) );
connect( m_pUpdateStatusTmr, TQT_SIGNAL(timeout()), this, TQT_SLOT(updateStatus()) );
connect( this, TQT_SIGNAL(viewUnfocused()), this, TQT_SLOT(stopUpdatingStatus()) );
p_itemDocument = itemDocument;
m_zoomLevel = 1.;
@ -198,7 +198,7 @@ void ItemView::dropEvent( TQDropEvent *event )
return;
TQString text;
TQDataStream stream( event->tqencodedData(event->format()), IO_ReadOnly );
TQDataStream stream( event->encodedData(event->format()), IO_ReadOnly );
stream >> text;
TQPoint position = event->pos();
@ -278,7 +278,7 @@ void ItemView::contentsMouseMoveEvent( TQMouseEvent *e )
p_itemDocument->m_cmManager->mouseMoveEvent( EventInfo( this, e ) );
if ( !m_pUpdateStatusTmr->isActive() )
startUpdatingtqStatus();
startUpdatingStatus();
}
@ -306,7 +306,7 @@ void ItemView::contentsWheelEvent( TQWheelEvent *e )
void ItemView::dragEnterEvent( TQDragEnterEvent *event )
{
startUpdatingtqStatus();
startUpdatingStatus();
KURL::List urls;
if ( KURLDrag::decode( event, urls ) )
@ -321,14 +321,14 @@ void ItemView::dragEnterEvent( TQDragEnterEvent *event )
void ItemView::enterEvent( TQEvent * e )
{
Q_UNUSED(e);
startUpdatingtqStatus();
startUpdatingStatus();
}
void ItemView::leaveEvent( TQEvent * e )
{
Q_UNUSED(e);
stopUpdatingtqStatus();
stopUpdatingStatus();
// Cleanup
setCursor(TQt::ArrowCursor);
@ -337,7 +337,7 @@ void ItemView::leaveEvent( TQEvent * e )
p_ktechlab->slotChangeStatusbar(TQString());
if ( p_itemDocument )
p_itemDocument->m_canvasTip->tqsetVisible(false);
p_itemDocument->m_canvasTip->setVisible(false);
}
@ -347,24 +347,24 @@ void ItemView::slotUpdateConfiguration()
m_CVBEditor->setEraseColor( TQt::white );
if ( m_pUpdateStatusTmr->isActive() )
startUpdatingtqStatus();
startUpdatingStatus();
}
void ItemView::startUpdatingtqStatus()
void ItemView::startUpdatingStatus()
{
m_pUpdateStatusTmr->stop();
m_pUpdateStatusTmr->start( int(1000./KTLConfig::refreshRate()) );
}
void ItemView::stopUpdatingtqStatus()
void ItemView::stopUpdatingStatus()
{
m_pUpdateStatusTmr->stop();
}
void ItemView::updatetqStatus()
void ItemView::updateStatus()
{
TQPoint pos = (m_CVBEditor->mapFromGlobal( TQCursor::pos() ) + TQPoint( m_CVBEditor->contentsX(), m_CVBEditor->contentsY() )) / zoomLevel();
@ -456,7 +456,7 @@ void ItemView::updatetqStatus()
if (p_ktechlab)
p_ktechlab->slotChangeStatusbar(statusbar);
canvasTip->tqsetVisible(displayTip);
canvasTip->setVisible(displayTip);
}
//END class ItemView

@ -44,15 +44,15 @@ class ItemView : public View
void zoomIn();
void zoomOut();
void scrollToMouse( const TQPoint &pos );
virtual void updatetqStatus();
virtual void updateStatus();
protected slots:
/**
* Called when the user changes the configuration.
*/
virtual void slotUpdateConfiguration();
void startUpdatingtqStatus();
void stopUpdatingtqStatus();
void startUpdatingStatus();
void stopUpdatingStatus();
protected:
void updateZoomActions();

@ -478,7 +478,7 @@ void Sidebar::restoreSession (KConfig *config)
{
ToolView *tv = m_toolviews[firstWrong];
unsigned int pos = config->readUnsignedNumEntry (TQString ("Kate-MDI-ToolView-%1-Sidebar-Position").tqarg(tv->id), firstWrong);
unsigned int pos = config->readUnsignedNumEntry (TQString ("Kate-MDI-ToolView-%1-Sidebar-Position").arg(tv->id), firstWrong);
if (pos != firstWrong)
break;
@ -493,7 +493,7 @@ void Sidebar::restoreSession (KConfig *config)
{
TmpToolViewSorter s;
s.tv = m_toolviews[i];
s.pos = config->readUnsignedNumEntry (TQString ("Kate-MDI-ToolView-%1-Sidebar-Position").tqarg(m_toolviews[i]->id), i);
s.pos = config->readUnsignedNumEntry (TQString ("Kate-MDI-ToolView-%1-Sidebar-Position").arg(m_toolviews[i]->id), i);
toSort.push_back (s);
}
@ -508,7 +508,7 @@ void Sidebar::restoreSession (KConfig *config)
}
// then: remove this items from the button bar
// do this backwards, to minimize the retqlayout efforts
// do this backwards, to minimize the relayout efforts
for (int i=m_toolviews.size()-1; i >= (int)firstWrong; --i)
{
removeTab (m_widgetToId[m_toolviews[i]]);
@ -536,7 +536,7 @@ void Sidebar::restoreSession (KConfig *config)
updateLastSize ();
// restore the own splitter sizes
TQValueList<int> s = config->readIntListEntry (TQString ("Kate-MDI-Sidebar-%1-Splitter").tqarg(sidebarPosition()));
TQValueList<int> s = config->readIntListEntry (TQString ("Kate-MDI-Sidebar-%1-Splitter").arg(sidebarPosition()));
m_ownSplit->setSizes (s);
// show only correct toolviews, remember persistent values ;)
@ -545,8 +545,8 @@ void Sidebar::restoreSession (KConfig *config)
{
ToolView *tv = m_toolviews[i];
tv->persistent = config->readBoolEntry (TQString ("Kate-MDI-ToolView-%1-Persistent").tqarg(tv->id), false);
tv->setVisible (config->readBoolEntry (TQString ("Kate-MDI-ToolView-%1-Visible").tqarg(tv->id), false));
tv->persistent = config->readBoolEntry (TQString ("Kate-MDI-ToolView-%1-Persistent").arg(tv->id), false);
tv->setVisible (config->readBoolEntry (TQString ("Kate-MDI-ToolView-%1-Visible").arg(tv->id), false));
if (!anyVis)
anyVis = tv->visible();
@ -569,17 +569,17 @@ void Sidebar::saveSession (KConfig *config)
{
// store the own splitter sizes
TQValueList<int> s = m_ownSplit->sizes();
config->writeEntry (TQString ("Kate-MDI-Sidebar-%1-Splitter").tqarg(sidebarPosition()), s);
config->writeEntry (TQString ("Kate-MDI-Sidebar-%1-Splitter").arg(sidebarPosition()), s);
// store the data about all toolviews in this sidebar ;)
for ( unsigned int i=0; i < m_toolviews.size(); ++i )
{
ToolView *tv = m_toolviews[i];
config->writeEntry (TQString ("Kate-MDI-ToolView-%1-Position").tqarg(tv->id), tv->sidebar()->sidebarPosition());
config->writeEntry (TQString ("Kate-MDI-ToolView-%1-Sidebar-Position").tqarg(tv->id), i);
config->writeEntry (TQString ("Kate-MDI-ToolView-%1-Visible").tqarg(tv->id), tv->visible());
config->writeEntry (TQString ("Kate-MDI-ToolView-%1-Persistent").tqarg(tv->id), tv->persistent);
config->writeEntry (TQString ("Kate-MDI-ToolView-%1-Position").arg(tv->id), tv->sidebar()->sidebarPosition());
config->writeEntry (TQString ("Kate-MDI-ToolView-%1-Sidebar-Position").arg(tv->id), i);
config->writeEntry (TQString ("Kate-MDI-ToolView-%1-Visible").arg(tv->id), tv->visible());
config->writeEntry (TQString ("Kate-MDI-ToolView-%1-Persistent").arg(tv->id), tv->persistent);
}
}
@ -651,7 +651,7 @@ ToolView *MainWindow::createToolView (const TQString &identifier, KMultiTabBar::
if (m_restoreConfig && m_restoreConfig->hasGroup (m_restoreGroup))
{
m_restoreConfig->setGroup (m_restoreGroup);
pos = (KMultiTabBar::KMultiTabBarPosition) m_restoreConfig->readNumEntry (TQString ("Kate-MDI-ToolView-%1-Position").tqarg(identifier), pos);
pos = (KMultiTabBar::KMultiTabBarPosition) m_restoreConfig->readNumEntry (TQString ("Kate-MDI-ToolView-%1-Position").arg(identifier), pos);
}
ToolView *v = m_sidebars[pos]->addWidget (icon, text, 0);
@ -710,7 +710,7 @@ bool MainWindow::moveToolView (ToolView *widget, KMultiTabBar::KMultiTabBarPosit
if (m_restoreConfig && m_restoreConfig->hasGroup (m_restoreGroup))
{
m_restoreConfig->setGroup (m_restoreGroup);
pos = (KMultiTabBar::KMultiTabBarPosition) m_restoreConfig->readNumEntry (TQString ("Kate-MDI-ToolView-%1-Position").tqarg(widget->id), pos);
pos = (KMultiTabBar::KMultiTabBarPosition) m_restoreConfig->readNumEntry (TQString ("Kate-MDI-ToolView-%1-Position").arg(widget->id), pos);
}
m_sidebars[pos]->addWidget (widget->icon, widget->text, widget);
@ -803,7 +803,7 @@ void MainWindow::finishRestore ()
m_restoreConfig->setGroup (m_restoreGroup);
for ( unsigned int i=0; i < m_toolviews.size(); ++i )
{
KMultiTabBar::KMultiTabBarPosition newPos = (KMultiTabBar::KMultiTabBarPosition) m_restoreConfig->readNumEntry (TQString ("Kate-MDI-ToolView-%1-Position").tqarg(m_toolviews[i]->id), m_toolviews[i]->sidebar()->sidebarPosition());
KMultiTabBar::KMultiTabBarPosition newPos = (KMultiTabBar::KMultiTabBarPosition) m_restoreConfig->readNumEntry (TQString ("Kate-MDI-ToolView-%1-Position").arg(m_toolviews[i]->id), m_toolviews[i]->sidebar()->sidebarPosition());
if (m_toolviews[i]->sidebar()->sidebarPosition() != newPos)
{

@ -105,7 +105,7 @@ void KTechlab::show()
void KTechlab::load( const KURL & url )
{
if ( url.url().tqendsWith( ".ktechlab", false ) )
if ( url.url().endsWith( ".ktechlab", false ) )
{
// This is a ktechlab project; it has to be handled separetly from a
// normal file.
@ -293,9 +293,9 @@ void KTechlab::overlayToolBarScreenshot()
// 128 is a sanity check (widget can do strange things when being destroyed)
if ( toolsWidget && toolsWidget->height() <= 128 )
grabRect |= toolsWidget->tqgeometry();
grabRect |= toolsWidget->geometry();
if ( debugWidget && debugWidget->height() <= 128 )
grabRect |= debugWidget->tqgeometry();
grabRect |= debugWidget->geometry();
if ( !grabRect.isValid() )
return;
@ -647,8 +647,8 @@ void KTechlab::saveProperties( KConfig *conf )
conf->setGroup("KateMDI");
int scnum = TQApplication::desktop()->screenNumber(parentWidget());
TQRect desk = TQApplication::desktop()->screenGeometry(scnum);
conf->deleteEntry( TQString::tqfromLatin1("Width %1").tqarg(desk.width()) );
conf->deleteEntry( TQString::tqfromLatin1("Height %1").tqarg(desk.height()) );
conf->deleteEntry( TQString::fromLatin1("Width %1").arg(desk.width()) );
conf->deleteEntry( TQString::fromLatin1("Height %1").arg(desk.height()) );
conf->sync();
}

@ -173,7 +173,7 @@ TQString FlowCode::generateMicrobe( const ItemList &itemList, MicroSettings *set
continue;
if ( !startPart->outputPart( nodeMapIt.key() ) )
outputWarning( i18n("Warning: Floating connection for %1").tqarg( startPart->id() ) );
outputWarning( i18n("Warning: Floating connection for %1").arg( startPart->id() ) );
}
FlowContainer * fc = dynamic_cast<FlowContainer*>((Item*)*it);
@ -259,7 +259,7 @@ TQString FlowCode::generateMicrobe( const ItemList &itemList, MicroSettings *set
if ( type.isEmpty() )
continue;
addCode( TQString("%1 %2 %3").tqarg( type ).tqarg( it.key() ).tqarg( it.data().pins().join(" ") ) );
addCode( TQString("%1 %2 %3").arg( type ).arg( it.key() ).arg( it.data().pins().join(" ") ) );
}
}

@ -63,7 +63,7 @@ void PicProgrammerSettings::initStaticConfigs()
m_bDoneStaticConfigsInit = true;
ProgrammerConfig config;
config.description = i18n("Supported programmers: %1").tqarg("JuPic, PICStart Plus, Warp-13");
config.description = i18n("Supported programmers: %1").arg("JuPic, PICStart Plus, Warp-13");
config.description += i18n("<br>Interface: Serial Port");
config.initCommand = "";
config.readCommand = "picp %port %device -rp %file";
@ -75,7 +75,7 @@ void PicProgrammerSettings::initStaticConfigs()
m_staticConfigs[ "PICP" ] = config;
config.description = i18n("Supported programmers: %1").tqarg("Epic Plus");
config.description = i18n("Supported programmers: %1").arg("Epic Plus");
config.description += i18n("<br>Interface: Parallel Port");
config.initCommand = "odyssey init";
config.readCommand = "odyssey %device read %file";
@ -87,7 +87,7 @@ void PicProgrammerSettings::initStaticConfigs()
m_staticConfigs[ "Odyssey" ] = config;
config.description = i18n("Supported programmers: %1").tqarg("JDM PIC-Programmer 2, PIC-PG2C");
config.description = i18n("Supported programmers: %1").arg("JDM PIC-Programmer 2, PIC-PG2C");
config.description += i18n("<br>Interface: Serial Port");
config.initCommand = "";
config.readCommand = "picprog --output %file --pic %port";
@ -98,7 +98,7 @@ void PicProgrammerSettings::initStaticConfigs()
m_staticConfigs[ "PICProg" ] = config;
config.description = i18n("Supported programmers: %1").tqarg("Epic Plus");
config.description = i18n("Supported programmers: %1").arg("Epic Plus");
config.description += i18n("<br>Interface: Parallel Port");
config.initCommand = "";
config.readCommand = "dump84 --dump-all --output=%file";
@ -109,7 +109,7 @@ void PicProgrammerSettings::initStaticConfigs()
m_staticConfigs[ "prog84" ] = config;
config.description = i18n("Supported programmers: %1").tqarg("Kit 149, Kit 150");
config.description = i18n("Supported programmers: %1").arg("Kit 149, Kit 150");
config.description += i18n("<br>Interface: USB Port");
config.initCommand = "";
config.readCommand = "pp -d %device -r %file";
@ -120,7 +120,7 @@ void PicProgrammerSettings::initStaticConfigs()
m_staticConfigs[ "PP" ] = config;
config.description = i18n("Supported programmers: %1").tqarg("Wisp628");
config.description = i18n("Supported programmers: %1").arg("Wisp628");
config.description += i18n("<br>Interface: Serial Port");
config.initCommand = "";
config.readCommand = "xwisp ID %device PORT %device DUMP";
@ -132,7 +132,7 @@ void PicProgrammerSettings::initStaticConfigs()
#if 0
config.description = i18n("Supported programmers: %1").tqarg("Epic Plus, JDM PIC-Programmer 2, PICCOLO, PICCOLO Grande, Trivial HVP Programmer");
config.description = i18n("Supported programmers: %1").arg("Epic Plus, JDM PIC-Programmer 2, PICCOLO, PICCOLO Grande, Trivial HVP Programmer");
config.description += i18n("<br>Interface: Serial Port and Parallel Port");
config.initCommand = "";
config.readCommand = "";
@ -145,7 +145,7 @@ void PicProgrammerSettings::initStaticConfigs()
config.executable = "";
config.description = i18n("Supported programmers: %1").tqarg("Trivial LVP programmer, Trivial HVP Programmer");
config.description = i18n("Supported programmers: %1").arg("Trivial LVP programmer, Trivial HVP Programmer");
config.description += i18n("<br>Interface: Parallel Port");
config.initCommand = "";
config.readCommand = "";
@ -156,7 +156,7 @@ void PicProgrammerSettings::initStaticConfigs()
m_staticConfigs[ "PicPrg2" ] = config;
config.description = i18n("Supported programmers: %1").tqarg("El Cheapo");
config.description = i18n("Supported programmers: %1").arg("El Cheapo");
config.description += i18n("<br>Interface: Parallel Port");
config.initCommand = "";
config.readCommand = "";
@ -167,7 +167,7 @@ void PicProgrammerSettings::initStaticConfigs()
m_staticConfigs[ "PP06" ] = config;
config.description = i18n("Supported programmers: %1").tqarg("NOPPP");
config.description = i18n("Supported programmers: %1").arg("NOPPP");
config.description += i18n("<br>Interface: Parallel Port");
config.initCommand = "";
config.readCommand = "";
@ -178,7 +178,7 @@ void PicProgrammerSettings::initStaticConfigs()
m_staticConfigs[ "NOPPP" ] = config;
config.description = i18n("Supported programmers: %1").tqarg("SNOPPP");
config.description = i18n("Supported programmers: %1").arg("SNOPPP");
config.description += i18n("<br>Interface: Parallel Port");
config.initCommand = "";
config.readCommand = "";
@ -232,7 +232,7 @@ void PicProgrammerSettings::save( KConfig * config )
ProgrammerConfigMap::iterator end = m_customConfigs.end();
for ( ProgrammerConfigMap::iterator it = m_customConfigs.begin(); it != end; ++it )
{
config->setGroup( TQString("CustomProgrammer_%1").tqarg(at++) );
config->setGroup( TQString("CustomProgrammer_%1").arg(at++) );
config->writeEntry( "Name", it.key() );
config->writeEntry( "InitCommand", it.data().initCommand );

@ -56,7 +56,7 @@ ProcessChain::ProcessChain( ProcessOptions options, KTechlab * ktechlab, const c
else
target = options.targetFile();
LanguageManager::self()->logView()->addOutput( i18n("Building: %1").tqarg( target ), LogView::ot_important );
LanguageManager::self()->logView()->addOutput( i18n("Building: %1").arg( target ), LogView::ot_important );
TQTimer::singleShot( 0, this, TQT_SLOT(compile()) );
}

@ -40,7 +40,7 @@ void SDCC::processInput( ProcessOptions options )
MicroInfo * info = MicroLibrary::self()->microInfoWithID( options.m_picID );
if (!info)
{
outputError( i18n("Could not find PIC with ID \"%1\".").tqarg(options.m_picID) );
outputError( i18n("Could not find PIC with ID \"%1\".").arg(options.m_picID) );
return;
}
@ -50,7 +50,7 @@ void SDCC::processInput( ProcessOptions options )
//BEGIN Pass custom sdcc options
#define ARG(text,option) if ( KTLConfig::text() ) *m_languageProcess << ( TQString("--%1").tqarg(option) );
#define ARG(text,option) if ( KTLConfig::text() ) *m_languageProcess << ( TQString("--%1").arg(option) );
// General
ARG( sDCC_nostdlib, "nostdlib" )
ARG( sDCC_nostdinc, "nostdinc" )

@ -71,9 +71,9 @@ void MechanicsGroup::removeChildren( Item *item )
if (!item)
return;
const ItemList tqchildren = item->tqchildren();
const ItemList::const_iterator end = tqchildren.end();
for ( ItemList::const_iterator it = tqchildren.begin(); it != end; ++it )
const ItemList children = item->children();
const ItemList::const_iterator end = children.end();
for ( ItemList::const_iterator it = children.begin(); it != end; ++it )
{
removeChildren(*it);
removeItem(*it);

@ -42,7 +42,7 @@ public:
*/
void setRaised( bool isRaised );
/**
* Removes all the tqchildren of the given item from the group
* Removes all the children of the given item from the group
*/
void removeChildren( Item *item );
bool addItem( Item *item );

@ -206,8 +206,8 @@ void MechanicsItem::updateMechanicsInfoCombined()
double mass_x = 0.;
double mass_y = 0.;
const ItemList::const_iterator end = m_tqchildren.end();
for ( ItemList::const_iterator it = m_tqchildren.begin(); it != end; ++it )
const ItemList::const_iterator end = m_children.end();
for ( ItemList::const_iterator it = m_children.begin(); it != end; ++it )
{
MechanicsItem *child = dynamic_cast<MechanicsItem*>((Item*)*it);
if (child)

@ -158,12 +158,12 @@ public:
PositionInfo relativePosition() const { return m_relativePosition; }
/**
* Returns the mechanics info for this item (so not taking into account that
* of attached tqchildren)
* of attached children)
*/
MechanicsInfo *mechanicsInfo() { return &m_mechanicsInfo; }
/**
* Returns the combined mechanics info for this item (which takes into
* account that of attached tqchildren).
* account that of attached children).
*/
CombinedMechanicsInfo *mechanicsInfoCombined() { return &m_mechanicsInfoCombined; }
/**

@ -83,7 +83,7 @@ void Node::setVisible( bool yes )
if ( isVisible() == yes )
return;
TQCanvasPolygon::tqsetVisible(yes);
TQCanvasPolygon::setVisible(yes);
const ConnectorList::iterator inputEnd = m_inputConnectorList.end();
for ( ConnectorList::iterator it = m_inputConnectorList.begin(); it != inputEnd; ++it )

@ -177,7 +177,7 @@ public:
void removeNullConnectors();
/**
* Draw tqshape. Note that this has to remain public.
* Draw shape. Note that this has to remain public.
*/
virtual void drawShape( TQPainter &p ) = 0;

@ -377,10 +377,10 @@ void PicItem::updateVisibility()
const PinItemList::iterator end = m_pinItemList.end();
for ( PinItemList::iterator it = m_pinItemList.begin(); it != end; ++it )
(*it)->tqsetVisible(m_bExpanded);
(*it)->setVisible(m_bExpanded);
if ( Button * btn = button("settings") )
btn->tqsetVisible(m_bExpanded);
btn->setVisible(m_bExpanded);
}

@ -192,11 +192,11 @@ ProjectItem::ProjectItem( ProjectItem * parent, Type type, ProjectManager * proj
ProjectItem::~ProjectItem()
{
m_tqchildren.remove( (ProjectItem*)0l );
ProjectItemList::iterator end = m_tqchildren.end();
for ( ProjectItemList::iterator it = m_tqchildren.begin(); it != end; ++it )
m_children.remove( (ProjectItem*)0l );
ProjectItemList::iterator end = m_children.end();
for ( ProjectItemList::iterator it = m_children.begin(); it != end; ++it )
(*it)->deleteLater();
m_tqchildren.clear();
m_children.clear();
delete m_pILVItem;
m_pILVItem = 0l;
@ -254,10 +254,10 @@ void ProjectItem::updateILVItemPixmap()
void ProjectItem::addChild( ProjectItem * child )
{
if ( !child || m_tqchildren.contains(child) )
if ( !child || m_children.contains(child) )
return;
m_tqchildren << child;
m_children << child;
child->setILVItem( m_pILVItem ?
new ILVItem( m_pILVItem, child->name() ) :
@ -283,9 +283,9 @@ void ProjectItem::updateControlChildMicroIDs()
break;
}
m_tqchildren.remove( (ProjectItem*)0l );
ProjectItemList::iterator end = m_tqchildren.end();
for ( ProjectItemList::iterator it = m_tqchildren.begin(); it != end; ++it )
m_children.remove( (ProjectItem*)0l );
ProjectItemList::iterator end = m_children.end();
for ( ProjectItemList::iterator it = m_children.begin(); it != end; ++it )
(*it)->setUseParentMicroID( control );
}
@ -420,7 +420,7 @@ bool ProjectItem::build( ProcessOptionsList * pol )
if ( outputURL().isEmpty() )
{
KMessageBox::sorry( 0l, i18n("Don't know how to build \"%1\" (output url is empty).").tqarg(name()) );
KMessageBox::sorry( 0l, i18n("Don't know how to build \"%1\" (output url is empty).").arg(name()) );
return false;
}
@ -431,7 +431,7 @@ bool ProjectItem::build( ProcessOptionsList * pol )
ProjectItem * lib = projectInfo->findItem( projectInfo->directory() + *it );
if ( !lib )
{
KMessageBox::sorry( 0l, i18n("Don't know how to build \"%1\" (library does not exist in project).").tqarg(*it) );
KMessageBox::sorry( 0l, i18n("Don't know how to build \"%1\" (library does not exist in project).").arg(*it) );
return false;
}
@ -440,10 +440,10 @@ bool ProjectItem::build( ProcessOptionsList * pol )
}
// Build all tqchildren
m_tqchildren.remove( (ProjectItem*)0l );
ProjectItemList::iterator cend = m_tqchildren.end();
for ( ProjectItemList::iterator it = m_tqchildren.begin(); it != cend; ++it )
// Build all children
m_children.remove( (ProjectItem*)0l );
ProjectItemList::iterator cend = m_children.end();
for ( ProjectItemList::iterator it = m_children.begin(); it != cend; ++it )
{
if ( ! (*it)->build(pol) )
return false;
@ -461,7 +461,7 @@ bool ProjectItem::build( ProcessOptionsList * pol )
switch ( outputType() )
{
case UnknownOutput:
KMessageBox::sorry( 0l, i18n("Don't know how to build \"%1\" (unknown output type).").tqarg(name()) );
KMessageBox::sorry( 0l, i18n("Don't know how to build \"%1\" (unknown output type).").arg(name()) );
return false;
case ProgramOutput:
@ -494,9 +494,9 @@ bool ProjectItem::build( ProcessOptionsList * pol )
TQStringList inputFiles;
// Link child objects
m_tqchildren.remove( (ProjectItem*)0l );
ProjectItemList::iterator cend = m_tqchildren.end();
for ( ProjectItemList::iterator it = m_tqchildren.begin(); it != cend; ++it )
m_children.remove( (ProjectItem*)0l );
ProjectItemList::iterator cend = m_children.end();
for ( ProjectItemList::iterator it = m_children.begin(); it != cend; ++it )
inputFiles << (*it)->outputURL().path();
po.setInputFiles(inputFiles);
@ -565,8 +565,8 @@ TQDomElement ProjectItem::toDomElement( TQDomDocument & doc, const KURL & baseUR
node.appendChild( ProcessingOptions::toDomElement( doc, baseURL ) );
ProjectItemList::const_iterator end = m_tqchildren.end();
for ( ProjectItemList::const_iterator it = m_tqchildren.begin(); it != end; ++it )
ProjectItemList::const_iterator end = m_children.end();
for ( ProjectItemList::const_iterator it = m_children.begin(); it != end; ++it )
{
if (*it)
node.appendChild( (*it)->toDomElement( doc, baseURL ) );
@ -580,8 +580,8 @@ KURL::List ProjectItem::childOutputURLs( unsigned types, unsigned outputTypes )
{
KURL::List urls;
ProjectItemList::const_iterator end = m_tqchildren.end();
for ( ProjectItemList::const_iterator it = m_tqchildren.begin(); it != end; ++it )
ProjectItemList::const_iterator end = m_children.end();
for ( ProjectItemList::const_iterator it = m_children.begin(); it != end; ++it )
{
if (!*it)
continue;
@ -601,8 +601,8 @@ ProjectItem * ProjectItem::findItem( const KURL & url )
if ( this->url() == url )
return this;
ProjectItemList::const_iterator end = m_tqchildren.end();
for ( ProjectItemList::const_iterator it = m_tqchildren.begin(); it != end; ++it )
ProjectItemList::const_iterator end = m_children.end();
for ( ProjectItemList::const_iterator it = m_children.begin(); it != end; ++it )
{
if (!*it)
continue;
@ -622,9 +622,9 @@ bool ProjectItem::closeOpenFiles()
if ( doc && !doc->fileClose() )
return false;
m_tqchildren.remove( (ProjectItem*)0l );
ProjectItemList::iterator end = m_tqchildren.end();
for ( ProjectItemList::iterator it = m_tqchildren.begin(); it != end; ++it )
m_children.remove( (ProjectItem*)0l );
ProjectItemList::iterator end = m_children.end();
for ( ProjectItemList::iterator it = m_children.begin(); it != end; ++it )
{
if ( !(*it)->closeOpenFiles() )
return false;
@ -668,9 +668,9 @@ void ProjectItem::addFile( const KURL & url )
if ( url.isEmpty() )
return;
m_tqchildren.remove( (ProjectItem*)0l );
ProjectItemList::iterator end = m_tqchildren.end();
for ( ProjectItemList::iterator it = m_tqchildren.begin(); it != end; ++it )
m_children.remove( (ProjectItem*)0l );
ProjectItemList::iterator end = m_children.end();
for ( ProjectItemList::iterator it = m_children.begin(); it != end; ++it )
{
if ( (*it)->type() == FileType && (*it)->url() == url )
return;
@ -788,7 +788,7 @@ bool ProjectInfo::open( const KURL & url )
TQFile file(target);
if ( !file.open( IO_ReadOnly ) )
{
KMessageBox::sorry( 0l, i18n("Could not open %1 for reading").tqarg(target) );
KMessageBox::sorry( 0l, i18n("Could not open %1 for reading").arg(target) );
return false;
}
@ -805,7 +805,7 @@ bool ProjectInfo::open( const KURL & url )
TQString errorMessage;
if ( !doc.setContent( xml, &errorMessage ) )
{
KMessageBox::sorry( 0l, i18n("Couldn't parse xml:\n%1").tqarg(errorMessage) );
KMessageBox::sorry( 0l, i18n("Couldn't parse xml:\n%1").arg(errorMessage) );
return false;
}
@ -845,7 +845,7 @@ bool ProjectInfo::save()
TQFile file( m_url.path() );
if ( file.open(IO_WriteOnly) == false )
{
KMessageBox::sorry( NULL, i18n("Project could not be saved to \"%1\"").tqarg(m_url.path()), i18n("Saving Project") );
KMessageBox::sorry( NULL, i18n("Project could not be saved to \"%1\"").arg(m_url.path()), i18n("Saving Project") );
return false;
}
@ -857,9 +857,9 @@ bool ProjectInfo::save()
// root.appendChild( LinkerOptions::toDomElement(doc) );
// root.appendChild( ProcessingOptions::toDomElement(doc) );
m_tqchildren.remove( (ProjectItem*)0l );
ProjectItemList::const_iterator end = m_tqchildren.end();
for ( ProjectItemList::const_iterator it = m_tqchildren.begin(); it != end; ++it )
m_children.remove( (ProjectItem*)0l );
ProjectItemList::const_iterator end = m_children.end();
for ( ProjectItemList::const_iterator it = m_children.begin(); it != end; ++it )
root.appendChild( (*it)->toDomElement( doc, m_url ) );
TQTextStream stream(&file);
@ -1130,7 +1130,7 @@ void ProjectManager::slotRemoveSelected()
if ( !currentItem )
return;
int choice = KMessageBox::questionYesNo( this, i18n("Do you really want to remove \"%1\"?").tqarg( currentItem->text(0) ), i18n("Remove Project File?"), KGuiItem(i18n("Remove")), KGuiItem(i18n("Cancel")) );
int choice = KMessageBox::questionYesNo( this, i18n("Do you really want to remove \"%1\"?").arg( currentItem->text(0) ), i18n("Remove Project File?"), KGuiItem(i18n("Remove")), KGuiItem(i18n("Cancel")) );
if ( choice == KMessageBox::No )
return;

@ -160,11 +160,11 @@ class ProjectItem : public TQObject, public LinkerOptions, public ProcessingOpti
void setILVItem( ILVItem * ilvItem );
/**
* Adds the child to the list of tqchildren, and creates an ILVItem for it
* Adds the child to the list of children, and creates an ILVItem for it
* in the project tree view.
*/
void addChild( ProjectItem * child );
ProjectItemList tqchildren() const { return m_tqchildren; }
ProjectItemList children() const { return m_children; }
void setName( const TQString & name );
TQString name() const { return m_name; }
@ -180,12 +180,12 @@ class ProjectItem : public TQObject, public LinkerOptions, public ProcessingOpti
OutputType outputType() const;
/**
* Returns a list of output urls of the tqchildren and their recursively
* contained tqchildren (does not include the url for this project item).
* Returns a list of output urls of the children and their recursively
* contained children (does not include the url for this project item).
* @param types An OR'ed list of ProjectItem::Type values for the
* tqchildren.
* children.
* @param outputTypes An OR'ed list of ProjectItem::OutputType values
* for the tqchildren.
* for the children.
*/
KURL::List childOutputURLs( unsigned types = AllTypes, unsigned outputTypes = AllOutputs ) const;
@ -210,7 +210,7 @@ class ProjectItem : public TQObject, public LinkerOptions, public ProcessingOpti
virtual TQString microID() const;
/**
* Searches this item and the tqchildren for an item for the given url,
* Searches this item and the children for an item for the given url,
* return null if no such item could be found.
*/
ProjectItem * findItem( const KURL & url );
@ -222,7 +222,7 @@ class ProjectItem : public TQObject, public LinkerOptions, public ProcessingOpti
KURL m_url;
TQString m_name;
ProjectItemList m_tqchildren;
ProjectItemList m_children;
Type m_type;
KTechlab * p_ktechlab;

@ -86,7 +86,7 @@ void RecentFilesAction::loadEntries()
// read file list
for( unsigned int i = 1 ; i <= m_maxItems ; i++ )
{
key = TQString( "File%1" ).tqarg( i );
key = TQString( "File%1" ).arg( i );
value = config->readPathEntry( key );
if (!value.isNull())
@ -116,7 +116,7 @@ void RecentFilesAction::saveEntries()
// write file list
for( unsigned int i = 1 ; i <= lst.count() ; i++ )
{
key = TQString( "File%1" ).tqarg( i );
key = TQString( "File%1" ).arg( i );
value = lst[ i - 1 ];
config->writePathEntry( key, value );
}

@ -45,7 +45,7 @@ void ResizeOverlay::showResizeHandles( bool show )
const ResizeHandleMap::iterator end = m_resizeHandleMap.end();
for ( ResizeHandleMap::iterator it = m_resizeHandleMap.begin(); it != end; ++it )
{
it.data()->tqsetVisible(b_showResizeHandles && b_visible);
it.data()->setVisible(b_showResizeHandles && b_visible);
}
}
@ -56,7 +56,7 @@ void ResizeOverlay::setVisible( bool visible )
const ResizeHandleMap::iterator end = m_resizeHandleMap.end();
for ( ResizeHandleMap::iterator it = m_resizeHandleMap.begin(); it != end; ++it )
{
it.data()->tqsetVisible(b_showResizeHandles && b_visible);
it.data()->setVisible(b_showResizeHandles && b_visible);
}
}
@ -345,8 +345,8 @@ TQRect RectangularOverlay::getSizeRect( bool *ok, bool *widthOk, bool *heightOk
int(m_tl->y() - p_item->y()),
width, height );
*widthOk = sizeRect.width() >= p_item->tqminimumSize().width();
*heightOk = sizeRect.height() >= p_item->tqminimumSize().height();
*widthOk = sizeRect.width() >= p_item->minimumSize().width();
*heightOk = sizeRect.height() >= p_item->minimumSize().height();
*ok = *widthOk && *heightOk;
return sizeRect;

@ -603,9 +603,9 @@ void TextDocument::slotUpdateMarksInfo()
{
if ( mark->type & Bookmark )
{
KAction * a = new KAction( i18n("%1 - %2").tqarg( TQString::number( mark->line+1 ) ).tqarg( m_doc->textLine(mark->line) ),
KAction * a = new KAction( i18n("%1 - %2").arg( TQString::number( mark->line+1 ) ).arg( m_doc->textLine(mark->line) ),
0, this, TQT_SLOT(slotBookmarkRequested()), this,
TQString("bookmark_%1").tqarg(TQString::number(mark->line).ascii()) );
TQString("bookmark_%1").arg(TQString::number(mark->line).ascii()) );
m_bookmarkActions.append(a);
}
}

@ -262,7 +262,7 @@ void TextView::slotCursorPositionChanged()
uint line, column;
m_view->cursorPosition( &line, &column );
m_statusBar->changeItem( i18n(" Line: %1 Col: %2 ").tqarg(TQString::number(line+1)).tqarg(TQString::number(column+1)), ViewStatusBar::LineCol );
m_statusBar->changeItem( i18n(" Line: %1 Col: %2 ").arg(TQString::number(line+1)).arg(TQString::number(column+1)), ViewStatusBar::LineCol );
slotUpdateMarksInfo();
}
@ -369,7 +369,7 @@ void TextView::slotWordUnhovered()
//BEGIN class TextViewEventFilter
TextViewEventFilter::TextViewEventFilter( TextView * textView )
{
m_hovertqStatus = Sleeping;
m_hoverStatus = Sleeping;
m_pTextView = textView;
m_lastLine = m_lastCol = -1;
@ -410,14 +410,14 @@ bool TextViewEventFilter::eventFilter( TQObject *, TQEvent * e )
void TextViewEventFilter::hoverTimeout()
{
m_pSleepTimer->stop();
m_hovertqStatus = Active;
m_hoverStatus = Active;
emit wordHoveredOver( m_lastWord, m_lastLine, m_lastCol );
}
void TextViewEventFilter::gotoSleep()
{
m_hovertqStatus = Sleeping;
m_hoverStatus = Sleeping;
m_lastWord = TQString();
emit wordUnhovered();
m_pHoverTimer->stop();
@ -441,8 +441,8 @@ void TextViewEventFilter::updateHovering( const TQString & currentWord, int line
if ( currentWord.isEmpty() )
{
if ( m_hovertqStatus == Active )
m_hovertqStatus = Hidden;
if ( m_hoverStatus == Active )
m_hoverStatus = Hidden;
emit wordUnhovered();
if ( !m_pSleepTimer->isActive() )
@ -451,7 +451,7 @@ void TextViewEventFilter::updateHovering( const TQString & currentWord, int line
return;
}
if ( m_hovertqStatus != Sleeping )
if ( m_hoverStatus != Sleeping )
emit wordHoveredOver( currentWord, line, col );
else
m_pHoverTimer->start( 700, true );

@ -141,7 +141,7 @@ class TextViewEventFilter : public TQObject
void slotNoWordTimeout();
protected:
enum HovertqStatus
enum HoverStatus
{
/**
* We are currently hovering - wordHoveredOver was emitted, and
@ -186,7 +186,7 @@ class TextViewEventFilter : public TQObject
TQString m_lastWord;
int m_lastLine;
int m_lastCol;
HovertqStatus m_hovertqStatus;
HoverStatus m_hoverStatus;
};
#endif

@ -27,7 +27,7 @@ VariableLabel::VariableLabel( TextView * parent )
setAutoMask( FALSE );
setFrameStyle( TQFrame::Plain | TQFrame::Box );
setLineWidth( 1 );
tqsetAlignment( AlignAuto | AlignTop );
setAlignment( AlignAuto | AlignTop );
setIndent(0);
polish();
adjustSize();
@ -77,7 +77,7 @@ void VariableLabel::setValue( unsigned value )
void VariableLabel::updateText()
{
if ( m_pRegisterInfo )
setText( TQString("%1 = %2").tqarg( m_registerName ).tqarg( SymbolViewer::self()->toDisplayString( m_pRegisterInfo->value() ) ) );
setText( TQString("%1 = %2").arg( m_registerName ).arg( SymbolViewer::self()->toDisplayString( m_pRegisterInfo->value() ) ) );
else if ( m_value != -1 )
setText( TQString::number( m_value ) );

@ -49,9 +49,9 @@ class KVSSBSep : public TQWidget {
void paintEvent( TQPaintEvent *e )
{
TQPainter p( this );
p.setPen( tqcolorGroup().shadow() );
p.setPen( colorGroup().shadow() );
p.drawLine( e->rect().left(), 0, e->rect().right(), 0 );
p.setPen( ((View*)parentWidget())->isFocused() ? tqcolorGroup().light() : tqcolorGroup().midlight() );
p.setPen( ((View*)parentWidget())->isFocused() ? colorGroup().light() : colorGroup().midlight() );
p.drawLine( e->rect().left(), 1, e->rect().right(), 1 );
}
};

@ -29,11 +29,11 @@ ViewContainer::ViewContainer( const TQString & caption, KTechlab * ktechlab, TQW
if (ktechlab)
connect( ktechlab, TQT_SIGNAL(needUpdateCaptions()), this, TQT_SLOT(updateCaption()) );
TQHBoxLayout *tqlayout = new TQHBoxLayout(this);
TQHBoxLayout *layout = new TQHBoxLayout(this);
m_baseViewArea = new ViewArea( this, this, 0, "viewarea_0" );
connect( m_baseViewArea, TQT_SIGNAL(destroyed(TQObject* )), this, TQT_SLOT(baseViewAreaDestroyed(TQObject* )) );
tqlayout->addWidget(m_baseViewArea);
layout->addWidget(m_baseViewArea);
m_activeViewArea = 0;
b_focused = false;

@ -68,7 +68,7 @@ public:
*/
ViewArea *createViewArea( Position position, uint id );
/**
* Adds the given View to the main part of the tqlayout
* Adds the given View to the main part of the layout
*/
void setView( View *view );
/**
@ -82,7 +82,7 @@ public:
void restoreState( KConfig *config, int id, const TQString &groupName );
/**
* Returns true if this ViewArea can save useful information as to its state
* (i.e. it's tqchildren can save useful information about their state, or has
* (i.e. it's children can save useful information about their state, or has
* a view with a url in it)
*/
bool canSaveUsefulStateInfo() const;
@ -197,7 +197,7 @@ public:
*/
void setIdUsed( int id );
/**
* Writes the state of the View Container (tqlayout of views and view URLs)
* Writes the state of the View Container (layout of views and view URLs)
* to the given KConfig. Doesn't change the group - so preset it if
* needed!
*/
@ -218,7 +218,7 @@ public:
int uniqueNewId();
/**
* Returns true if this ViewArea can save useful information as to its state
* (i.e. it's tqchildren can save useful information about their state, or has
* (i.e. it's children can save useful information about their state, or has
* a view with a url in it)
*/
bool canSaveUsefulStateInfo() const;

Loading…
Cancel
Save