00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef INFODIALOG_H
00019 #define INFODIALOG_H
00020
00021 #include <gtkmm.h>
00022
00023 #include <iostream>
00024
00025 using namespace std;
00026
00027 class Stock;
00028
00034 class InfoDialog : public Gtk::Window {
00035
00036 private:
00037 Stock *stock;
00038
00039 Gtk::Entry *entryName, *entryWkn, *entryBuyingDate;
00040 Gtk::SpinButton *spinButtonAmount, *spinButtonBuyingRate, *spinButtonPurchaseCost;
00041
00042 void quit();
00043 void finish();
00044
00045
00046 public:
00047 InfoDialog(Stock * const stock);
00048 ~InfoDialog();
00049
00050 protected:
00051 virtual bool on_delete_event(GdkEventAny *event);
00052
00053 };
00054
00055 #endif