BTRFS: Implement BTree::Path and change _Find.
[haiku.git] / src / apps / drivesetup / ChangeParametersPanel.h
blob54e96c52ceecbbb1273dbc7291bff1f45ae06e04
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 CHANGE_PARAMS_PANEL_H
11 #define CHANGE_PARAMS_PANEL_H
14 #include "AbstractParametersPanel.h"
17 class BMenuField;
18 class BPopUpMenu;
19 class BTextControl;
22 class ChangeParametersPanel : public AbstractParametersPanel {
23 public:
24 ChangeParametersPanel(BWindow* window,
25 BPartition* parent);
26 virtual ~ChangeParametersPanel();
28 status_t Go(BString& name, BString& type,
29 BString& parameters);
31 virtual void MessageReceived(BMessage* message);
33 protected:
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,
43 BMessage& storage);
44 virtual void AddControls(BLayoutBuilder::Group<>& builder,
45 BView* editorView);
47 protected:
48 BPopUpMenu* fTypePopUpMenu;
49 BMenuField* fTypeMenuField;
50 BTextControl* fNameTextControl;
51 bool fSupportsName;
52 bool fSupportsType;
56 #endif // CHANGE_PARAMS_PANEL_H