1/* 2 * Copyright 2008-2013 Haiku Inc. All rights reserved. 3 * Distributed under the terms of the MIT license. 4 * 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 12 13 14#include "AbstractParametersPanel.h" 15 16 17class BMenuField; 18class BPopUpMenu; 19class BTextControl; 20class SizeSlider; 21 22 23class CreateParametersPanel : public AbstractParametersPanel { 24public: 25 CreateParametersPanel(BWindow* window, 26 BPartition* parent, off_t offset, 27 off_t size); 28 virtual ~CreateParametersPanel(); 29 30 status_t Go(off_t& offset, off_t& size, BString& name, 31 BString& type, BString& parameters); 32 33 virtual void MessageReceived(BMessage* message); 34 35protected: 36 virtual void AddControls(BLayoutBuilder::Group<>& builder, 37 BView* editorView); 38 39private: 40 void _CreateViewControls(BPartition* parent, 41 off_t offset, off_t size); 42 43 void _UpdateSizeTextControl(); 44 45private: 46 BPopUpMenu* fTypePopUpMenu; 47 BMenuField* fTypeMenuField; 48 BTextControl* fNameTextControl; 49 SizeSlider* fSizeSlider; 50 BTextControl* fSizeTextControl; 51}; 52 53 54#endif // CREATE_PARAMS_PANEL_H 55