author | harlekin <harlekin> | 2003-03-08 20:55:07 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2003-03-08 20:55:07 (UTC) |
commit | 9e482f354732a04aebfe8ab9a9eb5cfaad5b3cdb (patch) (side-by-side diff) | |
tree | 7c81ff40778a7aa417634982d9152de17c8e89a2 | |
parent | 4769ba5abff75e14157b2e878a890a677d223e87 (diff) | |
download | opie-9e482f354732a04aebfe8ab9a9eb5cfaad5b3cdb.zip opie-9e482f354732a04aebfe8ab9a9eb5cfaad5b3cdb.tar.gz opie-9e482f354732a04aebfe8ab9a9eb5cfaad5b3cdb.tar.bz2 |
use go from inline as startmenu icon
-rw-r--r-- | core/launcher/startmenu.cpp | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/core/launcher/startmenu.cpp b/core/launcher/startmenu.cpp index 39e07c8..2871233 100644 --- a/core/launcher/startmenu.cpp +++ b/core/launcher/startmenu.cpp @@ -20,5 +20,5 @@ #define INCLUDE_MENUITEM_DEF - + #include "startmenu.h" #include "sidething.h" @@ -57,5 +57,5 @@ StartMenu::StartMenu(QWidget *parent) : QLabel( parent ) applets. setAutoDelete ( true ); sepId = 0; - + reloadApps ( ); reloadApplets ( ); @@ -89,5 +89,5 @@ void StartMenu::loadOptions() QString tmpBoolString3 = config.readEntry( "UseMRUList", "TRUE" ); popupMenuSidePixmap = config.readEntry( "PopupMenuSidePixmap", "launcher/sidebar" ); - startButtonPixmap = config.readEntry( "StartButtonPixmap", "launcher/start_button" ); + startButtonPixmap = config.readEntry( "StartButtonPixmap", "go" ); #else // Basically just #include the .qpe_menu.conf file settings @@ -95,5 +95,5 @@ void StartMenu::loadOptions() popupMenuSidePixmap = "launcher/sidebar"; startButtonIsFlat = TRUE; - startButtonPixmap = "launcher/start_button"; // No tr + startButtonPixmap = "go"; // No tr #endif } @@ -110,5 +110,5 @@ void StartMenu::createMenu() loadMenu ( apps, launchMenu ); loadApplets ( ); - + connect( launchMenu, SIGNAL(activated(int)), SLOT(itemSelected(int)) ); } @@ -130,5 +130,5 @@ void StartMenu::reloadApps() if ( launchMenu ) { launchMenu-> hide ( ); - + for ( QIntDictIterator<QPopupMenu> it ( tabdict ); it. current ( ); ++it ) { launchMenu-> removeItem ( it. currentKey ( )); @@ -159,8 +159,8 @@ void StartMenu::itemSelected( int id ) else { MenuApplet *applet = applets. find ( id ); - + if ( applet ) applet-> iface-> activated ( ); - } + } } @@ -174,7 +174,7 @@ bool StartMenu::loadMenu( AppLnkSet *folder, QPopupMenu *menu ) bool ltabs = cfg.readBoolEntry("LauncherTabs",TRUE); bool lot = cfg.readBoolEntry("LauncherOther",TRUE); - + tabdict. clear ( ); - + if ( sepId ) menu-> removeItem ( sepId ); @@ -231,5 +231,5 @@ bool StartMenu::loadMenu( AppLnkSet *folder, QPopupMenu *menu ) } - if ( sepId && ( menu-> idAt ( 0 ) == sepId )) { // no tabs entries + if ( sepId && ( menu-> idAt ( 0 ) == sepId )) { // no tabs entries menu-> removeItem ( sepId ); sepId = 0; @@ -237,5 +237,5 @@ bool StartMenu::loadMenu( AppLnkSet *folder, QPopupMenu *menu ) if ( !menu-> count ( )) // if we don't do this QPopupMenu will insert a dummy Separator, which won't go away later sepId = menu-> insertSeparator ( ); - + return result; } @@ -253,5 +253,5 @@ void StartMenu::launch ( ) if ( active && active-> isPopup ( )) active-> close ( ); - + launchMenu-> popup ( QPoint ( 1, y )); } @@ -294,5 +294,5 @@ void StartMenu::clearApplets() delete applet-> popup; } - + applet-> iface-> release(); applet-> library-> unload(); @@ -308,8 +308,8 @@ void StartMenu::loadApplets() Config cfg( "StartMenu" ); cfg.setGroup( "Applets" ); - + // SafeMode causes too much problems, so we disable it for now -- // maybe we should reenable it for OPIE 1.0 - sandman 26.09.02 - + bool safe = false; //cfg.readBoolEntry("SafeMode",FALSE); if ( safe && !safety_tid ) @@ -336,5 +336,5 @@ void StartMenu::loadApplets() applet->library = lib; applet->iface = iface; - + QTranslator *trans = new QTranslator(qApp); QString type = (*it).left( (*it).find(".") ); @@ -343,5 +343,5 @@ void StartMenu::loadApplets() qApp->installTranslator( trans ); else - delete trans; + delete trans; } else { exclude += *it; @@ -355,18 +355,18 @@ void StartMenu::loadApplets() launchMenu-> removeItem ( sepId ); sepId = ( launchMenu-> count ( )) ? launchMenu-> insertSeparator ( ) : 0; - + while (napplets--) { MenuApplet *applet = xapplets[napplets]; - + applet-> popup = applet-> iface-> popup ( this ); - + if ( applet-> popup ) applet-> id = launchMenu-> insertItem ( applet-> iface-> icon ( ), applet-> iface-> text ( ), applet-> popup ); - else + else applet-> id = launchMenu-> insertItem ( applet-> iface-> icon ( ), applet-> iface-> text ( ) ); applets.insert ( applet-> id, new MenuApplet(*applet)); } delete [] xapplets; - + if ( sepId && ( launchMenu-> idAt ( launchMenu-> count ( ) - 1 ) == sepId )) { // no applets launchMenu-> removeItem ( sepId ); @@ -375,5 +375,5 @@ void StartMenu::loadApplets() if ( !launchMenu-> count ( )) // if we don't do this QPopupMenu will insert a dummy Separator, which won't go away later sepId = launchMenu-> insertSeparator ( ); - + if ( !safety_tid ) safety_tid = startTimer(2000); // TT has 5000, but this is a PITA for a developer ;) (sandman) |