Odamex
Setting the Standard in Multiplayer Doom
agOdalaunch::AGOL_DirSelector Class Reference

Directory selection dialog. More...

#include <agol_dirsel.h>

Public Member Functions

 AGOL_DirSelector ()
 Constructor.
 AGOL_DirSelector (std::string title)
 Constructor.
 ~AGOL_DirSelector ()
 Destructor.
void SetOkAction (EventHandler *event)
 Set the OK button action.
void SetCancelAction (EventHandler *event)
 Set the cancel button action.

Detailed Description

Directory selection dialog.

This class provides a directory selection dialog that can be used to browse the filesystem and return a directory string.


Constructor & Destructor Documentation

agOdalaunch::AGOL_DirSelector::AGOL_DirSelector ( )

Constructor.

agOdalaunch::AGOL_DirSelector::AGOL_DirSelector ( std::string  title)

Constructor.

Parameters:
titleWindow title.
agOdalaunch::AGOL_DirSelector::~AGOL_DirSelector ( )

Destructor.


Member Function Documentation

void agOdalaunch::AGOL_DirSelector::SetCancelAction ( EventHandler event)

Set the cancel button action.

This method sets the action for the cancel button. The provided event handler is called when the cancel button is pressed.

Parameters:
eventThe event handler.
void agOdalaunch::AGOL_DirSelector::SetOkAction ( EventHandler event)

Set the OK button action.

This method sets the action for the OK button. The provided event handler is called when the OK button is pressed. The second AG argument provided to the event handler is the selected directory in an ascii string.

Parameters:
eventThe event handler.

The documentation for this class was generated from the following files:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends