basebar.h File Reference

(r1785/r1361)

#include "dlgmgr.h"

Go to the source code of this file.

Classes

class  FormatPosition
 A class used for holding Format Positions. More...
class  BaseBar

Defines

#define TITLE_BAR_HEIGHT   10
#define BAR_BORDERSIZE   4
#define BAR_VERTICAL_CENTEROFFSET   2
#define BAR_HORIZONTAL_CENTEROFFSET   3
#define DO_TIDY   TRUE
#define DONT_TIDY   FALSE
#define CHANGE_MARGIN   4
#define INFOBAR_WIDTH   600
#define DRAG_START_MARGIN   1
#define VERTICAL_SPACE   2

Enumerations

enum  DDeckerControlHeights { SMALL_DDECKERS = 13, LARGE_DDECKERS = 16 }
enum  BaseBarMode { DIALOG, BAR }
enum  DlgDragType {
  NONE = 0, MOVE, GROW_NORTH, GROW_SOUTH,
  GROW_EAST, GROW_WEST, GROW_SOUTHEAST, GROW_NORTHEAST,
  GROW_SOUTHWEST, GROW_NORTHWEST, TRYING
}
enum  NearestEdge {
  LEFT, RIGHT, TOP, BOTTOM,
  NOEDGE
}
enum  SeparatorWidths { SMALL_SEPARATOR = 6, LARGE_SEPARATOR = 10 }
enum  ForceControlSize { USE_BAR, FORCE_SMALL, FORCE_LARGE }
enum  DDeckerReadState { DDECKER_NONE, DDECKER_TOP, DDECKER_BOTTOM }
enum  ControlDragMode { CUT, COPY }
enum  ControlDragState { READY, DRAGGING, NO_DRAG }
enum  BarItemType {
  BUTTON, BITMAPBUTTON, SMALLBITMAPBUTTON, STATICBITMAP,
  DECKER_TOP, DECKER_BOTTOM, DECKER_END, SEPARATOR,
  LINEFEED, COMBO, EDIT, LIST,
  STATIC, SCROLLBAR, TEXT3D, ROTATEGRID,
  OTHERCONTROL, SLIDER, BITMAPCOMBO1D, BITMAPCOMBO2D,
  UNKNOWN_ITEM
}

Functions

BarItemType GetEnumItemType (BarItem *Item)
 To return an enumerated BarType from a BarItem.


Define Documentation

#define BAR_BORDERSIZE   4
 

Definition at line 115 of file basebar.h.

#define BAR_HORIZONTAL_CENTEROFFSET   3
 

Definition at line 117 of file basebar.h.

#define BAR_VERTICAL_CENTEROFFSET   2
 

Definition at line 116 of file basebar.h.

#define CHANGE_MARGIN   4
 

Definition at line 122 of file basebar.h.

#define DO_TIDY   TRUE
 

Definition at line 119 of file basebar.h.

#define DONT_TIDY   FALSE
 

Definition at line 120 of file basebar.h.

#define DRAG_START_MARGIN   1
 

Definition at line 126 of file basebar.h.

#define INFOBAR_WIDTH   600
 

Definition at line 124 of file basebar.h.

#define TITLE_BAR_HEIGHT   10
 

Definition at line 114 of file basebar.h.

#define VERTICAL_SPACE   2
 

Definition at line 129 of file basebar.h.


Enumeration Type Documentation

enum BarItemType
 

Enumerator:
BUTTON 
BITMAPBUTTON 
SMALLBITMAPBUTTON 
STATICBITMAP 
DECKER_TOP 
DECKER_BOTTOM 
DECKER_END 
SEPARATOR 
LINEFEED 
COMBO 
EDIT 
LIST 
STATIC 
SCROLLBAR 
TEXT3D 
ROTATEGRID 
OTHERCONTROL 
SLIDER 
BITMAPCOMBO1D 
BITMAPCOMBO2D 
UNKNOWN_ITEM 

Definition at line 154 of file basebar.h.

00155 {
00156     BUTTON,
00157     BITMAPBUTTON,
00158     SMALLBITMAPBUTTON,
00159     STATICBITMAP,
00160     DECKER_TOP,
00161     DECKER_BOTTOM,
00162     DECKER_END,
00163     SEPARATOR,
00164     LINEFEED,
00165     COMBO,
00166     EDIT,
00167     LIST,
00168     STATIC,
00169     SCROLLBAR,
00170     TEXT3D,
00171     ROTATEGRID,
00172     OTHERCONTROL,
00173     SLIDER,
00174     BITMAPCOMBO1D,
00175     BITMAPCOMBO2D,
00176     UNKNOWN_ITEM    
00177 } BarItemType;

enum BaseBarMode
 

Enumerator:
DIALOG 
BAR 

Definition at line 134 of file basebar.h.

00134 {DIALOG, BAR}; 

enum ControlDragMode
 

Enumerator:
CUT 
COPY 

Definition at line 150 of file basebar.h.

00150 {CUT,COPY};

