KnowIt – tool for managing notes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

knowittray.cpp 1.4KB

123456789101112131415161718192021222324252627282930313233
  1. /***************************************************************************
  2. knowittray.cpp - description
  3. -------------------
  4. begin : czw lis 28 2002
  5. copyright : (C) 2002-2004 by Micha³ Rudolf
  6. email : mrudolf@tdewebdev.org
  7. ***************************************************************************/
  8. /***************************************************************************
  9. * *
  10. * This program is free software; you can redistribute it and/or modify *
  11. * it under the terms of the GNU General Public License as published by *
  12. * the Free Software Foundation; either version 2 of the License, or *
  13. * (at your option) any later version. *
  14. * *
  15. ***************************************************************************/
  16. #include "knowittray.h"
  17. #include <kpopupmenu.h>
  18. #include <klocale.h>
  19. KnowitTray::KnowitTray (TQWidget* parent, const char* name) :
  20. KSystemTray(parent, name)
  21. {
  22. contextMenu()->insertItem(i18n("&Undock"), parent,
  23. TQT_SLOT(slotUndock()));
  24. }
  25. void KnowitTray::contextMenuAboutToShow (TDEPopupMenu* menu)
  26. {
  27. menu->removeItemAt(menu->count()-1);
  28. menu->insertItem(i18n("&Quit"), parent(), TQT_SLOT(slotFileQuit()));
  29. }