/* * Copyright 2008-2013 Haiku Inc. All rights reserved. * Distributed under the terms of the MIT license. * * Authors: * Stephan Aßmus * Axel Dörfler, axeld@pinc-software.de. * Bryce Groff */ #ifndef CREATE_PARAMS_PANEL_H #define CREATE_PARAMS_PANEL_H #include "ChangeParametersPanel.h" class SizeSlider; class CreateParametersPanel : public ChangeParametersPanel { public: CreateParametersPanel(BWindow* window, BPartition* parent, off_t offset, off_t size); virtual ~CreateParametersPanel(); status_t Go(off_t& offset, off_t& size, BString& name, BString& type, BString& parameters); virtual void MessageReceived(BMessage* message); protected: virtual bool NeedsEditor() const; virtual status_t ParametersReceived(const BString& parameters, BMessage& storage); virtual void AddControls(BLayoutBuilder::Group<>& builder, BView* editorView); private: void _CreateCreateControls(BPartition* parent, off_t offset, off_t size); void _UpdateSizeTextControl(); private: SizeSlider* fSizeSlider; BTextControl* fSizeTextControl; }; #endif // CREATE_PARAMS_PANEL_H