Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F94255271
vectoredit.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Dec 5, 04:32
Size
969 B
Mime Type
text/x-c++
Expires
Sat, Dec 7, 04:32 (2 d)
Engine
blob
Format
Raw Data
Handle
22771139
Attached To
rSYMKIT symkit
vectoredit.h
View Options
#ifndef SVECTOREDIT_H
#define SVECTOREDIT_H
#include <QGroupBox>
#include <vector>
#include <memory>
#include <QLineEdit>
class
QBoxLayout
;
class
VectorEdit
:
public
QGroupBox
{
Q_OBJECT
std
::
vector
<
std
::
unique_ptr
<
QLineEdit
>>
components
;
QBoxLayout
*
layout
;
signals:
void
valueChanged
(
std
::
size_t
,
double
value
);
private
slots
:
void
returnHandle
();
public:
VectorEdit
(
const
QString
&
label
,
Qt
::
Orientation
orient
,
const
double
*
init
=
0
,
std
::
size_t
size
=
3
,
QWidget
*
parent
=
0
);
~
VectorEdit
();
std
::
size_t
pushComponent
(
double
init
=
0
);
void
popComponent
();
std
::
size_t
size
()
const
;
void
setContent
(
std
::
size_t
index
,
double
value
,
bool
force
=
false
);
double
getContent
(
std
::
size_t
index
);
bool
isFocused
(
std
::
size_t
)
const
;
void
setAll
(
const
double
*
buffer
,
std
::
size_t
count
,
bool
force
=
false
);
};
#endif
// SVECTOREDIT_H
Event Timeline
Log In to Comment