confdimdlg.cc File Reference

#include "wx/printdlg.h"
#include "ewx.h"
#include "dic.h"
#include "game.h"
#include "configdb.h"
#include "printout.h"
#include "confdimdlg.h"

Go to the source code of this file.

Defines

#define VSPACE   10
#define HSPACE   5
#define HFONT   wxPoint(HSPACE,VSPACE)
#define HCOMMENTY(i)
#define HCOMMENT(i)   wxPoint(HSPACE,HCOMMENTY(i)+2)
#define HTITLE(i)
#define HJUST(i)   wxPoint(Htitlerect[0].GetRight() + HSPACE,HCOMMENTY(i))
#define HSPACES(i)   wxPoint(Hjustrect[0].GetRight() + HSPACE,HCOMMENTY(i))
#define TFONT   wxPoint(HSPACE, Hcommentrect[4].GetBottom() + 2*VSPACE)
#define TCOMMENTY(i)
#define TCOMMENT(i)   wxPoint(HSPACE, TCOMMENTY(i)+2)
#define TDIM(i)
#define TJUST(i)   wxPoint(Htitlerect[0].GetRight() + HSPACE, TCOMMENTY(i))
#define TSPACES(i)   wxPoint(Hjustrect[0].GetRight() + HSPACE, TCOMMENTY(i))
#define ESPSIZE   wxSize(spacerect.GetRight() - spacerect.GetLeft(),-1)
#define YPOS(i)
#define COL2START   HSPACE
#define XPOSLEFT
#define XPOSRIGHT
#define DYH1COMMENT   wxPoint(COL2START, YPOS(0)+2)
#define DYH1TEXT   wxPoint(XPOSLEFT, YPOS(0))
#define DYH1UNIT   wxPoint(dyh1rect.GetRight() + HSPACE, YPOS(0))
#define DYH2COMMENT   wxPoint(3*HSPACE + dyh1mmrect.GetRight(), YPOS(0)+2)
#define DYH2TEXT   wxPoint(XPOSRIGHT, YPOS(0))
#define DYH2UNIT   wxPoint(dyh2rect.GetRight() + HSPACE, YPOS(0))
#define DYT1COMMENT   wxPoint(COL2START, YPOS(1)+2)
#define DYT1TEXT   wxPoint(XPOSLEFT, YPOS(1))
#define DYT1UNIT   wxPoint(dyt1rect.GetRight() + HSPACE, YPOS(1))
#define DYT2COMMENT   wxPoint(3*HSPACE + dyt1mmrect.GetRight(), YPOS(1)+2)
#define DYT2TEXT   wxPoint(XPOSRIGHT, YPOS(1))
#define DYT2UNIT   wxPoint(dyt2rect.GetRight() + HSPACE, YPOS(1))
#define DXBEGINCOMMENT   wxPoint(COL2START, YPOS(2)+2)
#define DXBEGINTEXT   wxPoint(XPOSLEFT, YPOS(2))
#define DXBEGINUNIT   wxPoint(dxbeginrect.GetRight() + HSPACE, YPOS(2))
#define DXENDCOMMENT   wxPoint(3*HSPACE + dxbeginmmrect.GetRight(), YPOS(2)+2)
#define DXENDTEXT   wxPoint(XPOSRIGHT, YPOS(2))
#define DXENDUNIT   wxPoint(dxendrect.GetRight() + HSPACE, YPOS(2))
#define DIM   wxSize(30,-1)
#define BHSPACE   1
#define BPOS   (2*VSPACE + dxendrect.GetBottom())
#define BPRINTERPOINT   wxPoint(COL2START,BPOS)
#define BPAGEPOINT   wxPoint(bprinterrect.GetRight() + BHSPACE,BPOS)
#define BOKPOINT
#define CANCELWIDTH   (bcancelrect.GetRight() - bcancelrect.GetLeft())
#define BCANCELPOINT   wxPoint(Tspacesrect[0].GetRight() - CANCELWIDTH,BPOS)
#define DLGWIDTH   (bcancelrect.GetRight() + HSPACE)
#define DLGHEIGHT   (bokrect.GetBottom() + VSPACE)

Enumerations

enum  {
  Button_Ok, Button_Cancel, Button_Printer, Button_Page,
  Button_Save, Button_FontHeader, Button_FontText
}

