~ubuntu-branches/ubuntu/precise/krusader/precise

« back to all changes in this revision

Viewing changes to krusader/UserMenu/usermenu.h

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2010-05-05 22:26:37 UTC
  • mfrom: (3.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100505222637-ydv3cwjwy365on2r
Tags: 1:2.1.0~beta1-1ubuntu1
* Merge from Debian Unstable.  Remaining changes:
  - Retain Kubuntu doc path

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/***************************************************************************
2
 
                     usermenu.h  -  description
3
 
                        -------------------
4
 
begin                : Sat Dec 6 2003
5
 
copyright            : (C) 2003 by Shie Erlich & Rafi Yanai
6
 
email                :
7
 
***************************************************************************/
8
 
 
9
 
/***************************************************************************
10
 
 *                                                                         *
11
 
 *   This program is free software; you can redistribute it and/or modify  *
12
 
 *   it under the terms of the GNU General Public License as published by  *
13
 
 *   the Free Software Foundation; either version 2 of the License, or     *
14
 
 *   (at your option) any later version.                                   *
15
 
 *                                                                         *
16
 
 ***************************************************************************/
 
1
/*****************************************************************************
 
2
 * Copyright (C) 2003 Shie Erlich <erlich@users.sourceforge.net>             *
 
3
 * Copyright (C) 2003 Rafi Yanai <yanai@users.sourceforge.net>               *
 
4
 *                                                                           *
 
5
 * This program is free software; you can redistribute it and/or modify      *
 
6
 * it under the terms of the GNU General Public License as published by      *
 
7
 * the Free Software Foundation; either version 2 of the License, or         *
 
8
 * (at your option) any later version.                                       *
 
9
 *                                                                           *
 
10
 * This package is distributed in the hope that it will be useful,           *
 
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of            *
 
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             *
 
13
 * GNU General Public License for more details.                              *
 
14
 *                                                                           *
 
15
 * You should have received a copy of the GNU General Public License         *
 
16
 * along with this package; if not, write to the Free Software               *
 
17
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA *
 
18
 *****************************************************************************/
17
19
 
18
20
#ifndef USERMENU_H
19
21
#define USERMENU_H
24
26
class UserMenu;
25
27
class QAction;
26
28
 
27
 
class UserMenuGui: public KMenu {
28
 
   public:
29
 
      UserMenuGui( UserMenu* menu, QWidget *parent = 0 );
30
 
      void run();
31
 
      void createMenu();
32
 
 
33
 
   protected:
34
 
      void readEntries();
35
 
 
36
 
   private:
37
 
      QAction* _manageAction;
 
29
class UserMenuGui: public KMenu
 
30
{
 
31
public:
 
32
    UserMenuGui(UserMenu* menu, QWidget *parent = 0);
 
33
    void run();
 
34
    void createMenu();
 
35
 
 
36
protected:
 
37
    void readEntries();
 
38
 
 
39
private:
 
40
    QAction* _manageAction;
38
41
};
39
42
 
40
 
class UserMenu : public QWidget {
41
 
   public:
42
 
      UserMenu( QWidget *parent = 0 );
43
 
      void exec();
44
 
      void update();
45
 
   
46
 
   private:
47
 
      UserMenuGui* _popup;
 
43
class UserMenu : public QWidget
 
44
{
 
45
public:
 
46
    UserMenu(QWidget *parent = 0);
 
47
    void exec();
 
48
    void update();
 
49
 
 
50
private:
 
51
    UserMenuGui* _popup;
48
52
};
49
53
 
50
54
#endif