summaryrefslogtreecommitdiffstats
path: root/keduca/keducabuilder/kcontrolheader.h
blob: b4bf14890063912d7e4a7b45056dc63d87392a23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
/***************************************************************************
                          kcontrolheader.h  -  description
                             -------------------
    begin                : Tue May 29 2001
    copyright            : (C) 2001 by Javier Campos
    email                : javi@asyris.org
***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef KCONTROLHEADER_H
#define KCONTROLHEADER_H

#include "../libkeduca/fileread.h"
#include "klangcombo.h"

#include <kdialogbase.h>
#include <kurlrequester.h>


/**Information header
 * Options Dialog for KEduca Document.
 * Will be called for each new KEduca Document and from the Editor (class KEducaBuilder)
 *@author Javier Campos
 */

class KControlHeader : public KDialogBase  {
    Q_OBJECT
  

public:
    KControlHeader(FileRead *keducaFile, TQWidget *parent=0, const char *name=0);
    ~KControlHeader();

private:

    // Private attributes

    /** Keduca pointer */
    FileRead *_keducaFile;
    /** Title */
    TQLineEdit *_headerTitle;
    /** Header type */
    KComboBox *_headerType;
    /** Header category */
    KComboBox *_headerCategory;
    /** Header level */
    KComboBox *_headerLevel;
    /** Header lang */
    KLanguageCombo *_headerLang;
    /** Header picture */
    KURLRequester *_headerPicture;
    /** Header name */
    TQLineEdit *_headerName;
    /** Header email */
    TQLineEdit *_headerEmail;
    /** Header www */
    TQLineEdit *_headerWWW;
    /** Default categories */
    TQStringList _defaultCategories;

    // Private methods

    /** Init graphical interface */
    void init();
    /** Insert header */
    void insertHeader();
    /** Load country list */
    void loadCountryList(KLanguageCombo *combo);
    /** Write settings */
    void configWrite();
    /** Read settings */
    void configRead();

private slots:
    /** Ok push */
    void slotOk();
};

#endif