repository_infos: Enable automatic updates on the main Haiku repostiory.
[haiku.git] / src / apps / drivesetup / CreateParametersPanel.h
blob9d86451b356fd21ed2ddf45fbcef4e3328818be7
1 /*
2 * Copyright 2008-2013 Haiku Inc. All rights reserved.
3 * Distributed under the terms of the MIT license.
5 * Authors:
6 * Stephan Aßmus <superstippi@gmx.de>
7 * Axel Dörfler, axeld@pinc-software.de.
8 * Bryce Groff <bgroff@hawaii.edu>
9 */
10 #ifndef CREATE_PARAMS_PANEL_H
11 #define CREATE_PARAMS_PANEL_H
14 #include "ChangeParametersPanel.h"
17 class SizeSlider;
20 class CreateParametersPanel : public ChangeParametersPanel {
21 public:
22 CreateParametersPanel(BWindow* window,
23 BPartition* parent, off_t offset,
24 off_t size);
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);
32 protected:
33 virtual bool NeedsEditor() const;
34 virtual status_t ParametersReceived(const BString& parameters,
35 BMessage& storage);
36 virtual void AddControls(BLayoutBuilder::Group<>& builder,
37 BView* editorView);
39 private:
40 void _CreateCreateControls(BPartition* parent,
41 off_t offset, off_t size);
43 void _UpdateSizeTextControl();
45 private:
46 SizeSlider* fSizeSlider;
47 BTextControl* fSizeTextControl;
51 #endif // CREATE_PARAMS_PANEL_H