~ubuntu-branches/ubuntu/maverick/datakiosk/maverick

« back to all changes in this revision

Viewing changes to src/datakiosk/src/fieldeditordialogimpl.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2005-06-27 22:48:06 UTC
  • Revision ID: james.westby@ubuntu.com-20050627224806-8farkci1dc2onhbs
Tags: upstream-0.7
ImportĀ upstreamĀ versionĀ 0.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
*   Copyright (C) 2005 by Adam Treat                                      *
 
3
*   treat@kde.org                                                         *
 
4
*                                                                         *
 
5
*   This program is free software; you can redistribute it and/or modify  *
 
6
*   it under the terms of the GNU General Public License as published by  *
 
7
*   the Free Software Foundation; either version 2 of the License, or     *
 
8
*   (at your option) any later version.                                   *
 
9
*                                                                         *
 
10
***************************************************************************/
 
11
 
 
12
#ifndef FIELDEDITORDIALOGIMPL_H
 
13
#define FIELDEDITORDIALOGIMPL_H
 
14
 
 
15
#include <fieldeditordialog.h>
 
16
 
 
17
class DataField;
 
18
class DataTable;
 
19
 
 
20
class FieldEditorDialog : public FieldEditorDialogBase
 
21
{
 
22
    Q_OBJECT
 
23
public:
 
24
    FieldEditorDialog( DataField *dataField, DataTable *parentTable,
 
25
                          bool configure, QWidget *parent = 0,
 
26
                          const char *name = 0 );
 
27
 
 
28
    virtual ~FieldEditorDialog();
 
29
 
 
30
    void accept();
 
31
 
 
32
protected slots:
 
33
    void calculatedToggled( bool toggle );
 
34
    void fieldNameChanged( const QString &name );
 
35
    void fieldLabelChanged( const QString &label );
 
36
    void fieldEquationChanged( const QString &equation );
 
37
 
 
38
private:
 
39
    void setup();
 
40
 
 
41
private:
 
42
    DataField *m_dataField;
 
43
    DataTable *m_parentTable;
 
44
    bool m_configure;
 
45
};
 
46
 
 
47
#endif