summaryrefslogtreecommitdiffstats
path: root/tdejava/koala/test/kbase/KBase.java
diff options
context:
space:
mode:
Diffstat (limited to 'tdejava/koala/test/kbase/KBase.java')
-rw-r--r--tdejava/koala/test/kbase/KBase.java36
1 files changed, 18 insertions, 18 deletions
diff --git a/tdejava/koala/test/kbase/KBase.java b/tdejava/koala/test/kbase/KBase.java
index e556adfc..e14219e6 100644
--- a/tdejava/koala/test/kbase/KBase.java
+++ b/tdejava/koala/test/kbase/KBase.java
@@ -55,8 +55,8 @@ public class KBase extends TDEMainWindow
public KBase(TQWidget parent, String name)
{
super(parent, name, 0);
- TDEApplication kapp = TDEApplication.kApplication();
- config=kapp.config();
+ TDEApplication tdeApp = TDEApplication.tdeApplication();
+ config=tdeApp.config();
///////////////////////////////////////////////////////////////////
// call inits to invoke all other construction parts
@@ -84,22 +84,22 @@ public KBase()
/** initializes the TDEActions of the application */
protected void initActions()
{
- fileNewWindow = new TDEAction(tr("New &Window"), "", new TDEShortcut(), this, SLOT("slotFileNewWindow()"), actionCollection(),"file_new_window");
- fileNew = KStdAction.openNew(this, SLOT("slotFileNew()"), actionCollection());
- fileOpen = KStdAction.open(this, SLOT("slotFileOpen()"), actionCollection());
- fileOpenRecent = (TDERecentFilesAction) KStdAction.openRecent(this, SLOT("slotFileOpenRecent(KURL)"), actionCollection());
- fileSave = KStdAction.save(this, SLOT("slotFileSave()"), actionCollection());
- fileSaveAs = KStdAction.saveAs(this, SLOT("slotFileSaveAs()"), actionCollection());
+ fileNewWindow = new TDEAction(tr("New &Window"), "", new TDEShortcut(), this, TQ_SLOT("slotFileNewWindow()"), actionCollection(),"file_new_window");
+ fileNew = KStdAction.openNew(this, TQ_SLOT("slotFileNew()"), actionCollection());
+ fileOpen = KStdAction.open(this, TQ_SLOT("slotFileOpen()"), actionCollection());
+ fileOpenRecent = (TDERecentFilesAction) KStdAction.openRecent(this, TQ_SLOT("slotFileOpenRecent(KURL)"), actionCollection());
+ fileSave = KStdAction.save(this, TQ_SLOT("slotFileSave()"), actionCollection());
+ fileSaveAs = KStdAction.saveAs(this, TQ_SLOT("slotFileSaveAs()"), actionCollection());
// this one crashes for me...
-// fileClose = KStdAction.close(this, SLOT(slotFileClose()), actionCollection());
- filePrint = KStdAction.print(this, SLOT("slotFilePrint()"), actionCollection());
- fileQuit = KStdAction.quit(this, SLOT("slotFileQuit()"), actionCollection());
- editCut = KStdAction.cut(this, SLOT("slotEditCut()"), actionCollection());
- editCopy = KStdAction.copy(this, SLOT("slotEditCopy()"), actionCollection());
- editPaste = KStdAction.paste(this, SLOT("slotEditPaste()"), actionCollection());
+// fileClose = KStdAction.close(this, TQ_SLOT(slotFileClose()), actionCollection());
+ filePrint = KStdAction.print(this, TQ_SLOT("slotFilePrint()"), actionCollection());
+ fileQuit = KStdAction.quit(this, TQ_SLOT("slotFileQuit()"), actionCollection());
+ editCut = KStdAction.cut(this, TQ_SLOT("slotEditCut()"), actionCollection());
+ editCopy = KStdAction.copy(this, TQ_SLOT("slotEditCopy()"), actionCollection());
+ editPaste = KStdAction.paste(this, TQ_SLOT("slotEditPaste()"), actionCollection());
createStandardStatusBarAction();
-// viewToolBar = KStdAction.showToolbar(this, SLOT("slotViewToolBar()"), actionCollection());
- viewStatusBar = KStdAction.showStatusbar(this, SLOT("slotViewStatusBar()"), actionCollection());
+// viewToolBar = KStdAction.showToolbar(this, TQ_SLOT("slotViewToolBar()"), actionCollection());
+ viewStatusBar = KStdAction.showStatusbar(this, TQ_SLOT("slotViewStatusBar()"), actionCollection());
fileNewWindow.setToolTip(tr("Opens a new application window"));
fileNew.setToolTip(tr("Creates a new document"));
@@ -245,7 +245,7 @@ protected void saveProperties(TDEConfig _cfg)
KURL url=doc.URL();
_cfg.writeEntry("filename", url.url());
_cfg.writeEntry("modified", doc.isModified());
- String tempname = TDEApplication.kApplication().tempSaveName(url.url());
+ String tempname = TDEApplication.tdeApplication().tempSaveName(url.url());
String tempurl= KURL.encode_string(tempname, 0);
KURL _url = new KURL(tempurl);
doc.saveDocument(_url);
@@ -265,7 +265,7 @@ protected void readProperties(TDEConfig _cfg)
if(modified)
{
boolean canRecover = false;
- String tempname = TDEApplication.kApplication().checkRecoverFile(filename, canRecover);
+ String tempname = TDEApplication.tdeApplication().checkRecoverFile(filename, canRecover);
KURL _url = new KURL(tempname);
if(canRecover)