#include <address_field.h>
Public Member Functions | |
AddressField (os::String path, os::Message *msg) | |
AddressField Constructor. Initializes the private class for drawing the buttons and creates the other widgets. It also initializes the handler and looper to NULL. | |
~AddressField () | |
Deconstructor. Deletes the message that was sent to the AddressField object and deletes the _Private object being used for drawing. | |
virtual os::Point | GetPreferredSize (bool bLargest) const |
Return the preferred size of the object. | |
status_t | SetTarget (const os::Handler *pcHandler, const os::Looper *pcLooper=NULL) |
Set the Target for the button. This sets the Handler and Looper objects for the buttons and then sets the target for all of the buttons. | |
void | SetPath (os::String path) |
Set Path of AddressField. Sets the file path that the address path corresponds to. | |
os::String | GetPath () |
Return the path of the AddressField. | |
Private Attributes | |
_Private * | m |
Classes | |
class | _Private |
Private class used by AddressField. This class is used to generate the different buttons for each level of the path. It also stores all of the handler and looper information for the buttons. More... |
AddressField::AddressField | ( | os::String | path, | |
os::Message * | msg | |||
) |
AddressField Constructor. Initializes the private class for drawing the buttons and creates the other widgets. It also initializes the handler and looper to NULL.
path | The path of the address field. | |
msg | Message to send to the AddressField objects. |
Point AddressField::GetPreferredSize | ( | bool | bLargest | ) | const [virtual] |
Return the preferred size of the object.
bLargest | If bLargest is set it gives the largest possible size, otherwise it sets it to max x and 35 for y. |
status_t AddressField::SetTarget | ( | const os::Handler * | pcHandler, | |
const os::Looper * | pcLooper = NULL | |||
) |
Set the Target for the button. This sets the Handler and Looper objects for the buttons and then sets the target for all of the buttons.
pcHandler | Handler object for the address buttons. | |
pcLooper | The looper for the address buttons. |
void AddressField::SetPath | ( | os::String | path | ) |
Set Path of AddressField. Sets the file path that the address path corresponds to.
path | Path using the unix-style directory path format. |
_Private* AddressField::m [private] |
Private object containing all of the AddressFieldButton objects.