keximacrotextview.h
1/* This file is part of the KDE project
2 Copyright (C) 2006 Sebastian Sauer <mail@dipe.org>
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 This library is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 Library General Public License for more details.
12 You should have received a copy of the GNU Library General Public License
13 along with this library; see the file COPYING.LIB. If not, write to
14 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
15 Boston, MA 02110-1301, USA.
16*/
17
18#ifndef KEXIMACROTEXTVIEW_H
19#define KEXIMACROTEXTVIEW_H
20
21#include "keximacroview.h"
22
23// Forward declaration.
24namespace KoMacro {
25 class Macro;
26}
27
33{
34 TQ_OBJECT
35
36 public:
37
46 KexiMacroTextView(KexiMainWindow *mainwin, TQWidget *parent, ::KoMacro::Macro* const macro);
47
51 virtual ~KexiMacroTextView();
52
56 virtual bool loadData();
57
62 virtual tristate storeData(bool dontAsk = false);
63
64 private slots:
65
69 void editorChanged();
70
71 private:
73 class Private;
75 Private* const d;
76};
77
78#endif
The KexiMacroTextView implements KexiMacroView to provide a simple texteditor to edit the XML documen...
virtual ~KexiMacroTextView()
Destructor.
virtual tristate storeData(bool dontAsk=false)
Try to store the modified data in the already opened and currently used KexiDB::SchemaData instance.
virtual bool loadData()
Load the data and display it in the editor.
The KexiMacroView implements KexiViewBase to provide a base KexiView instance for Macros.
TDESharedPtr< KoMacro::Macro > macro() const
Kexi's main window interface This interface is implemented by KexiMainWindowImpl class.
The Macro class implements all the action-handling.
Definition macro.h:45
3-state logical type with three values: true, false and cancelled and convenient operators.
Definition tristate.h:100