Changeset View
Changeset View
Standalone View
Standalone View
src/plugins/scripting/kexiscripting/kexiscriptdesignview.h
Show All 26 Lines | |||||
27 | 27 | | |||
28 | #include <KPropertySet> | 28 | #include <KPropertySet> | ||
29 | #include <KProperty> | 29 | #include <KProperty> | ||
30 | 30 | | |||
31 | // Forward declarations. | 31 | // Forward declarations. | ||
32 | class KexiScriptEditor; | 32 | class KexiScriptEditor; | ||
33 | class KexiScriptDesignViewPrivate; | 33 | class KexiScriptDesignViewPrivate; | ||
34 | 34 | | |||
35 | namespace Kross | 35 | | ||
36 | { | | |||
37 | class Action; | | |||
38 | } | | |||
39 | 36 | | |||
40 | /** | 37 | /** | ||
41 | * The KexiScriptDesignView class provides the KexiView to | 38 | * The KexiScriptDesignView class provides the KexiView to | ||
42 | * manage script modules in the design-view. The design-view | 39 | * manage script modules in the design-view. The design-view | ||
43 | * is used to be able to view and edit the scripting code via | 40 | * is used to be able to view and edit the scripting code via | ||
44 | * a \a KexiScriptEditor instance. | 41 | * a \a KexiScriptEditor instance. | ||
45 | */ | 42 | */ | ||
46 | class KexiScriptDesignView : public KexiView | 43 | class KexiScriptDesignView : public KexiView | ||
47 | { | 44 | { | ||
48 | Q_OBJECT | 45 | Q_OBJECT | ||
49 | 46 | | |||
50 | public: | 47 | public: | ||
51 | 48 | | |||
52 | /** | 49 | /** | ||
53 | * Constructor. | 50 | * Constructor. | ||
54 | */ | 51 | */ | ||
55 | KexiScriptDesignView(QWidget *parent, Kross::Action* scriptaction); | 52 | KexiScriptDesignView(QWidget *parent); | ||
56 | 53 | | |||
57 | /** | 54 | /** | ||
58 | * Destructor. | 55 | * Destructor. | ||
59 | */ | 56 | */ | ||
60 | virtual ~KexiScriptDesignView(); | 57 | virtual ~KexiScriptDesignView(); | ||
61 | 58 | | |||
62 | /** | 59 | /** | ||
63 | * \return the \a Kross::Action this \a KexiScriptDesignView | 60 | * \return the program string this \a KexiScriptDesignView | ||
64 | * is responsible for. | 61 | * is responsible for. | ||
65 | */ | 62 | */ | ||
66 | Kross::Action* scriptAction() const; | 63 | // QString scriptAction() const; | ||
67 | 64 | | |||
68 | /** | 65 | /** | ||
69 | * \return a property set for this view. | 66 | * \return a property set for this view. | ||
70 | */ | 67 | */ | ||
71 | virtual KPropertySet* propertySet(); | 68 | virtual KPropertySet* propertySet(); | ||
72 | 69 | | |||
73 | /** | 70 | /** | ||
74 | * Try to call \a storeData with new data we like to store. On | 71 | * Try to call \a storeData with new data we like to store. On | ||
Show All 15 Lines | |||||
90 | */ | 87 | */ | ||
91 | virtual tristate storeData(bool dontAsk = false); | 88 | virtual tristate storeData(bool dontAsk = false); | ||
92 | 89 | | |||
93 | private Q_SLOTS: | 90 | private Q_SLOTS: | ||
94 | 91 | | |||
95 | /** | 92 | /** | ||
96 | * Deferred initialization. | 93 | * Deferred initialization. | ||
97 | */ | 94 | */ | ||
98 | void initialize(); | 95 | void initialize(const QString &program); | ||
99 | 96 | | |||
100 | void slotImport(); | 97 | void slotImport(); | ||
101 | void slotExport(); | 98 | void slotExport(); | ||
102 | 99 | | |||
103 | /** | 100 | /** | ||
104 | * Handle changes in the property editor. | 101 | * Handle changes in the property editor. | ||
105 | */ | 102 | */ | ||
106 | void slotPropertyChanged(KPropertySet& set, KProperty& property); | 103 | void slotPropertyChanged(KPropertySet& set, KProperty& property); | ||
Show All 23 Lines |