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__
28 #include <klineedit.h>
30 class KKeySequenceWidget
;
42 class BasicTab
: public QWidget
47 BasicTab( QWidget
*parent
=0 );
51 void changed( MenuFolderInfo
* );
52 void changed( MenuEntryInfo
* );
53 void findServiceShortcut(const KShortcut
&, KService::Ptr
&);
56 void setFolderInfo(MenuFolderInfo
*folderInfo
);
57 void setEntryInfo(MenuEntryInfo
*entryInfo
);
58 void slotDisableAction();
61 void launchcb_clicked();
62 void systraycb_clicked();
63 void termcb_clicked();
65 void slotCapturedKeySequence(const QKeySequence
&);
66 void slotExecSelected();
69 void enableWidgets(bool isDF
, bool isDeleted
);
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
;