VR-Forces 4.5 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
vrfGuiCoreQt
toolButtonWrapperWidget.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2015 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
8
10
11
#pragma once
12
13
#include <
vrfGuiCoreQt/vrfGuiCoreQt.h
>
14
#include <QWidget>
15
16
class
QAction
;
17
class
QHBoxLayout;
18
class
QToolButton
;
19
class
QSpacerItem;
20
21
namespace
makVrf
22
{
28
class
DT_DLL_VRFGUICOREQT
DtToolButtonWrapperWidget
:
public
QWidget
29
{
30
public
:
31
DtToolButtonWrapperWidget
(
QWidget
* parent,
const
Qt::WindowFlags& flags = 0);
32
33
//DTOR
34
virtual
~
DtToolButtonWrapperWidget
();
35
37
virtual
QToolButton
* addAction(
QAction
*);
38
40
virtual
void
layoutButtons();
41
43
virtual
void
setIconSize(
const
QSize&);
44
const
QSize& iconSize()
const
45
{
46
return
myIconSize;
47
}
48
50
virtual
void
setIconSpacing(
int
);
51
int
iconSpacing()
const
52
{
53
return
myIconSpacing;
54
}
55
57
virtual
void
clear();
58
59
protected
:
60
virtual
void
resizeEvent(QResizeEvent*);
61
virtual
void
showEvent(QShowEvent*);
62
virtual
void
addToLayout(
QToolButton
*);
63
64
protected
:
65
struct
Layout
66
{
67
QHBoxLayout*
layout
;
68
std::vector<QToolButton*>
buttons
;
69
int
currentWidth
;
70
QSpacerItem*
spacerItem
;
71
};
72
73
std::vector<Layout>
myLayouts
;
74
std::vector<QToolButton*>
myButtons
;
75
76
QSize
myIconSize
;
77
int
myIconSpacing
;
78
bool
myNeedsLayout
;
79
};
80
}
Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (
www.mak.com
)