66
|
1 |
/*
|
|
2 |
* ====================================================
|
|
3 |
* Name : treedataform.h
|
|
4 |
* Part of : fute/SecUiTestQt
|
|
5 |
* Description : Provides DataForm for Tree
|
|
6 |
* Version : %version: 1 %
|
|
7 |
*
|
|
8 |
* Copyright (c) 2009 Nokia. All rights reserved.
|
|
9 |
* This material, including documentation and any related computer
|
|
10 |
* programs, is protected by copyright controlled by Nokia. All
|
|
11 |
* rights are reserved. Copying, including reproducing, storing,
|
|
12 |
* adapting or translating, any or all of this material requires the
|
|
13 |
* prior written consent of Nokia. This material also contains
|
|
14 |
* confidential information which may not be disclosed to others
|
|
15 |
* without the prior written consent of Nokia.
|
|
16 |
* ====================================================
|
|
17 |
*/
|
|
18 |
|
|
19 |
#ifndef TREEDATAFORM_H
|
|
20 |
#define TREEDATAFORM_H
|
|
21 |
|
|
22 |
#include "viewfutedataform.h"
|
|
23 |
#include <QStringList>
|
|
24 |
|
|
25 |
class TreeDataForm : public ViewFuteDataForm
|
|
26 |
{
|
|
27 |
Q_OBJECT
|
|
28 |
|
|
29 |
public:
|
|
30 |
|
|
31 |
enum CustomIndex {
|
|
32 |
ViewItemType = ViewFuteDataForm::SettingsIndexLast+1,
|
|
33 |
Depth,
|
|
34 |
Indentation,
|
|
35 |
ItemUserExpandable,
|
|
36 |
TreeCustomLast
|
|
37 |
};
|
|
38 |
|
|
39 |
explicit TreeDataForm(HbAbstractItemView &view,
|
|
40 |
QGraphicsItem *parent = 0);
|
|
41 |
virtual ~TreeDataForm();
|
|
42 |
|
|
43 |
virtual int populateCustomSettingsItem(int previousItem);
|
|
44 |
virtual void initialise();
|
|
45 |
|
|
46 |
virtual void resolveSettingsResults();
|
|
47 |
void setDirViewItemEnabled(bool enable);
|
|
48 |
|
|
49 |
void setDepth(int depth);
|
|
50 |
int getDepth() const;
|
|
51 |
|
|
52 |
void setIndentation(int indentation);
|
|
53 |
|
|
54 |
void setItemUserExpandable(bool value);
|
|
55 |
|
|
56 |
private:
|
|
57 |
int customTreeSettingsIndexes[TreeCustomLast];
|
|
58 |
int depth;
|
|
59 |
int indentation;
|
|
60 |
bool dirViewItemEnabled;
|
|
61 |
};
|
|
62 |
|
|
63 |
#endif // TREEDATAFORM_H
|