• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

libtaskmanager

taskrmbmenu.h

Go to the documentation of this file.
00001 /*****************************************************************
00002 
00003 Copyright (c) 2001 Matthias Elter <elter@kde.org>
00004 Copyright (c) 2001 John Firebaugh <jfirebaugh@kde.org>
00005 
00006 Permission is hereby granted, free of charge, to any person obtaining a copy
00007 of this software and associated documentation files (the "Software"), to deal
00008 in the Software without restriction, including without limitation the rights
00009 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
00010 copies of the Software, and to permit persons to whom the Software is
00011 furnished to do so, subject to the following conditions:
00012 
00013 The above copyright notice and this permission notice shall be included in
00014 all copies or substantial portions of the Software.
00015 
00016 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
00017 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00018 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
00019 AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
00020 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
00021 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
00022 
00023 ******************************************************************/
00024 
00025 #ifndef TASKRMBMENU_H
00026 #define TASKRMBMENU_H
00027 
00028 // Own
00029 #include "task.h"
00030 
00031 // Qt
00032 #include <QMenu>
00033 #include <QList>
00034 #include <QPair>
00035 
00036 namespace TaskManager
00037 {
00038 
00039 class KDE_EXPORT TaskRMBMenu : public QMenu
00040 {
00041     Q_OBJECT
00042 
00043 public:
00044     explicit TaskRMBMenu(const TaskList&, bool showAll = true, QWidget *parent = 0);
00045     explicit TaskRMBMenu(TaskPtr, bool showAll = true, QWidget *parent = 0);
00046 
00047 private:
00048     void fillMenu(TaskPtr);
00049     void fillMenu();
00050     QMenu* makeAdvancedMenu(TaskPtr);
00051     QMenu* makeDesktopsMenu(TaskPtr);
00052     QMenu* makeDesktopsMenu();
00053 
00054 private Q_SLOTS:
00055     void slotMinimizeAll();
00056     void slotMaximizeAll();
00057     void slotRestoreAll();
00058     void slotShadeAll();
00059     void slotCloseAll();
00060     void slotAllToDesktop();
00061     void slotAllToCurrentDesktop();
00062     void slotToDesktop();
00063 
00064 private:
00065     TaskList tasks;
00066     bool showAll;
00067     QList< QPair<TaskPtr, int> > toDesktopMap;
00068 };
00069 
00070 } // TaskManager namespace
00071 
00072 
00073 #endif

libtaskmanager

Skip menu "libtaskmanager"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • KWin
  •   KWin Libraries
  • Libraries
  •   libkworkspace
  •   libplasma
  •   libsolidcontrol
  •   libtaskmanager
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal