~ubuntu-branches/ubuntu/precise/kalzium/precise

« back to all changes in this revision

Viewing changes to src/exportdialog.h

  • Committer: Bazaar Package Importer
  • Author(s): Philip Muškovac
  • Date: 2011-07-03 12:28:58 UTC
  • Revision ID: james.westby@ubuntu.com-20110703122858-q1yyxncs89e4w0hs
Tags: upstream-4.6.90+repack
Import upstream version 4.6.90+repack

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef EXPORTDIALOG_H
 
2
#define EXPORTDIALOG_H
 
3
/***************************************************************************
 
4
    copyright            : (C) 2007 by Johannes Simon
 
5
    email                : johannes.simon@gmail.com
 
6
 ***************************************************************************/
 
7
/***************************************************************************
 
8
 *                                                                         *
 
9
 *   This program is free software; you can redistribute it and/or modify  *
 
10
 *   it under the terms of the GNU General Public License as published by  *
 
11
 *   the Free Software Foundation; either version 2 of the License, or     *
 
12
 *   (at your option) any later version.                                   *
 
13
 *                                                                         *
 
14
 ***************************************************************************/
 
15
 
 
16
#include <QListWidget>
 
17
#include <element.h>
 
18
 
 
19
#include "kalziumdataobject.h"
 
20
#include "ui_exportdialog.h"
 
21
 
 
22
class KDialog;
 
23
 
 
24
class ElementListEntry : public QListWidgetItem
 
25
{
 
26
    public:
 
27
        ElementListEntry( Element * element );
 
28
        ~ElementListEntry();
 
29
 
 
30
        int       m_atomicNum;
 
31
        QString   m_name;
 
32
        Element * m_element;
 
33
};
 
34
 
 
35
class PropertyListEntry : public QListWidgetItem
 
36
{
 
37
    public:
 
38
        PropertyListEntry( const QString & name, ChemicalDataObject::BlueObelisk type );
 
39
        ~PropertyListEntry();
 
40
 
 
41
        ChemicalDataObject::BlueObelisk m_type;
 
42
};
 
43
 
 
44
/**
 
45
* @author: Johannes Simon
 
46
*/
 
47
class ExportDialog : public KDialog
 
48
{
 
49
    Q_OBJECT
 
50
 
 
51
    public:
 
52
        ExportDialog( QWidget * parent );
 
53
        ~ExportDialog();
 
54
 
 
55
        void populateElementList();
 
56
        void exportToHtml();
 
57
        void exportToXml();
 
58
        void exportToCsv();
 
59
 
 
60
    private:
 
61
        Ui::exportDialogForm ui;
 
62
        QTextStream * m_outputStream;
 
63
        
 
64
 
 
65
    public slots:
 
66
        void slotOkClicked();
 
67
        void slotHelpClicked();
 
68
};
 
69
 
 
70
#endif // EXPORTDIALOG_H