summaryrefslogtreecommitdiff
authormickeyl <mickeyl>2003-05-19 13:56:38 (UTC)
committer mickeyl <mickeyl>2003-05-19 13:56:38 (UTC)
commit75d4ec5369e4c5d64e3becaa2a31dd78a5f8f998 (patch) (side-by-side diff)
treebe80eb3ee447deab179dbc6ceb7ecbf04f77f5df
parent250291019cac863e50ffce981a9c93b627448253 (diff)
downloadopie-75d4ec5369e4c5d64e3becaa2a31dd78a5f8f998.zip
opie-75d4ec5369e4c5d64e3becaa2a31dd78a5f8f998.tar.gz
opie-75d4ec5369e4c5d64e3becaa2a31dd78a5f8f998.tar.bz2
- remove dangling SINGLE_APP support leftovers
- add new QCOP message toggleInputMethod() which is especially interesting for the use with opie-buttonsettings
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/launcher/taskbar.cpp35
-rw-r--r--core/launcher/taskbar.h2
2 files changed, 3 insertions, 34 deletions
diff --git a/core/launcher/taskbar.cpp b/core/launcher/taskbar.cpp
index 8af568d..feeba79 100644
--- a/core/launcher/taskbar.cpp
+++ b/core/launcher/taskbar.cpp
@@ -55,31 +55,4 @@ using namespace Opie;
-#define FACTORY(T) \
- static QWidget *new##T( bool maximized ) { \
- QWidget *w = new T( 0, "test", QWidget::WDestructiveClose | QWidget::WGroupLeader ); \
- if ( maximized ) { \
- if ( qApp->desktop()->width() <= 350 ) { \
- w->showMaximized(); \
- } else { \
- w->resize( QSize( 300, 300 ) ); \
- } \
- } \
- w->show(); \
- return w; \
- }
-
-
-#ifdef SINGLE_APP
-#define APP(a,b,c,d) FACTORY(b)
-#include "../launcher/apps.h"
-#undef APP
-#endif // SINGLE_APP
-
static Global::Command builtins[] = {
-#ifdef SINGLE_APP
-#define APP(a,b,c,d) { a, new##b, c },
-#include "../launcher/apps.h"
-#undef APP
-#endif
-
#if defined(QT_QWS_IPAQ) || defined(QT_QWS_CASSIOPEIA) || defined(QT_QWS_SL5XXX)
@@ -153,3 +126,2 @@ TaskBar::TaskBar() : QHBox(0, 0, WStyle_Customize | WStyle_Tool | WStyle_StaysOn
this, SLOT(calcMaxWindowRect()) );
- //new QuickLauncher( this );
@@ -159,5 +131,2 @@ TaskBar::TaskBar() : QHBox(0, 0, WStyle_Customize | WStyle_Tool | WStyle_StaysOn
- //mru = new MRUList( stack );
- //stack->raiseWidget( mru );
-
runningAppBar = new RunningAppBar(stack);
@@ -275,2 +244,4 @@ void TaskBar::receive( const QCString &msg, const QByteArray &data )
inputMethods->loadInputMethods();
+ } else if ( msg == "toggleInputMethod()" ) {
+ inputMethods->shown() ? inputMethods->hideInputMethod() : inputMethods->showInputMethod();
} else if ( msg == "reloadApps()" ) {
@@ -340,3 +311,3 @@ bool TaskBar::recoverMemory()
{
- //eturn mru->quitOldApps();
+ //mru->quitOldApps() is no longer supported
return true;
diff --git a/core/launcher/taskbar.h b/core/launcher/taskbar.h
index a0bf395..0cfc123 100644
--- a/core/launcher/taskbar.h
+++ b/core/launcher/taskbar.h
@@ -30,3 +30,2 @@ class Wait;
class SysTray;
-//class MRUList;
class RunningAppBar;
@@ -74,3 +73,2 @@ private:
SysTray *sysTray;
- // MRUList *mru;
RunningAppBar* runningAppBar;