Planeshift
pawsbankwindow.h
Go to the documentation of this file.
1 /*
2 * pawsbankwindow.h - Author: Mike Gist
3 *
4 * Copyright (C) 2007 Atomic Blue (info@planeshift.it, http://www.atomicblue.org)
5 *
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation (version 2 of the License)
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17 *
18 */
19 
20 #ifndef __PAWS_BANK_WINDOW_H__
21 #define __PAWS_BANK_WINDOW_H__
22 
23 #include "net/cmdbase.h"
24 #include "paws/pawswidget.h"
25 #include "paws/pawstextbox.h"
26 #include "paws/pawsbutton.h"
27 #include "paws/pawslistbox.h"
28 #include "paws/pawsradio.h"
29 
34 {
35 public:
37  virtual ~pawsBankWindow();
38 
39  /* From pawsWidget */
40  bool PostSetup();
41  bool OnButtonPressed( int mouseButton, int keyModifier, pawsWidget* widget );
42 
43  /* From iNetSubscriber */
44  void HandleMessage( MsgEntry* me );
45 
46 protected:
47 
48  /* Text that shows the total amount of money available to withdraw. */
50 
51  /* Text that shows the total amount of money available to deposit. */
53 
54  /* Text that shows the maximum amount of each coin available to exchange. */
56 
57  /* Box for specifying how much to withdraw. */
59 
60  /* Box for specifying how much to deposit. */
62 
63  /* Box for specifying how much to exchange. */
65 
66  /* Coin selection radio group */
68 
69  /* Radio buttons for specifying which coin type to exchange. */
71 
72  /* Fee info for coin conversions. */
74 
75  /* Tab buttons. */
77 
78  /* two sub-windows. */
80 
81  /* Whether or not this is a guild bank account. */
82  bool guild;
83 };
84 
86 
87 #endif // __PAWS_BANK_WINDOW_H__
pawsButton * Money
pawsTextBox * hexasCanExchange
pawsTextBox * octasCanExchange
The main base widget that all other widgets should inherit from.
Definition: pawswidget.h:116
pawsTextBox * hexasCanDeposit
pawsTextBox * triasCanDeposit
A combination widget that has a radio button and a text label.
Definition: pawsradio.h:81
pawsTextBox * circlesCanDeposit
pawsRadioButton * circles
pawsWidget * adminWindow
pawsEditTextBox * triasToWithdraw
pawsEditTextBox * hexasToWithdraw
pawsEditTextBox * octasToDeposit
pawsRadioButton * trias
The structure of 1 queue entry (pointer to a message)
Definition: message.h:143
pawsWidget * moneyWindow
pawsTextBox * circlesCanWithdraw
void HandleMessage(MsgEntry *me)
CREATE_PAWS_FACTORY(pawsBankWindow)
An edit box widget/.
Definition: pawstextbox.h:409
pawsTextBox * triasCanExchange
virtual ~pawsBankWindow()
pawsTextBox * feeInfo
pawsRadioButtonGroup * coinSelect
pawsEditTextBox * triasToDeposit
pawsEditTextBox * coinsToExchange
pawsEditTextBox * circlesToDeposit
pawsEditTextBox * octasToWithdraw
The bank window in PlaneShift.
pawsTextBox * octasCanWithdraw
A simple button widget.
Definition: pawsbutton.h:43
pawsRadioButton * octas
bool PostSetup()
This is called after the widget and all of it's children have been created.
pawsRadioButton * hexas
pawsTextBox * octasCanDeposit
pawsEditTextBox * circlesToWithdraw
pawsButton * Admin
pawsEditTextBox * hexasToDeposit
pawsTextBox * hexasCanWithdraw
bool OnButtonPressed(int mouseButton, int keyModifier, pawsWidget *widget)
Called whenever a button is pressed.
pawsTextBox * triasCanWithdraw
pawsTextBox * circlesCanExchange
A basic text box widget.
Definition: pawstextbox.h:42
This is a set of radio buttons and is used to control them.
Definition: pawsradio.h:131