Main Page   Class Hierarchy   Data Structures   File List   Data Fields  

addnewstock.h

00001 /***************************************************************************
00002                           addnewstock.h  -  description
00003                              -------------------
00004     begin                : Sun Oct 20 2002
00005     copyright            : (C) 2002 by Michael Otto
00006     email                : Michael.Otto@saskathex.de
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef ADDNEWSTOCK_H
00019 #define ADDNEWSTOCK_H
00020 
00021 #include <gtkmm.h>
00022 
00023 #include <iostream>
00024 #include <stdio.h>
00025 
00026 class Stock;
00027 class StockMarket;
00028 class StockMarketVector;
00029 
00030 using namespace std;
00031 
00038 class AddNewStock : public Gtk::Window  {
00039 
00040   private:
00041     Gtk::VBox *vbox, *vboxChoice;
00042     Gtk::Button *buttonNext, *buttonCancel, *buttonFinish;
00043     Gtk::HButtonBox *hButtonBox;
00044     Gtk::Table *tableEditStockValue;
00045     
00046     Gtk::Label *label;
00047     Gtk::HSeparator *hSep;
00048     Gtk::Entry *entryName, *entryWkn, *entryBuyingDate;
00049     Gtk::SpinButton *spinbuttonNumber, *spinbuttonBuyValue, *spinbuttonBuyCost;
00050 
00051     vector <Gtk::RadioButton *> radioButtons;
00052     
00053     StockMarket *stockMarket;
00054     const StockMarketVector *stockMarketVector;
00055         
00056     void quit();
00057     void editStockValue();
00058     void finishNewStock();
00059 
00060   public: 
00061     AddNewStock(const StockMarketVector * const stockMarketVector);
00062     ~AddNewStock();
00063 
00064   protected:
00065     virtual bool on_delete_event(GdkEventAny *event);
00066 
00067 };
00068 
00069 #endif

Generated on Tue May 27 21:24:01 2003 for gstockcalc by doxygen1.3-rc3