Add (and install) svg for the new krunner interface.
[kdebase/uwolfer.git] / workspace / kmenuedit / basictab.h
blobf9b167a0aa2f38ba23ff13dc4c9754a2101a0664
1 /*
2 * Copyright (C) 2000 Matthias Elter <elter@kde.org>
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.
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.
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.
20 #ifndef __basictab_h__
21 #define __basictab_h__
23 #include <QWidget>
25 //Added by qt3to4:
26 #include <QLabel>
28 #include <klineedit.h>
30 class KKeySequenceWidget;
31 class KLineEdit;
32 class KIconButton;
33 class QCheckBox;
34 class QGroupBox;
35 class QLabel;
36 class KUrlRequester;
37 class KService;
39 class MenuFolderInfo;
40 class MenuEntryInfo;
42 class BasicTab : public QWidget
44 Q_OBJECT
46 public:
47 BasicTab( QWidget *parent=0 );
49 void apply();
50 Q_SIGNALS:
51 void changed( MenuFolderInfo * );
52 void changed( MenuEntryInfo * );
53 void findServiceShortcut(const KShortcut&, KService::Ptr &);
55 public Q_SLOTS:
56 void setFolderInfo(MenuFolderInfo *folderInfo);
57 void setEntryInfo(MenuEntryInfo *entryInfo);
58 void slotDisableAction();
59 protected Q_SLOTS:
60 void slotChanged();
61 void launchcb_clicked();
62 void systraycb_clicked();
63 void termcb_clicked();
64 void uidcb_clicked();
65 void slotCapturedKeySequence(const QKeySequence&);
66 void slotExecSelected();
68 protected:
69 void enableWidgets(bool isDF, bool isDeleted);
71 protected:
72 KLineEdit *_nameEdit, *_commentEdit;
73 KLineEdit *_descriptionEdit;
74 KKeySequenceWidget *_keyEdit;
75 KUrlRequester *_execEdit, *_pathEdit;
76 KLineEdit *_termOptEdit, *_uidEdit;
77 QCheckBox *_terminalCB, *_uidCB, *_launchCB, *_systrayCB;
78 KIconButton *_iconButton;
79 QGroupBox *_path_group, *_term_group, *_uid_group, *general_group_keybind;
80 QLabel *_termOptLabel, *_uidLabel, *_pathLabel, *_nameLabel, *_commentLabel, *_execLabel;
81 QLabel *_descriptionLabel;
83 MenuFolderInfo *_menuFolderInfo;
84 MenuEntryInfo *_menuEntryInfo;
85 bool _isDeleted;
88 #endif