aligndlg.cpp File Reference

(r1785/r1282)

#include "camtypes.h"
#include "camelot.h"
#include "aligndlg.h"
#include "rnddlgs.h"
#include "ccdc.h"
#include "progress.h"
#include "grnddib.h"
#include "page.h"
#include "qualattr.h"
#include "dlgcol.h"
#include "keypress.h"
#include "bubbleid.h"
#include "ophist.h"

Go to the source code of this file.

Functions

 DECLARE_SOURCE ("$Revision: 1282 $")
 CC_IMPLEMENT_DYNCREATE (ArrangeAlignment, DialogOp) CC_IMPLEMENT_DYNCREATE(OpAlign
INT32 CompareObjInfoLow (const void *elem1, const void *elem2)

Variables

const CGadgetID TargetArea []
const INT32 HAlignIDS []
const INT32 VAlignIDS []
const INT32 DiagWidth = 100
const INT32 DiagHeight = 100
const INT32 DiagRectWidth [DiagRects] = {6,14,22,30}
const INT32 DiagRectHeight [DiagRects] = {6,30,14,22}
const INT32 DiagRectOrderX [DiagRects] = {1,3,0,2}
const INT32 DiagRectOrderY [DiagRects] = {0,2,1,3}
const INT32 DiagRectGapX [DiagRects-1] = {13,6,8}
const INT32 DiagRectGapY [DiagRects-1] = {13,6,8}


Function Documentation

CC_IMPLEMENT_DYNCREATE ArrangeAlignment  ,
DialogOp 
 

INT32 CompareObjInfoLow const void *  elem1,
const void *  elem2
 

following routines used by the 'C' library qsort() in OpAlign::AlignOneAxis()

Definition at line 926 of file aligndlg.cpp.

00927 {
00928     ObjInfo* a=(ObjInfo*)elem1;
00929     ObjInfo* b=(ObjInfo*)elem2;
00930     if (a->lo == b->lo)
00931         return (a->i  < b->i  ? -1 : 1);    // sort by Z order
00932     else
00933         return (a->lo < b->lo ? -1 : 1);
00934 }

DECLARE_SOURCE "$Revision: 1282 $"   ) 
 


Variable Documentation

const INT32 DiagHeight = 100
 

Definition at line 171 of file aligndlg.cpp.

const INT32 DiagRectGapX[DiagRects-1] = {13,6,8}
 

Definition at line 176 of file aligndlg.cpp.

const INT32 DiagRectGapY[DiagRects-1] = {13,6,8}
 

Definition at line 177 of file aligndlg.cpp.

const INT32 DiagRectHeight[DiagRects] = {6,30,14,22}
 

Definition at line 173 of file aligndlg.cpp.

const INT32 DiagRectOrderX[DiagRects] = {1,3,0,2}
 

Definition at line 174 of file aligndlg.cpp.

const INT32 DiagRectOrderY[DiagRects] = {0,2,1,3}
 

Definition at line 175 of file aligndlg.cpp.

const INT32 DiagRectWidth[DiagRects] = {6,14,22,30}
 

Definition at line 172 of file aligndlg.cpp.

const INT32 DiagWidth = 100
 

Definition at line 170 of file aligndlg.cpp.

const INT32 HAlignIDS[]
 

Initial value:

{_R(IDS_HALIGNNONE),
                        _R(IDS_HALIGNLEFT),
                        _R(IDS_HALIGNCENTRE),
                        _R(IDS_HALIGNRIGHT),
                        _R(IDS_HDISTRIBUTELEFT),
                        _R(IDS_HDISTRIBUTECENTRE),
                        _R(IDS_HDISTRIBUTERIGHT),
                        _R(IDS_HDISTRIBUTEEQUI),
                        0}

Definition at line 150 of file aligndlg.cpp.

const CGadgetID TargetArea[]
 

Initial value:

{_R(IDC_ALIGNDIALOG_TOSELECTION),   
                              _R(IDC_ALIGNDIALOG_TOPAGE),       
                    
                    #ifndef WEBSTER
                              _R(IDC_ALIGNDIALOG_TOSPREAD),     
                    #endif 
                              0}

Definition at line 140 of file aligndlg.cpp.

const INT32 VAlignIDS[]
 

Initial value:

{_R(IDS_VALIGNNONE),
                        _R(IDS_VALIGNBOTTOM),
                        _R(IDS_VALIGNCENTRE),
                        _R(IDS_VALIGNTOP),
                        _R(IDS_VDISTRIBUTEBOTTOM),
                        _R(IDS_VDISTRIBUTECENTRE),
                        _R(IDS_VDISTRIBUTETOP),
                        _R(IDS_VDISTRIBUTEEQUI),
                        0}

Definition at line 159 of file aligndlg.cpp.


Generated on Sat Nov 10 03:49:03 2007 for Camelot by  doxygen 1.4.4