VR-Forces 4.3 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
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 Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (
www.mak.com
)