2 * Copyright 2008, Haiku.
3 * Distributed under the terms of the MIT license.
6 * Michael Pfeiffer <laplace@users.sourceforge.net>
9 #ifndef _PPD_CONFIG_VIEW_H
10 #define _PPD_CONFIG_VIEW_H
16 #include <OutlineListView.h>
18 class CategoryItem
: public BStringItem
21 Statement
* fStatement
;
24 CategoryItem(const char* text
, Statement
* statement
, uint32 level
)
25 : BStringItem(text
, level
)
26 , fStatement(statement
)
30 Statement
* GetStatement() { return fStatement
; }
33 class PPDConfigView
: public BView
{
40 void SetupSettings(const BMessage
& settings
);
42 void BooleanChanged(BMessage
* msg
);
43 void StringChanged(BMessage
* msg
);
46 PPDConfigView(BRect rect
, const char *name
, uint32 resizeMask
, uint32 flags
);
48 // The view has to be attached to a window when this
50 void Set(const char* ppdFile
, const BMessage
& settings
);
51 const BMessage
& GetSettings();
53 void FillCategories();
54 void FillDetails(Statement
* statement
);
55 void MessageReceived(BMessage
* msg
);