blob: ee016f65717b954130caa9c8816766fc3460fa64 (
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|
/***************************************************************************
kxetreeviewsettings.h
---------------------
begin : Tue Dec 02 2003
copyright : (C) 2003 by The KXMLEditor Team
email : [email protected]
***************************************************************************/
/***************************************************************************
* *
* 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 KXETREEVIEWSETTINGS_H
#define KXETREEVIEWSETTINGS_H
#include "kxesettings.h"
class KXETreeViewSettingsPage;
/**
* This class represents the group of configuration settings for the
* tree view.
*
* @author Olaf Hartig
*/
class KXETreeViewSettings : public KXESettings
{
public:
enum AttributeVisibility
{
NoAttributes,
NamesOnly,
NamesAndValues
};
KXETreeViewSettings( TQObject * pParent = 0, const char * pszName = 0 );
// The following functions can be used to access this object's settings.
bool createItemsOnDemand() const { return m_bCreateItemsOnDemand; }
int dfltExpLevel() const { return m_iDfltExpLevel; }
bool decorateRoot() const { return m_bDecorateRoot; }
bool enableDragging() const { return m_bEnableDragging; }
bool enableDropping() const { return m_bEnableDropping; }
AttributeVisibility elemDisplMode() const { return m_enmElemDisplMode; }
/**
* Derived from @ref KXESettings
*/
virtual TQString dialogPageName() const;
/**
* Derived from @ref KXESettings
*/
virtual TQString dialogPageHeader() const;
/**
* Derived from @ref KXESettings
*/
virtual TQString dialogPageIcon() const;
/**
* Derived from @ref KXESettings
*/
virtual TQWidget * dialogPage( TQFrame * pParent );
protected:
/**
* Derived from @ref KXESettings
*/
virtual void write( TDEConfig * ) const;
/**
* Derived from @ref KXESettings
*/
virtual void read( const TDEConfig * );
/**
* Derived from @ref KXESettings
*/
virtual void setFromPage();
/**
* Derived from @ref KXESettings
*/
virtual void updatePage() const;
// the settings itself
bool m_bCreateItemsOnDemand;
int m_iDfltExpLevel;
bool m_bDecorateRoot;
bool m_bEnableDragging;
bool m_bEnableDropping;
AttributeVisibility m_enmElemDisplMode;
/**
* the corresponding configuration dialog page
* It is created on demand by @ref dialogPage.
*/
KXETreeViewSettingsPage * m_pDialogPage;
};
#endif
|