~ubuntu-branches/ubuntu/utopic/kde-workspace/utopic-proposed

« back to all changes in this revision

Viewing changes to kmenuedit/basictab.h

  • Committer: Bazaar Package Importer
  • Author(s): Michał Zając
  • Date: 2011-07-09 08:31:15 UTC
  • Revision ID: james.westby@ubuntu.com-20110709083115-ohyxn6z93mily9fc
Tags: upstream-4.6.90
Import upstream version 4.6.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *   Copyright (C) 2000 Matthias Elter <elter@kde.org>
 
3
 *
 
4
 *   This program is free software; you can redistribute it and/or modify
 
5
 *   it under the terms of the GNU General Public License as published by
 
6
 *   the Free Software Foundation; either version 2 of the License, or
 
7
 *   (at your option) any later version.
 
8
 *
 
9
 *   This program is distributed in the hope that it will be useful,
 
10
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
 *   GNU General Public License for more details.
 
13
 *
 
14
 *   You should have received a copy of the GNU General Public License
 
15
 *   along with this program; if not, write to the Free Software
 
16
 *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
17
 *
 
18
 */
 
19
 
 
20
#ifndef __basictab_h__
 
21
#define __basictab_h__
 
22
 
 
23
#include <KTabWidget>
 
24
 
 
25
class KKeySequenceWidget;
 
26
class KLineEdit;
 
27
class KIconButton;
 
28
class QCheckBox;
 
29
class QGroupBox;
 
30
class QLabel;
 
31
class KUrlRequester;
 
32
class KService;
 
33
class KLineSpellChecking;
 
34
 
 
35
class MenuFolderInfo;
 
36
class MenuEntryInfo;
 
37
 
 
38
class BasicTab : public KTabWidget
 
39
{
 
40
    Q_OBJECT
 
41
 
 
42
public:
 
43
    BasicTab( QWidget *parent=0 );
 
44
 
 
45
    void apply();
 
46
 
 
47
    void updateHiddenEntry( bool _hidden );
 
48
 
 
49
Q_SIGNALS:
 
50
    void changed( MenuFolderInfo * );
 
51
    void changed( MenuEntryInfo * );
 
52
    void findServiceShortcut(const KShortcut&, KService::Ptr &);
 
53
 
 
54
public Q_SLOTS:
 
55
    void setFolderInfo(MenuFolderInfo *folderInfo);
 
56
    void setEntryInfo(MenuEntryInfo *entryInfo);
 
57
    void slotDisableAction();
 
58
protected Q_SLOTS:
 
59
    void slotChanged();
 
60
    void launchcb_clicked();
 
61
    void systraycb_clicked();
 
62
    void termcb_clicked();
 
63
    void uidcb_clicked();
 
64
    void slotCapturedKeySequence(const QKeySequence&);
 
65
    void slotExecSelected();
 
66
    void onlyshowcb_clicked();
 
67
    void hiddenentrycb_clicked();
 
68
 
 
69
protected:
 
70
    void enableWidgets(bool isDF, bool isDeleted);
 
71
 
 
72
protected:
 
73
    KLineEdit    *_nameEdit;
 
74
    KLineSpellChecking*_commentEdit;
 
75
    KLineSpellChecking   *_descriptionEdit;
 
76
    KKeySequenceWidget *_keyEdit;
 
77
    KUrlRequester *_execEdit, *_pathEdit;
 
78
    KLineEdit    *_termOptEdit, *_uidEdit;
 
79
    QCheckBox    *_terminalCB, *_uidCB, *_launchCB, *_systrayCB, *_onlyShowInKdeCB, *_hiddenEntryCB;
 
80
    KIconButton  *_iconButton;
 
81
    QGroupBox    *_path_group, *_term_group, *_uid_group, *general_group_keybind;
 
82
    QLabel *_termOptLabel, *_uidLabel, *_pathLabel, *_nameLabel, *_commentLabel, *_execLabel;
 
83
    QLabel      *_descriptionLabel;
 
84
 
 
85
    MenuFolderInfo *_menuFolderInfo;
 
86
    MenuEntryInfo  *_menuEntryInfo;
 
87
    bool _isDeleted;
 
88
};
 
89
 
 
90
#endif