summaryrefslogtreecommitdiffstats
path: root/kbarcode/kactionmap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kbarcode/kactionmap.cpp')
-rw-r--r--kbarcode/kactionmap.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/kbarcode/kactionmap.cpp b/kbarcode/kactionmap.cpp
index ae70698..ca7f396 100644
--- a/kbarcode/kactionmap.cpp
+++ b/kbarcode/kactionmap.cpp
@@ -35,10 +35,10 @@
#endif
#include <klocale.h>
-class KListViewActionItem : public KListViewItem {
+class TDEListViewActionItem : public TDEListViewItem {
public:
- KListViewActionItem( KListView* parent, KAction* action )
- : KListViewItem( parent ), m_action( action )
+ TDEListViewActionItem( TDEListView* parent, TDEAction* action )
+ : TDEListViewItem( parent ), m_action( action )
{
TQPixmap pix;
TQSize size = TQIconSet::iconSize( TQIconSet::Large );
@@ -74,43 +74,43 @@ public:
if( m_action && !m_action->isEnabled() )
_cg.setColor( TQColorGroup::Text, TQt::gray );
- KListViewItem::paintCell( p, _cg, column, width, alignment );
+ TDEListViewItem::paintCell( p, _cg, column, width, alignment );
_cg.setColor( TQColorGroup::Text, c );
}
- inline KAction* action() const
+ inline TDEAction* action() const
{
return m_action;
}
private:
- KAction* m_action;
+ TDEAction* m_action;
};
-KActionMapDlg::KActionMapDlg( KActionCollection* actions, TQWidget* parent, const char* name )
+TDEActionMapDlg::TDEActionMapDlg( TDEActionCollection* actions, TQWidget* parent, const char* name )
: KDialogBase( parent, name, false, i18n("Action Map"), KDialogBase::Close, KDialogBase::Close )
{
TQVBox *page = makeVBoxMainWidget();
new TQLabel( i18n("Find and execute actions."), page );
- m_map = new KActionMap( actions, page );
+ m_map = new TDEActionMap( actions, page );
show();
}
-void KActionMapDlg::updateEnabledState()
+void TDEActionMapDlg::updateEnabledState()
{
m_map->updateEnabledState();
}
-KActionMap::KActionMap( KActionCollection* actions, TQWidget* parent, const char* name )
+TDEActionMap::TDEActionMap( TDEActionCollection* actions, TQWidget* parent, const char* name )
: TQWidget( parent, name ), m_actions( actions ), m_showMenuTree( true ), m_grayOutItems( false )
{
TQVBoxLayout* layout = new TQVBoxLayout( this );
- m_listView = new KListView( this );
+ m_listView = new TDEListView( this );
#if TDE_VERSION >= 0x030500
- m_searchLine = new KListViewSearchLineWidget( m_listView, this );
+ m_searchLine = new TDEListViewSearchLineWidget( m_listView, this );
#endif
m_listView->addColumn( i18n("Action") );
@@ -128,20 +128,20 @@ KActionMap::KActionMap( KActionCollection* actions, TQWidget* parent, const char
layout->addWidget( m_listView );
connect( m_listView, TQT_SIGNAL( executed( TQListViewItem* ) ), this, TQT_SLOT( slotExecuteAction( TQListViewItem* ) ) );
- connect( actions, TQT_SIGNAL( inserted( KAction* ) ), this, TQT_SLOT( slotActionCollectionChanged() ) );
- connect( actions, TQT_SIGNAL( removed( KAction* ) ), this, TQT_SLOT( slotActionCollectionChanged() ) );
+ connect( actions, TQT_SIGNAL( inserted( TDEAction* ) ), this, TQT_SLOT( slotActionCollectionChanged() ) );
+ connect( actions, TQT_SIGNAL( removed( TDEAction* ) ), this, TQT_SLOT( slotActionCollectionChanged() ) );
slotActionCollectionChanged();
}
-KActionMap::~KActionMap()
+TDEActionMap::~TDEActionMap()
{
}
-void KActionMap::slotActionCollectionChanged()
+void TDEActionMap::slotActionCollectionChanged()
{
- KActionPtrList actions;
- KActionPtrList::const_iterator it;
+ TDEActionPtrList actions;
+ TDEActionPtrList::const_iterator it;
m_listView->clear();
@@ -159,7 +159,7 @@ void KActionMap::slotActionCollectionChanged()
}
*/
- new KListViewActionItem( m_listView, (*it) );
+ new TDEListViewActionItem( m_listView, (*it) );
connect( *it, TQT_SIGNAL( enabled(bool) ), this, TQT_SLOT( updateEnabledState() ) );
@@ -168,9 +168,9 @@ void KActionMap::slotActionCollectionChanged()
}
-void KActionMap::slotExecuteAction( TQListViewItem* item )
+void TDEActionMap::slotExecuteAction( TQListViewItem* item )
{
- KListViewActionItem* action = dynamic_cast<KListViewActionItem*>(item);
+ TDEListViewActionItem* action = dynamic_cast<TDEListViewActionItem*>(item);
if( !action )
return;
@@ -180,7 +180,7 @@ void KActionMap::slotExecuteAction( TQListViewItem* item )
action->action()->activate();
}
-void KActionMap::updateEnabledState()
+void TDEActionMap::updateEnabledState()
{
m_listView->repaintContents();
}