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 CREATE_PARAMS_PANEL_H
11 #define CREATE_PARAMS_PANEL_H
14 #include "ChangeParametersPanel.h"
20 class CreateParametersPanel
: public ChangeParametersPanel
{
22 CreateParametersPanel(BWindow
* window
,
23 BPartition
* parent
, off_t offset
,
25 virtual ~CreateParametersPanel();
27 status_t
Go(off_t
& offset
, off_t
& size
, BString
& name
,
28 BString
& type
, BString
& parameters
);
30 virtual void MessageReceived(BMessage
* message
);
33 virtual bool NeedsEditor() const;
34 virtual status_t
ParametersReceived(const BString
& parameters
,
36 virtual void AddControls(BLayoutBuilder::Group
<>& builder
,
40 void _CreateCreateControls(BPartition
* parent
,
41 off_t offset
, off_t size
);
43 void _UpdateSizeTextControl();
46 SizeSlider
* fSizeSlider
;
47 BTextControl
* fSizeTextControl
;
51 #endif // CREATE_PARAMS_PANEL_H