diff options
author | Darrell Anderson <humanreadable@yahoo.com> | 2014-01-08 20:06:00 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2014-01-08 20:06:00 +0100 |
commit | 636f509299122d02087c6fd62e1e4a46dbd22026 (patch) | |
tree | 70e43efceeb5b00e7f19cdac8da44928bd2fb459 /tdejava/koala/test/kbase/KBaseView.java | |
parent | 719b61750c08343f530068ed4127623aeac71cf0 (diff) | |
download | tdebindings-636f509299122d02087c6fd62e1e4a46dbd22026.tar.gz tdebindings-636f509299122d02087c6fd62e1e4a46dbd22026.zip |
Rename many classes to avoid conflicts with KDE
Diffstat (limited to 'tdejava/koala/test/kbase/KBaseView.java')
-rw-r--r-- | tdejava/koala/test/kbase/KBaseView.java | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/tdejava/koala/test/kbase/KBaseView.java b/tdejava/koala/test/kbase/KBaseView.java new file mode 100644 index 00000000..c258d47d --- /dev/null +++ b/tdejava/koala/test/kbase/KBaseView.java @@ -0,0 +1,36 @@ +import org.trinitydesktop.qt.*; + +/** The KBaseView class provides the view widget for the KBase instance. + * The View instance inherits TQWidget as a base class and represents the view object of a KTMainWindow. As KBaseView is part of the + * docuement-view model, it needs a reference to the document object connected with it by the KBase class to manipulate and display + * the document structure provided by the KBaseDoc class. + * + * @author Source Framework Automatically Generated by KDevelop, (c) The KDevelop Team. + * @version KDevelop version 0.4 code generation + */ +public class KBaseView extends TQWidget { + +public KBaseView(TQWidget parent, String name) +{ + super(parent, name); + setBackgroundMode(PaletteBase); +} + +public KBaseDoc getDocument() +{ + KBase theApp=(KBase) parentWidget(); + + return theApp.getDocument(); +} + +public void print(TQPrinter pPrinter) +{ + TQPainter printpainter = new TQPainter(); + printpainter.begin(pPrinter); + + // TODO: add your printing code here + + printpainter.end(); +} + +} |