1
//---------------------------------------------------------------------------
3
// Project: OpenWalnut ( http://www.openwalnut.org )
5
// Copyright 2009 OpenWalnut Community, BSV@Uni-Leipzig and CNCF@MPI-CBS
6
// For more information see http://www.openwalnut.org/copying
8
// This file is part of OpenWalnut.
10
// OpenWalnut is free software: you can redistribute it and/or modify
11
// it under the terms of the GNU Lesser General Public License as published by
12
// the Free Software Foundation, either version 3 of the License, or
13
// (at your option) any later version.
15
// OpenWalnut is distributed in the hope that it will be useful,
16
// but WITHOUT ANY WARRANTY; without even the implied warranty of
17
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
// GNU Lesser General Public License for more details.
20
// You should have received a copy of the GNU Lesser General Public License
21
// along with OpenWalnut. If not, see <http://www.gnu.org/licenses/>.
23
//---------------------------------------------------------------------------
25
#ifndef WPROPERTYFILENAMEWIDGET_H
26
#define WPROPERTYFILENAMEWIDGET_H
30
#include <QtGui/QPushButton>
31
#include <QtGui/QHBoxLayout>
33
#include "WPropertyWidget.h"
36
* Implements a property widget for WPropColor.
38
class WPropertyFilenameWidget: public WPropertyWidget
44
* Constructor. Creates a new widget appropriate for the specified property.
46
* \param property the property to handle
47
* \param parent the parent widget.
48
* \param propertyGrid the grid used to layout the labels and property widgets
50
WPropertyFilenameWidget( WPropFilename property, QGridLayout* propertyGrid, QWidget* parent = 0 );
55
virtual ~WPropertyFilenameWidget();
60
* Called whenever the widget should update.
62
virtual void update();
65
* The filename property represented by this widget.
67
WPropFilename m_fnProperty;
70
* The button field showing the value
75
* Layout used to position the label and the checkbox
80
* Used to show the property as text.
85
* The layout used for the pure output (information properties)
87
QHBoxLayout m_infoLayout;
94
* Called when the m_button was pressed.
96
void buttonReleased();
99
#endif // WPROPERTYFILENAMEWIDGET_H