summaryrefslogtreecommitdiffstats
path: root/starter/menu.h
diff options
context:
space:
mode:
Diffstat (limited to 'starter/menu.h')
-rw-r--r--starter/menu.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/starter/menu.h b/starter/menu.h
index eb11056..aecbc6a 100644
--- a/starter/menu.h
+++ b/starter/menu.h
@@ -6,6 +6,8 @@
#include "config.h"
#endif
+#include <vector>
+
#include <tqpoint.h>
#include <tqwidget.h>
#include <tqlabel.h>
@@ -13,7 +15,6 @@
#include <tqscrollview.h>
#include <tqmap.h>
#include <tqpixmap.h>
-#include <tqptrlist.h>
#include <klineedit.h>
#include <kservicegroup.h>
#include "mykey.h"
@@ -189,6 +190,7 @@ public:
StartMenuEntry* addApp(KService * service, TQStringList & captions, TQString relPath);
void finish();
StartMenuEntry* handledEntry; // for rightclick menu action
+ int currentEntryIdx;
void writeEntry(TQString path, bool hidden = false); // for add/edit
void reloadIcons(int size);
public slots:
@@ -226,7 +228,7 @@ private:
TDEPopupMenu *m_popup;
bool popupBlocked_;
int _size;
- typedef TQPtrList<StartMenuEntry> StartMenuEntryList;
+ typedef std::vector<StartMenuEntry*> StartMenuEntryList;
typedef TQMap<TQString,StartMenuEntryList> KeyWordList;
StartMenuEntryList entryList;
KeyWordList m_keywordList;
@@ -250,11 +252,14 @@ class SearchLine : public KLineEdit
public:
SearchLine( TQWidget * parent );
bool blocked;
+protected:
+ void focusInEvent ( TQFocusEvent * );
protected slots:
void makeCompletion (const TQString &);
void block(){blocked = true;}
signals:
void typedTextChanged(const TQString & string);
+ void focusedIn();
};
class KURIFilterData;
@@ -293,7 +298,7 @@ private slots:
void execute(const TQString & command);
void search(const TQString & string);
void endHistory();
-// void slotLock();
+ void searchLineFocused();
private:
bool inMove;
uint m_spokenText;