enum ControlDragState
 

Enumerator:
READY 
DRAGGING 
NO_DRAG 

Definition at line 152 of file basebar.h.

enum DDeckerControlHeights
 

Enumerator:
SMALL_DDECKERS 
LARGE_DDECKERS 

Definition at line 131 of file basebar.h.

00131 { SMALL_DDECKERS = 13, LARGE_DDECKERS  = 16 };

enum DDeckerReadState
 

Enumerator:
DDECKER_NONE 
DDECKER_TOP 
DDECKER_BOTTOM 

Definition at line 148 of file basebar.h.

enum DlgDragType
 

Enumerator:
NONE 
MOVE 
GROW_NORTH 
GROW_SOUTH 
GROW_EAST 
GROW_WEST 
GROW_SOUTHEAST 
GROW_NORTHEAST 
GROW_SOUTHWEST 
GROW_NORTHWEST 
TRYING 

Definition at line 137 of file basebar.h.

enum ForceControlSize
 

Enumerator:
USE_BAR 
FORCE_SMALL 
FORCE_LARGE 

Definition at line 146 of file basebar.h.

enum NearestEdge
 

Enumerator:
LEFT 
RIGHT 
TOP 
BOTTOM 
NOEDGE 

Definition at line 141 of file basebar.h.

00141 { LEFT,RIGHT,TOP,BOTTOM,NOEDGE };

enum SeparatorWidths
 

Enumerator:
SMALL_SEPARATOR 
LARGE_SEPARATOR 

Definition at line 143 of file basebar.h.

00143 { SMALL_SEPARATOR = 6,LARGE_SEPARATOR = 10};


Function Documentation

BarItemType GetEnumItemType BarItem Item  ) 
 

To return an enumerated BarType from a BarItem.

Author:
Simon_Maneggio (Xara Group Ltd) <camelotdev@xara.com>
Date:
30/3/94
Parameters:
the baritem to type [INPUTS]
- [OUTPUTS]
Returns:
An Enumerated BarType

Errors: -

See also:
-

Definition at line 229 of file basebar2.cpp.

00230 {
00231     PORTNOTETRACE( "dialog", "GetEnumItemType - do nothing" );
00232 #ifndef EXCLUDE_FROM_XARALX
00233     if(Item == NULL)
00234         return UNKNOWN_ITEM;
00235     if (Item->IsKindOf(CC_RUNTIME_CLASS(BarControl)))
00236     {
00237         HWND hcontrol=(HWND)((BarControl*)Item)->GetWinID();    // Get the Window Handle
00238         
00239         String_256 ClassNameStr;
00240 
00241         GetClassName(hcontrol, (TCHAR*)ClassNameStr, 255);  // Check type of control
00242         if (ClassNameStr == String_16(TEXT("cc_BitmapButton")))
00243             return BITMAPBUTTON;
00244         if (ClassNameStr == String_16(TEXT("Button")))
00245             return BUTTON;
00246         if (ClassNameStr == String_16(TEXT("cc_SmallButton")))
00247             return SMALLBITMAPBUTTON;
00248         if (ClassNameStr == String_16(TEXT("Static")))
00249             return STATIC;
00250         if (ClassNameStr == String_16(TEXT("ComboBox")))
00251             return COMBO;                                            
00252         if (ClassNameStr == String_16(TEXT("Edit")))
00253             return EDIT;
00254         if (ClassNameStr == String_16(TEXT("cc_StaticBitmap")))
00255             return STATICBITMAP;
00256         if (ClassNameStr == String_16(TEXT("cc_Grid")))
00257             return ROTATEGRID;
00258         if (ClassNameStr == String_16(TEXT("cc_Text3D")))
00259             return TEXT3D;
00260         if (ClassNameStr == String_16(TEXT("cc_Slider")))
00261             return SLIDER;
00262         if (ClassNameStr == String_64(TEXT("cc_1dBitmapComboBoxEdit")))
00263             return BITMAPCOMBO1D;
00264         if (ClassNameStr == String_64(TEXT("cc_2dBitmapComboBoxEdit")))
00265             return BITMAPCOMBO2D;
00266         return OTHERCONTROL;
00267     }
00268 
00269     if ( Item->IsKindOf(CC_RUNTIME_CLASS(BarSeparator)) )
00270         return SEPARATOR;
00271     if ( Item->IsKindOf(CC_RUNTIME_CLASS(BarLineFeed)) )
00272         return LINEFEED;
00273     if ( Item->IsKindOf(CC_RUNTIME_CLASS(DDeckerTop)))
00274         return DECKER_TOP;
00275     if ( Item->IsKindOf(CC_RUNTIME_CLASS(DDeckerBottom)))
00276         return DECKER_BOTTOM;
00277     if ( Item->IsKindOf(CC_RUNTIME_CLASS(DDeckerEnd)))
00278         return DECKER_END;
00279     ENSURE(FALSE,"Unknown Bar Item");
00280 #endif
00281     return UNKNOWN_ITEM;
00282 }


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