Logo Search packages:      
Sourcecode: sagcad version File versions  Download package

TextEditDlg.h

/* ====================================================================
 * ===  Copyright (C) 1998-2007 Yutaka Sagiya. All rights reserved. ===
 * ====================================================================
 * 
 *    Project              : SagCAD
 *    Description          : CAD/CAM
 *    Source               : TextEditDlg.h
 * 
 *    ----------------------------------
 * 
 *    License              : GNU General Public License (GPL)
 *    Copyright            : (C) 1998-2007 by Yutaka Sagiya
 *    email                : kappa@a6s.highway.ne.jp
 *                         : yutaka@sagiya.com
 *    Begin                : 2003/02/25
 *    Last                 : 2007/11/08
 * ====================================================================
 */
#ifndef __TEXTEDITDLG_H__
#define __TEXTEDITDLG_H__

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */



/* -------------------------------------------------------
 * 1 : 前処理  (struct #define etc)
 * -------------------------------------------------------
 */

#define TED_LABEL_WIDTH 180
#define TED_HEIGHT 20
#define TED_ENTRY_WIDTH 360
#define TED_ETC_WIDTH 100


struct _TEXT_EDIT_DLG
{
      char Text[256];
      char UpperText[20];
      char LowerText[20];
      gdouble FontHeight;
      gdouble FontSpace;
      gdouble WordSpace;
      gdouble FontOverLineSpace;
      gdouble Angle;
      gdouble SearchPointX;
      gdouble SearchPointY;
      /* -------------------------------------------
       * 水平位置合わせ
       * 0:Left  
       * 1:Center  
       * 2:Right 
       */
      gint FitPointX;
      /* -------------------------------------------
       * 垂直位置合わせ
       * 0:BaseLine  
       * 1:BaseLine + FontOverLineSpace  
       * 2:Center  
       * 3:UpperLine 
       * 4:UpperLine + FontOverLineSpace 
       */
      gint FitPointY;   


//    GtkWidget *main_vbox;
//          GtkWidget *vbox_Text;
//                GtkWidget *hbox_Text1;
//                      GtkWidget *label_Text;
                        GtkWidget *entry_Text;
//                GtkWidget *hbox_Text2;
//                      GtkWidget *vbox_label_Text2;
//                            GtkWidget *label_UpperText;
//                            GtkWidget *label_LowerText;
//                      GtkWidget *vbox_entry_Text2;
                              GtkWidget *entry_UpperText;
                              GtkWidget *entry_LowerText;

//          GtkWidget *separator;

//          GtkWidget *hbox_etc;
//                GtkWidget *vbox_label_etc1;
//                      GtkWidget *label_FontHeight;
//                      GtkWidget *label_FontSpace;
//                      GtkWidget *label_WordSpace;
//                      GtkWidget *label_FontOverLineSpace;
//                GtkWidget *vbox_entry_etc1;
                        GtkWidget *entry_FontHeight;
                        GtkWidget *entry_FontSpace;
                        GtkWidget *entry_WordSpace;
                        GtkWidget *entry_FontOverLineSpace;
//                GtkWidget *vbox_label_etc2;
//                      GtkWidget *label_SearchPointX;
//                      GtkWidget *label_SearchPointY;
//                      GtkWidget *label_Angle;
//                      GtkWidget *label_FitPointX;
//                      GtkWidget *label_FitPointY;
//                GtkWidget *vbox_entry_etc2;
                        GtkWidget *entry_SearchPointX;
                        GtkWidget *entry_SearchPointY;
                        GtkWidget *entry_Angle;
                        GtkWidget *entry_FitPointX;
                        GtkWidget *entry_FitPointY;

//          GtkWidget *separator;

//          GtkWidget *action_hbox;
//                GtkWidget *file_name_button;
//                GtkWidget *fai_button;
//                GtkWidget *R_button;
//                GtkWidget *cancel_button;
//                GtkWidget *ok_button;


      GtkWidget *parent;
      GtkWidget *dialog;
};
typedef struct _TEXT_EDIT_DLG TEXT_EDIT_DLG;



/* -------------------------------------------------------
 * 2 : 外部変数 (global)
 * -------------------------------------------------------
 */
#ifdef _TEXTEDITDLG_
#define   GLOBAL
/* 初期値設定 */
#define   GLOBAL_VAL(v)  = (v)
#else
#define   GLOBAL  extern
/* 初期値設定の代入部分を無くす */
#define   GLOBAL_VAL(v)  /* */
#endif




#undef  GLOBAL
#undef  GLOBAL_VAL
#undef _TEXTEDITDLG_



/* -------------------------------------------------------
 * 3 : 外部関数 (Function)
 * -------------------------------------------------------
 */
/* 寸法値設定 */
gint TextEditDialog(TEXT_EDIT_DLG *text_edit_dlg);



#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* __TEXTEDITDLG_H__ */
/* ====================================================================
 * ===  Copyright (C) 1998-2007 Yutaka Sagiya. All rights reserved. ===
 * ====================================================================
 *    Project              : SagCAD
 *    Source               : TextEditDlg.h
 * ====================================================================
 */

Generated by  Doxygen 1.6.0   Back to index