diff options
Diffstat (limited to 'kbabel/commonui')
-rw-r--r-- | kbabel/commonui/context.h | 2 | ||||
-rw-r--r-- | kbabel/commonui/kactionselector.cpp | 90 | ||||
-rw-r--r-- | kbabel/commonui/kactionselector.h | 12 | ||||
-rw-r--r-- | kbabel/commonui/klisteditor.ui | 18 | ||||
-rw-r--r-- | kbabel/commonui/klisteditor.ui.h | 20 | ||||
-rw-r--r-- | kbabel/commonui/projectprefwidgets.cpp | 2 | ||||
-rw-r--r-- | kbabel/commonui/projectprefwidgets.h | 6 | ||||
-rw-r--r-- | kbabel/commonui/toolaction.cpp | 8 | ||||
-rw-r--r-- | kbabel/commonui/toolaction.h | 12 | ||||
-rw-r--r-- | kbabel/commonui/toolselectionwidget.cpp | 2 | ||||
-rw-r--r-- | kbabel/commonui/toolselectionwidget.h | 2 |
11 files changed, 87 insertions, 87 deletions
diff --git a/kbabel/commonui/context.h b/kbabel/commonui/context.h index 512bd741..9cddcd67 100644 --- a/kbabel/commonui/context.h +++ b/kbabel/commonui/context.h @@ -44,7 +44,7 @@ class TQComboBox; class TQVBoxLayout; class TQLineEdit; -class KListEditor; +class TDEListEditor; class TDEConfig; class KURL; diff --git a/kbabel/commonui/kactionselector.cpp b/kbabel/commonui/kactionselector.cpp index 9e5d3e79..c2638ff5 100644 --- a/kbabel/commonui/kactionselector.cpp +++ b/kbabel/commonui/kactionselector.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - KActionSelector.cpp + TDEActionSelector.cpp A widget for selecting and arranging actions/objects ------------------- begin : Mon June 3 2002 @@ -43,24 +43,24 @@ #include <tqwhatsthis.h> #include <tqapplication.h> -class KActionSelectorPrivate { +class TDEActionSelectorPrivate { public: TQListBox *availableListBox, *selectedListBox; TQToolButton *btnAdd, *btnRemove, *btnUp, *btnDown; TQLabel *lAvailable, *lSelected; bool moveOnDoubleClick, keyboardEnabled; - KActionSelector::ButtonIconSize iconSize; + TDEActionSelector::ButtonIconSize iconSize; TQString addIcon, removeIcon, upIcon, downIcon; - KActionSelector::InsertionPolicy availableInsertionPolicy, selectedInsertionPolicy; + TDEActionSelector::InsertionPolicy availableInsertionPolicy, selectedInsertionPolicy; bool showUpDownButtons; }; //BEGIN Constructor/destructor -KActionSelector::KActionSelector( TQWidget *parent, const char *name ) +TDEActionSelector::TDEActionSelector( TQWidget *parent, const char *name ) : TQWidget( parent, name ) { - d = new KActionSelectorPrivate(); + d = new TDEActionSelectorPrivate(); d->moveOnDoubleClick = true; d->keyboardEnabled = true; d->iconSize = SmallIcon; @@ -126,7 +126,7 @@ KActionSelector::KActionSelector( TQWidget *parent, const char *name ) d->selectedListBox->installEventFilter( this ); } -KActionSelector::~KActionSelector() +TDEActionSelector::~TDEActionSelector() { delete d; } @@ -135,17 +135,17 @@ KActionSelector::~KActionSelector() //BEGIN Public Methods -TQListBox *KActionSelector::availableListBox() +TQListBox *TDEActionSelector::availableListBox() { return d->availableListBox; } -TQListBox *KActionSelector::selectedListBox() +TQListBox *TDEActionSelector::selectedListBox() { return d->selectedListBox; } -void KActionSelector::setButtonIcon( const TQString &icon, MoveButton button ) +void TDEActionSelector::setButtonIcon( const TQString &icon, MoveButton button ) { int isz; if ( d->iconSize == SmallIcon ) isz = IconSize( KIcon::Small ); @@ -173,11 +173,11 @@ void KActionSelector::setButtonIcon( const TQString &icon, MoveButton button ) d->btnDown->setIconSet( SmallIconSet( icon, isz ) ); break; default: - kdDebug(KBABEL)<<"KActionSelector::setButtonIcon: DAINBREAD!"<<endl; + kdDebug(KBABEL)<<"TDEActionSelector::setButtonIcon: DAINBREAD!"<<endl; } } -void KActionSelector::setButtonIconSet( const TQIconSet &iconset, MoveButton button ) +void TDEActionSelector::setButtonIconSet( const TQIconSet &iconset, MoveButton button ) { switch ( button ) { @@ -194,11 +194,11 @@ void KActionSelector::setButtonIconSet( const TQIconSet &iconset, MoveButton but d->btnDown->setIconSet( iconset ); break; default: - kdDebug(KBABEL)<<"KActionSelector::setButtonIconSet: DAINBREAD!"<<endl; + kdDebug(KBABEL)<<"TDEActionSelector::setButtonIconSet: DAINBREAD!"<<endl; } } -void KActionSelector::setButtonTooltip( const TQString &tip, MoveButton button ) +void TDEActionSelector::setButtonTooltip( const TQString &tip, MoveButton button ) { switch ( button ) { @@ -215,11 +215,11 @@ void KActionSelector::setButtonTooltip( const TQString &tip, MoveButton button ) d->btnDown->setTextLabel( tip ); break; default: - kdDebug(KBABEL)<<"KActionSelector::setButtonToolTip: DAINBREAD!"<<endl; + kdDebug(KBABEL)<<"TDEActionSelector::setButtonToolTip: DAINBREAD!"<<endl; } } -void KActionSelector::setButtonWhatsThis( const TQString &text, MoveButton button ) +void TDEActionSelector::setButtonWhatsThis( const TQString &text, MoveButton button ) { switch ( button ) { @@ -236,11 +236,11 @@ void KActionSelector::setButtonWhatsThis( const TQString &text, MoveButton butto TQWhatsThis::add( d->btnDown, text ); break; default: - kdDebug(KBABEL)<<"KActionSelector::setButtonWhatsThis: DAINBREAD!"<<endl; + kdDebug(KBABEL)<<"TDEActionSelector::setButtonWhatsThis: DAINBREAD!"<<endl; } } -void KActionSelector::setButtonsEnabled() +void TDEActionSelector::setButtonsEnabled() { d->btnAdd->setEnabled( d->availableListBox->currentItem() > -1 ); d->btnRemove->setEnabled( d->selectedListBox->currentItem() > -1 ); @@ -253,84 +253,84 @@ void KActionSelector::setButtonsEnabled() //BEGIN Properties -bool KActionSelector::moveOnDoubleClick() const +bool TDEActionSelector::moveOnDoubleClick() const { return d->moveOnDoubleClick; } -void KActionSelector::setMoveOnDoubleClick( bool b ) +void TDEActionSelector::setMoveOnDoubleClick( bool b ) { d->moveOnDoubleClick = b; } -bool KActionSelector::keyboardEnabled() const +bool TDEActionSelector::keyboardEnabled() const { return d->keyboardEnabled; } -void KActionSelector::setKeyboardEnabled( bool b ) +void TDEActionSelector::setKeyboardEnabled( bool b ) { d->keyboardEnabled = b; } -TQString KActionSelector::availableLabel() const +TQString TDEActionSelector::availableLabel() const { return d->lAvailable->text(); } -void KActionSelector::setAvailableLabel( const TQString &text ) +void TDEActionSelector::setAvailableLabel( const TQString &text ) { d->lAvailable->setText( text ); } -TQString KActionSelector::selectedLabel() const +TQString TDEActionSelector::selectedLabel() const { return d->lSelected->text(); } -void KActionSelector::setSelectedLabel( const TQString &text ) +void TDEActionSelector::setSelectedLabel( const TQString &text ) { d->lSelected->setText( text ); } -KActionSelector::ButtonIconSize KActionSelector::buttonIconSize() const +TDEActionSelector::ButtonIconSize TDEActionSelector::buttonIconSize() const { return d->iconSize; } -void KActionSelector::setButtonIconSize( ButtonIconSize size ) +void TDEActionSelector::setButtonIconSize( ButtonIconSize size ) { d->iconSize = size; // reload icons loadIcons(); } -KActionSelector::InsertionPolicy KActionSelector::availableInsertionPolicy() +TDEActionSelector::InsertionPolicy TDEActionSelector::availableInsertionPolicy() { return d->availableInsertionPolicy; } -void KActionSelector::setAvailableInsertionPolicy( InsertionPolicy p ) +void TDEActionSelector::setAvailableInsertionPolicy( InsertionPolicy p ) { d->availableInsertionPolicy = p; } -KActionSelector::InsertionPolicy KActionSelector::selectedInsertionPolicy() +TDEActionSelector::InsertionPolicy TDEActionSelector::selectedInsertionPolicy() { return d->selectedInsertionPolicy; } -void KActionSelector::setSelectedInsertionPolicy( InsertionPolicy p ) +void TDEActionSelector::setSelectedInsertionPolicy( InsertionPolicy p ) { d->selectedInsertionPolicy = p; } -bool KActionSelector::showUpDownButtons() +bool TDEActionSelector::showUpDownButtons() { return d->showUpDownButtons; } -void KActionSelector::setShowUpDownButtons( bool show ) +void TDEActionSelector::setShowUpDownButtons( bool show ) { d->showUpDownButtons = show; if ( show ) @@ -349,7 +349,7 @@ void KActionSelector::setShowUpDownButtons( bool show ) //BEGIN Public Slots -void KActionSelector::polish() +void TDEActionSelector::polish() { setButtonsEnabled(); } @@ -357,7 +357,7 @@ void KActionSelector::polish() //END Public Slots //BEGIN Protected -void KActionSelector::keyPressEvent( TQKeyEvent *e ) +void TDEActionSelector::keyPressEvent( TQKeyEvent *e ) { if ( ! d->keyboardEnabled ) return; if ( (e->state() & TQt::ControlButton) ) @@ -383,7 +383,7 @@ void KActionSelector::keyPressEvent( TQKeyEvent *e ) } } -bool KActionSelector::eventFilter( TQObject *o, TQEvent *e ) +bool TDEActionSelector::eventFilter( TQObject *o, TQEvent *e ) { if ( d->keyboardEnabled && e->type() == TQEvent::KeyPress ) { @@ -430,7 +430,7 @@ bool KActionSelector::eventFilter( TQObject *o, TQEvent *e ) //BEGIN Private Slots -void KActionSelector::buttonAddClicked() +void TDEActionSelector::buttonAddClicked() { // move all selected items from available to selected listbox TQListBoxItem *item = d->availableListBox->firstItem(); @@ -448,7 +448,7 @@ void KActionSelector::buttonAddClicked() d->selectedListBox->setFocus(); } -void KActionSelector::buttonRemoveClicked() +void TDEActionSelector::buttonRemoveClicked() { // move all selected items from selected to available listbox TQListBoxItem *item = d->selectedListBox->firstItem(); @@ -466,7 +466,7 @@ void KActionSelector::buttonRemoveClicked() d->availableListBox->setFocus(); } -void KActionSelector::buttonUpClicked() +void TDEActionSelector::buttonUpClicked() { int c = d->selectedListBox->currentItem(); if ( c < 0 ) return; @@ -477,7 +477,7 @@ void KActionSelector::buttonUpClicked() emit movedUp( item ); } -void KActionSelector::buttonDownClicked() +void TDEActionSelector::buttonDownClicked() { int c = d->selectedListBox->currentItem(); if ( c < 0 ) return; @@ -488,7 +488,7 @@ void KActionSelector::buttonDownClicked() emit movedDown( item ); } -void KActionSelector::itemDoubleClicked( TQListBoxItem *item ) +void TDEActionSelector::itemDoubleClicked( TQListBoxItem *item ) { if ( d->moveOnDoubleClick ) moveItem( item ); @@ -498,7 +498,7 @@ void KActionSelector::itemDoubleClicked( TQListBoxItem *item ) //BEGIN Private Methods -void KActionSelector::loadIcons() +void TDEActionSelector::loadIcons() { int isz; if ( d->iconSize == SmallIcon ) isz = IconSize( KIcon::Small ); @@ -513,7 +513,7 @@ void KActionSelector::loadIcons() d->btnDown->setIconSet( SmallIconSet( d->downIcon, isz ) ); } -void KActionSelector::moveItem( TQListBoxItem *item ) +void TDEActionSelector::moveItem( TQListBoxItem *item ) { TQListBox *lbFrom = item->listBox(); TQListBox *lbTo; @@ -540,7 +540,7 @@ void KActionSelector::moveItem( TQListBoxItem *item ) emit removed( item ); } -int KActionSelector::insertionIndex( TQListBox *lb, InsertionPolicy policy ) +int TDEActionSelector::insertionIndex( TQListBox *lb, InsertionPolicy policy ) { int index; switch ( policy ) diff --git a/kbabel/commonui/kactionselector.h b/kbabel/commonui/kactionselector.h index 3a13303b..eaa1ab72 100644 --- a/kbabel/commonui/kactionselector.h +++ b/kbabel/commonui/kactionselector.h @@ -1,5 +1,5 @@ /*************************************************************************** - KActionSelector.h + TDEActionSelector.h A widget for selecting and arranging actions/objects ------------------- begin : Mon June 3 2002 @@ -38,7 +38,7 @@ class TQKeyEvent; class TQEvent; class TQIconSet; -class KActionSelectorPrivate; +class TDEActionSelectorPrivate; /** @short A widget for selecting and arranging actions/objects @@ -84,7 +84,7 @@ class KActionSelectorPrivate; @author Anders Lund <anders@alweb.dk> */ -class KActionSelector : public TQWidget { +class TDEActionSelector : public TQWidget { Q_OBJECT TQ_ENUMS( ButtonIconSize InsertionPolicy ) @@ -98,8 +98,8 @@ class KActionSelector : public TQWidget { TQ_PROPERTY( bool showUpDownButtons READ showUpDownButtons WRITE setShowUpDownButtons ) public: - KActionSelector( TQWidget *parent=0, const char *name=0 ); - ~KActionSelector(); + TDEActionSelector( TQWidget *parent=0, const char *name=0 ); + ~TDEActionSelector(); /** @return The TQListBox holding the available actions @@ -405,7 +405,7 @@ private: /** @private Private data storage */ - KActionSelectorPrivate *d; + TDEActionSelectorPrivate *d; }; #endif // _KACTION_SELECTOR_H_ diff --git a/kbabel/commonui/klisteditor.ui b/kbabel/commonui/klisteditor.ui index 4b7eeb0d..5f0f8ce1 100644 --- a/kbabel/commonui/klisteditor.ui +++ b/kbabel/commonui/klisteditor.ui @@ -1,8 +1,8 @@ <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> -<class>KListEditor</class> +<class>TDEListEditor</class> <widget class="TQWidget"> <property name="name"> - <cstring>KListEditor</cstring> + <cstring>TDEListEditor</cstring> </property> <property name="geometry"> <rect> @@ -193,43 +193,43 @@ <connection> <sender>_addButton</sender> <signal>pressed()</signal> - <receiver>KListEditor</receiver> + <receiver>TDEListEditor</receiver> <slot>addToList()</slot> </connection> <connection> <sender>_removeButton</sender> <signal>pressed()</signal> - <receiver>KListEditor</receiver> + <receiver>TDEListEditor</receiver> <slot>removeFromList()</slot> </connection> <connection> <sender>_upButton</sender> <signal>pressed()</signal> - <receiver>KListEditor</receiver> + <receiver>TDEListEditor</receiver> <slot>upInList()</slot> </connection> <connection> <sender>_downButton</sender> <signal>pressed()</signal> - <receiver>KListEditor</receiver> + <receiver>TDEListEditor</receiver> <slot>downInList()</slot> </connection> <connection> <sender>_edit</sender> <signal>returnPressed()</signal> - <receiver>KListEditor</receiver> + <receiver>TDEListEditor</receiver> <slot>updateList()</slot> </connection> <connection> <sender>_edit</sender> <signal>textChanged(const TQString&)</signal> - <receiver>KListEditor</receiver> + <receiver>TDEListEditor</receiver> <slot>editChanged(const TQString&)</slot> </connection> <connection> <sender>_list</sender> <signal>highlighted(int)</signal> - <receiver>KListEditor</receiver> + <receiver>TDEListEditor</receiver> <slot>updateButtons(int)</slot> </connection> <connection> diff --git a/kbabel/commonui/klisteditor.ui.h b/kbabel/commonui/klisteditor.ui.h index 1845943c..30978506 100644 --- a/kbabel/commonui/klisteditor.ui.h +++ b/kbabel/commonui/klisteditor.ui.h @@ -38,7 +38,7 @@ *****************************************************************************/ -void KListEditor::addToList() +void TDEListEditor::addToList() { _list->insertItem(_edit->text()); _edit->clear(); @@ -46,7 +46,7 @@ void KListEditor::addToList() emit itemsChanged(); } -void KListEditor::downInList() +void TDEListEditor::downInList() { int i=_list->currentItem(); if( i< (int)_list->count()-1 ) { @@ -58,7 +58,7 @@ void KListEditor::downInList() emit itemsChanged(); } -void KListEditor::removeFromList() +void TDEListEditor::removeFromList() { _list->removeItem(_list->currentItem()); if( _list->count()==0 ) _edit->clear(); @@ -66,7 +66,7 @@ void KListEditor::removeFromList() emit itemsChanged(); } -void KListEditor::upInList() +void TDEListEditor::upInList() { int i=_list->currentItem(); if( i>0 ) { @@ -78,21 +78,21 @@ void KListEditor::upInList() emit itemsChanged(); } -void KListEditor::updateButtons( int newIndex ) +void TDEListEditor::updateButtons( int newIndex ) { _upButton->setEnabled(newIndex>0); _downButton->setEnabled(newIndex+1 != (int)_list->count()); _removeButton->setEnabled(true); } -void KListEditor::updateList() +void TDEListEditor::updateList() { int i=_list->currentItem(); if( i==-1 ) addToList(); else _list->changeItem(_edit->text(), i ); } -void KListEditor::setList( TQStringList contents ) +void TDEListEditor::setList( TQStringList contents ) { _list->clear(); _list->insertStringList(contents); @@ -101,19 +101,19 @@ void KListEditor::setList( TQStringList contents ) } -void KListEditor::editChanged( const TQString &s ) +void TDEListEditor::editChanged( const TQString &s ) { _addButton->setEnabled(!s.isEmpty()); } -void KListEditor::setTitle( const TQString &s ) +void TDEListEditor::setTitle( const TQString &s ) { _frame->setTitle(s); } -TQStringList KListEditor::list() +TQStringList TDEListEditor::list() { TQStringList result; for( uint i=0; i<_list->count() ; i++ ) diff --git a/kbabel/commonui/projectprefwidgets.cpp b/kbabel/commonui/projectprefwidgets.cpp index 530d8a95..04c845c9 100644 --- a/kbabel/commonui/projectprefwidgets.cpp +++ b/kbabel/commonui/projectprefwidgets.cpp @@ -1164,7 +1164,7 @@ SourceContextPreferences::SourceContextPreferences(TQWidget* parent): TQWidget(p layout->addWidget(box); // FIXME: use TDEConfigXT - _pathsEditor = new KListEditor(page); + _pathsEditor = new TDEListEditor(page); _pathsEditor->setTitle(i18n("Path Patterns")); layout->addWidget(_pathsEditor); diff --git a/kbabel/commonui/projectprefwidgets.h b/kbabel/commonui/projectprefwidgets.h index f3a29a58..4d93326a 100644 --- a/kbabel/commonui/projectprefwidgets.h +++ b/kbabel/commonui/projectprefwidgets.h @@ -48,14 +48,14 @@ class TQListBox; class TQRadioButton; class TQSpinBox; class CmdEdit; -class KFontChooser; +class TDEFontChooser; class KColorButton; class KComboBox; class KSpellConfig; class KURLRequester; class TQPushButton; class TQGroupBox; -class KListEditor; +class TDEListEditor; class ToolSelectionWidget; class KIntNumInput; class KURLRequester; @@ -288,7 +288,7 @@ signals: private: KURLRequester* _coderootEdit; - KListEditor* _pathsEditor; + TDEListEditor* _pathsEditor; }; #endif // PROJECTPREFWIDGETS_H diff --git a/kbabel/commonui/toolaction.cpp b/kbabel/commonui/toolaction.cpp index 48650231..6e594834 100644 --- a/kbabel/commonui/toolaction.cpp +++ b/kbabel/commonui/toolaction.cpp @@ -33,9 +33,9 @@ #include <kdebug.h> -ToolAction::ToolAction( const TQString & text, const KShortcut& cut, const KDataToolInfo & info, const TQString & command, +ToolAction::ToolAction( const TQString & text, const TDEShortcut& cut, const KDataToolInfo & info, const TQString & command, TQObject * parent, const char * name ) - : KAction( text, info.iconName() == "unknown" ? TQString() : info.iconName(), cut, parent, name ), + : TDEAction( text, info.iconName() == "unknown" ? TQString() : info.iconName(), cut, parent, name ), m_command( command ), m_info( info ) { @@ -46,9 +46,9 @@ void ToolAction::slotActivated() emit toolActivated( m_info, m_command ); } -TQPtrList<KAction> ToolAction::dataToolActionList( const TQValueList<KDataToolInfo> & tools, const TQObject *receiver, const char* slot, const TQStringList& command, bool excludeCommand, KActionCollection* parent, const TQString& namePrefix ) +TQPtrList<TDEAction> ToolAction::dataToolActionList( const TQValueList<KDataToolInfo> & tools, const TQObject *receiver, const char* slot, const TQStringList& command, bool excludeCommand, TDEActionCollection* parent, const TQString& namePrefix ) { - TQPtrList<KAction> actionList; + TQPtrList<TDEAction> actionList; if ( tools.isEmpty() ) return actionList; diff --git a/kbabel/commonui/toolaction.h b/kbabel/commonui/toolaction.h index 764b9493..1d785309 100644 --- a/kbabel/commonui/toolaction.h +++ b/kbabel/commonui/toolaction.h @@ -36,22 +36,22 @@ #include <kaction.h> #include <kdatatool.h> -class KShortcut; -class KActionCollection; +class TDEShortcut; +class TDEActionCollection; -class KDE_EXPORT ToolAction : public KAction +class KDE_EXPORT ToolAction : public TDEAction { Q_OBJECT public: - ToolAction( const TQString & text, const KShortcut& cut, const KDataToolInfo & info, const TQString & command, TQObject * parent = 0, const char * name = 0); + ToolAction( const TQString & text, const TDEShortcut& cut, const KDataToolInfo & info, const TQString & command, TQObject * parent = 0, const char * name = 0); /** - * return the list of KActions created for a list of tools. @ref command + * return the list of TDEActions created for a list of tools. @ref command * allows to specify rescriction of commands, for which the list should * or shouldn't be created according to the @ref excludeCommand flag. */ - static TQPtrList<KAction> dataToolActionList( const TQValueList<KDataToolInfo> & tools, const TQObject *receiver, const char* slot, const TQStringList& command, bool excludeCommand, KActionCollection* parent=0, const TQString& namePrefix=TQString() ); + static TQPtrList<TDEAction> dataToolActionList( const TQValueList<KDataToolInfo> & tools, const TQObject *receiver, const char* slot, const TQStringList& command, bool excludeCommand, TDEActionCollection* parent=0, const TQString& namePrefix=TQString() ); /** * returns information about all available validation tools (KDataTools with support for CatalogItem diff --git a/kbabel/commonui/toolselectionwidget.cpp b/kbabel/commonui/toolselectionwidget.cpp index 55a46f93..2e47ae2d 100644 --- a/kbabel/commonui/toolselectionwidget.cpp +++ b/kbabel/commonui/toolselectionwidget.cpp @@ -37,7 +37,7 @@ #include <tqlistbox.h> ToolSelectionWidget::ToolSelectionWidget( TQWidget * parent, const char * name ) - : KActionSelector( parent, name ) + : TDEActionSelector( parent, name ) { } diff --git a/kbabel/commonui/toolselectionwidget.h b/kbabel/commonui/toolselectionwidget.h index 622717f8..d0c8ee3a 100644 --- a/kbabel/commonui/toolselectionwidget.h +++ b/kbabel/commonui/toolselectionwidget.h @@ -37,7 +37,7 @@ class KDataToolInfo; -class KDE_EXPORT ToolSelectionWidget : public KActionSelector +class KDE_EXPORT ToolSelectionWidget : public TDEActionSelector { Q_OBJECT |