You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1015 B
37 lines
1015 B
11 years ago
|
import org.trinitydesktop.qt.*;
|
||
15 years ago
|
|
||
|
/** The KBaseView class provides the view widget for the KBase instance.
|
||
13 years ago
|
* The View instance inherits TQWidget as a base class and represents the view object of a KTMainWindow. As KBaseView is part of the
|
||
15 years ago
|
* 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
|
||
|
*/
|
||
13 years ago
|
public class KBaseView extends TQWidget {
|
||
15 years ago
|
|
||
13 years ago
|
public KBaseView(TQWidget parent, String name)
|
||
15 years ago
|
{
|
||
|
super(parent, name);
|
||
|
setBackgroundMode(PaletteBase);
|
||
|
}
|
||
|
|
||
|
public KBaseDoc getDocument()
|
||
|
{
|
||
|
KBase theApp=(KBase) parentWidget();
|
||
|
|
||
|
return theApp.getDocument();
|
||
|
}
|
||
|
|
||
13 years ago
|
public void print(TQPrinter pPrinter)
|
||
15 years ago
|
{
|
||
13 years ago
|
TQPainter printpainter = new TQPainter();
|
||
15 years ago
|
printpainter.begin(pPrinter);
|
||
11 years ago
|
|
||
15 years ago
|
// TODO: add your printing code here
|
||
|
|
||
|
printpainter.end();
|
||
|
}
|
||
|
|
||
|
}
|