Rename a number of classes to enhance compatibility with KDE4

pull/1/head
Timothy Pearson 11 years ago
parent 3cedb6a5f7
commit 7864df7a5e

@ -37,7 +37,7 @@ BasketPlugin::BasketPlugin( Kontact::Core *core, const char *, const TQStringLis
: Kontact::Plugin( core, TQT_TQOBJECT(core), "basket" ) : Kontact::Plugin( core, TQT_TQOBJECT(core), "basket" )
{ {
setInstance( BasketPluginFactory::instance() ); setInstance( BasketPluginFactory::instance() );
insertNewAction(new KAction( i18n("&New Basket..."), "basket", CTRL+SHIFT+Key_B, insertNewAction(new TDEAction( i18n("&New Basket..."), "basket", CTRL+SHIFT+Key_B,
this, TQT_SLOT(newBasket()), actionCollection(), "basket_new" )); this, TQT_SLOT(newBasket()), actionCollection(), "basket_new" ));
m_uniqueAppWatcher = new Kontact::UniqueAppWatcher( m_uniqueAppWatcher = new Kontact::UniqueAppWatcher(

@ -827,7 +827,7 @@ void Basket::loadProperties(const TQDomElement &properties)
TQDomElement shortcut = XMLWork::getElement(properties, "shortcut"); TQDomElement shortcut = XMLWork::getElement(properties, "shortcut");
TQString actionStrings[] = { "show", "globalShow", "globalSwitch" }; TQString actionStrings[] = { "show", "globalShow", "globalSwitch" };
KShortcut combination = KShortcut( shortcut.attribute( "combination", m_action->shortcut().toStringInternal() ) ); TDEShortcut combination = TDEShortcut( shortcut.attribute( "combination", m_action->shortcut().toStringInternal() ) );
TQString actionString = shortcut.attribute( "action" ); TQString actionString = shortcut.attribute( "action" );
int action = shortcutAction(); int action = shortcutAction();
if (actionString == actionStrings[0]) action = 0; if (actionString == actionStrings[0]) action = 0;
@ -1293,7 +1293,7 @@ TQString Basket::fullPathForFileName(const TQString &fileName)
} }
void Basket::setShortcut(KShortcut shortcut, int action) void Basket::setShortcut(TDEShortcut shortcut, int action)
{ {
if(!Global::globalAccel) if(!Global::globalAccel)
return; return;
@ -1305,7 +1305,7 @@ void Basket::setShortcut(KShortcut shortcut, int action)
m_shortcutAction = action; m_shortcutAction = action;
if (action > 0) if (action > 0)
Global::globalAccel->insert(sAction, m_action->text(), /*whatsThis=*/"", m_action->shortcut(), KShortcut(), TQT_TQOBJECT(this), TQT_SLOT(activatedShortcut()), /*configurable=*/false); Global::globalAccel->insert(sAction, m_action->text(), /*whatsThis=*/"", m_action->shortcut(), TDEShortcut(), TQT_TQOBJECT(this), TQT_SLOT(activatedShortcut()), /*configurable=*/false);
Global::globalAccel->updateConnections(); Global::globalAccel->updateConnections();
} }
@ -1354,7 +1354,7 @@ Basket::Basket(TQWidget *parent, const TQString &folderName)
m_finishLoadOnFirstShow(false), m_relayoutOnNextShow(false) m_finishLoadOnFirstShow(false), m_relayoutOnNextShow(false)
{ {
TQString sAction = "local_basket_activate_" + folderName; TQString sAction = "local_basket_activate_" + folderName;
m_action = new KAction("FAKE TEXT", "FAKE ICON", KShortcut(), TQT_TQOBJECT(this), TQT_SLOT(activatedShortcut()), Global::bnpView->actionCollection(), sAction); m_action = new TDEAction("FAKE TEXT", "FAKE ICON", TDEShortcut(), TQT_TQOBJECT(this), TQT_SLOT(activatedShortcut()), Global::bnpView->actionCollection(), sAction);
m_action->setShortcutConfigurable(false); // We do it in the basket properties dialog (and keep it in sync with the global one) m_action->setShortcutConfigurable(false); // We do it in the basket properties dialog (and keep it in sync with the global one)
if (!m_folderName.endsWith("/")) if (!m_folderName.endsWith("/"))
@ -1579,7 +1579,7 @@ void Basket::contentsMousePressEvent(TQMouseEvent *event)
m_clickedToInsert = clicked; m_clickedToInsert = clicked;
m_zoneToInsert = zone; m_zoneToInsert = zone;
m_posToInsert = event->pos(); m_posToInsert = event->pos();
KPopupMenu* menu = (KPopupMenu*)(Global::bnpView->popupMenu("insert_popup")); TDEPopupMenu* menu = (TDEPopupMenu*)(Global::bnpView->popupMenu("insert_popup"));
if (!menu->title(/*id=*/120).isEmpty()) // If we already added a title, remove it because it would be kept and then added several times: if (!menu->title(/*id=*/120).isEmpty()) // If we already added a title, remove it because it would be kept and then added several times:
menu->removeItem(/*id=*/120); menu->removeItem(/*id=*/120);
menu->insertTitle((zone == Note::TopGroup || zone == Note::BottomGroup ? i18n("The verb (Group New Note)", "Group") : i18n("The verb (Insert New Note)", "Insert")), /*id=*/120, /*index=*/0); menu->insertTitle((zone == Note::TopGroup || zone == Note::BottomGroup ? i18n("The verb (Group New Note)", "Group") : i18n("The verb (Insert New Note)", "Insert")), /*id=*/120, /*index=*/0);
@ -3374,7 +3374,7 @@ void Basket::popupEmblemMenu(Note *note, int emblemNumber)
TQKeySequence sequence = tag->shortcut().operator TQKeySequence(); TQKeySequence sequence = tag->shortcut().operator TQKeySequence();
bool sequenceOnDelete = (nextState == 0 && !tag->shortcut().isNull()); bool sequenceOnDelete = (nextState == 0 && !tag->shortcut().isNull());
KPopupMenu menu(this); TDEPopupMenu menu(this);
if (tag->countStates() == 1) { if (tag->countStates() == 1) {
menu.insertTitle(/*SmallIcon(state->icon()), */tag->name()); menu.insertTitle(/*SmallIcon(state->icon()), */tag->name());
menu.insertItem( SmallIconSet("editdelete"), i18n("&Remove"), 1 ); menu.insertItem( SmallIconSet("editdelete"), i18n("&Remove"), 1 );
@ -3481,7 +3481,7 @@ void Basket::popupTagsMenu(Note *note)
{ {
m_tagPopupNote = note; m_tagPopupNote = note;
KPopupMenu menu(this); TDEPopupMenu menu(this);
menu.insertTitle(i18n("Tags")); menu.insertTitle(i18n("Tags"));
// TQValueList<Tag*>::iterator it; // TQValueList<Tag*>::iterator it;
// Tag *currentTag; // Tag *currentTag;
@ -4285,7 +4285,7 @@ void Basket::noteOpen(Note *note)
*/ */
bool KRun__displayOpenWithDialog(const KURL::List& lst, bool tempFiles, const TQString &text) bool KRun__displayOpenWithDialog(const KURL::List& lst, bool tempFiles, const TQString &text)
{ {
if (kapp && !kapp->authorizeKAction("openwith")) { if (kapp && !kapp->authorizeTDEAction("openwith")) {
KMessageBox::sorry(0L, i18n("You are not authorized to open this file.")); // TODO: Better message, i18n freeze :-( KMessageBox::sorry(0L, i18n("You are not authorized to open this file.")); // TODO: Better message, i18n freeze :-(
return false; return false;
} }

@ -365,15 +365,15 @@ public slots:
/// KEYBOARD SHORTCUT: /// KEYBOARD SHORTCUT:
public: // Temporar: for deletion purpose public: // Temporar: for deletion purpose
KAction *m_action; TDEAction *m_action;
private: private:
int m_shortcutAction; int m_shortcutAction;
private slots: private slots:
void activatedShortcut(); void activatedShortcut();
public: public:
KShortcut shortcut() { return m_action->shortcut(); } TDEShortcut shortcut() { return m_action->shortcut(); }
int shortcutAction() { return m_shortcutAction; } int shortcutAction() { return m_shortcutAction; }
void setShortcut(KShortcut shortcut, int action); void setShortcut(TDEShortcut shortcut, int action);
/// USER INTERACTION: /// USER INTERACTION:
private: private:

@ -633,7 +633,7 @@ private:
/** class BasketTreeListView: */ /** class BasketTreeListView: */
BasketTreeListView::BasketTreeListView(TQWidget *parent, const char *name) BasketTreeListView::BasketTreeListView(TQWidget *parent, const char *name)
: KListView(parent, name), m_autoOpenItem(0) : TDEListView(parent, name), m_autoOpenItem(0)
, m_itemUnderDrag(0) , m_itemUnderDrag(0)
{ {
setWFlags(TQt::WStaticContents | WNoAutoErase); setWFlags(TQt::WStaticContents | WNoAutoErase);
@ -646,7 +646,7 @@ BasketTreeListView::BasketTreeListView(TQWidget *parent, const char *name)
void BasketTreeListView::viewportResizeEvent(TQResizeEvent *event) void BasketTreeListView::viewportResizeEvent(TQResizeEvent *event)
{ {
KListView::viewportResizeEvent(event); TDEListView::viewportResizeEvent(event);
triggerUpdate(); triggerUpdate();
} }
@ -665,7 +665,7 @@ void BasketTreeListView::contentsDragEnterEvent(TQDragEnterEvent *event)
update(); update();
} }
KListView::contentsDragEnterEvent(event); TDEListView::contentsDragEnterEvent(event);
} }
void BasketTreeListView::removeExpands() void BasketTreeListView::removeExpands()
@ -687,7 +687,7 @@ void BasketTreeListView::contentsDragLeaveEvent(TQDragLeaveEvent *event)
m_autoOpenTimer.stop(); m_autoOpenTimer.stop();
setItemUnderDrag(0); setItemUnderDrag(0);
removeExpands(); removeExpands();
KListView::contentsDragLeaveEvent(event); TDEListView::contentsDragLeaveEvent(event);
} }
void BasketTreeListView::contentsDropEvent(TQDropEvent *event) void BasketTreeListView::contentsDropEvent(TQDropEvent *event)
@ -695,7 +695,7 @@ void BasketTreeListView::contentsDropEvent(TQDropEvent *event)
std::cout << "BasketTreeListView::contentsDropEvent()" << std::endl; std::cout << "BasketTreeListView::contentsDropEvent()" << std::endl;
if (event->provides("application/x-qlistviewitem")) if (event->provides("application/x-qlistviewitem"))
{ {
KListView::contentsDropEvent(event); TDEListView::contentsDropEvent(event);
} }
else { else {
std::cout << "Forwarding dropped data to the basket" << std::endl; std::cout << "Forwarding dropped data to the basket" << std::endl;
@ -721,7 +721,7 @@ void BasketTreeListView::contentsDragMoveEvent(TQDragMoveEvent *event)
{ {
std::cout << "BasketTreeListView::contentsDragMoveEvent" << std::endl; std::cout << "BasketTreeListView::contentsDragMoveEvent" << std::endl;
if (event->provides("application/x-qlistviewitem")) if (event->provides("application/x-qlistviewitem"))
KListView::contentsDragMoveEvent(event); TDEListView::contentsDragMoveEvent(event);
else { else {
TQListViewItem *item = itemAt(contentsToViewport(event->pos())); TQListViewItem *item = itemAt(contentsToViewport(event->pos()));
BasketListViewItem* bitem = dynamic_cast<BasketListViewItem*>(item); BasketListViewItem* bitem = dynamic_cast<BasketListViewItem*>(item);
@ -735,7 +735,7 @@ void BasketTreeListView::contentsDragMoveEvent(TQDragMoveEvent *event)
} }
setItemUnderDrag(bitem); setItemUnderDrag(bitem);
KListView::contentsDragMoveEvent(event); // FIXME: ADDED TDEListView::contentsDragMoveEvent(event); // FIXME: ADDED
} }
} }
@ -767,7 +767,7 @@ void BasketTreeListView::autoOpen()
void BasketTreeListView::resizeEvent(TQResizeEvent *event) void BasketTreeListView::resizeEvent(TQResizeEvent *event)
{ {
KListView::resizeEvent(event); TDEListView::resizeEvent(event);
} }
void BasketTreeListView::paintEmptyArea(TQPainter *painter, const TQRect &rect) void BasketTreeListView::paintEmptyArea(TQPainter *painter, const TQRect &rect)
@ -793,12 +793,12 @@ void BasketTreeListView::paintEmptyArea(TQPainter *painter, const TQRect &rect)
} }
/** We should NEVER get focus (because of TQ_NoFocus focusPolicy()) /** We should NEVER get focus (because of TQ_NoFocus focusPolicy())
* but KListView can programatically give us the focus. * but TDEListView can programatically give us the focus.
* So we give it to the basket. * So we give it to the basket.
*/ */
void BasketTreeListView::focusInEvent(TQFocusEvent*) void BasketTreeListView::focusInEvent(TQFocusEvent*)
{ {
//KListView::focusInEvent(event); //TDEListView::focusInEvent(event);
Basket *basket = Global::bnpView->currentBasket(); Basket *basket = Global::bnpView->currentBasket();
if (basket) if (basket)
basket->setFocus(); basket->setFocus();

@ -74,7 +74,7 @@ class BasketListViewItem : public TQListViewItem
bool m_isAbbreviated; bool m_isAbbreviated;
}; };
class BasketTreeListView : public KListView class BasketTreeListView : public TDEListView
{ {
Q_OBJECT Q_OBJECT

@ -145,7 +145,7 @@ BasketPropertiesDialog::BasketPropertiesDialog(Basket *basket, TQWidget *parent)
shortcutLayout->addWidget(m_shortcut); shortcutLayout->addWidget(m_shortcut);
shortcutLayout->addStretch(); shortcutLayout->addStretch();
shortcutLayout->addWidget(helpLabel); shortcutLayout->addWidget(helpLabel);
connect( m_shortcut, TQT_SIGNAL(capturedShortcut(const KShortcut&)), this, TQT_SLOT(capturedShortcut(const KShortcut&)) ); connect( m_shortcut, TQT_SIGNAL(capturedShortcut(const TDEShortcut&)), this, TQT_SLOT(capturedShortcut(const TDEShortcut&)) );
new TQRadioButton(i18n("S&how this basket"), m_shortcutRole); new TQRadioButton(i18n("S&how this basket"), m_shortcutRole);
new TQRadioButton(i18n("Show this basket (&global shortcut)"), m_shortcutRole); new TQRadioButton(i18n("Show this basket (&global shortcut)"), m_shortcutRole);
new TQRadioButton(i18n("S&witch to this basket (global shortcut)"), m_shortcutRole); new TQRadioButton(i18n("S&witch to this basket (global shortcut)"), m_shortcutRole);
@ -189,7 +189,7 @@ void BasketPropertiesDialog::slotOk()
KDialogBase::slotOk(); KDialogBase::slotOk();
} }
void BasketPropertiesDialog::capturedShortcut(const KShortcut &shortcut) void BasketPropertiesDialog::capturedShortcut(const TDEShortcut &shortcut)
{ {
// TODO: Validate it! // TODO: Validate it!
m_shortcut->setShortcut(shortcut, /*bTQtShortcut=*/true); m_shortcut->setShortcut(shortcut, /*bTQtShortcut=*/true);

@ -31,7 +31,7 @@ class TQComboBox;
class TQVButtonGroup; class TQVButtonGroup;
class KIntNumInput; class KIntNumInput;
class KKeyButton; class KKeyButton;
class KShortcut; class TDEShortcut;
class Basket; class Basket;
class KColorCombo2; class KColorCombo2;
@ -51,7 +51,7 @@ class BasketPropertiesDialog : public KDialogBase
protected slots: protected slots:
void slotApply(); void slotApply();
void slotOk(); void slotOk();
void capturedShortcut(const KShortcut &shortcut); void capturedShortcut(const TDEShortcut &shortcut);
void selectColumnsLayout(); void selectColumnsLayout();
private: private:
Basket *m_basket; Basket *m_basket;

@ -81,7 +81,7 @@
const int BNPView::c_delayTooltipTime = 275; const int BNPView::c_delayTooltipTime = 275;
BNPView::BNPView(TQWidget *parent, const char *name, KXMLGUIClient *aGUIClient, BNPView::BNPView(TQWidget *parent, const char *name, KXMLGUIClient *aGUIClient,
KActionCollection *actionCollection, BasketStatusBar *bar) TDEActionCollection *actionCollection, BasketStatusBar *bar)
: DCOPObject("BasketIface"), TQSplitter(Qt::Horizontal, parent, name), m_actLockBasket(0), m_actPassBasket(0), : DCOPObject("BasketIface"), TQSplitter(Qt::Horizontal, parent, name), m_actLockBasket(0), m_actPassBasket(0),
m_loading(true), m_newBasketPopup(false), m_firstShow(true), m_loading(true), m_newBasketPopup(false), m_firstShow(true),
m_regionGrabber(0), m_passiveDroppedSelection(0), m_passivePopup(0), m_actionCollection(actionCollection), m_regionGrabber(0), m_passiveDroppedSelection(0), m_passivePopup(0), m_actionCollection(actionCollection),
@ -129,7 +129,7 @@ void BNPView::lateInit()
if(instance) if(instance)
{ {
KToolBar* toolbar = instance->richTextToolBar(); TDEToolBar* toolbar = instance->richTextToolBar();
if(toolbar) if(toolbar)
toolbar->hide(); toolbar->hide();
@ -160,7 +160,7 @@ void BNPView::lateInit()
DEBUG_WIN << "Baskets are loaded from " + Global::basketsFolder(); DEBUG_WIN << "Baskets are loaded from " + Global::basketsFolder();
NoteDrag::createAndEmptyCuttingTmpFolder(); // If last exec hasn't done it: clean the temporary folder we will use NoteDrag::createAndEmptyCuttingTmpFolder(); // If last exec hasn't done it: clean the temporary folder we will use
Tag::loadTags(); // Tags should be ready before loading baskets, but tags need the mainContainer to be ready to create KActions! Tag::loadTags(); // Tags should be ready before loading baskets, but tags need the mainContainer to be ready to create TDEActions!
load(); load();
// If no basket has been found, try to import from an older version, // If no basket has been found, try to import from an older version,
@ -372,7 +372,7 @@ void BNPView::initialize()
connect( m_tree, TQT_SIGNAL(pressed(TQListViewItem*)), TQT_TQOBJECT(this), TQT_SLOT(slotPressed(TQListViewItem*)) ); connect( m_tree, TQT_SIGNAL(pressed(TQListViewItem*)), TQT_TQOBJECT(this), TQT_SLOT(slotPressed(TQListViewItem*)) );
connect( m_tree, TQT_SIGNAL(expanded(TQListViewItem*)), TQT_TQOBJECT(this), TQT_SLOT(needSave(TQListViewItem*)) ); connect( m_tree, TQT_SIGNAL(expanded(TQListViewItem*)), TQT_TQOBJECT(this), TQT_SLOT(needSave(TQListViewItem*)) );
connect( m_tree, TQT_SIGNAL(collapsed(TQListViewItem*)), TQT_TQOBJECT(this), TQT_SLOT(needSave(TQListViewItem*)) ); connect( m_tree, TQT_SIGNAL(collapsed(TQListViewItem*)), TQT_TQOBJECT(this), TQT_SLOT(needSave(TQListViewItem*)) );
connect( m_tree, TQT_SIGNAL(contextMenu(KListView*, TQListViewItem*, const TQPoint&)), TQT_TQOBJECT(this), TQT_SLOT(slotContextMenu(KListView*, TQListViewItem*, const TQPoint&)) ); connect( m_tree, TQT_SIGNAL(contextMenu(TDEListView*, TQListViewItem*, const TQPoint&)), TQT_TQOBJECT(this), TQT_SLOT(slotContextMenu(TDEListView*, TQListViewItem*, const TQPoint&)) );
connect( m_tree, TQT_SIGNAL(mouseButtonPressed(int, TQListViewItem*, const TQPoint&, int)), TQT_TQOBJECT(this), TQT_SLOT(slotMouseButtonPressed(int, TQListViewItem*, const TQPoint&, int)) ); connect( m_tree, TQT_SIGNAL(mouseButtonPressed(int, TQListViewItem*, const TQPoint&, int)), TQT_TQOBJECT(this), TQT_SLOT(slotMouseButtonPressed(int, TQListViewItem*, const TQPoint&, int)) );
connect( m_tree, TQT_SIGNAL(doubleClicked(TQListViewItem*, const TQPoint&, int)), TQT_TQOBJECT(this), TQT_SLOT(slotShowProperties(TQListViewItem*, const TQPoint&, int)) ); connect( m_tree, TQT_SIGNAL(doubleClicked(TQListViewItem*, const TQPoint&, int)), TQT_TQOBJECT(this), TQT_SLOT(slotShowProperties(TQListViewItem*, const TQPoint&, int)) );
@ -409,53 +409,53 @@ void BNPView::initialize()
void BNPView::setupActions() void BNPView::setupActions()
{ {
m_actSaveAsArchive = new KAction( i18n("&Basket Archive..."), "baskets", 0, m_actSaveAsArchive = new TDEAction( i18n("&Basket Archive..."), "baskets", 0,
TQT_TQOBJECT(this), TQT_SLOT(saveAsArchive()), actionCollection(), "basket_export_basket_archive" ); TQT_TQOBJECT(this), TQT_SLOT(saveAsArchive()), actionCollection(), "basket_export_basket_archive" );
m_actOpenArchive = new KAction( i18n("&Basket Archive..."), "baskets", 0, m_actOpenArchive = new TDEAction( i18n("&Basket Archive..."), "baskets", 0,
TQT_TQOBJECT(this), TQT_SLOT(openArchive()), actionCollection(), "basket_import_basket_archive" ); TQT_TQOBJECT(this), TQT_SLOT(openArchive()), actionCollection(), "basket_import_basket_archive" );
m_actHideWindow = new KAction( i18n("&Hide Window"), "", KStdAccel::shortcut(KStdAccel::Close), m_actHideWindow = new TDEAction( i18n("&Hide Window"), "", TDEStdAccel::shortcut(TDEStdAccel::Close),
TQT_TQOBJECT(this), TQT_SLOT(hideOnEscape()), actionCollection(), "window_hide" ); TQT_TQOBJECT(this), TQT_SLOT(hideOnEscape()), actionCollection(), "window_hide" );
m_actHideWindow->setEnabled(Settings::useSystray()); // Init here ! m_actHideWindow->setEnabled(Settings::useSystray()); // Init here !
m_actExportToHtml = new KAction( i18n("&HTML Web Page..."), "html", 0, m_actExportToHtml = new TDEAction( i18n("&HTML Web Page..."), "html", 0,
TQT_TQOBJECT(this), TQT_SLOT(exportToHTML()), actionCollection(), "basket_export_html" ); TQT_TQOBJECT(this), TQT_SLOT(exportToHTML()), actionCollection(), "basket_export_html" );
new KAction( i18n("K&Notes"), "knotes", 0, new TDEAction( i18n("K&Notes"), "knotes", 0,
TQT_TQOBJECT(this), TQT_SLOT(importKNotes()), actionCollection(), "basket_import_knotes" ); TQT_TQOBJECT(this), TQT_SLOT(importKNotes()), actionCollection(), "basket_import_knotes" );
new KAction( i18n("K&Jots"), "kjots", 0, new TDEAction( i18n("K&Jots"), "kjots", 0,
TQT_TQOBJECT(this), TQT_SLOT(importKJots()), actionCollection(), "basket_import_kjots" ); TQT_TQOBJECT(this), TQT_SLOT(importKJots()), actionCollection(), "basket_import_kjots" );
new KAction( i18n("&KnowIt..."), "knowit", 0, new TDEAction( i18n("&KnowIt..."), "knowit", 0,
TQT_TQOBJECT(this), TQT_SLOT(importKnowIt()), actionCollection(), "basket_import_knowit" ); TQT_TQOBJECT(this), TQT_SLOT(importKnowIt()), actionCollection(), "basket_import_knowit" );
new KAction( i18n("Tux&Cards..."), "tuxcards", 0, new TDEAction( i18n("Tux&Cards..."), "tuxcards", 0,
TQT_TQOBJECT(this), TQT_SLOT(importTuxCards()), actionCollection(), "basket_import_tuxcards" ); TQT_TQOBJECT(this), TQT_SLOT(importTuxCards()), actionCollection(), "basket_import_tuxcards" );
new KAction( i18n("&Sticky Notes"), "gnome", 0, new TDEAction( i18n("&Sticky Notes"), "gnome", 0,
TQT_TQOBJECT(this), TQT_SLOT(importStickyNotes()), actionCollection(), "basket_import_sticky_notes" ); TQT_TQOBJECT(this), TQT_SLOT(importStickyNotes()), actionCollection(), "basket_import_sticky_notes" );
new KAction( i18n("&Tomboy"), "tintin", 0, new TDEAction( i18n("&Tomboy"), "tintin", 0,
TQT_TQOBJECT(this), TQT_SLOT(importTomboy()), actionCollection(), "basket_import_tomboy" ); TQT_TQOBJECT(this), TQT_SLOT(importTomboy()), actionCollection(), "basket_import_tomboy" );
new KAction( i18n("Text &File..."), "txt", 0, new TDEAction( i18n("Text &File..."), "txt", 0,
TQT_TQOBJECT(this), TQT_SLOT(importTextFile()), actionCollection(), "basket_import_text_file" ); TQT_TQOBJECT(this), TQT_SLOT(importTextFile()), actionCollection(), "basket_import_text_file" );
new KAction( i18n("&Backup && Restore..."), "", 0, new TDEAction( i18n("&Backup && Restore..."), "", 0,
TQT_TQOBJECT(this), TQT_SLOT(backupRestore()), actionCollection(), "basket_backup_restore" ); TQT_TQOBJECT(this), TQT_SLOT(backupRestore()), actionCollection(), "basket_backup_restore" );
/** Note : ****************************************************************/ /** Note : ****************************************************************/
m_actDelNote = new KAction( i18n("D&elete"), "editdelete", "Delete", m_actDelNote = new TDEAction( i18n("D&elete"), "editdelete", "Delete",
TQT_TQOBJECT(this), TQT_SLOT(delNote()), actionCollection(), "edit_delete" ); TQT_TQOBJECT(this), TQT_SLOT(delNote()), actionCollection(), "edit_delete" );
m_actCutNote = KStdAction::cut( TQT_TQOBJECT(this), TQT_SLOT(cutNote()), actionCollection() ); m_actCutNote = KStdAction::cut( TQT_TQOBJECT(this), TQT_SLOT(cutNote()), actionCollection() );
m_actCopyNote = KStdAction::copy( TQT_TQOBJECT(this), TQT_SLOT(copyNote()), actionCollection() ); m_actCopyNote = KStdAction::copy( TQT_TQOBJECT(this), TQT_SLOT(copyNote()), actionCollection() );
m_actSelectAll = KStdAction::selectAll( TQT_TQOBJECT(this), TQT_SLOT( slotSelectAll() ), actionCollection() ); m_actSelectAll = KStdAction::selectAll( TQT_TQOBJECT(this), TQT_SLOT( slotSelectAll() ), actionCollection() );
m_actSelectAll->setStatusText( i18n( "Selects all notes" ) ); m_actSelectAll->setStatusText( i18n( "Selects all notes" ) );
m_actUnselectAll = new KAction( i18n( "U&nselect All" ), "", TQT_TQOBJECT(this), TQT_SLOT( slotUnselectAll() ), m_actUnselectAll = new TDEAction( i18n( "U&nselect All" ), "", TQT_TQOBJECT(this), TQT_SLOT( slotUnselectAll() ),
actionCollection(), "edit_unselect_all" ); actionCollection(), "edit_unselect_all" );
m_actUnselectAll->setStatusText( i18n( "Unselects all selected notes" ) ); m_actUnselectAll->setStatusText( i18n( "Unselects all selected notes" ) );
m_actInvertSelection = new KAction( i18n( "&Invert Selection" ), CTRL+Key_Asterisk, m_actInvertSelection = new TDEAction( i18n( "&Invert Selection" ), CTRL+Key_Asterisk,
TQT_TQOBJECT(this), TQT_SLOT( slotInvertSelection() ), TQT_TQOBJECT(this), TQT_SLOT( slotInvertSelection() ),
actionCollection(), "edit_invert_selection" ); actionCollection(), "edit_invert_selection" );
m_actInvertSelection->setStatusText( i18n( "Inverts the current selection of notes" ) ); m_actInvertSelection->setStatusText( i18n( "Inverts the current selection of notes" ) );
m_actEditNote = new KAction( i18n("Verb; not Menu", "&Edit..."), "edit", "Return", m_actEditNote = new TDEAction( i18n("Verb; not Menu", "&Edit..."), "edit", "Return",
TQT_TQOBJECT(this), TQT_SLOT(editNote()), actionCollection(), "note_edit" ); TQT_TQOBJECT(this), TQT_SLOT(editNote()), actionCollection(), "note_edit" );
m_actOpenNote = KStdAction::open( TQT_TQOBJECT(this), TQT_SLOT(openNote()), actionCollection(), "note_open" ); m_actOpenNote = KStdAction::open( TQT_TQOBJECT(this), TQT_SLOT(openNote()), actionCollection(), "note_open" );
@ -463,25 +463,25 @@ void BNPView::setupActions()
m_actOpenNote->setText(i18n("&Open")); m_actOpenNote->setText(i18n("&Open"));
m_actOpenNote->setShortcut("F9"); m_actOpenNote->setShortcut("F9");
m_actOpenNoteWith = new KAction( i18n("Open &With..."), "", "Shift+F9", m_actOpenNoteWith = new TDEAction( i18n("Open &With..."), "", "Shift+F9",
TQT_TQOBJECT(this), TQT_SLOT(openNoteWith()), actionCollection(), "note_open_with" ); TQT_TQOBJECT(this), TQT_SLOT(openNoteWith()), actionCollection(), "note_open_with" );
m_actSaveNoteAs = KStdAction::saveAs( TQT_TQOBJECT(this), TQT_SLOT(saveNoteAs()), actionCollection(), "note_save_to_file" ); m_actSaveNoteAs = KStdAction::saveAs( TQT_TQOBJECT(this), TQT_SLOT(saveNoteAs()), actionCollection(), "note_save_to_file" );
m_actSaveNoteAs->setIcon(""); m_actSaveNoteAs->setIcon("");
m_actSaveNoteAs->setText(i18n("&Save to File...")); m_actSaveNoteAs->setText(i18n("&Save to File..."));
m_actSaveNoteAs->setShortcut("F10"); m_actSaveNoteAs->setShortcut("F10");
m_actGroup = new KAction( i18n("&Group"), "attach", "Ctrl+G", m_actGroup = new TDEAction( i18n("&Group"), "attach", "Ctrl+G",
TQT_TQOBJECT(this), TQT_SLOT(noteGroup()), actionCollection(), "note_group" ); TQT_TQOBJECT(this), TQT_SLOT(noteGroup()), actionCollection(), "note_group" );
m_actUngroup = new KAction( i18n("U&ngroup"), "", "Ctrl+Shift+G", m_actUngroup = new TDEAction( i18n("U&ngroup"), "", "Ctrl+Shift+G",
TQT_TQOBJECT(this), TQT_SLOT(noteUngroup()), actionCollection(), "note_ungroup" ); TQT_TQOBJECT(this), TQT_SLOT(noteUngroup()), actionCollection(), "note_ungroup" );
m_actMoveOnTop = new KAction( i18n("Move on &Top"), "2uparrow", "Ctrl+Shift+Home", m_actMoveOnTop = new TDEAction( i18n("Move on &Top"), "2uparrow", "Ctrl+Shift+Home",
TQT_TQOBJECT(this), TQT_SLOT(moveOnTop()), actionCollection(), "note_move_top" ); TQT_TQOBJECT(this), TQT_SLOT(moveOnTop()), actionCollection(), "note_move_top" );
m_actMoveNoteUp = new KAction( i18n("Move &Up"), "1uparrow", "Ctrl+Shift+Up", m_actMoveNoteUp = new TDEAction( i18n("Move &Up"), "1uparrow", "Ctrl+Shift+Up",
TQT_TQOBJECT(this), TQT_SLOT(moveNoteUp()), actionCollection(), "note_move_up" ); TQT_TQOBJECT(this), TQT_SLOT(moveNoteUp()), actionCollection(), "note_move_up" );
m_actMoveNoteDown = new KAction( i18n("Move &Down"), "1downarrow", "Ctrl+Shift+Down", m_actMoveNoteDown = new TDEAction( i18n("Move &Down"), "1downarrow", "Ctrl+Shift+Down",
TQT_TQOBJECT(this), TQT_SLOT(moveNoteDown()), actionCollection(), "note_move_down" ); TQT_TQOBJECT(this), TQT_SLOT(moveNoteDown()), actionCollection(), "note_move_down" );
m_actMoveOnBottom = new KAction( i18n("Move on &Bottom"), "2downarrow", "Ctrl+Shift+End", m_actMoveOnBottom = new TDEAction( i18n("Move on &Bottom"), "2downarrow", "Ctrl+Shift+End",
TQT_TQOBJECT(this), TQT_SLOT(moveOnBottom()), actionCollection(), "note_move_bottom" ); TQT_TQOBJECT(this), TQT_SLOT(moveOnBottom()), actionCollection(), "note_move_bottom" );
#if KDE_IS_VERSION( 3, 1, 90 ) // KDE 3.2.x #if KDE_IS_VERSION( 3, 1, 90 ) // KDE 3.2.x
m_actPaste = KStdAction::pasteText( TQT_TQOBJECT(this), TQT_SLOT(pasteInCurrentBasket()), actionCollection() ); m_actPaste = KStdAction::pasteText( TQT_TQOBJECT(this), TQT_SLOT(pasteInCurrentBasket()), actionCollection() );
@ -496,16 +496,16 @@ void BNPView::setupActions()
connect( insertEmptyMapper, TQT_SIGNAL(mapped(int)), TQT_TQOBJECT(this), TQT_SLOT(insertEmpty(int)) ); connect( insertEmptyMapper, TQT_SIGNAL(mapped(int)), TQT_TQOBJECT(this), TQT_SLOT(insertEmpty(int)) );
connect( insertWizardMapper, TQT_SIGNAL(mapped(int)), TQT_TQOBJECT(this), TQT_SLOT(insertWizard(int)) ); connect( insertWizardMapper, TQT_SIGNAL(mapped(int)), TQT_TQOBJECT(this), TQT_SLOT(insertWizard(int)) );
// m_actInsertText = new KAction( i18n("Plai&n Text"), "text", "Ctrl+T", actionCollection(), "insert_text" ); // m_actInsertText = new TDEAction( i18n("Plai&n Text"), "text", "Ctrl+T", actionCollection(), "insert_text" );
m_actInsertHtml = new KAction( i18n("&Text"), "html", "Insert", actionCollection(), "insert_html" ); m_actInsertHtml = new TDEAction( i18n("&Text"), "html", "Insert", actionCollection(), "insert_html" );
m_actInsertLink = new KAction( i18n("&Link"), "link", "Ctrl+Y", actionCollection(), "insert_link" ); m_actInsertLink = new TDEAction( i18n("&Link"), "link", "Ctrl+Y", actionCollection(), "insert_link" );
m_actInsertImage = new KAction( i18n("&Image"), "image", "", actionCollection(), "insert_image" ); m_actInsertImage = new TDEAction( i18n("&Image"), "image", "", actionCollection(), "insert_image" );
m_actInsertColor = new KAction( i18n("&Color"), "colorset", "", actionCollection(), "insert_color" ); m_actInsertColor = new TDEAction( i18n("&Color"), "colorset", "", actionCollection(), "insert_color" );
m_actInsertLauncher=new KAction( i18n("L&auncher"), "launch", "", actionCollection(), "insert_launcher" ); m_actInsertLauncher=new TDEAction( i18n("L&auncher"), "launch", "", actionCollection(), "insert_launcher" );
m_actImportKMenu = new KAction( i18n("Import Launcher from &TDE Menu..."), "kmenu", "", actionCollection(), "insert_kmenu" ); m_actImportKMenu = new TDEAction( i18n("Import Launcher from &TDE Menu..."), "kmenu", "", actionCollection(), "insert_kmenu" );
m_actImportIcon = new KAction( i18n("Im&port Icon..."), "icons", "", actionCollection(), "insert_icon" ); m_actImportIcon = new TDEAction( i18n("Im&port Icon..."), "icons", "", actionCollection(), "insert_icon" );
m_actLoadFile = new KAction( i18n("Load From &File..."), "fileimport", "", actionCollection(), "insert_from_file" ); m_actLoadFile = new TDEAction( i18n("Load From &File..."), "fileimport", "", actionCollection(), "insert_from_file" );
// connect( m_actInsertText, TQT_SIGNAL(activated()), insertEmptyMapper, TQT_SLOT(map()) ); // connect( m_actInsertText, TQT_SIGNAL(activated()), insertEmptyMapper, TQT_SLOT(map()) );
connect( m_actInsertHtml, TQT_SIGNAL(activated()), insertEmptyMapper, TQT_SLOT(map()) ); connect( m_actInsertHtml, TQT_SIGNAL(activated()), insertEmptyMapper, TQT_SLOT(map()) );
@ -528,12 +528,12 @@ void BNPView::setupActions()
insertWizardMapper->setMapping(m_actLoadFile, 3 ); insertWizardMapper->setMapping(m_actLoadFile, 3 );
m_colorPicker = new DesktopColorPicker(); m_colorPicker = new DesktopColorPicker();
m_actColorPicker = new KAction( i18n("C&olor from Screen"), "kcolorchooser", "", m_actColorPicker = new TDEAction( i18n("C&olor from Screen"), "kcolorchooser", "",
TQT_TQOBJECT(this), TQT_SLOT(slotColorFromScreen()), actionCollection(), "insert_screen_color" ); TQT_TQOBJECT(this), TQT_SLOT(slotColorFromScreen()), actionCollection(), "insert_screen_color" );
connect( m_colorPicker, TQT_SIGNAL(pickedColor(const TQColor&)), TQT_TQOBJECT(this), TQT_SLOT(colorPicked(const TQColor&)) ); connect( m_colorPicker, TQT_SIGNAL(pickedColor(const TQColor&)), TQT_TQOBJECT(this), TQT_SLOT(colorPicked(const TQColor&)) );
connect( m_colorPicker, TQT_SIGNAL(canceledPick()), TQT_TQOBJECT(this), TQT_SLOT(colorPickingCanceled()) ); connect( m_colorPicker, TQT_SIGNAL(canceledPick()), TQT_TQOBJECT(this), TQT_SLOT(colorPickingCanceled()) );
m_actGrabScreenshot = new KAction( i18n("Grab Screen &Zone"), "ksnapshot", "", m_actGrabScreenshot = new TDEAction( i18n("Grab Screen &Zone"), "ksnapshot", "",
TQT_TQOBJECT(this), TQT_SLOT(grabScreenshot()), actionCollection(), "insert_screen_capture" ); TQT_TQOBJECT(this), TQT_SLOT(grabScreenshot()), actionCollection(), "insert_screen_capture" );
//connect( m_actGrabScreenshot, TQT_SIGNAL(regionGrabbed(const TQPixmap&)), TQT_TQOBJECT(this), TQT_SLOT(screenshotGrabbed(const TQPixmap&)) ); //connect( m_actGrabScreenshot, TQT_SIGNAL(regionGrabbed(const TQPixmap&)), TQT_TQOBJECT(this), TQT_SLOT(screenshotGrabbed(const TQPixmap&)) );
//connect( m_colorPicker, TQT_SIGNAL(canceledPick()), TQT_TQOBJECT(this), TQT_SLOT(colorPickingCanceled()) ); //connect( m_colorPicker, TQT_SIGNAL(canceledPick()), TQT_TQOBJECT(this), TQT_SLOT(colorPickingCanceled()) );
@ -563,27 +563,27 @@ void BNPView::setupActions()
} }
// Use the "basket" incon in Kontact so it is consistent with the Kontact "New..." icon // Use the "basket" incon in Kontact so it is consistent with the Kontact "New..." icon
actNewBasket = new KAction( i18n("&New Basket..."), (runInsideKontact ? "basket" : "filenew"), KStdAccel::shortcut(KStdAccel::New), actNewBasket = new TDEAction( i18n("&New Basket..."), (runInsideKontact ? "basket" : "filenew"), TDEStdAccel::shortcut(TDEStdAccel::New),
TQT_TQOBJECT(this), TQT_SLOT(askNewBasket()), actionCollection(), "basket_new" ); TQT_TQOBJECT(this), TQT_SLOT(askNewBasket()), actionCollection(), "basket_new" );
actNewSubBasket = new KAction( i18n("New &Sub-Basket..."), "", "Ctrl+Shift+N", actNewSubBasket = new TDEAction( i18n("New &Sub-Basket..."), "", "Ctrl+Shift+N",
TQT_TQOBJECT(this), TQT_SLOT(askNewSubBasket()), actionCollection(), "basket_new_sub" ); TQT_TQOBJECT(this), TQT_SLOT(askNewSubBasket()), actionCollection(), "basket_new_sub" );
actNewSiblingBasket = new KAction( i18n("New Si&bling Basket..."), "", "", actNewSiblingBasket = new TDEAction( i18n("New Si&bling Basket..."), "", "",
TQT_TQOBJECT(this), TQT_SLOT(askNewSiblingBasket()), actionCollection(), "basket_new_sibling" ); TQT_TQOBJECT(this), TQT_SLOT(askNewSiblingBasket()), actionCollection(), "basket_new_sibling" );
KActionMenu *newBasketMenu = new KActionMenu(i18n("&New"), "filenew", actionCollection(), "basket_new_menu"); TDEActionMenu *newBasketMenu = new TDEActionMenu(i18n("&New"), "filenew", actionCollection(), "basket_new_menu");
newBasketMenu->insert(actNewBasket); newBasketMenu->insert(actNewBasket);
newBasketMenu->insert(actNewSubBasket); newBasketMenu->insert(actNewSubBasket);
newBasketMenu->insert(actNewSiblingBasket); newBasketMenu->insert(actNewSiblingBasket);
connect( newBasketMenu, TQT_SIGNAL(activated()), TQT_TQOBJECT(this), TQT_SLOT(askNewBasket()) ); connect( newBasketMenu, TQT_SIGNAL(activated()), TQT_TQOBJECT(this), TQT_SLOT(askNewBasket()) );
m_actPropBasket = new KAction( i18n("&Properties..."), "misc", "F2", m_actPropBasket = new TDEAction( i18n("&Properties..."), "misc", "F2",
TQT_TQOBJECT(this), TQT_SLOT(propBasket()), actionCollection(), "basket_properties" ); TQT_TQOBJECT(this), TQT_SLOT(propBasket()), actionCollection(), "basket_properties" );
m_actDelBasket = new KAction( i18n("Remove Basket", "&Remove"), "", 0, m_actDelBasket = new TDEAction( i18n("Remove Basket", "&Remove"), "", 0,
TQT_TQOBJECT(this), TQT_SLOT(delBasket()), actionCollection(), "basket_remove" ); TQT_TQOBJECT(this), TQT_SLOT(delBasket()), actionCollection(), "basket_remove" );
#ifdef HAVE_LIBGPGME #ifdef HAVE_LIBGPGME
m_actPassBasket = new KAction( i18n("Password protection", "Pass&word..."), "", 0, m_actPassBasket = new TDEAction( i18n("Password protection", "Pass&word..."), "", 0,
TQT_TQOBJECT(this), TQT_SLOT(password()), actionCollection(), "basket_password" ); TQT_TQOBJECT(this), TQT_SLOT(password()), actionCollection(), "basket_password" );
m_actLockBasket = new KAction( i18n("Lock Basket", "&Lock"), "", "Ctrl+L", m_actLockBasket = new TDEAction( i18n("Lock Basket", "&Lock"), "", "Ctrl+L",
TQT_TQOBJECT(this), TQT_SLOT(lockBasket()), actionCollection(), "basket_lock" ); TQT_TQOBJECT(this), TQT_SLOT(lockBasket()), actionCollection(), "basket_lock" );
#endif #endif
/** Edit : ****************************************************************/ /** Edit : ****************************************************************/
@ -593,29 +593,29 @@ void BNPView::setupActions()
//m_actRedo = KStdAction::redo( TQT_TQOBJECT(this), TQT_SLOT(redo()), actionCollection() ); //m_actRedo = KStdAction::redo( TQT_TQOBJECT(this), TQT_SLOT(redo()), actionCollection() );
//m_actRedo->setEnabled(false); // Not yet implemented ! //m_actRedo->setEnabled(false); // Not yet implemented !
m_actShowFilter = new KToggleAction( i18n("&Filter"), "filter", KStdAccel::shortcut(KStdAccel::Find), m_actShowFilter = new TDEToggleAction( i18n("&Filter"), "filter", TDEStdAccel::shortcut(TDEStdAccel::Find),
actionCollection(), "edit_filter" ); actionCollection(), "edit_filter" );
connect( m_actShowFilter, TQT_SIGNAL(toggled(bool)), TQT_TQOBJECT(this), TQT_SLOT(showHideFilterBar(bool)) ); connect( m_actShowFilter, TQT_SIGNAL(toggled(bool)), TQT_TQOBJECT(this), TQT_SLOT(showHideFilterBar(bool)) );
m_actFilterAllBaskets = new KToggleAction( i18n("Filter all &Baskets"), "find", "Ctrl+Shift+F", m_actFilterAllBaskets = new TDEToggleAction( i18n("Filter all &Baskets"), "find", "Ctrl+Shift+F",
actionCollection(), "edit_filter_all_baskets" ); actionCollection(), "edit_filter_all_baskets" );
connect( m_actFilterAllBaskets, TQT_SIGNAL(toggled(bool)), TQT_TQOBJECT(this), TQT_SLOT(toggleFilterAllBaskets(bool)) ); connect( m_actFilterAllBaskets, TQT_SIGNAL(toggled(bool)), TQT_TQOBJECT(this), TQT_SLOT(toggleFilterAllBaskets(bool)) );
m_actResetFilter = new KAction( i18n( "&Reset Filter" ), "locationbar_erase", "Ctrl+R", m_actResetFilter = new TDEAction( i18n( "&Reset Filter" ), "locationbar_erase", "Ctrl+R",
TQT_TQOBJECT(this), TQT_SLOT( slotResetFilter() ), actionCollection(), "edit_filter_reset" ); TQT_TQOBJECT(this), TQT_SLOT( slotResetFilter() ), actionCollection(), "edit_filter_reset" );
/** Go : ******************************************************************/ /** Go : ******************************************************************/
m_actPreviousBasket = new KAction( i18n( "&Previous Basket" ), "up", "Alt+Up", m_actPreviousBasket = new TDEAction( i18n( "&Previous Basket" ), "up", "Alt+Up",
TQT_TQOBJECT(this), TQT_SLOT(goToPreviousBasket()), actionCollection(), "go_basket_previous" ); TQT_TQOBJECT(this), TQT_SLOT(goToPreviousBasket()), actionCollection(), "go_basket_previous" );
m_actNextBasket = new KAction( i18n( "&Next Basket" ), "down", "Alt+Down", m_actNextBasket = new TDEAction( i18n( "&Next Basket" ), "down", "Alt+Down",
TQT_TQOBJECT(this), TQT_SLOT(goToNextBasket()), actionCollection(), "go_basket_next" ); TQT_TQOBJECT(this), TQT_SLOT(goToNextBasket()), actionCollection(), "go_basket_next" );
m_actFoldBasket = new KAction( i18n( "&Fold Basket" ), "back", "Alt+Left", m_actFoldBasket = new TDEAction( i18n( "&Fold Basket" ), "back", "Alt+Left",
TQT_TQOBJECT(this), TQT_SLOT(foldBasket()), actionCollection(), "go_basket_fold" ); TQT_TQOBJECT(this), TQT_SLOT(foldBasket()), actionCollection(), "go_basket_fold" );
m_actExpandBasket = new KAction( i18n( "&Expand Basket" ), "forward", "Alt+Right", m_actExpandBasket = new TDEAction( i18n( "&Expand Basket" ), "forward", "Alt+Right",
TQT_TQOBJECT(this), TQT_SLOT(expandBasket()), actionCollection(), "go_basket_expand" ); TQT_TQOBJECT(this), TQT_SLOT(expandBasket()), actionCollection(), "go_basket_expand" );
// FOR_BETA_PURPOSE: // FOR_BETA_PURPOSE:
// m_convertTexts = new KAction( i18n("Convert text notes to rich text notes"), "compfile", "", // m_convertTexts = new TDEAction( i18n("Convert text notes to rich text notes"), "compfile", "",
// TQT_TQOBJECT(this), TQT_SLOT(convertTexts()), actionCollection(), "beta_convert_texts" ); // TQT_TQOBJECT(this), TQT_SLOT(convertTexts()), actionCollection(), "beta_convert_texts" );
InlineEditors::instance()->initToolBars(actionCollection()); InlineEditors::instance()->initToolBars(actionCollection());
@ -626,7 +626,7 @@ void BNPView::setupActions()
/** Help : ****************************************************************/ /** Help : ****************************************************************/
new KAction( i18n("&Welcome Baskets"), "", "", TQT_TQOBJECT(this), TQT_SLOT(addWelcomeBaskets()), actionCollection(), "help_welcome_baskets" ); new TDEAction( i18n("&Welcome Baskets"), "", "", TQT_TQOBJECT(this), TQT_SLOT(addWelcomeBaskets()), actionCollection(), "help_welcome_baskets" );
} }
TQListViewItem* BNPView::firstListViewItem() TQListViewItem* BNPView::firstListViewItem()
@ -647,7 +647,7 @@ void BNPView::slotMouseButtonPressed(int button, TQListViewItem *item, const TQP
} }
} }
void BNPView::slotContextMenu(KListView */*listView*/, TQListViewItem *item, const TQPoint &pos) void BNPView::slotContextMenu(TDEListView */*listView*/, TQListViewItem *item, const TQPoint &pos)
{ {
TQString menuName; TQString menuName;
if (item) { if (item) {
@ -764,7 +764,7 @@ void BNPView::load()
m_loading = false; m_loading = false;
} }
void BNPView::load(KListView */*listView*/, TQListViewItem *item, const TQDomElement &baskets) void BNPView::load(TDEListView */*listView*/, TQListViewItem *item, const TQDomElement &baskets)
{ {
TQDomNode n = baskets.firstChild(); TQDomNode n = baskets.firstChild();
while ( ! n.isNull() ) { while ( ! n.isNull() ) {
@ -1410,7 +1410,7 @@ void BNPView::updateNotesActions()
m_actMoveNoteDown ->setEnabled( !isLocked && oneOrSeveralSelected ); m_actMoveNoteDown ->setEnabled( !isLocked && oneOrSeveralSelected );
m_actMoveOnBottom ->setEnabled( !isLocked && oneOrSeveralSelected && !currentBasket()->isFreeLayout() ); m_actMoveOnBottom ->setEnabled( !isLocked && oneOrSeveralSelected && !currentBasket()->isFreeLayout() );
for (KAction *action = m_insertActions.first(); action; action = m_insertActions.next()) for (TDEAction *action = m_insertActions.first(); action; action = m_insertActions.next())
action->setEnabled( !isLocked ); action->setEnabled( !isLocked );
// From the old Note::contextMenuEvent(...) : // From the old Note::contextMenuEvent(...) :
@ -1551,7 +1551,7 @@ TQPopupMenu* BNPView::popupMenu(const TQString &menuName)
if(!isPart()) if(!isPart())
exit(1); // We SHOULD exit right now and abord everything because the caller except menu != 0 to not crash. exit(1); // We SHOULD exit right now and abord everything because the caller except menu != 0 to not crash.
else else
menu = new KPopupMenu; // When running in kpart we cannot exit menu = new TDEPopupMenu; // When running in kpart we cannot exit
} }
return menu; return menu;
} }
@ -1598,7 +1598,7 @@ void BNPView::grabScreenshot(bool global)
// A special case is where the action is triggered with the global keyboard shortcut. // A special case is where the action is triggered with the global keyboard shortcut.
// In this case, global is true, and we don't wait. // In this case, global is true, and we don't wait.
// In the future, if global is also defined for other cases, check for // In the future, if global is also defined for other cases, check for
// enum KAction::ActivationReason { UnknownActivation, EmulatedActivation, AccelActivation, PopupMenuActivation, ToolBarActivation }; // enum TDEAction::ActivationReason { UnknownActivation, EmulatedActivation, AccelActivation, PopupMenuActivation, ToolBarActivation };
int delay = (isMainWindowActive() ? 500 : (global/*kapp->activePopupWidget()*/ ? 0 : 200)); int delay = (isMainWindowActive() ? 500 : (global/*kapp->activePopupWidget()*/ ? 0 : 200));
m_colorPickWasGlobal = global; m_colorPickWasGlobal = global;
@ -1757,7 +1757,7 @@ void BNPView::doBasketDeletion(Basket *basket)
basket->deleteFiles(); basket->deleteFiles();
removeBasket(basket); removeBasket(basket);
// Remove the action to avoir keyboard-shortcut clashes: // Remove the action to avoir keyboard-shortcut clashes:
delete basket->m_action; // FIXME: It's quick&dirty. In the future, the Basket should be deleted, and then the KAction deleted in the Basket destructor. delete basket->m_action; // FIXME: It's quick&dirty. In the future, the Basket should be deleted, and then the TDEAction deleted in the Basket destructor.
delete decoBasket; delete decoBasket;
// delete basket; // delete basket;
} }
@ -1845,7 +1845,7 @@ void BNPView::openArchive()
void BNPView::activatedTagShortcut() void BNPView::activatedTagShortcut()
{ {
Tag *tag = Tag::tagForKAction((KAction*)sender()); Tag *tag = Tag::tagForTDEAction((TDEAction*)sender());
currentBasket()->activatedTagShortcut(tag); currentBasket()->activatedTagShortcut(tag);
} }
@ -2072,7 +2072,7 @@ void BNPView::setUnsavedStatus(bool isUnsaved)
void BNPView::setActive(bool active) void BNPView::setActive(bool active)
{ {
// std::cout << "Main Window Position: setActive(" << (active ? "true" : "false") << ")" << std::endl; // std::cout << "Main Window Position: setActive(" << (active ? "true" : "false") << ")" << std::endl;
KMainWindow* win = Global::mainWindow(); TDEMainWindow* win = Global::mainWindow();
if(!win) if(!win)
return; return;
@ -2125,7 +2125,7 @@ bool BNPView::isPart()
bool BNPView::isMainWindowActive() bool BNPView::isMainWindowActive()
{ {
KMainWindow* main = Global::mainWindow(); TDEMainWindow* main = Global::mainWindow();
if (main && main->isActiveWindow()) if (main && main->isActiveWindow())
return true; return true;
return false; return false;
@ -2249,7 +2249,7 @@ void BNPView::enableActions()
void BNPView::showMainWindow() void BNPView::showMainWindow()
{ {
KMainWindow *win = Global::mainWindow(); TDEMainWindow *win = Global::mainWindow();
if (win) if (win)
{ {
@ -2261,7 +2261,7 @@ void BNPView::showMainWindow()
void BNPView::populateTagsMenu() void BNPView::populateTagsMenu()
{ {
KPopupMenu *menu = (KPopupMenu*)(popupMenu("tags")); TDEPopupMenu *menu = (TDEPopupMenu*)(popupMenu("tags"));
if (menu == 0 || currentBasket() == 0) // TODO: Display a messagebox. [menu is 0, surely because on first launch, the XMLGUI does not work!] if (menu == 0 || currentBasket() == 0) // TODO: Display a messagebox. [menu is 0, surely because on first launch, the XMLGUI does not work!]
return; return;
menu->clear(); menu->clear();
@ -2278,7 +2278,7 @@ void BNPView::populateTagsMenu()
// connect( menu, TQT_SIGNAL(aboutToHide()), TQT_TQOBJECT(this), TQT_SLOT(disconnectTagsMenu()) ); // connect( menu, TQT_SIGNAL(aboutToHide()), TQT_TQOBJECT(this), TQT_SLOT(disconnectTagsMenu()) );
} }
void BNPView::populateTagsMenu(KPopupMenu &menu, Note *referenceNote) void BNPView::populateTagsMenu(TDEPopupMenu &menu, Note *referenceNote)
{ {
if (currentBasket() == 0) if (currentBasket() == 0)
return; return;

@ -36,10 +36,10 @@
class TQWidgetStack; class TQWidgetStack;
class TQDomDocument; class TQDomDocument;
class TQDomElement; class TQDomElement;
class KToggleAction; class TDEToggleAction;
class KPassivePopup; class KPassivePopup;
class TQPopupMenu; class TQPopupMenu;
class KPopupMenu; class TDEPopupMenu;
class KTar; class KTar;
class DesktopColorPicker; class DesktopColorPicker;
@ -61,7 +61,7 @@ class BNPView : public TQSplitter, virtual public BasketDcopInterface
public: public:
/// CONSTRUCTOR AND DESTRUCTOR: /// CONSTRUCTOR AND DESTRUCTOR:
BNPView(TQWidget *parent, const char *name, KXMLGUIClient *aGUIClient, BNPView(TQWidget *parent, const char *name, KXMLGUIClient *aGUIClient,
KActionCollection *actionCollection, BasketStatusBar *bar); TDEActionCollection *actionCollection, BasketStatusBar *bar);
~BNPView(); ~BNPView();
/// MANAGE CONFIGURATION EVENTS!: /// MANAGE CONFIGURATION EVENTS!:
void setTreePlacement(bool onLeft); void setTreePlacement(bool onLeft);
@ -97,7 +97,7 @@ class BNPView : public TQSplitter, virtual public BasketDcopInterface
void save(TQListViewItem *firstItem, TQDomDocument &document, TQDomElement &parentElement); void save(TQListViewItem *firstItem, TQDomDocument &document, TQDomElement &parentElement);
void saveSubHierarchy(TQListViewItem *item, TQDomDocument &document, TQDomElement &parentElement, bool recursive); void saveSubHierarchy(TQListViewItem *item, TQDomDocument &document, TQDomElement &parentElement, bool recursive);
void load(); void load();
void load(KListView *listView, TQListViewItem *item, const TQDomElement &baskets); void load(TDEListView *listView, TQListViewItem *item, const TQDomElement &baskets);
void loadNewBasket(const TQString &folderName, const TQDomElement &properties, Basket *parent); void loadNewBasket(const TQString &folderName, const TQDomElement &properties, Basket *parent);
void goToPreviousBasket(); void goToPreviousBasket();
void goToNextBasket(); void goToNextBasket();
@ -213,65 +213,65 @@ class BNPView : public TQSplitter, virtual public BasketDcopInterface
void showGlobalShortcutsSettingsDialog(); void showGlobalShortcutsSettingsDialog();
public: public:
KAction *m_actEditNote; TDEAction *m_actEditNote;
KAction *m_actOpenNote; TDEAction *m_actOpenNote;
KAction *m_actPaste; TDEAction *m_actPaste;
KAction *m_actGrabScreenshot; TDEAction *m_actGrabScreenshot;
KAction *m_actColorPicker; TDEAction *m_actColorPicker;
KAction *m_actLockBasket; TDEAction *m_actLockBasket;
KAction *m_actPassBasket; TDEAction *m_actPassBasket;
KAction *actNewBasket; TDEAction *actNewBasket;
KAction *actNewSubBasket; TDEAction *actNewSubBasket;
KAction *actNewSiblingBasket; TDEAction *actNewSiblingBasket;
KAction *m_actHideWindow; TDEAction *m_actHideWindow;
KAction *m_actExportToHtml; TDEAction *m_actExportToHtml;
KAction *m_actPropBasket; TDEAction *m_actPropBasket;
KAction *m_actDelBasket; TDEAction *m_actDelBasket;
KToggleAction *m_actFilterAllBaskets; TDEToggleAction *m_actFilterAllBaskets;
private: private:
// Basket actions: // Basket actions:
KAction *m_actSaveAsArchive; TDEAction *m_actSaveAsArchive;
KAction *m_actOpenArchive; TDEAction *m_actOpenArchive;
// Notes actions : // Notes actions :
KAction *m_actOpenNoteWith; TDEAction *m_actOpenNoteWith;
KAction *m_actSaveNoteAs; TDEAction *m_actSaveNoteAs;
KAction *m_actGroup; TDEAction *m_actGroup;
KAction *m_actUngroup; TDEAction *m_actUngroup;
KAction *m_actMoveOnTop; TDEAction *m_actMoveOnTop;
KAction *m_actMoveNoteUp; TDEAction *m_actMoveNoteUp;
KAction *m_actMoveNoteDown; TDEAction *m_actMoveNoteDown;
KAction *m_actMoveOnBottom; TDEAction *m_actMoveOnBottom;
// Edit actions : // Edit actions :
KAction *m_actUndo; TDEAction *m_actUndo;
KAction *m_actRedo; TDEAction *m_actRedo;
KAction *m_actCutNote; TDEAction *m_actCutNote;
KAction *m_actCopyNote; TDEAction *m_actCopyNote;
KAction *m_actDelNote; TDEAction *m_actDelNote;
KAction *m_actSelectAll; TDEAction *m_actSelectAll;
KAction *m_actUnselectAll; TDEAction *m_actUnselectAll;
KAction *m_actInvertSelection; TDEAction *m_actInvertSelection;
// Insert actions : // Insert actions :
// KAction *m_actInsertText; // TDEAction *m_actInsertText;
KAction *m_actInsertHtml; TDEAction *m_actInsertHtml;
KAction *m_actInsertLink; TDEAction *m_actInsertLink;
KAction *m_actInsertImage; TDEAction *m_actInsertImage;
KAction *m_actInsertColor; TDEAction *m_actInsertColor;
KAction *m_actImportKMenu; TDEAction *m_actImportKMenu;
KAction *m_actInsertLauncher; TDEAction *m_actInsertLauncher;
KAction *m_actImportIcon; TDEAction *m_actImportIcon;
KAction *m_actLoadFile; TDEAction *m_actLoadFile;
TQPtrList<KAction> m_insertActions; TQPtrList<TDEAction> m_insertActions;
// Basket actions : // Basket actions :
KToggleAction *m_actShowFilter; TDEToggleAction *m_actShowFilter;
KAction *m_actResetFilter; TDEAction *m_actResetFilter;
// Go actions : // Go actions :
KAction *m_actPreviousBasket; TDEAction *m_actPreviousBasket;
KAction *m_actNextBasket; TDEAction *m_actNextBasket;
KAction *m_actFoldBasket; TDEAction *m_actFoldBasket;
KAction *m_actExpandBasket; TDEAction *m_actExpandBasket;
// KAction *m_convertTexts; // FOR_BETA_PURPOSE // TDEAction *m_convertTexts; // FOR_BETA_PURPOSE
KAction *actConfigGlobalShortcuts; TDEAction *actConfigGlobalShortcuts;
void setupActions(); void setupActions();
void setupGlobalShortcuts(); void setupGlobalShortcuts();
@ -300,10 +300,10 @@ class BNPView : public TQSplitter, virtual public BasketDcopInterface
void setStatusBarHint(const TQString&); void setStatusBarHint(const TQString&);
void setUnsavedStatus(bool isUnsaved); void setUnsavedStatus(bool isUnsaved);
void setActive(bool active = true); void setActive(bool active = true);
KActionCollection *actionCollection() { return m_actionCollection; }; TDEActionCollection *actionCollection() { return m_actionCollection; };
void populateTagsMenu(); void populateTagsMenu();
void populateTagsMenu(KPopupMenu &menu, Note *referenceNote); void populateTagsMenu(TDEPopupMenu &menu, Note *referenceNote);
void connectTagsMenu(); void connectTagsMenu();
void disconnectTagsMenu(); void disconnectTagsMenu();
void disconnectTagsMenuDelayed(); void disconnectTagsMenuDelayed();
@ -311,12 +311,12 @@ class BNPView : public TQSplitter, virtual public BasketDcopInterface
void showEvent(TQShowEvent*); void showEvent(TQShowEvent*);
void hideEvent(TQHideEvent*); void hideEvent(TQHideEvent*);
private: private:
KPopupMenu *m_lastOpenedTagsMenu; TDEPopupMenu *m_lastOpenedTagsMenu;
private slots: private slots:
void slotPressed(TQListViewItem *item, const TQPoint &/*pos*/ = TQPoint(), int /*column*/ = 0); void slotPressed(TQListViewItem *item, const TQPoint &/*pos*/ = TQPoint(), int /*column*/ = 0);
void needSave(TQListViewItem*); void needSave(TQListViewItem*);
void slotContextMenu(KListView *listView, TQListViewItem *item, const TQPoint &pos); void slotContextMenu(TDEListView *listView, TQListViewItem *item, const TQPoint &pos);
void slotMouseButtonPressed(int button, TQListViewItem *item, const TQPoint &pos, int column); void slotMouseButtonPressed(int button, TQListViewItem *item, const TQPoint &pos, int column);
void slotShowProperties(TQListViewItem *item, const TQPoint&, int); void slotShowProperties(TQListViewItem *item, const TQPoint&, int);
void initialize(); void initialize();
@ -332,7 +332,7 @@ class BNPView : public TQSplitter, virtual public BasketDcopInterface
void leaveEvent(TQEvent*); void leaveEvent(TQEvent*);
private: private:
KListView *m_tree; TDEListView *m_tree;
TQWidgetStack *m_stack; TQWidgetStack *m_stack;
bool m_loading; bool m_loading;
bool m_newBasketPopup; bool m_newBasketPopup;
@ -345,7 +345,7 @@ class BNPView : public TQSplitter, virtual public BasketDcopInterface
NoteSelection *m_passiveDroppedSelection; NoteSelection *m_passiveDroppedSelection;
KPassivePopup *m_passivePopup; KPassivePopup *m_passivePopup;
static const int c_delayTooltipTime; static const int c_delayTooltipTime;
KActionCollection *m_actionCollection; TDEActionCollection *m_actionCollection;
KXMLGUIClient *m_guiClient; KXMLGUIClient *m_guiClient;
BasketStatusBar *m_statusbar; BasketStatusBar *m_statusbar;
TQTimer *m_tryHideTimer; TQTimer *m_tryHideTimer;

@ -59,7 +59,7 @@ FilterBar::FilterBar(TQWidget *parent, const char *name)
m_resetButton->setIconSet(resetIconSet); m_resetButton->setIconSet(resetIconSet);
m_resetButton->setTextLabel(i18n("Reset Filter"));//, /*groupText=*/"", this, TQT_SLOT(reset()), 0); m_resetButton->setTextLabel(i18n("Reset Filter"));//, /*groupText=*/"", this, TQT_SLOT(reset()), 0);
m_resetButton->setAutoRaise(true); m_resetButton->setAutoRaise(true);
//new KToolBarButton("locationbar_erase", /*id=*/1230, this, /*name=*/0, i18n("Reset Filter")); //new TDEToolBarButton("locationbar_erase", /*id=*/1230, this, /*name=*/0, i18n("Reset Filter"));
m_lineEdit = new FocusedLineEdit(this); m_lineEdit = new FocusedLineEdit(this);
TQLabel *label = new TQLabel(m_lineEdit, i18n("&Filter: "), this); TQLabel *label = new TQLabel(m_lineEdit, i18n("&Filter: "), this);
m_tagsBox = new FocusedComboBox(this); m_tagsBox = new FocusedComboBox(this);

@ -228,7 +228,7 @@ void FocusedColorCombo::keyPressEvent(TQKeyEvent *event)
/** class FocusedFontCombo: */ /** class FocusedFontCombo: */
FocusedFontCombo::FocusedFontCombo(TQWidget *parent, const char *name) FocusedFontCombo::FocusedFontCombo(TQWidget *parent, const char *name)
: KFontCombo(parent, name) : TDEFontCombo(parent, name)
{ {
} }
@ -243,7 +243,7 @@ void FocusedFontCombo::keyPressEvent(TQKeyEvent *event)
else if (event->key() == TQt::Key_Return) else if (event->key() == TQt::Key_Return)
emit returnPressed2(); emit returnPressed2();
else else
KFontCombo::keyPressEvent(event); TDEFontCombo::keyPressEvent(event);
} }
/** class FocusedComboBox: */ /** class FocusedComboBox: */

@ -66,8 +66,8 @@ class FocusedColorCombo : public KColorCombo
void returnPressed2(); void returnPressed2();
}; };
// TODO: Rename to EscapableKFontCombo // TODO: Rename to EscapableTDEFontCombo
class FocusedFontCombo : public KFontCombo class FocusedFontCombo : public TDEFontCombo
{ {
Q_OBJECT Q_OBJECT

@ -81,13 +81,13 @@ TQString Global::openNoteIcon() // FIXME: Now an edit icon
return Global::bnpView->m_actEditNote->icon(); return Global::bnpView->m_actEditNote->icon();
} }
KMainWindow* Global::mainWindow() TDEMainWindow* Global::mainWindow()
{ {
TQWidget* res = kapp->mainWidget(); TQWidget* res = kapp->mainWidget();
if(res && res->inherits("KMainWindow")) if(res && res->inherits("TDEMainWindow"))
{ {
return static_cast<KMainWindow*>(res); return static_cast<TDEMainWindow*>(res);
} }
return 0; return 0;
} }

@ -30,7 +30,7 @@ class BackgroundManager;
class SystemTray; class SystemTray;
class BNPView; class BNPView;
class TDEGlobalAccel; class TDEGlobalAccel;
class KMainWindow; class TDEMainWindow;
class TDEAboutData; class TDEAboutData;
/** Handle all global variables of the application. /** Handle all global variables of the application.
@ -63,7 +63,7 @@ class Global
// Various Things: // Various Things:
static TQString openNoteIcon(); /// << @return the icon used for the "Open" action on notes. static TQString openNoteIcon(); /// << @return the icon used for the "Open" action on notes.
static KMainWindow* mainWindow(); static TDEMainWindow* mainWindow();
static TDEConfig* config(); static TDEConfig* config();
static TDEAboutData* about() { return &basketAbout; }; static TDEAboutData* about() { return &basketAbout; };
}; };

@ -743,10 +743,10 @@ void KColorCombo2::keyPressEvent(TQKeyEvent *event)
{ {
KKey key(event); KKey key(event);
if (KStdAccel::copy().contains(key)) { if (TDEStdAccel::copy().contains(key)) {
TQMimeSource *mime = new KColorDrag(effectiveColor()); TQMimeSource *mime = new KColorDrag(effectiveColor());
TQApplication::clipboard()->setData(mime, TQClipboard::Clipboard); TQApplication::clipboard()->setData(mime, TQClipboard::Clipboard);
} else if (KStdAccel::paste().contains(key)) { } else if (TDEStdAccel::paste().contains(key)) {
TQColor color; TQColor color;
KColorDrag::decode(TQApplication::clipboard()->data(TQClipboard::Clipboard), color); KColorDrag::decode(TQApplication::clipboard()->data(TQClipboard::Clipboard), color);
setColor(color); setColor(color);

@ -42,7 +42,7 @@
class KGpgSelKey : public KDialogBase class KGpgSelKey : public KDialogBase
{ {
private: private:
KListView* keysListpr; TDEListView* keysListpr;
public: public:
@ -57,7 +57,7 @@ class KGpgSelKey : public KDialogBase
TQPixmap keyPair = loader->loadIcon("kgpg_key2", KIcon::Small, 20); TQPixmap keyPair = loader->loadIcon("kgpg_key2", KIcon::Small, 20);
setMinimumSize(350,100); setMinimumSize(350,100);
keysListpr = new KListView(page); keysListpr = new TDEListView(page);
keysListpr->setRootIsDecorated(true); keysListpr->setRootIsDecorated(true);
keysListpr->addColumn(i18n("Name")); keysListpr->addColumn(i18n("Name"));
keysListpr->addColumn(i18n("Email")); keysListpr->addColumn(i18n("Email"));
@ -73,8 +73,8 @@ class KGpgSelKey : public KDialogBase
for(KGpgKeyList::iterator it = list.begin(); it != list.end(); ++it) { for(KGpgKeyList::iterator it = list.begin(); it != list.end(); ++it) {
TQString name = gpg.checkForUtf8((*it).name); TQString name = gpg.checkForUtf8((*it).name);
KListViewItem *item = new TDEListViewItem *item = new
KListViewItem(keysListpr, name, (*it).email, (*it).id); TDEListViewItem(keysListpr, name, (*it).email, (*it).id);
item->setPixmap(0,keyPair); item->setPixmap(0,keyPair);
if(preselected == (*it).id) { if(preselected == (*it).id) {
keysListpr->setSelected(item, true); keysListpr->setSelected(item, true);

@ -37,7 +37,7 @@
<property name="margin"> <property name="margin">
<number>0</number> <number>0</number>
</property> </property>
<widget class="KListBox" row="0" column="0"> <widget class="TDEListBox" row="0" column="0">
<property name="name"> <property name="name">
<cstring>listBox</cstring> <cstring>listBox</cstring>
</property> </property>

@ -374,10 +374,10 @@ TDEConfig* LikeBack::config()
return d->config; return d->config;
} }
KAction* LikeBack::sendACommentAction(KActionCollection *parent) TDEAction* LikeBack::sendACommentAction(TDEActionCollection *parent)
{ {
if (d->action == 0) if (d->action == 0)
d->action = new KAction( d->action = new TDEAction(
i18n("&Send a Comment to Developers"), /*icon=*/"mail_new", /*shortcut=*/"", i18n("&Send a Comment to Developers"), /*icon=*/"mail_new", /*shortcut=*/"",
this, TQT_SLOT(execCommentDialog()), this, TQT_SLOT(execCommentDialog()),
parent, "likeback_send_a_comment" parent, "likeback_send_a_comment"

@ -25,8 +25,8 @@
class TDEConfig; class TDEConfig;
class TDEAboutData; class TDEAboutData;
class KAction; class TDEAction;
class KActionCollection; class TDEActionCollection;
class LikeBackPrivate; class LikeBackPrivate;
class LikeBackBar; class LikeBackBar;
@ -48,7 +48,7 @@ class LikeBackDialog;
* *
* The LikeBack system has 5 components: * The LikeBack system has 5 components:
* @li In the application: The comment dialog, where the user write a comment, select a type of comment, etc. * @li In the application: The comment dialog, where the user write a comment, select a type of comment, etc.
* @li In the application: The KAction to plug in the Help menu. This action displays the comment dialog. * @li In the application: The TDEAction to plug in the Help menu. This action displays the comment dialog.
* @li In the application: The button-bar, that floats bellow titlebar of every windows of the application, and let the user to quickly show the comment dialog. * @li In the application: The button-bar, that floats bellow titlebar of every windows of the application, and let the user to quickly show the comment dialog.
* The button-bar can be hidden. * The button-bar can be hidden.
* @li On the server: A PHP script that collects every comments that users send. The LikeBack object should be configured to contact that server. * @li On the server: A PHP script that collects every comments that users send. The LikeBack object should be configured to contact that server.
@ -64,7 +64,7 @@ class LikeBackDialog;
* // Comment the following line once you are sure all your windows have a name: * // Comment the following line once you are sure all your windows have a name:
* likeBack->setWindowNamesListing(LikeBack::WarnUnnamedWindows); * likeBack->setWindowNamesListing(LikeBack::WarnUnnamedWindows);
* *
* // This line should be called early in your KMainWindow constructor because it references actionCollection(). * // This line should be called early in your TDEMainWindow constructor because it references actionCollection().
* // It should be called before createGUI() for the action to be plugged in the Help menu: * // It should be called before createGUI() for the action to be plugged in the Help menu:
* likeBack->sendACommentAction(actionCollection()); * likeBack->sendACommentAction(actionCollection());
* @endcode * @endcode
@ -129,7 +129,7 @@ class LikeBack : public TQObject
/** /**
* Destructor. * Destructor.
* Also hide the button-bar, if it was shown. * Also hide the button-bar, if it was shown.
* Be careful, the KAction is deleted. Do not use it afterward, and take care to unplug it before destroying this LikeBack instance. * Be careful, the TDEAction is deleted. Do not use it afterward, and take care to unplug it before destroying this LikeBack instance.
*/ */
~LikeBack(); ~LikeBack();
@ -210,7 +210,7 @@ class LikeBack : public TQObject
TQ_UINT16 hostPort(); TQ_UINT16 hostPort();
/** /**
* Get the KAction letting user to show the comment dialog. * Get the TDEAction letting user to show the comment dialog.
* You should plug it in your Help menu, just bellow the "Report a Bug" action, or replace it. * You should plug it in your Help menu, just bellow the "Report a Bug" action, or replace it.
* Adding the action below "Report a Bug" or replacing "Report a Bug" depends on your application and if you have a Bugzilla account. * Adding the action below "Report a Bug" or replacing "Report a Bug" depends on your application and if you have a Bugzilla account.
* If you do not have a Bugzilla account, LikeBack is a good way for your small application to get bug reports: remove "Report a Bug". * If you do not have a Bugzilla account, LikeBack is a good way for your small application to get bug reports: remove "Report a Bug".
@ -220,7 +220,7 @@ class LikeBack : public TQObject
* <Action name="likeback_send_a_comment" /> * <Action name="likeback_send_a_comment" />
* @endcode * @endcode
*/ */
KAction* sendACommentAction(KActionCollection *parent = 0); TDEAction* sendACommentAction(TDEActionCollection *parent = 0);
/** /**
* @Returns The path of the currently active window. Each windows are separated with "~~". * @Returns The path of the currently active window. Each windows are separated with "~~".
@ -281,7 +281,7 @@ class LikeBack : public TQObject
* @param windowPath The window path to send with the comment. If empty (the default), the current window path is took. * @param windowPath The window path to send with the comment. If empty (the default), the current window path is took.
* Separate window names with "~~". For instance "MainWindow~~NewFile~~FileOpen". * Separate window names with "~~". For instance "MainWindow~~NewFile~~FileOpen".
* If you popup the dialog after an error occurred, you can put the error name in that field (if the window path has no sense in that context). * If you popup the dialog after an error occurred, you can put the error name in that field (if the window path has no sense in that context).
* When the dialog is popuped up from the sendACommentAction() KAction, this value is "HelpMenu", because there is no way to know if the user * When the dialog is popuped up from the sendACommentAction() TDEAction, this value is "HelpMenu", because there is no way to know if the user
* is commenting a thing he found/thinked about in a sub-dialog. * is commenting a thing he found/thinked about in a sub-dialog.
* @param context Not used for the moment. Will allow more fine-grained application status report. * @param context Not used for the moment. Will allow more fine-grained application status report.
*/ */
@ -303,7 +303,7 @@ class LikeBack : public TQObject
private slots: private slots:
/** /**
* Slot triggered by the "Help -> Send a Comment to Developers" KAction. * Slot triggered by the "Help -> Send a Comment to Developers" TDEAction.
* It popups the comment dialog, and set the window path to "HelpMenuAction", * It popups the comment dialog, and set the window path to "HelpMenuAction",
* because current window path has no meaning in that case. * because current window path has no meaning in that case.
*/ */

@ -51,7 +51,7 @@ class LikeBackPrivate
bool showBar; bool showBar;
int disabledCount; int disabledCount;
TQString fetchedEmail; TQString fetchedEmail;
KAction *action; TDEAction *action;
}; };
class LikeBackBar : public TQWidget class LikeBackBar : public TQWidget

@ -101,7 +101,7 @@
/** Container */ /** Container */
MainWindow::MainWindow(TQWidget *parent, const char *name) MainWindow::MainWindow(TQWidget *parent, const char *name)
: KMainWindow(parent, name != 0 ? name : "MainWindow"), m_settings(0), m_quit(false) : TDEMainWindow(parent, name != 0 ? name : "MainWindow"), m_settings(0), m_quit(false)
{ {
BasketStatusBar* bar = new BasketStatusBar(statusBar()); BasketStatusBar* bar = new BasketStatusBar(statusBar());
m_baskets = new BNPView(this, "BNPViewApp", this, actionCollection(), bar); m_baskets = new BNPView(this, "BNPViewApp", this, actionCollection(), bar);
@ -133,7 +133,7 @@ MainWindow::~MainWindow()
void MainWindow::setupActions() void MainWindow::setupActions()
{ {
actQuit = KStdAction::quit( TQT_TQOBJECT(this), TQT_SLOT(quit()), actionCollection() ); actQuit = KStdAction::quit( TQT_TQOBJECT(this), TQT_SLOT(quit()), actionCollection() );
new KAction(i18n("Minimize"), "", 0, new TDEAction(i18n("Minimize"), "", 0,
TQT_TQOBJECT(this), TQT_SLOT(minimizeRestore()), actionCollection(), "minimizeRestore" ); TQT_TQOBJECT(this), TQT_SLOT(minimizeRestore()), actionCollection(), "minimizeRestore" );
/** Settings : ************************************************************/ /** Settings : ************************************************************/
// m_actShowToolbar = KStdAction::showToolbar( TQT_TQOBJECT(this), TQT_SLOT(toggleToolBar()), actionCollection()); // m_actShowToolbar = KStdAction::showToolbar( TQT_TQOBJECT(this), TQT_SLOT(toggleToolBar()), actionCollection());
@ -145,7 +145,7 @@ void MainWindow::setupActions()
(void) KStdAction::configureToolbars(TQT_TQOBJECT(this), TQT_SLOT(configureToolbars()), actionCollection() ); (void) KStdAction::configureToolbars(TQT_TQOBJECT(this), TQT_SLOT(configureToolbars()), actionCollection() );
//KAction *actCfgNotifs = KStdAction::configureNotifications(this, TQT_SLOT(configureNotifications()), actionCollection() ); //TDEAction *actCfgNotifs = KStdAction::configureNotifications(this, TQT_SLOT(configureNotifications()), actionCollection() );
//actCfgNotifs->setEnabled(false); // Not yet implemented ! //actCfgNotifs->setEnabled(false); // Not yet implemented !
actAppConfig = KStdAction::preferences( TQT_TQOBJECT(this), TQT_SLOT(showSettingsDialog()), actionCollection() ); actAppConfig = KStdAction::preferences( TQT_TQOBJECT(this), TQT_SLOT(showSettingsDialog()), actionCollection() );
@ -238,7 +238,7 @@ void MainWindow::polish()
//resize(Settings::mainWindowSize()); //resize(Settings::mainWindowSize());
} }
KMainWindow::polish(); TDEMainWindow::polish();
if (shouldSave) { if (shouldSave) {
// std::cout << "Main Window Position: Save size and position in show(x=" // std::cout << "Main Window Position: Save size and position in show(x="
@ -260,7 +260,7 @@ void MainWindow::resizeEvent(TQResizeEvent *event)
// Added to make it work (previous lines do not work): // Added to make it work (previous lines do not work):
//saveMainWindowSettings( TDEGlobal::config(), autoSaveGroup() ); //saveMainWindowSettings( TDEGlobal::config(), autoSaveGroup() );
KMainWindow::resizeEvent(event); TDEMainWindow::resizeEvent(event);
} }
void MainWindow::moveEvent(TQMoveEvent *event) void MainWindow::moveEvent(TQMoveEvent *event)
@ -271,7 +271,7 @@ void MainWindow::moveEvent(TQMoveEvent *event)
// Added to make it work (previous lines do not work): // Added to make it work (previous lines do not work):
//saveMainWindowSettings( TDEGlobal::config(), autoSaveGroup() ); //saveMainWindowSettings( TDEGlobal::config(), autoSaveGroup() );
KMainWindow::moveEvent(event); TDEMainWindow::moveEvent(event);
} }
bool MainWindow::queryExit() bool MainWindow::queryExit()

@ -37,8 +37,8 @@
class TQWidget; class TQWidget;
class TQPoint; class TQPoint;
class KAction; class TDEAction;
class KToggleAction; class TDEToggleAction;
class TQPopupMenu; class TQPopupMenu;
class TQSignalMapper; class TQSignalMapper;
class TQStringList; class TQStringList;
@ -57,7 +57,7 @@ namespace KSettings { class Dialog; };
/** The window that contain baskets, organized by tabs. /** The window that contain baskets, organized by tabs.
* @author S<EFBFBD>astien Laot * @author S<EFBFBD>astien Laot
*/ */
class MainWindow : public KMainWindow class MainWindow : public TDEMainWindow
{ {
Q_OBJECT Q_OBJECT
@ -91,11 +91,11 @@ class MainWindow : public KMainWindow
private: private:
// Settings actions : // Settings actions :
// KToggleAction *m_actShowToolbar; // TDEToggleAction *m_actShowToolbar;
KToggleAction *m_actShowStatusbar; TDEToggleAction *m_actShowStatusbar;
KAction *actQuit; TDEAction *actQuit;
KAction *actAppConfig; TDEAction *actAppConfig;
TQPtrList<KAction> actBasketsList; TQPtrList<TDEAction> actBasketsList;
private: private:
TQVBoxLayout *m_layout; TQVBoxLayout *m_layout;

@ -796,7 +796,7 @@ InlineEditors* InlineEditors::instance()
return instance; return instance;
} }
void InlineEditors::initToolBars(KActionCollection *actionCollection) void InlineEditors::initToolBars(TDEActionCollection *actionCollection)
{ {
TQFont defaultFont; TQFont defaultFont;
TQColor textColor = (Global::bnpView && Global::bnpView->currentBasket() ? TQColor textColor = (Global::bnpView && Global::bnpView->currentBasket() ?
@ -818,32 +818,32 @@ void InlineEditors::initToolBars(KActionCollection *actionCollection)
richTextColor = new FocusedColorCombo(Global::mainWindow()); richTextColor = new FocusedColorCombo(Global::mainWindow());
richTextColor->setFixedWidth(richTextColor->sizeHint().height() * 2); richTextColor->setFixedWidth(richTextColor->sizeHint().height() * 2);
richTextColor->setColor(textColor); richTextColor->setColor(textColor);
action = new KWidgetAction(richTextColor, i18n("Color"), KShortcut(), 0, TQT_SLOT(), actionCollection, "richtext_color"); action = new KWidgetAction(richTextColor, i18n("Color"), TDEShortcut(), 0, TQT_SLOT(), actionCollection, "richtext_color");
richTextBold = new KToggleAction( i18n("Bold"), "text_bold", "Ctrl+B", actionCollection, "richtext_bold" ); richTextBold = new TDEToggleAction( i18n("Bold"), "text_bold", "Ctrl+B", actionCollection, "richtext_bold" );
richTextItalic = new KToggleAction( i18n("Italic"), "text_italic", "Ctrl+I", actionCollection, "richtext_italic" ); richTextItalic = new TDEToggleAction( i18n("Italic"), "text_italic", "Ctrl+I", actionCollection, "richtext_italic" );
richTextUnderline = new KToggleAction( i18n("Underline"), "text_under", "Ctrl+U", actionCollection, "richtext_underline" ); richTextUnderline = new TDEToggleAction( i18n("Underline"), "text_under", "Ctrl+U", actionCollection, "richtext_underline" );
// richTextSuper = new KToggleAction( i18n("Superscript"), "text_super", "", actionCollection, "richtext_super" ); // richTextSuper = new TDEToggleAction( i18n("Superscript"), "text_super", "", actionCollection, "richtext_super" );
// richTextSub = new KToggleAction( i18n("Subscript"), "text_sub", "", actionCollection, "richtext_sub" ); // richTextSub = new TDEToggleAction( i18n("Subscript"), "text_sub", "", actionCollection, "richtext_sub" );
richTextLeft = new KToggleAction( i18n("Align Left"), "text_left", "", actionCollection, "richtext_left" ); richTextLeft = new TDEToggleAction( i18n("Align Left"), "text_left", "", actionCollection, "richtext_left" );
richTextCenter = new KToggleAction( i18n("Centered"), "text_center", "", actionCollection, "richtext_center" ); richTextCenter = new TDEToggleAction( i18n("Centered"), "text_center", "", actionCollection, "richtext_center" );
richTextRight = new KToggleAction( i18n("Align Right"), "text_right", "", actionCollection, "richtext_right" ); richTextRight = new TDEToggleAction( i18n("Align Right"), "text_right", "", actionCollection, "richtext_right" );
richTextJustified = new KToggleAction( i18n("Justified"), "text_block", "", actionCollection, "richtext_block" ); richTextJustified = new TDEToggleAction( i18n("Justified"), "text_block", "", actionCollection, "richtext_block" );
richTextLeft->setExclusiveGroup("rt_justify"); richTextLeft->setExclusiveGroup("rt_justify");
richTextCenter->setExclusiveGroup("rt_justify"); richTextCenter->setExclusiveGroup("rt_justify");
richTextRight->setExclusiveGroup("rt_justify"); richTextRight->setExclusiveGroup("rt_justify");
richTextJustified->setExclusiveGroup("rt_justify"); richTextJustified->setExclusiveGroup("rt_justify");
richTextUndo = new KAction( i18n("Undo"), "undo", "", actionCollection, "richtext_undo"); richTextUndo = new TDEAction( i18n("Undo"), "undo", "", actionCollection, "richtext_undo");
richTextRedo = new KAction( i18n("Redo"), "redo", "", actionCollection, "richtext_redo"); richTextRedo = new TDEAction( i18n("Redo"), "redo", "", actionCollection, "richtext_redo");
disableRichTextToolBar(); disableRichTextToolBar();
} }
KToolBar* InlineEditors::richTextToolBar() TDEToolBar* InlineEditors::richTextToolBar()
{ {
if (Global::mainWindow()) { if (Global::mainWindow()) {
Global::mainWindow()->toolBar(); // Make sure we create the main toolbar FIRST, so it will be on top of the edit toolbar! Global::mainWindow()->toolBar(); // Make sure we create the main toolbar FIRST, so it will be on top of the edit toolbar!

@ -31,9 +31,9 @@ class TQPushButton;
class KIconButton; class KIconButton;
class KURLRequester; class KURLRequester;
class KTextEdit; class KTextEdit;
class KMainWindow; class TDEMainWindow;
class KTooolBar; class KTooolBar;
class KToggleAction; class TDEToggleAction;
class FontSizeCombo; class FontSizeCombo;
@ -276,28 +276,28 @@ class InlineEditors : public TQObject
public: public:
InlineEditors(); InlineEditors();
~InlineEditors(); ~InlineEditors();
void initToolBars(KActionCollection *actionCollection); void initToolBars(TDEActionCollection *actionCollection);
static InlineEditors* instance(); static InlineEditors* instance();
public: public:
// Rich Text ToolBar: // Rich Text ToolBar:
KToolBar* richTextToolBar(); TDEToolBar* richTextToolBar();
void enableRichTextToolBar(); void enableRichTextToolBar();
void disableRichTextToolBar(); void disableRichTextToolBar();
FocusedFontCombo *richTextFont; FocusedFontCombo *richTextFont;
FontSizeCombo *richTextFontSize; FontSizeCombo *richTextFontSize;
FocusedColorCombo *richTextColor; FocusedColorCombo *richTextColor;
KToggleAction *richTextBold; TDEToggleAction *richTextBold;
KToggleAction *richTextItalic; TDEToggleAction *richTextItalic;
KToggleAction *richTextUnderline; TDEToggleAction *richTextUnderline;
// KToggleAction *richTextSuper; // TDEToggleAction *richTextSuper;
// KToggleAction *richTextSub; // TDEToggleAction *richTextSub;
KToggleAction *richTextLeft; TDEToggleAction *richTextLeft;
KToggleAction *richTextCenter; TDEToggleAction *richTextCenter;
KToggleAction *richTextRight; TDEToggleAction *richTextRight;
KToggleAction *richTextJustified; TDEToggleAction *richTextJustified;
KAction *richTextUndo; TDEAction *richTextUndo;
KAction *richTextRedo; TDEAction *richTextRedo;
}; };
#endif // NOTEEDIT_H #endif // NOTEEDIT_H

@ -499,7 +499,7 @@ Note* NoteFactory::dropURLs(KURL::List urls, Basket *parent, TQDropEvent::Action
break; break;
} }
if (shouldAsk) { if (shouldAsk) {
KPopupMenu menu(parent); TDEPopupMenu menu(parent);
menu.insertItem( SmallIconSet("goto"), i18n("&Move Here\tShift"), 0 ); menu.insertItem( SmallIconSet("goto"), i18n("&Move Here\tShift"), 0 );
menu.insertItem( SmallIconSet("editcopy"), i18n("&Copy Here\tCtrl"), 1 ); menu.insertItem( SmallIconSet("editcopy"), i18n("&Copy Here\tCtrl"), 1 );
menu.insertItem( SmallIconSet("www"), i18n("&Link Here\tCtrl+Shift"), 2 ); menu.insertItem( SmallIconSet("www"), i18n("&Link Here\tCtrl+Shift"), 2 );

@ -24,7 +24,7 @@
class TQPopupMenu; class TQPopupMenu;
class TQRect; class TQRect;
/** TQPopupMenu/KPopupMenu doesn't provide metod to exec a menu /** TQPopupMenu/TDEPopupMenu doesn't provide metod to exec a menu
* at a given rectangle ! * at a given rectangle !
* eg, popup at bottom of a rectangle, and at top if not possible... * eg, popup at bottom of a rectangle, and at top if not possible...
* @author Sébastien Laoût * @author Sébastien Laoût

@ -97,7 +97,7 @@ void KSystemTray2::displayCloseMessage(TQString fileMenu)
TQCString screenstr; TQCString screenstr;
screenstr.setNum(tqt_xscreen()); screenstr.setNum(tqt_xscreen());
TQCString trayatom = "_NET_SYSTEM_TRAY_S" + screenstr; TQCString trayatom = "_NET_SYSTEM_TRAY_S" + screenstr;
bool useSystray = (KSelectionWatcher(trayatom.data()).owner() != 0L); bool useSystray = (TDESelectionWatcher(trayatom.data()).owner() != 0L);
// 2. And then if the icon is visible too (eg. this->show() has been called): // 2. And then if the icon is visible too (eg. this->show() has been called):
useSystray = useSystray && isVisible(); useSystray = useSystray && isVisible();
@ -237,7 +237,7 @@ void SystemTray::mousePressEvent(TQMouseEvent *event)
Global::bnpView->showPassiveDropped(i18n("Pasted selection to basket <i>%1</i>")); Global::bnpView->showPassiveDropped(i18n("Pasted selection to basket <i>%1</i>"));
event->accept(); event->accept();
} else if (event->button() & Qt::RightButton) { // Popup menu } else if (event->button() & Qt::RightButton) { // Popup menu
KPopupMenu menu(this); TDEPopupMenu menu(this);
menu.insertTitle( SmallIcon("basket"), kapp->aboutData()->programName() ); menu.insertTitle( SmallIcon("basket"), kapp->aboutData()->programName() );
Global::bnpView->actNewBasket->plug(&menu); Global::bnpView->actNewBasket->plug(&menu);
@ -250,7 +250,7 @@ void SystemTray::mousePressEvent(TQMouseEvent *event)
if(!Global::bnpView->isPart()) if(!Global::bnpView->isPart())
{ {
KAction* action; TDEAction* action;
menu.insertSeparator(); menu.insertSeparator();

@ -41,7 +41,7 @@ class KSystemTray2 : public KSystemTray
* (the [x]) to inform him that the application sit in the system tray * (the [x]) to inform him that the application sit in the system tray
* and willn't be closed (as he is used to). * and willn't be closed (as he is used to).
* *
* You usualy call it from reimplemented KMainWindow::queryClose() * You usualy call it from reimplemented TDEMainWindow::queryClose()
* *
* @since 3.4 * @since 3.4
*/ */

@ -223,7 +223,7 @@ Tag::Tag()
static int tagNumber = 0; static int tagNumber = 0;
++tagNumber; ++tagNumber;
TQString sAction = "tag_shortcut_number_" + TQString::number(tagNumber); TQString sAction = "tag_shortcut_number_" + TQString::number(tagNumber);
m_action = new KAction("FAKE TEXT", "FAKE ICON", KShortcut(), TQT_TQOBJECT(Global::bnpView), TQT_SLOT(activatedTagShortcut()), Global::bnpView->actionCollection(), sAction); m_action = new TDEAction("FAKE TEXT", "FAKE ICON", TDEShortcut(), TQT_TQOBJECT(Global::bnpView), TQT_SLOT(activatedTagShortcut()), Global::bnpView->actionCollection(), sAction);
m_action->setShortcutConfigurable(false); // We do it in the tag properties dialog m_action->setShortcutConfigurable(false); // We do it in the tag properties dialog
m_inheritedBySiblings = false; m_inheritedBySiblings = false;
@ -249,7 +249,7 @@ State* Tag::stateForId(const TQString &id)
return 0; return 0;
} }
Tag* Tag::tagForKAction(KAction *action) Tag* Tag::tagForTDEAction(TDEAction *action)
{ {
for (List::iterator it = all.begin(); it != all.end(); ++it) for (List::iterator it = all.begin(); it != all.end(); ++it)
if ((*it)->m_action == action) if ((*it)->m_action == action)
@ -293,7 +293,7 @@ TQMap<TQString, TQString> Tag::loadTags(const TQString &path/* = TQString()*//*,
TQString shortcut = XMLWork::getElementText(element, "shortcut"); TQString shortcut = XMLWork::getElementText(element, "shortcut");
TQString inherited = XMLWork::getElementText(element, "inherited", "false"); TQString inherited = XMLWork::getElementText(element, "inherited", "false");
tag->setName(name); tag->setName(name);
tag->setShortcut(KShortcut(shortcut)); tag->setShortcut(TDEShortcut(shortcut));
tag->setInheritedBySiblings(XMLWork::trueOrFalse(inherited)); tag->setInheritedBySiblings(XMLWork::trueOrFalse(inherited));
// Load states: // Load states:
TQDomNode subNode = element.firstChild(); TQDomNode subNode = element.firstChild();

@ -113,7 +113,7 @@ class Tag
typedef TQValueList<Tag*> List; typedef TQValueList<Tag*> List;
static Tag::List all; static Tag::List all;
static State* stateForId(const TQString &id); static State* stateForId(const TQString &id);
static Tag* tagForKAction(KAction *action); static Tag* tagForTDEAction(TDEAction *action);
static Tag* tagSimilarTo(Tag *tagToTest); static Tag* tagSimilarTo(Tag *tagToTest);
static TQMap<TQString, TQString> loadTags(const TQString &path = TQString()/*, bool merge = false*/); /// << Load the tags contained in the XML file @p path or those in the application settings if @p path isEmpty(). If @p merge is true and a tag with the id of a tag that should be loaded already exist, the tag will get a new id. Otherwise, the tag will be dismissed. static TQMap<TQString, TQString> loadTags(const TQString &path = TQString()/*, bool merge = false*/); /// << Load the tags contained in the XML file @p path or those in the application settings if @p path isEmpty(). If @p merge is true and a tag with the id of a tag that should be loaded already exist, the tag will get a new id. Otherwise, the tag will be dismissed.
static void saveTags(); static void saveTags();
@ -129,13 +129,13 @@ class Tag
~Tag(); ~Tag();
/// SET PROPERTIES: /// SET PROPERTIES:
void setName(const TQString &name); void setName(const TQString &name);
void setShortcut(const KShortcut &shortcut) { m_action->setShortcut(shortcut); } void setShortcut(const TDEShortcut &shortcut) { m_action->setShortcut(shortcut); }
void setInheritedBySiblings(bool inherited) { m_inheritedBySiblings = inherited; } void setInheritedBySiblings(bool inherited) { m_inheritedBySiblings = inherited; }
void appendState(State *state) { m_states.append(state); state->setParentTag(this); } void appendState(State *state) { m_states.append(state); state->setParentTag(this); }
void removeState(State *state) { m_states.remove(state); state->setParentTag(0); } void removeState(State *state) { m_states.remove(state); state->setParentTag(0); }
/// GET PROPERTIES: /// GET PROPERTIES:
TQString name() const { return m_name; } TQString name() const { return m_name; }
KShortcut shortcut() const { return m_action->shortcut(); } TDEShortcut shortcut() const { return m_action->shortcut(); }
bool inheritedBySiblings() const { return m_inheritedBySiblings; } bool inheritedBySiblings() const { return m_inheritedBySiblings; }
State::List& states() const { return (State::List&)m_states; } State::List& states() const { return (State::List&)m_states; }
int countStates() const { return m_states.count(); } int countStates() const { return m_states.count(); }
@ -143,7 +143,7 @@ class Tag
private: private:
/// PROPERTIES: /// PROPERTIES:
TQString m_name; TQString m_name;
KAction *m_action; TDEAction *m_action;
bool m_inheritedBySiblings; bool m_inheritedBySiblings;
State::List m_states; State::List m_states;
}; };

@ -381,7 +381,7 @@ TagsEditDialog::TagsEditDialog(TQWidget *parent, State *stateToEdit, bool addNew
m_shortcut = new KKeyButton(tagWidget); m_shortcut = new KKeyButton(tagWidget);
m_removeShortcut = new TQPushButton(i18n("Remove tag shortcut", "&Remove"), tagWidget); m_removeShortcut = new TQPushButton(i18n("Remove tag shortcut", "&Remove"), tagWidget);
TQLabel *shortcutLabel = new TQLabel(m_shortcut, i18n("S&hortcut:"), tagWidget); TQLabel *shortcutLabel = new TQLabel(m_shortcut, i18n("S&hortcut:"), tagWidget);
connect( m_shortcut, TQT_SIGNAL(capturedShortcut(const KShortcut&)), this, TQT_SLOT(capturedShortcut(const KShortcut&)) ); connect( m_shortcut, TQT_SIGNAL(capturedShortcut(const TDEShortcut&)), this, TQT_SLOT(capturedShortcut(const TDEShortcut&)) );
connect( m_removeShortcut, TQT_SIGNAL(clicked()), this, TQT_SLOT(removeShortcut()) ); connect( m_removeShortcut, TQT_SIGNAL(clicked()), this, TQT_SLOT(removeShortcut()) );
m_inherit = new TQCheckBox(i18n("&Inherited by new sibling notes"), tagWidget); m_inherit = new TQCheckBox(i18n("&Inherited by new sibling notes"), tagWidget);
@ -466,7 +466,7 @@ TagsEditDialog::TagsEditDialog(TQWidget *parent, State *stateToEdit, bool addNew
m_textColor = new KColorCombo2(TQColor(), TDEGlobalSettings::textColor(), stateWidget); m_textColor = new KColorCombo2(TQColor(), TDEGlobalSettings::textColor(), stateWidget);
TQLabel *textColorLabel = new TQLabel(m_textColor, i18n("Co&lor:"), stateWidget); TQLabel *textColorLabel = new TQLabel(m_textColor, i18n("Co&lor:"), stateWidget);
m_font = new KFontCombo(stateWidget); m_font = new TDEFontCombo(stateWidget);
m_font->insertItem(i18n("(Default)"), 0); m_font->insertItem(i18n("(Default)"), 0);
TQLabel *fontLabel = new TQLabel(m_font, i18n("&Font:"), stateWidget); TQLabel *fontLabel = new TQLabel(m_font, i18n("&Font:"), stateWidget);
@ -589,7 +589,7 @@ TagsEditDialog::TagsEditDialog(TQWidget *parent, State *stateToEdit, bool addNew
// Connect Signals: // Connect Signals:
connect( m_tagName, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(modified()) ); connect( m_tagName, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(modified()) );
connect( m_shortcut, TQT_SIGNAL(capturedShortcut(const KShortcut&)), this, TQT_SLOT(modified()) ); connect( m_shortcut, TQT_SIGNAL(capturedShortcut(const TDEShortcut&)), this, TQT_SLOT(modified()) );
connect( m_inherit, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(modified()) ); connect( m_inherit, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(modified()) );
connect( m_stateName, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(modified()) ); connect( m_stateName, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(modified()) );
connect( m_emblem, TQT_SIGNAL(iconChanged(TQString)), this, TQT_SLOT(modified()) ); connect( m_emblem, TQT_SIGNAL(iconChanged(TQString)), this, TQT_SLOT(modified()) );
@ -962,7 +962,7 @@ void TagsEditDialog::renameIt()
m_stateName->setFocus(); m_stateName->setFocus();
} }
void TagsEditDialog::capturedShortcut(const KShortcut &shortcut) void TagsEditDialog::capturedShortcut(const TDEShortcut &shortcut)
{ {
// TODO: Validate it! // TODO: Validate it!
m_shortcut->setShortcut(shortcut, /*bTQtShortcut=*/true); m_shortcut->setShortcut(shortcut, /*bTQtShortcut=*/true);
@ -970,7 +970,7 @@ void TagsEditDialog::capturedShortcut(const KShortcut &shortcut)
void TagsEditDialog::removeShortcut() void TagsEditDialog::removeShortcut()
{ {
m_shortcut->setShortcut(KShortcut(), /*bTQtShortcut=*/true); m_shortcut->setShortcut(TDEShortcut(), /*bTQtShortcut=*/true);
modified(); modified();
} }

@ -32,9 +32,9 @@ class TQCheckBox;
class KPushButton; class KPushButton;
class KKeyButton; class KKeyButton;
class KIconButton; class KIconButton;
class KFontCombo; class TDEFontCombo;
class TQLabel; class TQLabel;
class KShortcut; class TDEShortcut;
class KColorCombo2; class KColorCombo2;
@ -133,7 +133,7 @@ class TagsEditDialog : public KDialogBase
void moveDown(); void moveDown();
void deleteTag(); void deleteTag();
void renameIt(); void renameIt();
void capturedShortcut(const KShortcut &shortcut); void capturedShortcut(const TDEShortcut &shortcut);
void removeShortcut(); void removeShortcut();
void removeEmblem(); void removeEmblem();
void modified(); void modified();
@ -171,7 +171,7 @@ class TagsEditDialog : public KDialogBase
TQPushButton *m_italic; TQPushButton *m_italic;
TQPushButton *m_strike; TQPushButton *m_strike;
KColorCombo2 *m_textColor; KColorCombo2 *m_textColor;
KFontCombo *m_font; TDEFontCombo *m_font;
FontSizeCombo *m_fontSize; FontSizeCombo *m_fontSize;
KColorCombo2 *m_backgroundColor; KColorCombo2 *m_backgroundColor;
TQLineEdit *m_textEquivalent; TQLineEdit *m_textEquivalent;

@ -276,7 +276,7 @@ FontSizeCombo::FontSizeCombo(bool rw, bool withDefault, TQWidget *parent, const
// connect( this, TQT_SIGNAL(acivated(const TQString&)), this, TQT_SLOT(textChangedInCombo(const TQString&)) ); // connect( this, TQT_SIGNAL(acivated(const TQString&)), this, TQT_SLOT(textChangedInCombo(const TQString&)) );
connect( this, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(textChangedInCombo(const TQString&)) ); connect( this, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(textChangedInCombo(const TQString&)) );
// TODO: 01617 void KFontSizeAction::setFontSize( int size ) // TODO: 01617 void TDEFontSizeAction::setFontSize( int size )
} }
FontSizeCombo::~FontSizeCombo() FontSizeCombo::~FontSizeCombo()
@ -305,7 +305,7 @@ void FontSizeCombo::setFontSize(int size)
{ {
setCurrentText(TQString::number(size)); setCurrentText(TQString::number(size));
// TODO: SEE KFontSizeAction::setFontSize( int size ) !!! for a more complete method! // TODO: SEE TDEFontSizeAction::setFontSize( int size ) !!! for a more complete method!
} }
int FontSizeCombo::fontSize() int FontSizeCombo::fontSize()

Loading…
Cancel
Save