summaryrefslogtreecommitdiffstats
path: root/karm/karm_part.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-02-16 20:17:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-02-16 20:17:18 +0000
commitf4fae92b6768541e2952173c3d4b09040f95bf7e (patch)
treed8c5d93232235cd635f3310b4d95490df181ba2d /karm/karm_part.cpp
parent125c0a08265b75a133644d3b55f47e37c919f45d (diff)
downloadtdepim-f4fae92b6768541e2952173c3d4b09040f95bf7e.tar.gz
tdepim-f4fae92b6768541e2952173c3d4b09040f95bf7e.zip
Moved kpilot from kdepim to applications, as the core Trinity libraries should not contain hardware-dependent software
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1221127 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'karm/karm_part.cpp')
-rw-r--r--karm/karm_part.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/karm/karm_part.cpp b/karm/karm_part.cpp
index c535bec41..d44c4ac14 100644
--- a/karm/karm_part.cpp
+++ b/karm/karm_part.cpp
@@ -21,17 +21,17 @@
#include <tqpopupmenu.h>
#include "mainwindow.h"
-karmPart::karmPart( TQWidget *parentWidget, const char *widgetName,
+karmPart::karmPart( TQWidget *tqparentWidget, const char *widgetName,
TQObject *parent, const char *name )
: DCOPObject ( "KarmDCOPIface" ), KParts::ReadWritePart(parent, name),
- _accel ( new KAccel( parentWidget ) ),
- _watcher ( new KAccelMenuWatch( _accel, parentWidget ) )
+ _accel ( new KAccel( tqparentWidget ) ),
+ _watcher ( new KAccelMenuWatch( _accel, tqparentWidget ) )
{
// we need an instance
setInstance( karmPartFactory::instance() );
// this should be your custom internal widget
- _taskView = new TaskView( parentWidget, widgetName );
+ _taskView = new TaskView( tqparentWidget, widgetName );
// setup PreferenceDialog.
_preferences = Preferences::instance();
@@ -134,12 +134,12 @@ void karmPart::makeMenus()
actionCollection(),
"reset_all_times");
actionStart = new KAction( i18n("&Start"),
- TQString::fromLatin1("1rightarrow"), Key_S,
+ TQString::tqfromLatin1("1rightarrow"), Key_S,
_taskView,
TQT_SLOT( startCurrentTimer() ), actionCollection(),
"start");
actionStop = new KAction( i18n("S&top"),
- TQString::fromLatin1("stop"), 0,
+ TQString::tqfromLatin1("stop"), 0,
_taskView,
TQT_SLOT( stopCurrentTimer() ), actionCollection(),
"stop");
@@ -151,55 +151,55 @@ void karmPart::makeMenus()
actionStopAll->setEnabled(false);
actionNew = new KAction( i18n("&New..."),
- TQString::fromLatin1("filenew"), CTRL+Key_N,
+ TQString::tqfromLatin1("filenew"), CTRL+Key_N,
_taskView,
TQT_SLOT( newTask() ), actionCollection(),
"new_task");
actionNewSub = new KAction( i18n("New &Subtask..."),
- TQString::fromLatin1("kmultiple"), CTRL+ALT+Key_N,
+ TQString::tqfromLatin1("kmultiple"), CTRL+ALT+Key_N,
_taskView,
TQT_SLOT( newSubTask() ), actionCollection(),
"new_sub_task");
actionDelete = new KAction( i18n("&Delete"),
- TQString::fromLatin1("editdelete"), Key_Delete,
+ TQString::tqfromLatin1("editdelete"), Key_Delete,
_taskView,
TQT_SLOT( deleteTask() ), actionCollection(),
"delete_task");
actionEdit = new KAction( i18n("&Edit..."),
- TQString::fromLatin1("edit"), CTRL + Key_E,
+ TQString::tqfromLatin1("edit"), CTRL + Key_E,
_taskView,
TQT_SLOT( editTask() ), actionCollection(),
"edit_task");
// actionAddComment = new KAction( i18n("&Add Comment..."),
-// TQString::fromLatin1("document"),
+// TQString::tqfromLatin1("document"),
// CTRL+ALT+Key_E,
// _taskView,
// TQT_SLOT( addCommentToTask() ),
// actionCollection(),
// "add_comment_to_task");
actionMarkAsComplete = new KAction( i18n("&Mark as Complete"),
- TQString::fromLatin1("document"),
+ TQString::tqfromLatin1("document"),
CTRL+Key_M,
_taskView,
TQT_SLOT( markTaskAsComplete() ),
actionCollection(),
"mark_as_complete");
actionMarkAsIncomplete = new KAction( i18n("&Mark as Incomplete"),
- TQString::fromLatin1("document"),
+ TQString::tqfromLatin1("document"),
CTRL+Key_M,
_taskView,
TQT_SLOT( markTaskAsIncomplete() ),
actionCollection(),
"mark_as_incomplete");
actionClipTotals = new KAction( i18n("&Copy Totals to Clipboard"),
- TQString::fromLatin1("klipper"),
+ TQString::tqfromLatin1("klipper"),
CTRL+Key_C,
_taskView,
TQT_SLOT( clipTotals() ),
actionCollection(),
"clip_totals");
actionClipHistory = new KAction( i18n("Copy &History to Clipboard"),
- TQString::fromLatin1("klipper"),
+ TQString::tqfromLatin1("klipper"),
CTRL+ALT+Key_C,
_taskView,
TQT_SLOT( clipHistory() ),
@@ -322,7 +322,7 @@ bool karmPart::openFile()
_taskView->load(m_file);
// just for fun, set the status bar
- emit setStatusBarText( m_url.prettyURL() );
+ emit seStatusBarText( m_url.prettyURL() );
return true;
}
@@ -387,12 +387,12 @@ karmPartFactory::~karmPartFactory()
s_instance = 0L;
}
-KParts::Part* karmPartFactory::createPartObject( TQWidget *parentWidget, const char *widgetName,
+KParts::Part* karmPartFactory::createPartObject( TQWidget *tqparentWidget, const char *widgetName,
TQObject *parent, const char *name,
const char *classname, const TQStringList &args )
{
// Create an instance of our Part
- karmPart* obj = new karmPart( parentWidget, widgetName, parent, name );
+ karmPart* obj = new karmPart( tqparentWidget, widgetName, parent, name );
// See if we are to be read-write or not
if (TQCString(classname) == "KParts::ReadOnlyPart")