2 * Copyright 2008-2013 Haiku Inc. All rights reserved.
3 * Distributed under the terms of the MIT license.
6 * Stephan Aßmus <superstippi@gmx.de>
7 * Axel Dörfler, axeld@pinc-software.de.
8 * Bryce Groff <bgroff@hawaii.edu>
10 #ifndef CHANGE_PARAMS_PANEL_H
11 #define CHANGE_PARAMS_PANEL_H
14 #include "AbstractParametersPanel.h"
22 class ChangeParametersPanel
: public AbstractParametersPanel
{
24 ChangeParametersPanel(BWindow
* window
,
26 virtual ~ChangeParametersPanel();
28 status_t
Go(BString
& name
, BString
& type
,
31 virtual void MessageReceived(BMessage
* message
);
34 ChangeParametersPanel(BWindow
* window
);
36 status_t
Go(BString
& name
, BString
& type
,
37 BString
& parameters
, BMessage
& storage
);
38 void CreateChangeControls(BPartition
* parent
);
40 virtual bool NeedsEditor() const;
41 virtual bool ValidWithoutEditor() const;
42 virtual status_t
ParametersReceived(const BString
& parameters
,
44 virtual void AddControls(BLayoutBuilder::Group
<>& builder
,
48 BPopUpMenu
* fTypePopUpMenu
;
49 BMenuField
* fTypeMenuField
;
50 BTextControl
* fNameTextControl
;
56 #endif // CHANGE_PARAMS_PANEL_H