summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/test/kbase/KBaseView.java
blob: 59554607f362015c18b6fd0a2aeacb04bba0fcbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import org.kde.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();
}

}