Main Page   Class Hierarchy   Data Structures   File List   Data Fields  

StockGui Class Reference

#include <stockgui.h>

Inheritance diagram for StockGui:

Inheritance graph
[legend]
Collaboration diagram for StockGui:

Collaboration graph
[legend]

Public Member Functions

 StockGui (Stock *const stock)
 ~StockGui ()
Gtk::Label * getLabelWkn () const
Gtk::Label * getLabelBuyingDate () const
Gtk::SpinButton * getSpinButtonAmount () const
Gtk::SpinButton * getSpinButtonBuyingRate () const
Gtk::Label * getLabelPurchaseValue () const
Gtk::SpinButton * getSpinButtonPurchaseCost () const
Gtk::SpinButton * getSpinButtonCurrentMarketPrice () const
Gtk::Label * getLabelDayPerformance () const
Gtk::Label * getLabelTotalMarketValue () const
Gtk::Label * getLabelOverallPerformance () const
Gtk::Button * getButtonInfo () const
Gtk::Button * getButtonChart () const
void update (const Subject *const subject)

Detailed Description

The Gui elements belonging to a specific Stock
Author:
Michael Otto

Definition at line 34 of file stockgui.h.


Constructor & Destructor Documentation

StockGui::StockGui Stock *const    stock
 

constructor.

Parameters:
stock a Stock

Definition at line 29 of file stockgui.cpp.

References update().

StockGui::~StockGui  
 

destructor.

Definition at line 85 of file stockgui.cpp.

References Subject::detach().


Member Function Documentation

Gtk::Button * StockGui::getButtonChart   const
 

Returns the chart button.

Returns:
chart button

Definition at line 185 of file stockgui.cpp.

Gtk::Button * StockGui::getButtonInfo   const
 

Returns the info button.

Returns:
info button

Definition at line 178 of file stockgui.cpp.

Gtk::Label * StockGui::getLabelBuyingDate   const
 

Returns the buying date label.

Returns:
buying date label

Definition at line 115 of file stockgui.cpp.

Gtk::Label * StockGui::getLabelDayPerformance   const
 

Returns the day performance label.

Returns:
day performance label

Definition at line 157 of file stockgui.cpp.

Gtk::Label * StockGui::getLabelOverallPerformance   const
 

Returns the overall performance label.

Returns:
overall performance label

Definition at line 171 of file stockgui.cpp.

Gtk::Label * StockGui::getLabelPurchaseValue   const
 

Returns the purchase value label.

Returns:
purchase value label

Definition at line 136 of file stockgui.cpp.

Gtk::Label * StockGui::getLabelTotalMarketValue   const
 

Returns the total market value label.

Returns:
total market value label

Definition at line 164 of file stockgui.cpp.

Gtk::Label * StockGui::getLabelWkn   const
 

Returns the wkn label.

Returns:
wkn label

Definition at line 108 of file stockgui.cpp.

Gtk::SpinButton * StockGui::getSpinButtonAmount   const
 

Returns the amount spinbutton.

Returns:
amount spinbutton

Definition at line 122 of file stockgui.cpp.

Gtk::SpinButton * StockGui::getSpinButtonBuyingRate   const
 

Returns the buying rate spinbutton.

Returns:
buying rate spinbutton

Definition at line 129 of file stockgui.cpp.

Gtk::SpinButton * StockGui::getSpinButtonCurrentMarketPrice   const
 

Returns the current market price spinbutton.

Returns:
current market price spinbutton

Definition at line 150 of file stockgui.cpp.

Gtk::SpinButton * StockGui::getSpinButtonPurchaseCost   const
 

Returns the purchase cost spinbutton.

Returns:
purchase cost spinbutton

Definition at line 143 of file stockgui.cpp.

void StockGui::update const Subject *const    subject [virtual]
 

Update method.

Parameters:
subject the Subject object

Implements Observer.

Definition at line 299 of file stockgui.cpp.

References Stock::getAmount(), Stock::getBuyingDate(), Stock::getBuyingRate(), Stock::getCurrentMarketPrice(), Stock::getName(), Stock::getPurchaseCost(), and Stock::getWkn().

Referenced by StockGui().


The documentation for this class was generated from the following files:
Generated on Tue May 27 21:24:05 2003 for gstockcalc by doxygen1.3-rc3