VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrvCoreQt
DtPopupToolbarButton.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2010 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
/******************************************************************************
6
** $RCSfile: $ $Revision: $ $State: $
7
******************************************************************************/
8
12
13
#pragma once
14
15
#include <
vrvCoreQt/vrvCoreQt.h
>
16
#include <QtGui/QToolButton>
17
18
class
QIcon;
19
20
namespace
makVrv
21
{
22
class
DtPopupToolbar;
23
27
class
DT_DLL_VRVCOREQT
DtPopupToolbarButton
:
public
QToolButton
28
{
29
Q_OBJECT
30
public
:
33
explicit
DtPopupToolbarButton
(
DtPopupToolbar
* toolbar,
34
QWidget
* parent);
35
37
virtual
~
DtPopupToolbarButton
();
38
40
virtual
void
setIconWithArrow(
const
QIcon& icon);
41
43
void
showToolbar(
bool
show =
true
);
44
46
void
hideToolbar();
47
48
protected
:
49
50
virtual
void
changeEvent ( QEvent * event );
51
52
//virtual void changeEvent ( QEvent* event );
53
void
buttonEnableDisable(
bool
enabled);
54
void
updateButtonIcon(
bool
checked );
55
56
protected
slots:
57
void
slot_onToggle(
bool
toggled);
58
void
on_sliderToolBarShown();
59
void
on_sliderToolBarHidden();
60
61
protected
:
63
static
QIcon makeWideIconWithArrow(
const
QIcon& baseIcon,
bool
downArrow,
64
QToolButton
* button );
65
66
67
protected
:
68
DtPopupToolbar
*
myToolbar
;
69
QIcon*
myUpArrowIcon
;
70
QIcon*
myDownArrowIcon
;
71
72
};
73
}
74
Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)