not quite so much needs to be delayed to the init() function
[personal-kdebase.git] / workspace / kmenuedit / basictab.h
blob35d4c532511204441478013ff81b39b1ed71afe3
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 <KTabWidget>
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;
35 class MenuFolderInfo;
36 class MenuEntryInfo;
38 class BasicTab : public KTabWidget
40 Q_OBJECT
42 public:
43 BasicTab( QWidget *parent=0 );
45 void apply();
47 void updateHiddenEntry( bool _hidden );
49 Q_SIGNALS:
50 void changed( MenuFolderInfo * );
51 void changed( MenuEntryInfo * );
52 void findServiceShortcut(const KShortcut&, KService::Ptr &);
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();
69 protected:
70 void enableWidgets(bool isDF, bool isDeleted);
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;
85 MenuFolderInfo *_menuFolderInfo;
86 MenuEntryInfo *_menuEntryInfo;
87 bool _isDeleted;
90 #endif