ADMLinkButton Class Reference

Hyperlink-like text area class (owner-drawn button). More...

#include <LicenseDlg.h>

Inherits ADMButton.

Collaboration diagram for ADMLinkButton:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ADMLinkButton (const char *pText, const char *pURL="")
virtual void ConnectToControl (ADMItemRef control, unsigned int uFlags=CFNotify)
 Calls base class function after adding the owner-drawn flag.
void SetURL (const std::string &sURL)
 Sets the URL to open.

Protected Member Functions

virtual void OnDraw (ADMDrawerRef inDrawer)
 Called to draw the button.
virtual bool OnClick ()
 Called when the button is clicked; opens the URL (if not empty).

Protected Attributes

std::string m_sText
 Text to display.
std::string m_sURL
 URL to open (can be empty).

Detailed Description

Hyperlink-like text area class (owner-drawn button).

Definition at line 36 of file LicenseDlg.h.


Constructor & Destructor Documentation

ADMLinkButton::ADMLinkButton ( const char *  pText,
const char *  pURL = "" 
) [inline]
Parameters:
pText Text to display as the link
pURL URL to open when clicked (defaults to empty, in which case the button will appear disabled)

Definition at line 44 of file LicenseDlg.h.


Member Function Documentation

virtual void ADMLinkButton::ConnectToControl ( ADMItemRef  control,
unsigned int  uFlags = CFNotify 
) [inline, virtual]

Calls base class function after adding the owner-drawn flag.

Parameters:
control ADM control reference for the button
uFlags Connection flags

Reimplemented from ADMBaseControl.

Definition at line 53 of file LicenseDlg.h.

bool ADMLinkButton::OnClick (  )  [protected, virtual]

Called when the button is clicked; opens the URL (if not empty).

Returns:
true (handled by the button)

Implements ADMButton.

Definition at line 33 of file LicenseDlg.cpp.

References ADMBaseControl::m_refItem, and m_sURL.

void ADMLinkButton::OnDraw ( ADMDrawerRef  inDrawer  )  [protected, virtual]

Called to draw the button.

Parameters:
inDrawer ADM drawer object

Reimplemented from ADMBaseControl.

Definition at line 49 of file LicenseDlg.cpp.

References m_sText, and m_sURL.

void ADMLinkButton::SetURL ( const std::string &  sURL  )  [inline]

Sets the URL to open.

Parameters:
sURL The URL to open

Definition at line 68 of file LicenseDlg.h.

References m_sURL.

Referenced by LicenseDialog::UpdateLicenseInfo().


The documentation for this class was generated from the following files:

Generated on Thu Dec 17 17:37:09 2009 for CCInfo PDF Plugin by doxygen 1.6.1