62
|
1 |
/*
|
|
2 |
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description:
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef TOOLBARVIEW_H
|
|
19 |
#define TOOLBARVIEW_H
|
|
20 |
|
|
21 |
#include <QObject>
|
|
22 |
|
|
23 |
#include <hbview.h>
|
|
24 |
|
|
25 |
class HbAction;
|
|
26 |
class HbLineEdit;
|
|
27 |
class HbMenu;
|
|
28 |
class HbMenuItem;
|
|
29 |
class HbMainWindow;
|
|
30 |
|
|
31 |
class ToolbarView : public HbView
|
|
32 |
{
|
|
33 |
Q_OBJECT
|
|
34 |
|
|
35 |
public:
|
|
36 |
ToolbarView();
|
|
37 |
~ToolbarView();
|
|
38 |
|
|
39 |
private:
|
|
40 |
int selectedIndex(bool& ok);
|
|
41 |
|
|
42 |
private slots:
|
|
43 |
void toolbarDemoSlot();
|
|
44 |
void toolButtonTriggered();
|
|
45 |
void changeOrientation();
|
|
46 |
void changeMirroring();
|
|
47 |
void setOrientation( HbAction* action );
|
|
48 |
void unsetOrientation();
|
|
49 |
|
|
50 |
private:
|
|
51 |
bool portraitOrientation;
|
|
52 |
bool mirrored;
|
|
53 |
|
|
54 |
HbAction *orientationChangeAction;
|
|
55 |
HbAction *mirroringChangeAction;
|
|
56 |
HbLineEdit *tooltipLineEdit;
|
|
57 |
HbLineEdit *textLineEdit;
|
|
58 |
HbLineEdit *indexLineEdit;
|
|
59 |
};
|
|
60 |
|
|
61 |
#endif // TOOLBARVIEW_H
|