diff options
Diffstat (limited to 'knotes/knote.cpp')
-rw-r--r-- | knotes/knote.cpp | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/knotes/knote.cpp b/knotes/knote.cpp index e59be706b..ea96d4c80 100644 --- a/knotes/knote.cpp +++ b/knotes/knote.cpp @@ -104,47 +104,47 @@ KNote::KNote( TQDomDocument buildDoc, Journal *j, TQWidget *parent, const char * // create the menu items for the note - not the editor... // rename, mail, print, save as, insert date, alarm, close, delete, new note - new KAction( i18n("New"), "filenew", 0, + new TDEAction( i18n("New"), "filenew", 0, TQT_TQOBJECT(this),TQT_SLOT(slotRequestNewNote()) , actionCollection(), "new_note" ); - new KAction( i18n("Rename..."), "text", 0, + new TDEAction( i18n("Rename..."), "text", 0, TQT_TQOBJECT(this), TQT_SLOT(slotRename()), actionCollection(), "rename_note" ); - m_readOnly = new KToggleAction( i18n("Lock"), "lock" , 0, + m_readOnly = new TDEToggleAction( i18n("Lock"), "lock" , 0, TQT_TQOBJECT(this), TQT_SLOT(slotUpdateReadOnly()), actionCollection(), "lock_note" ); m_readOnly->setCheckedState( KGuiItem( i18n("Unlock"), "unlock" ) ); - new KAction( i18n("Hide"), "fileclose" , Key_Escape, + new TDEAction( i18n("Hide"), "fileclose" , Key_Escape, TQT_TQOBJECT(this), TQT_SLOT(slotClose()), actionCollection(), "hide_note" ); - new KAction( i18n("Delete"), "knotes_delete", 0, + new TDEAction( i18n("Delete"), "knotes_delete", 0, TQT_TQOBJECT(this), TQT_SLOT(slotKill()), actionCollection(), "delete_note" ); - new KAction( i18n("Insert Date"), "knotes_date", 0 , + new TDEAction( i18n("Insert Date"), "knotes_date", 0 , TQT_TQOBJECT(this), TQT_SLOT(slotInsDate()), actionCollection(), "insert_date" ); - new KAction( i18n("Set Alarm..."), "knotes_alarm", 0 , + new TDEAction( i18n("Set Alarm..."), "knotes_alarm", 0 , TQT_TQOBJECT(this), TQT_SLOT(slotSetAlarm()), actionCollection(), "set_alarm" ); - new KAction( i18n("Send..."), "network", 0, + new TDEAction( i18n("Send..."), "network", 0, TQT_TQOBJECT(this), TQT_SLOT(slotSend()), actionCollection(), "send_note" ); - new KAction( i18n("Mail..."), "mail_send", 0, + new TDEAction( i18n("Mail..."), "mail_send", 0, TQT_TQOBJECT(this), TQT_SLOT(slotMail()), actionCollection(), "mail_note" ); - new KAction( i18n("Save As..."), "filesaveas", 0, + new TDEAction( i18n("Save As..."), "filesaveas", 0, TQT_TQOBJECT(this), TQT_SLOT(slotSaveAs()), actionCollection(), "save_note" ); KStdAction::print( TQT_TQOBJECT(this), TQT_SLOT(slotPrint()), actionCollection(), "print_note" ); - new KAction( i18n("Preferences..."), "configure", 0, + new TDEAction( i18n("Preferences..."), "configure", 0, TQT_TQOBJECT(this), TQT_SLOT(slotPreferences()), actionCollection(), "configure_note" ); - m_keepAbove = new KToggleAction( i18n("Keep Above Others"), "up", 0, + m_keepAbove = new TDEToggleAction( i18n("Keep Above Others"), "up", 0, TQT_TQOBJECT(this), TQT_SLOT(slotUpdateKeepAboveBelow()), actionCollection(), "keep_above" ); m_keepAbove->setExclusiveGroup( "keepAB" ); - m_keepBelow = new KToggleAction( i18n("Keep Below Others"), "down", 0, + m_keepBelow = new TDEToggleAction( i18n("Keep Below Others"), "down", 0, TQT_TQOBJECT(this), TQT_SLOT(slotUpdateKeepAboveBelow()), actionCollection(), "keep_below" ); m_keepBelow->setExclusiveGroup( "keepAB" ); - m_toDesktop = new KListAction( i18n("To Desktop"), 0, + m_toDesktop = new TDEListAction( i18n("To Desktop"), 0, TQT_TQOBJECT(this), TQT_SLOT(slotPopupActionToDesktop(int)), actionCollection(), "to_desktop" ); connect( m_toDesktop->popupMenu(), TQT_SIGNAL(aboutToShow()), TQT_TQOBJECT(this), TQT_SLOT(slotUpdateDesktopActions()) ); // invisible action to walk through the notes to make this configurable - new KAction( i18n("Walk Through Notes"), 0, SHIFT+Key_BackTab, + new TDEAction( i18n("Walk Through Notes"), 0, SHIFT+Key_BackTab, TQT_TQOBJECT(this), TQT_SIGNAL(sigShowNextNote()), actionCollection(), "walk_notes" ); // create the note header, button and label... @@ -168,14 +168,14 @@ KNote::KNote( TQDomDocument buildDoc, Journal *j, TQWidget *parent, const char * KXMLGUIFactory factory( &builder, TQT_TQOBJECT(this) ); factory.addClient( this ); - m_menu = dynamic_cast<KPopupMenu*>(factory.container( "note_context", this )); - m_edit_menu = dynamic_cast<KPopupMenu*>(factory.container( "note_edit", this )); - m_tool = dynamic_cast<KToolBar*>(factory.container( "note_tool", this )); + m_menu = dynamic_cast<TDEPopupMenu*>(factory.container( "note_context", this )); + m_edit_menu = dynamic_cast<TDEPopupMenu*>(factory.container( "note_edit", this )); + m_tool = dynamic_cast<TDEToolBar*>(factory.container( "note_tool", this )); if ( m_tool ) { m_tool->setIconSize( 10 ); m_tool->setFixedHeight( 16 ); - m_tool->setIconText( KToolBar::IconOnly ); + m_tool->setIconText( TDEToolBar::IconOnly ); // if there was just a way of making KComboBox adhere the toolbar height... TQObjectList *list = m_tool->queryList( "KComboBox" ); |