summaryrefslogtreecommitdiffstats
path: root/src/menuhandler.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/menuhandler.h')
-rw-r--r--src/menuhandler.h64
1 files changed, 32 insertions, 32 deletions
diff --git a/src/menuhandler.h b/src/menuhandler.h
index 9fdf33f..8a31e2f 100644
--- a/src/menuhandler.h
+++ b/src/menuhandler.h
@@ -32,14 +32,14 @@
#include <krecentdocument.h>
#include <krun.h>
#include <dcopref.h>
-#include <qheader.h>
-#include <qimage.h>
-#include <qtoolbutton.h>
-#include <qpopupmenu.h>
-#include <qcombobox.h>
+#include <tqheader.h>
+#include <tqimage.h>
+#include <tqtoolbutton.h>
+#include <tqpopupmenu.h>
+#include <tqcombobox.h>
#include <kdirwatch.h>
#include <kdirlister.h>
-#include <qlayout.h>
+#include <tqlayout.h>
#include <kfileitem.h>
#include "dmctl.h"
@@ -50,16 +50,16 @@
/**
@author Marco Martin <notmart@gmail.com>
*/
-class MenuHandler : public QFrame{
+class MenuHandler : public TQFrame{
Q_OBJECT
public:
- MenuHandler( QWidget *parent, Prefs *prefs, char *name=0, WFlags fl=WType_TopLevel );
+ MenuHandler( TQWidget *parent, Prefs *prefs, char *name=0, WFlags fl=WType_TopLevel );
~MenuHandler();
void readConfig();
- void popup(QPoint pos);
+ void popup(TQPoint pos);
void updateConfig();
void focusNextChild(){focusNextPrevChild(true);}
void focusPrevChild(){focusNextPrevChild(false);}
@@ -74,15 +74,15 @@ signals:
void hidden();
protected:
- virtual bool eventFilter( QObject *o, QEvent * e );
+ virtual bool eventFilter( TQObject *o, TQEvent * e );
- virtual void closeEvent ( QCloseEvent *e);
- virtual void resizeEvent ( QResizeEvent *e)
- { QWidget::resizeEvent(e); menu->leftFrame->setMaximumWidth( (int)((width()-24)/3) ); }
- virtual void mousePressEvent( QMouseEvent *e);
+ virtual void closeEvent ( TQCloseEvent *e);
+ virtual void resizeEvent ( TQResizeEvent *e)
+ { TQWidget::resizeEvent(e); menu->leftFrame->setMaximumWidth( (int)((width()-24)/3) ); }
+ virtual void mousePressEvent( TQMouseEvent *e);
private:
- typedef QMap<ulong, QString> RecentlyUsedMap;
+ typedef TQMap<ulong, TQString> RecentlyUsedMap;
typedef enum
{
Favourites = 0,
@@ -93,12 +93,12 @@ private:
RecentlyUsedMap recentlyUsedMap;
- QStringList moreUsedList, favouriteList;
+ TQStringList moreUsedList, favouriteList;
Menu * menu;
MenuMode currentMenuMode;
KIconLoader *iconLoader;
- QPopupMenu *sessionsMenu;
+ TQPopupMenu *sessionsMenu;
bool searchMode;
Prefs *prefSkel;
KConfig *kickerConf;
@@ -107,15 +107,15 @@ private:
KDirWatch *xdgMenuWatch;
KDirLister *xdgMenuLister;
int firstListing;
- QStringList oldInstalledList, newInstalledList;
- QValueList<int> newInstalledTimeStamps;
+ TQStringList oldInstalledList, newInstalledList;
+ TQValueList<int> newInstalledTimeStamps;
- QPixmap bookMarkPix;
- QVBoxLayout * MenuHandlerLayout;
+ TQPixmap bookMarkPix;
+ TQVBoxLayout * MenuHandlerLayout;
//configuration items
int _menuMode;
- QString _currentCategory;
+ TQString _currentCategory;
int _numRecentEntries;
int _iconSize1;
int _iconSize2;
@@ -133,7 +133,7 @@ private:
bool _hideOneChild;
bool _alphabetical;
- typedef QMap<QString, KServiceGroup::List> SListMap;
+ typedef TQMap<TQString, KServiceGroup::List> SListMap;
SListMap sListMap;
//KServiceGroup::List getServiceGroupList( KServiceGroup *serviceGroup );
void setupColumns();
@@ -143,9 +143,9 @@ private:
void populateList( KServiceGroup *serviceGroup,
TastyListView *listView,
TastyListViewItem *listItemFather,
- bool recursive, const QString & query = NULL );
+ bool recursive, const TQString & query = NULL );
- void listClicked( TastyListViewItem * listItem, const QPoint & coord );
+ void listClicked( TastyListViewItem * listItem, const TQPoint & coord );
void fillRecentDocuments( );
void fillMoreUsed( );
void fillRecentlyUsed( );
@@ -159,23 +159,23 @@ public slots:
private slots:
void dynListElemMoved( );
- void dynListClicked( QListViewItem * listItem, const QPoint & coord, int c );
- void slotContextMenu(QListViewItem *listItem, const QPoint &coord, int c );
+ void dynListClicked( TQListViewItem * listItem, const TQPoint & coord, int c );
+ void slotContextMenu(TQListViewItem *listItem, const TQPoint &coord, int c );
void initializeRecentlyUsed( );
void slotModKickerConf();
void slotApplicationsAdded(const KFileItemList & newItems);
void slotApplicationRemoved();
- void childListClicked( QListViewItem * listItem, const QPoint & coord, int c );
- void rootListClicked( QListViewItem * listItem, const QPoint & coord, int c );
+ void childListClicked( TQListViewItem * listItem, const TQPoint & coord, int c );
+ void rootListClicked( TQListViewItem * listItem, const TQPoint & coord, int c );
void doLogout();
void doLock();
void slotPopulateSessions();
void slotSessionActivated( int ent );
void doNewSession( bool lock );
void runDialog();
- void initializeSearch( const QString & query );
- void kerrySearch( const QString & query );
- void strigiSearch( const QString & query );
+ void initializeSearch( const TQString & query );
+ void kerrySearch( const TQString & query );
+ void strigiSearch( const TQString & query );
void clearDynList();
void menuModeChanged( int index );
void switchWindowMode();