GnuCashew ~ GnuCash Enabled Web
GCW
Status.cpp
Go to the documentation of this file.
1 #line 2 "src/Gui/BillPay/Status.cpp"
2 
3 #include "BillPay.h"
4 
5 std::string
7 asString( Status _status )
8 {
9  std::string values[] =
10  {
11  TR8( "gcw.billPay.tableName.Paid" ),
12  TR8( "gcw.billPay.tableName.Unpaid" ),
13  TR8( "gcw.billPay.tableName.Disabled" )
14  };
15 
16  return values[ static_cast<int>( _status ) ];
17 }
18 
19 std::string
21 asStyleClass( Status _status )
22 {
23  std::string values[] =
24  {
25  "billpay paid" ,
26  "billpay unpaid" ,
27  "billpay disabled"
28  };
29 
30  return values[ static_cast<int>( _status ) ];
31 }
32 
#define TR8(X)
Definition: define.h:18
std::string asString(Status _status)
Get Status as String.
Definition: Status.cpp:7
Status
Bill Status.
Definition: Status.h:21
std::string asStyleClass(Status _status)
Get Status as Style Class.
Definition: Status.cpp:21