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

« back to all changes in this revision

Viewing changes to src/src/relationeditordialogimpl.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 RELATIONEDITORDIALOGIMPL_H
 
13
#define RELATIONEDITORDIALOGIMPL_H
 
14
 
 
15
#include <relationeditordialog.h>
 
16
 
 
17
class DataField;
 
18
class DataTable;
 
19
 
 
20
class RelationEditorDialog : public RelationEditorDialogBase
 
21
{
 
22
    Q_OBJECT
 
23
public:
 
24
    RelationEditorDialog( DataField *dataField, DataTable *parentTable,
 
25
                          bool configure, QWidget *parent = 0,
 
26
                          const char *name = 0 );
 
27
 
 
28
    virtual ~RelationEditorDialog();
 
29
 
 
30
    void accept();
 
31
 
 
32
protected slots:
 
33
    void fieldUp();
 
34
    void fieldDown();
 
35
 
 
36
    void currentFieldChanged( QListBoxItem* );
 
37
    void hiddenToggled( bool toggle );
 
38
    void foreignToggled( bool toggle );
 
39
    void reportToggled( bool toggle );
 
40
    void targetTableActivated();
 
41
    void targetKeyActivated();
 
42
    void targetFieldActivated();
 
43
    void targetConstraintActivated();
 
44
 
 
45
    void newField();
 
46
    void deleteField();
 
47
 
 
48
private:
 
49
    void setup();
 
50
    DataField *findField( QListBoxItem *i );
 
51
 
 
52
private:
 
53
    DataField *m_dataField;
 
54
    DataTable *m_parentTable;
 
55
    bool m_configure;
 
56
};
 
57
 
 
58
#endif