xref: /haiku/docs/user/interface/OptionControl.dox (revision d450c75ca7786f05a249588fec0ee0e65067741d)
1*d450c75cSNiels Sascha Reedijk/*
2*d450c75cSNiels Sascha Reedijk * Copyright 2019 Haiku, Inc. All rights reserved.
3*d450c75cSNiels Sascha Reedijk * Distributed under the terms of the MIT License.
4*d450c75cSNiels Sascha Reedijk *
5*d450c75cSNiels Sascha Reedijk * Authors:
6*d450c75cSNiels Sascha Reedijk *		Name, email@email.com
7*d450c75cSNiels Sascha Reedijk *
8*d450c75cSNiels Sascha Reedijk * Corresponds to:
9*d450c75cSNiels Sascha Reedijk *		headers/os/interface/OptionControl.h	hrev49977
10*d450c75cSNiels Sascha Reedijk *		src/kits/interface/OptionControl.cpp	hrev33756
11*d450c75cSNiels Sascha Reedijk */
12*d450c75cSNiels Sascha Reedijk
13*d450c75cSNiels Sascha Reedijk
14*d450c75cSNiels Sascha Reedijk///// TO THEY WHO DOCUMENT: it seems like the OptionControl.cpp file some docs already, so that's a good starting point /////
15*d450c75cSNiels Sascha Reedijk
16*d450c75cSNiels Sascha Reedijk
17*d450c75cSNiels Sascha Reedijk/*!
18*d450c75cSNiels Sascha Reedijk	\file OptionControl.h
19*d450c75cSNiels Sascha Reedijk	\ingroup interface
20*d450c75cSNiels Sascha Reedijk	\brief Undocumented file.
21*d450c75cSNiels Sascha Reedijk
22*d450c75cSNiels Sascha Reedijk	\since Haiku R1
23*d450c75cSNiels Sascha Reedijk*/
24*d450c75cSNiels Sascha Reedijk
25*d450c75cSNiels Sascha Reedijk
26*d450c75cSNiels Sascha Reedijk/*!
27*d450c75cSNiels Sascha Reedijk	\class BOptionControl
28*d450c75cSNiels Sascha Reedijk	\ingroup interface
29*d450c75cSNiels Sascha Reedijk	\ingroup libbe
30*d450c75cSNiels Sascha Reedijk	\brief Undocumented class.
31*d450c75cSNiels Sascha Reedijk
32*d450c75cSNiels Sascha Reedijk	\since Haiku R1
33*d450c75cSNiels Sascha Reedijk*/
34*d450c75cSNiels Sascha Reedijk
35*d450c75cSNiels Sascha Reedijk
36*d450c75cSNiels Sascha Reedijk/*!
37*d450c75cSNiels Sascha Reedijk	\fn BOptionControl::BOptionControl(BRect frame, const char *name, const char *label, BMessage *message, uint32 resizeMask=B_FOLLOW_LEFT_TOP, uint32 flags=B_WILL_DRAW)
38*d450c75cSNiels Sascha Reedijk	\brief Undocumented public method
39*d450c75cSNiels Sascha Reedijk
40*d450c75cSNiels Sascha Reedijk	\param frame Undocumented
41*d450c75cSNiels Sascha Reedijk	\param name Undocumented
42*d450c75cSNiels Sascha Reedijk	\param label Undocumented
43*d450c75cSNiels Sascha Reedijk	\param message Undocumented
44*d450c75cSNiels Sascha Reedijk	\param resizeMask Undocumented
45*d450c75cSNiels Sascha Reedijk	\param flags Undocumented
46*d450c75cSNiels Sascha Reedijk
47*d450c75cSNiels Sascha Reedijk	\return Undocumented
48*d450c75cSNiels Sascha Reedijk	\retval <value> Undocumented
49*d450c75cSNiels Sascha Reedijk
50*d450c75cSNiels Sascha Reedijk	\since Haiku R1
51*d450c75cSNiels Sascha Reedijk*/
52*d450c75cSNiels Sascha Reedijk
53*d450c75cSNiels Sascha Reedijk
54*d450c75cSNiels Sascha Reedijk/*!
55*d450c75cSNiels Sascha Reedijk	\fn BOptionControl::BOptionControl(const char *name, const char *label, BMessage *message, uint32 flags=B_WILL_DRAW)
56*d450c75cSNiels Sascha Reedijk	\brief Undocumented public method
57*d450c75cSNiels Sascha Reedijk
58*d450c75cSNiels Sascha Reedijk	\param name Undocumented
59*d450c75cSNiels Sascha Reedijk	\param label Undocumented
60*d450c75cSNiels Sascha Reedijk	\param message Undocumented
61*d450c75cSNiels Sascha Reedijk	\param flags Undocumented
62*d450c75cSNiels Sascha Reedijk
63*d450c75cSNiels Sascha Reedijk	\return Undocumented
64*d450c75cSNiels Sascha Reedijk	\retval <value> Undocumented
65*d450c75cSNiels Sascha Reedijk
66*d450c75cSNiels Sascha Reedijk	\since Haiku R1
67*d450c75cSNiels Sascha Reedijk*/
68*d450c75cSNiels Sascha Reedijk
69*d450c75cSNiels Sascha Reedijk
70*d450c75cSNiels Sascha Reedijk/*!
71*d450c75cSNiels Sascha Reedijk	\fn virtual virtual BOptionControl::~BOptionControl()
72*d450c75cSNiels Sascha Reedijk	\brief Undocumented public method
73*d450c75cSNiels Sascha Reedijk
74*d450c75cSNiels Sascha Reedijk	\return Undocumented
75*d450c75cSNiels Sascha Reedijk	\retval <value> Undocumented
76*d450c75cSNiels Sascha Reedijk
77*d450c75cSNiels Sascha Reedijk	\since Haiku R1
78*d450c75cSNiels Sascha Reedijk*/
79*d450c75cSNiels Sascha Reedijk
80*d450c75cSNiels Sascha Reedijk
81*d450c75cSNiels Sascha Reedijk/*!
82*d450c75cSNiels Sascha Reedijk	\fn virtual virtual void BOptionControl::MessageReceived(BMessage *message)
83*d450c75cSNiels Sascha Reedijk	\brief Undocumented public method
84*d450c75cSNiels Sascha Reedijk
85*d450c75cSNiels Sascha Reedijk	\param message Undocumented
86*d450c75cSNiels Sascha Reedijk
87*d450c75cSNiels Sascha Reedijk	\since Haiku R1
88*d450c75cSNiels Sascha Reedijk*/
89*d450c75cSNiels Sascha Reedijk
90*d450c75cSNiels Sascha Reedijk
91*d450c75cSNiels Sascha Reedijk/*!
92*d450c75cSNiels Sascha Reedijk	\fn status_t BOptionControl::AddOption(const char *name, int32 value)
93*d450c75cSNiels Sascha Reedijk	\brief Undocumented public method
94*d450c75cSNiels Sascha Reedijk
95*d450c75cSNiels Sascha Reedijk	\param name Undocumented
96*d450c75cSNiels Sascha Reedijk	\param value Undocumented
97*d450c75cSNiels Sascha Reedijk
98*d450c75cSNiels Sascha Reedijk	\return Undocumented
99*d450c75cSNiels Sascha Reedijk	\retval <value> Undocumented
100*d450c75cSNiels Sascha Reedijk
101*d450c75cSNiels Sascha Reedijk	\since Haiku R1
102*d450c75cSNiels Sascha Reedijk*/
103*d450c75cSNiels Sascha Reedijk
104*d450c75cSNiels Sascha Reedijk
105*d450c75cSNiels Sascha Reedijk/*!
106*d450c75cSNiels Sascha Reedijk	\fn virtual bool BOptionControl::GetOptionAt(int32 index, const char **_name, int32 *_value)=0
107*d450c75cSNiels Sascha Reedijk	\brief Undocumented public method
108*d450c75cSNiels Sascha Reedijk
109*d450c75cSNiels Sascha Reedijk	\param index Undocumented
110*d450c75cSNiels Sascha Reedijk	\param _name Undocumented
111*d450c75cSNiels Sascha Reedijk	\param _value Undocumented
112*d450c75cSNiels Sascha Reedijk
113*d450c75cSNiels Sascha Reedijk	\return Undocumented
114*d450c75cSNiels Sascha Reedijk	\retval <value> Undocumented
115*d450c75cSNiels Sascha Reedijk
116*d450c75cSNiels Sascha Reedijk	\since Haiku R1
117*d450c75cSNiels Sascha Reedijk*/
118*d450c75cSNiels Sascha Reedijk
119*d450c75cSNiels Sascha Reedijk
120*d450c75cSNiels Sascha Reedijk/*!
121*d450c75cSNiels Sascha Reedijk	\fn virtual void BOptionControl::RemoveOptionAt(int32 index)=0
122*d450c75cSNiels Sascha Reedijk	\brief Undocumented public method
123*d450c75cSNiels Sascha Reedijk
124*d450c75cSNiels Sascha Reedijk	\param index Undocumented
125*d450c75cSNiels Sascha Reedijk
126*d450c75cSNiels Sascha Reedijk	\since Haiku R1
127*d450c75cSNiels Sascha Reedijk*/
128*d450c75cSNiels Sascha Reedijk
129*d450c75cSNiels Sascha Reedijk
130*d450c75cSNiels Sascha Reedijk/*!
131*d450c75cSNiels Sascha Reedijk	\fn virtual int32 BOptionControl::CountOptions() const =0
132*d450c75cSNiels Sascha Reedijk	\brief Undocumented public method
133*d450c75cSNiels Sascha Reedijk
134*d450c75cSNiels Sascha Reedijk	\return Undocumented
135*d450c75cSNiels Sascha Reedijk	\retval <value> Undocumented
136*d450c75cSNiels Sascha Reedijk
137*d450c75cSNiels Sascha Reedijk	\since Haiku R1
138*d450c75cSNiels Sascha Reedijk*/
139*d450c75cSNiels Sascha Reedijk
140*d450c75cSNiels Sascha Reedijk
141*d450c75cSNiels Sascha Reedijk/*!
142*d450c75cSNiels Sascha Reedijk	\fn virtual status_t BOptionControl::AddOptionAt(const char *name, int32 value, int32 index)=0
143*d450c75cSNiels Sascha Reedijk	\brief Undocumented public method
144*d450c75cSNiels Sascha Reedijk
145*d450c75cSNiels Sascha Reedijk	\param name Undocumented
146*d450c75cSNiels Sascha Reedijk	\param value Undocumented
147*d450c75cSNiels Sascha Reedijk	\param index Undocumented
148*d450c75cSNiels Sascha Reedijk
149*d450c75cSNiels Sascha Reedijk	\return Undocumented
150*d450c75cSNiels Sascha Reedijk	\retval <value> Undocumented
151*d450c75cSNiels Sascha Reedijk
152*d450c75cSNiels Sascha Reedijk	\since Haiku R1
153*d450c75cSNiels Sascha Reedijk*/
154*d450c75cSNiels Sascha Reedijk
155*d450c75cSNiels Sascha Reedijk
156*d450c75cSNiels Sascha Reedijk/*!
157*d450c75cSNiels Sascha Reedijk	\fn virtual int32 BOptionControl::SelectedOption(const char **name=NULL, int32 *outValue=NULL) const =0
158*d450c75cSNiels Sascha Reedijk	\brief Undocumented public method
159*d450c75cSNiels Sascha Reedijk
160*d450c75cSNiels Sascha Reedijk	\param name Undocumented
161*d450c75cSNiels Sascha Reedijk	\param outValue Undocumented
162*d450c75cSNiels Sascha Reedijk
163*d450c75cSNiels Sascha Reedijk	\return Undocumented
164*d450c75cSNiels Sascha Reedijk	\retval <value> Undocumented
165*d450c75cSNiels Sascha Reedijk
166*d450c75cSNiels Sascha Reedijk	\since Haiku R1
167*d450c75cSNiels Sascha Reedijk*/
168*d450c75cSNiels Sascha Reedijk
169*d450c75cSNiels Sascha Reedijk
170*d450c75cSNiels Sascha Reedijk/*!
171*d450c75cSNiels Sascha Reedijk	\fn virtual virtual status_t BOptionControl::SelectOptionFor(int32 value)
172*d450c75cSNiels Sascha Reedijk	\brief Undocumented public method
173*d450c75cSNiels Sascha Reedijk
174*d450c75cSNiels Sascha Reedijk	\param value Undocumented
175*d450c75cSNiels Sascha Reedijk
176*d450c75cSNiels Sascha Reedijk	\return Undocumented
177*d450c75cSNiels Sascha Reedijk	\retval <value> Undocumented
178*d450c75cSNiels Sascha Reedijk
179*d450c75cSNiels Sascha Reedijk	\since Haiku R1
180*d450c75cSNiels Sascha Reedijk*/
181*d450c75cSNiels Sascha Reedijk
182*d450c75cSNiels Sascha Reedijk
183*d450c75cSNiels Sascha Reedijk/*!
184*d450c75cSNiels Sascha Reedijk	\fn virtual virtual status_t BOptionControl::SelectOptionFor(const char *name)
185*d450c75cSNiels Sascha Reedijk	\brief Undocumented public method
186*d450c75cSNiels Sascha Reedijk
187*d450c75cSNiels Sascha Reedijk	\param name Undocumented
188*d450c75cSNiels Sascha Reedijk
189*d450c75cSNiels Sascha Reedijk	\return Undocumented
190*d450c75cSNiels Sascha Reedijk	\retval <value> Undocumented
191*d450c75cSNiels Sascha Reedijk
192*d450c75cSNiels Sascha Reedijk	\since Haiku R1
193*d450c75cSNiels Sascha Reedijk*/
194*d450c75cSNiels Sascha Reedijk
195*d450c75cSNiels Sascha Reedijk
196*d450c75cSNiels Sascha Reedijk/*!
197*d450c75cSNiels Sascha Reedijk	\fn BMessage* BOptionControl::MakeValueMessage(int32 value)
198*d450c75cSNiels Sascha Reedijk	\brief Undocumented protected method
199*d450c75cSNiels Sascha Reedijk
200*d450c75cSNiels Sascha Reedijk	\param value Undocumented
201*d450c75cSNiels Sascha Reedijk
202*d450c75cSNiels Sascha Reedijk	\return Undocumented
203*d450c75cSNiels Sascha Reedijk	\retval <value> Undocumented
204*d450c75cSNiels Sascha Reedijk
205*d450c75cSNiels Sascha Reedijk	\since Haiku R1
206*d450c75cSNiels Sascha Reedijk*/
207*d450c75cSNiels Sascha Reedijk
208*d450c75cSNiels Sascha Reedijk
209*d450c75cSNiels Sascha Reedijk/*!
210*d450c75cSNiels Sascha Reedijk	\var B_OPTION_CONTROL_VALUE
211*d450c75cSNiels Sascha Reedijk	\brief Undocumented enum value.
212*d450c75cSNiels Sascha Reedijk
213*d450c75cSNiels Sascha Reedijk	\since Haiku R1
214*d450c75cSNiels Sascha Reedijk*/
215