kexi

kexiactionselectiondialog.h
1/* This file is part of the KDE project
2 Copyright (C) 2005-2006 Jaroslaw Staniek <js@iidea.pl>
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
8
9 This library 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 GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18*/
19
20#ifndef KEXIACTIONSELECTIONDIALOG_H
21#define KEXIACTIONSELECTIONDIALOG_H
22
23#include <kdialogbase.h>
24#include "kexiformeventhandler.h"
25
26class KexiMainWindow;
27class TDEListView;
28namespace KexiPart {
29 class Item;
30}
31
33
37class KEXIFORMUTILS_EXPORT KexiActionSelectionDialog : public KDialogBase
38{
39 TQ_OBJECT
40
41 public:
42 KexiActionSelectionDialog(KexiMainWindow* mainWin, TQWidget *parent,
43 const KexiFormEventAction::ActionData& action, const TQCString& actionWidgetName);
44 ~KexiActionSelectionDialog();
45
49
51 KexiMainWindow* mainWin() const;
52
53 virtual bool eventFilter(TQObject *o, TQEvent *e);
54
55 protected slots:
56 void slotActionCategorySelected(TQListViewItem* item);
57 void slotTDEActionItemExecuted(TQListViewItem*);
58 void slotTDEActionItemSelected(TQListViewItem*);
59 void slotActionToExecuteItemExecuted(TQListViewItem* item);
60 void slotActionToExecuteItemSelected(TQListViewItem*);
61 void slotCurrentFormActionItemExecuted(TQListViewItem*);
62 void slotCurrentFormActionItemSelected(TQListViewItem*);
63 void slotItemForOpeningOrExecutingSelected(KexiPart::Item* item);
64
65 protected:
66 void updateOKButtonStatus();
67
68 class KexiActionSelectionDialogPrivate;
69 KexiActionSelectionDialogPrivate* d;
70};
71
72#endif
KexiFormEventAction::ActionData currentAction() const
A structure used in currentActionName().
Kexi's main window interface This interface is implemented by KexiMainWindowImpl class.
Information about a single object that can be instantiated using Kexi Part.