Functions

 BEGIN_EVENT_TABLE (ConfDimDlg, wxDialog) EVT_CLOSE(ConfDimDlg


Define Documentation

#define BCANCELPOINT   wxPoint(Tspacesrect[0].GetRight() - CANCELWIDTH,BPOS)
 

#define BHSPACE   1
 

#define BOKPOINT
 

Value:

wxPoint(bcancelrect.GetLeft() - (bokrect.GetRight() \
                               - bokrect.GetLeft() + BHSPACE),BPOS)

#define BPAGEPOINT   wxPoint(bprinterrect.GetRight() + BHSPACE,BPOS)
 

#define BPOS   (2*VSPACE + dxendrect.GetBottom())
 

#define BPRINTERPOINT   wxPoint(COL2START,BPOS)
 

#define CANCELWIDTH   (bcancelrect.GetRight() - bcancelrect.GetLeft())
 

#define COL2START   HSPACE
 

#define DIM   wxSize(30,-1)
 

#define DLGHEIGHT   (bokrect.GetBottom() + VSPACE)
 

#define DLGWIDTH   (bcancelrect.GetRight() + HSPACE)
 

#define DXBEGINCOMMENT   wxPoint(COL2START, YPOS(2)+2)
 

#define DXBEGINTEXT   wxPoint(XPOSLEFT, YPOS(2))
 

#define DXBEGINUNIT   wxPoint(dxbeginrect.GetRight() + HSPACE, YPOS(2))
 

#define DXENDCOMMENT   wxPoint(3*HSPACE + dxbeginmmrect.GetRight(), YPOS(2)+2)
 

#define DXENDTEXT   wxPoint(XPOSRIGHT, YPOS(2))
 

#define DXENDUNIT   wxPoint(dxendrect.GetRight() + HSPACE, YPOS(2))
 

#define DYH1COMMENT   wxPoint(COL2START, YPOS(0)+2)
 

#define DYH1TEXT   wxPoint(XPOSLEFT, YPOS(0))
 

#define DYH1UNIT   wxPoint(dyh1rect.GetRight() + HSPACE, YPOS(0))
 

#define DYH2COMMENT   wxPoint(3*HSPACE + dyh1mmrect.GetRight(), YPOS(0)+2)
 

#define DYH2TEXT   wxPoint(XPOSRIGHT, YPOS(0))
 

#define DYH2UNIT   wxPoint(dyh2rect.GetRight() + HSPACE, YPOS(0))
 

#define DYT1COMMENT   wxPoint(COL2START, YPOS(1)+2)
 

#define DYT1TEXT   wxPoint(XPOSLEFT, YPOS(1))
 

#define DYT1UNIT   wxPoint(dyt1rect.GetRight() + HSPACE, YPOS(1))
 

#define DYT2COMMENT   wxPoint(3*HSPACE + dyt1mmrect.GetRight(), YPOS(1)+2)
 

#define DYT2TEXT   wxPoint(XPOSRIGHT, YPOS(1))
 

#define DYT2UNIT   wxPoint(dyt2rect.GetRight() + HSPACE, YPOS(1))
 

#define ESPSIZE   wxSize(spacerect.GetRight() - spacerect.GetLeft(),-1)
 

#define HCOMMENT  )     wxPoint(HSPACE,HCOMMENTY(i)+2)
 

Referenced by ConfDimDlg::ConfDimDlg().

#define HCOMMENTY  ) 
 

Value:

(i==0 ? bfontheadrect.GetBottom() + VSPACE : \
                     VSPACE + Hcommentrect[i-1].GetBottom())

#define HFONT   wxPoint(HSPACE,VSPACE)
 

Referenced by ConfDimDlg::ConfDimDlg().

#define HJUST  )     wxPoint(Htitlerect[0].GetRight() + HSPACE,HCOMMENTY(i))
 

Referenced by ConfigDB::getJustifH(), and ConfigDB::setJustifH().

#define HSPACE   5
 

Referenced by ConfigDB::getSpacesH(), and ConfigDB::setSpacesH().

#define HSPACES  )     wxPoint(Hjustrect[0].GetRight() + HSPACE,HCOMMENTY(i))
 

#define HTITLE  ) 
 

Value:

wxPoint(2*HSPACE+max(Hcommentrect[0].GetRight(), \
                         Tcommentrect[0].GetRight()),HCOMMENTY(i))

#define TCOMMENT  )     wxPoint(HSPACE, TCOMMENTY(i)+2)
 

#define TCOMMENTY  ) 
 

Value:

(i==0 ? bfonttextrect.GetBottom() + VSPACE : \
                      VSPACE + Tcommentrect[i-1].GetBottom())

#define TDIM  ) 
 

Value:

wxPoint(2*HSPACE+max(Tcommentrect[0].GetRight(), \
                         Hcommentrect[0].GetRight()),TCOMMENTY(i))

Referenced by ConfigDB::getDxBegin(), ConfigDB::getDxEnd(), ConfigDB::getDxText(), ConfigDB::getDyT1(), ConfigDB::getDyT2(), ConfigDB::setDxBegin(), ConfigDB::setDxEnd(), ConfigDB::setDxText(), ConfigDB::setDyT1(), and ConfigDB::setDyT2().

#define TFONT   wxPoint(HSPACE, Hcommentrect[4].GetBottom() + 2*VSPACE)
 

#define TJUST  )     wxPoint(Htitlerect[0].GetRight() + HSPACE, TCOMMENTY(i))
 

Referenced by ConfigDB::getJustifT(), and ConfigDB::setJustifT().

#define TSPACES  )     wxPoint(Hjustrect[0].GetRight() + HSPACE, TCOMMENTY(i))
 

#define VSPACE   10
 

#define XPOSLEFT
 

Value:

(HSPACE + max(dyh1textrect.GetRight(), \
        max(dyt1textrect.GetRight(), dxbegintextrect.GetRight() )))

#define XPOSRIGHT
 

Value:

(HSPACE + max(dyh2textrect.GetRight(), \
        max(dyt2textrect.GetRight(), dxendtextrect.GetRight() )))

#define YPOS  ) 
 

Value:

(2*VSPACE + Tcommentrect[4].GetBottom() + \
      i*(VSPACE+Tspacesrect[0].GetBottom()-Tspacesrect[0].GetTop()))


Enumeration Type Documentation

anonymous enum
 

Enumerator:
Button_Ok 
Button_Cancel 
Button_Printer 
Button_Page 
Button_Save 
Button_FontHeader 
Button_FontText 

Definition at line 30 of file confdimdlg.cc.


Function Documentation

BEGIN_EVENT_TABLE ConfDimDlg  ,
wxDialog 
 

Definition at line 40 of file confdimdlg.cc.


Generated on Thu Dec 29 02:01:15 2005 for Eliot by  doxygen 1.4.5