CAVAPA-GUI
30.5.2014
Main Page
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Pages
gui
metawidget.h
1
/****************************************************************************
2
* Copyright (c) 2014, Joel Kivelä, Erkki Koskenkorva, Oskari Leppäaho,
3
* Mika Lehtinen and Petri Partanen.
4
* All rights reserved.
5
*
6
* Redistribution and use in source and binary forms, with or without
7
* modification, are permitted provided that the following conditions are met:
8
*
9
* * Redistributions of source code must retain the above copyright
10
* notice, this list of conditions and the following disclaimer.
11
* * Redistributions in binary form must reproduce the above copyright
12
* notice, this list of conditions and the following disclaimer in the
13
* documentation and/or other materials provided with the distribution.
14
* * Neither the name of the copyright holders nor the names of its
15
* contributors may be used to endorse or promote products derived from
16
* this software without specific prior written permission.
17
*
18
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
20
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR
22
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
23
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
24
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
25
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
26
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
27
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
28
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
****************************************************************************/
30
#ifndef METAWIDGET_H
31
#define METAWIDGET_H
32
33
#include <QWidget>
34
35
#include "metadata.h"
36
37
namespace
Ui
38
{
39
class
MetaWidget;
40
}
41
42
namespace
cavapa_gui
43
{
50
class
MetaWidget
:
public
QWidget
51
{
52
Q_OBJECT
53
54
public
:
59
explicit
MetaWidget
(QWidget* parent = 0);
60
~
MetaWidget
();
61
66
Metadata
getMetadata
();
67
73
void
setCanSaveVideos
(
bool
enable);
74
80
void
setReadOnly
(
bool
flag);
81
86
void
setDefaultDirectory
(
const
QString& path);
87
92
void
setMetadata
(
const
Metadata
& metadata);
93
94
private
slots:
95
void
on_browseButton_clicked();
96
97
private
:
98
Ui::MetaWidget* ui;
99
Metadata
metadata;
100
};
101
}
// namespace
102
103
#endif // METAWIDGET_H
cavapa_gui::MetaWidget::MetaWidget
MetaWidget(QWidget *parent=0)
Constructs a new MetaWidget having the specified parent.
Definition:
metawidget.cpp:37
cavapa_gui::MetaWidget::setCanSaveVideos
void setCanSaveVideos(bool enable)
Sets whether the user can choose to save videos.
Definition:
metawidget.cpp:91
cavapa_gui::Metadata
Represents the metadata associated with a measurement.
Definition:
metadata.h:91
cavapa_gui::MetaWidget::getMetadata
Metadata getMetadata()
Gets the Metadata object representing the currently input data.
Definition:
metawidget.cpp:49
cavapa_gui::MetaWidget::setReadOnly
void setReadOnly(bool flag)
Sets whether the input elements are read-only.
Definition:
metawidget.cpp:101
cavapa_gui::MetaWidget::setMetadata
void setMetadata(const Metadata &metadata)
Sets the metadata for the widget.
Definition:
metawidget.cpp:71
cavapa_gui::MetaWidget::setDefaultDirectory
void setDefaultDirectory(const QString &path)
Sets the default directory for the widget.
Definition:
metawidget.cpp:63
cavapa_gui::MetaWidget
Represents the widget containing all metadata related to a measurement.
Definition:
metawidget.h:50
Generated on Mon Jun 2 2014 00:06:53 for CAVAPA-GUI by
1.8.7