summaryrefslogtreecommitdiffstats
path: root/starter/menu.h
diff options
context:
space:
mode:
Diffstat (limited to 'starter/menu.h')
-rw-r--r--starter/menu.h226
1 files changed, 113 insertions, 113 deletions
diff --git a/starter/menu.h b/starter/menu.h
index d11a651..c858a07 100644
--- a/starter/menu.h
+++ b/starter/menu.h
@@ -6,55 +6,55 @@
#include <config.h>
#endif
-#include <qpoint.h>
-#include <qwidget.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qscrollview.h>
-#include <qmap.h>
-#include <qpixmap.h>
-#include <qsortedlist.h>
-#include <qptrlist.h>
+#include <tqpoint.h>
+#include <tqwidget.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqscrollview.h>
+#include <tqmap.h>
+#include <tqpixmap.h>
+#include <tqsortedlist.h>
+#include <tqptrlist.h>
#include <klineedit.h>
#include <kservicegroup.h>
#include "mykey.h"
class KIconLoader;
-class QPaintEvent;
-class QMouseEvent;
-class QEvent;
-class QPixmap;
-class QVBoxLayout;
-class QComboBox;
+class TQPaintEvent;
+class TQMouseEvent;
+class TQEvent;
+class TQPixmap;
+class TQVBoxLayout;
+class TQComboBox;
class StartMenuButton;
class KConfig;
class LinkConfig;
-class Panel : public QWidget//QScrollView
+class Panel : public TQWidget//TQScrollView
{
friend class StartMenu;
friend class StartMenuButton;
Q_OBJECT
public:
- Panel(int size = 32, QWidget * parent = 0, const char * name = 0);
+ Panel(int size = 32, TQWidget * parent = 0, const char * name = 0);
Orientation orientation(){ return _orientation; }
void setOrientation ( Orientation o );
-// void addItem ( QWidget *w );
- StartMenuButton* addIcon ( QString icon, QString title, QString command, QPoint pt = QPoint(-1,-1) );
+// void addItem ( TQWidget *w );
+ StartMenuButton* addIcon ( TQString icon, TQString title, TQString command, TQPoint pt = TQPoint(-1,-1) );
void save(KConfig* config);
- void repositionIcon ( StartMenuButton* bt, QPoint pt );
- void ensureVisible(QRect & rect);
+ void repositionIcon ( StartMenuButton* bt, TQPoint pt );
+ void ensureVisible(TQRect & rect);
void reloadIcons(int size);
void poof();
public slots:
void updateSize(int);
protected:
- void wheelEvent ( QWheelEvent * );
- void dragEnterEvent ( QDragEnterEvent * );
- void dropEvent ( QDropEvent * );
- void mouseReleaseEvent ( QMouseEvent * e );
- void resizeEvent ( QResizeEvent * );
+ void wheelEvent ( TQWheelEvent * );
+ void dragEnterEvent ( TQDragEnterEvent * );
+ void dropEvent ( TQDropEvent * );
+ void mouseReleaseEvent ( TQMouseEvent * e );
+ void resizeEvent ( TQResizeEvent * );
LinkConfig *linkConfigDialog;
int _size;
private:
@@ -62,74 +62,74 @@ private:
Orientation _orientation;
bool _draggedMe;
int _poofIndex;
- QPoint iconAddPosition;
- QPixmap *_poofPix;
- QPixmap *_poofAnimPix;
- QWidget *_poof;
+ TQPoint iconAddPosition;
+ TQPixmap *_poofPix;
+ TQPixmap *_poofAnimPix;
+ TQWidget *_poof;
private slots:
void addIcon();
void runPoof();
signals:
- void message(const QString&);
+ void message(const TQString&);
void clearStatus();
};
-class QTextDrag;
+class TQTextDrag;
-class StartMenuButton : public QWidget
+class StartMenuButton : public TQWidget
{
friend class Panel;
Q_OBJECT
public:
enum Orientation { Horizontal = 0, Vertical, Status };
- StartMenuButton ( int size, QString icon, QString title, QString command, Orientation orientation, QWidget* parent = 0, const char * name = 0);
- void smartMove(QPoint & pt); // prevents collisions with other childs of parentWidget()
+ StartMenuButton ( int size, TQString icon, TQString title, TQString command, Orientation orientation, TQWidget* parent = 0, const char * name = 0);
+ void smartMove(TQPoint & pt); // prevents collisions with other childs of parentWidget()
void smartMove(int x, int y);
void reloadIcon(int size);
public slots:
void edit();
protected:
- QString & command(){return m_command;}
- QString & title(){return m_title;}
- QString & icon(){return m_icon;}
- void mouseReleaseEvent ( QMouseEvent * e );
- void mouseMoveEvent ( QMouseEvent * e );
- void enterEvent( QEvent * );
- void leaveEvent( QEvent * );
+ TQString & command(){return m_command;}
+ TQString & title(){return m_title;}
+ TQString & icon(){return m_icon;}
+ void mouseReleaseEvent ( TQMouseEvent * e );
+ void mouseMoveEvent ( TQMouseEvent * e );
+ void enterEvent( TQEvent * );
+ void leaveEvent( TQEvent * );
bool isMoving() {return _moving;}
private:
Orientation m_orientation;
bool _moving;
- QTextDrag *myDrag;
- QString m_command;
- QString m_title;
- QString m_icon;
- QLabel* m_titleLabel;
- QLabel* m_pixmapLabel;
- QPixmap m_pix;
- QPixmap m_hoverPix;
+ TQTextDrag *myDrag;
+ TQString m_command;
+ TQString m_title;
+ TQString m_icon;
+ TQLabel* m_titleLabel;
+ TQLabel* m_pixmapLabel;
+ TQPixmap m_pix;
+ TQPixmap m_hoverPix;
signals:
- void pressed(const QString &);
- void hovered(const QString &);
+ void pressed(const TQString &);
+ void hovered(const TQString &);
void unhovered();
void updateSize(int);
};
class KService;
-class QDate;
+class TQDate;
class AppList;
-class StartMenuEntry : public QWidget
+class StartMenuEntry : public TQWidget
{
friend class AppList;
Q_OBJECT
public:
- StartMenuEntry(KService * service, QString relPath, int size = 32, bool neewbie = false, QWidget * parent = 0);
+ StartMenuEntry(KService * service, TQString relPath, int size = 32, bool neewbie = false, TQWidget * parent = 0);
~StartMenuEntry();
void reloadIcon(int size);
bool display;
- QString title();
+ TQString title();
void saveStats();
int rank;
bool forNewbie;
@@ -143,34 +143,34 @@ public:
bool operator<( const double& d ) const;
bool operator>( const double& d ) const;
protected:
- void focusInEvent ( QFocusEvent * );
- void focusOutEvent ( QFocusEvent * );
- void mouseReleaseEvent ( QMouseEvent * e );
- void mouseMoveEvent ( QMouseEvent * mme );
- void keyPressEvent ( QKeyEvent * e );
- void enterEvent( QEvent * );
- void leaveEvent( QEvent * );
+ void focusInEvent ( TQFocusEvent * );
+ void focusOutEvent ( TQFocusEvent * );
+ void mouseReleaseEvent ( TQMouseEvent * e );
+ void mouseMoveEvent ( TQMouseEvent * mme );
+ void keyPressEvent ( TQKeyEvent * e );
+ void enterEvent( TQEvent * );
+ void leaveEvent( TQEvent * );
KService* m_service;
- QString groupPath;
- QDate lastUse;
+ TQString groupPath;
+ TQDate lastUse;
uint usage;
private:
void execute();
- QString exec;
+ TQString exec;
bool isCurrent;
- QLabel* m_titleLabel;
- QLabel* m_commentLabel;
- QLabel* m_pixmapLabel;
- QPixmap m_pix;
- QPixmap m_hoverPix;
+ TQLabel* m_titleLabel;
+ TQLabel* m_commentLabel;
+ TQLabel* m_pixmapLabel;
+ TQPixmap m_pix;
+ TQPixmap m_hoverPix;
signals:
void closeMenu();
void pressed();
void appDown();
void appUp();
void appLeft();
- void hovered(const QString &);
- void sayText(const QString&);
+ void hovered(const TQString &);
+ void sayText(const TQString&);
void unhovered();
void popup(StartMenuEntry*);
void executed();
@@ -180,17 +180,17 @@ class KPopupMenu;
class ConfigDialog;
class HelpDialog;
-class AppList : public QScrollView
+class AppList : public TQScrollView
{
friend class StartMenu;
Q_OBJECT
public:
- AppList(int size = 32, QWidget * parent = 0);
- StartMenuEntry* addApp(KService * service, QStringList & captions, QString relPath);
+ AppList(int size = 32, TQWidget * parent = 0);
+ StartMenuEntry* addApp(KService * service, TQStringList & captions, TQString relPath);
void finish();
StartMenuEntry* handledEntry; // for rightclick menu action
- void writeEntry(QString path, bool hidden = false); // for add/edit
+ void writeEntry(TQString path, bool hidden = false); // for add/edit
void reloadIcons(int size);
public slots:
void addEntry();
@@ -200,35 +200,35 @@ public slots:
void editDialog();
void clear();
void reset();
- void search(const QString & string);
+ void search(const TQString & string);
void appDown();
void appUp();
void appLeft();
void sort();
- void showCategory(const QString & string);
+ void showCategory(const TQString & string);
void unblockPopup(){popupBlocked_ = false;}
protected:
- QStringList categories;
+ TQStringList categories;
int favItemAmount;
void save(KConfig* config);
- void mouseReleaseEvent ( QMouseEvent * e );
+ void mouseReleaseEvent ( TQMouseEvent * e );
void windowActivationChange ( bool oldActive );
private:
void init();
- void insertGroup(KServiceGroup *g, QStringList & captions, QStringList & paths);
+ void insertGroup(KServiceGroup *g, TQStringList & captions, TQStringList & paths);
KServiceGroup::Ptr m_root;
KIconLoader *m_iconLoader;
- QLabel *infoLabel;
- QVBoxLayout * infoLayout;
- QVBoxLayout * m_VLayout;
- QFrame * m_widget;
+ TQLabel *infoLabel;
+ TQVBoxLayout * infoLayout;
+ TQVBoxLayout * m_VLayout;
+ TQFrame * m_widget;
bool newbie;
- QStringList neewbieApps;
+ TQStringList neewbieApps;
KPopupMenu *m_popup;
bool popupBlocked_;
int _size;
- typedef QSortedList<StartMenuEntry> StartMenuEntryList;
- typedef QMap<QString,StartMenuEntryList> KeyWordList;
+ typedef TQSortedList<StartMenuEntry> StartMenuEntryList;
+ typedef TQMap<TQString,StartMenuEntryList> KeyWordList;
StartMenuEntryList entryList;
KeyWordList m_keywordList;
KeyWordList m_groupList;
@@ -238,80 +238,80 @@ private slots:
void popup(StartMenuEntry*);
signals:
void looseKey();
- void message(const QString&);
- void sayText(const QString&);
+ void message(const TQString&);
+ void sayText(const TQString&);
void clearStatus();
};
-class QStringList;
+class TQStringList;
class SearchLine : public KLineEdit
{
Q_OBJECT
public:
- SearchLine( QWidget * parent );
+ SearchLine( TQWidget * parent );
bool blocked;
protected slots:
- void makeCompletion (const QString &);
+ void makeCompletion (const TQString &);
void block(){blocked = true;}
signals:
- void typedTextChanged(const QString & string);
+ void typedTextChanged(const TQString & string);
};
class KURIFilterData;
class StarterConfig;
-class QSignalMapper;
+class TQSignalMapper;
class KSqueezedTextLabel;
-class StartMenu : public QWidget
+class StartMenu : public TQWidget
{
friend class starter; // to allow setting the shortcutlis directly
Q_OBJECT
public:
enum PanelPosition { North = 0, South, West, East, Nowhere };
- StartMenu ( int size = 32, QWidget * parent = 0, WFlags f = 0 );
+ StartMenu ( int size = 32, TQWidget * parent = 0, WFlags f = 0 );
~StartMenu();
void show();
void hide();
void reloadIcons(int size);
- QStringList & categories(){return appList->categories;};
- typedef QMap<MyKey,QString> ShortcutList;
+ TQStringList & categories(){return appList->categories;};
+ typedef TQMap<MyKey,TQString> ShortcutList;
void updateShortcuts(ShortcutList &);
void setFavItemAmount(int i) {if (appList) appList->favItemAmount = i;}
void setPanelPosition(PanelPosition p);
public slots:
- void sayText(const QString &text);
+ void sayText(const TQString &text);
void toggleKTTS(bool);
- void setCategory(const QString & category);
+ void setCategory(const TQString & category);
void save();
protected:
- bool eventFilter ( QObject * o, QEvent * e );
+ bool eventFilter ( TQObject * o, TQEvent * e );
ShortcutList shortcutList;
private slots:
- void message(const QString &text);
- void centerMessage(const QString &text);
+ void message(const TQString &text);
+ void centerMessage(const TQString &text);
void clearStatus();
- void execute(const QString & command);
- void search(const QString & string);
+ void execute(const TQString & command);
+ void search(const TQString & string);
void endHistory();
// void slotLock();
private:
bool inMove;
uint m_spokenText;
int _size;
- QWidget *header;
- QPoint movePoint;
+ TQWidget *header;
+ TQPoint movePoint;
KURIFilterData *_filterData;
AppList *appList;
- QComboBox *categoryCombo;
+ TQComboBox *categoryCombo;
SearchLine *searchLine;
KSqueezedTextLabel *statusBar;
Panel *m_panel;
- QStringList history;
- QStringList::Iterator currentHistoryItem;
+ TQStringList history;
+ TQStringList::Iterator currentHistoryItem;
PanelPosition m_panelPos;
StartMenuButton *userButton;
- QGridLayout *panelLayout;
+ TQGridLayout *panelLayout;
signals:
void aboutToHide();