summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/examples/kscribble/KScribbleDoc.java
diff options
context:
space:
mode:
Diffstat (limited to 'kdejava/koala/examples/kscribble/KScribbleDoc.java')
-rw-r--r--kdejava/koala/examples/kscribble/KScribbleDoc.java36
1 files changed, 18 insertions, 18 deletions
diff --git a/kdejava/koala/examples/kscribble/KScribbleDoc.java b/kdejava/koala/examples/kscribble/KScribbleDoc.java
index d51af4e1..bbb5c10b 100644
--- a/kdejava/koala/examples/kscribble/KScribbleDoc.java
+++ b/kdejava/koala/examples/kscribble/KScribbleDoc.java
@@ -13,15 +13,15 @@ import org.kde.koala.*;
* @author Source Framework Automatically Generated by KDevelop, (c) The KDevelop Team.
* @version KDevelop version 1.2 code generation
*/
-public class KScribbleDoc extends QObject {
+public class KScribbleDoc extends TQObject {
/** the list of the views currently connected to the document */
private ArrayList pViewList;
private String m_title;
private String m_filename;
- private QSize size;
- private QPen pen;
- public QPointArray polyline;
+ private TQSize size;
+ private TQPen pen;
+ public TQPointArray polyline;
public KPixmap buffer;
/** the modified flag of the current document */
@@ -83,7 +83,7 @@ public class KScribbleDoc extends QObject {
void setPathName(String name) {
m_filename=name;
- m_title= new QFileInfo(name).fileName();
+ m_title= new TQFileInfo(name).fileName();
}
String pathName() {
@@ -91,7 +91,7 @@ public class KScribbleDoc extends QObject {
}
/** returns the current pen in use */
- QPen currentPen() {
+ TQPen currentPen() {
return pen;
}
@@ -101,7 +101,7 @@ public class KScribbleDoc extends QObject {
}
/** returns the pen color */
- QColor penColor(){
+ TQColor penColor(){
return pen.color();
}
@@ -111,7 +111,7 @@ public class KScribbleDoc extends QObject {
}
/** sets the pen color */
- void setPenColor( QColor c ){
+ void setPenColor( TQColor c ){
pen.setColor( c );
}
@@ -134,7 +134,7 @@ public class KScribbleDoc extends QObject {
void setPixmap(KPixmap pix) {
buffer=pix;
};
- void resizeDocument(QSize m_size) {
+ void resizeDocument(TQSize m_size) {
size=m_size;
};
@@ -159,11 +159,11 @@ public class KScribbleDoc extends QObject {
boolean newDocument() {
/////////////////////////////////////////////////
// TODO: Add your document initialization code here
- size=new QSize(300,200 );
- pen= new QPen();
+ size=new TQSize(300,200 );
+ pen= new TQPen();
pen.setColor(Qt.black());
pen.setWidth(3);
- polyline= new QPointArray(3);
+ polyline= new TQPointArray(3);
if (buffer == null) {
buffer = new KPixmap();
}
@@ -176,7 +176,7 @@ public class KScribbleDoc extends QObject {
public boolean openDocument(String filename, String format) {
- QFile f = new QFile( filename );
+ TQFile f = new TQFile( filename );
// if ( !f.open( IO_ReadOnly ) )
// return false;
/////////////////////////////////////////////////
@@ -189,7 +189,7 @@ public class KScribbleDoc extends QObject {
modified=false;
m_filename=filename;
- m_title=new QFileInfo(f).fileName();
+ m_title=new TQFileInfo(f).fileName();
return true;
}
@@ -203,7 +203,7 @@ public class KScribbleDoc extends QObject {
};
boolean saveDocument(String filename, String format /*=0*/) {
- QFile f = new QFile( filename );
+ TQFile f = new TQFile( filename );
// if ( !f.open( IO_WriteOnly ) )
// return false;
@@ -217,7 +217,7 @@ public class KScribbleDoc extends QObject {
modified=false;
m_filename=filename;
- m_title=new QFileInfo(f).fileName();
+ m_title=new TQFileInfo(f).fileName();
return true;
}
@@ -249,7 +249,7 @@ public class KScribbleDoc extends QObject {
{
case KMessageBox.Yes:
if(title().indexOf(i18n("Untitled")) > 0) {
- saveName= KFileDialog.getSaveFileName(QDir.currentDirPath(),
+ saveName= KFileDialog.getSaveFileName(TQDir.currentDirPath(),
i18n("*|All files"), pFrame, i18n("Save as..."));
if(saveName == null || saveName.length() == 0)
return false;
@@ -286,7 +286,7 @@ public class KScribbleDoc extends QObject {
}
/** get the document size */
- QSize docSize() {
+ TQSize docSize() {
return size;
}