Exemple #1
0
Iclass* iupClassNew(Iclass* parent)
{
  Iclass* ic = malloc(sizeof(Iclass));
  memset(ic, 0, sizeof(Iclass));

  if (parent)
    ic->attrib_func = parent->attrib_func;
  else
    ic->attrib_func = iupTableCreate(IUPTABLE_STRINGINDEXED);

  ic->parent = parent;

  return ic;
}
static void iMatrixExUndoDataInit(IundoData* undo_data, const char* name)
{
  undo_data->cell_count = 0;
  undo_data->name = name;
  undo_data->data_table = iupTableCreate(IUPTABLE_STRINGINDEXED);

  if (name)
  {
    char str[50] = "IUP_";
    strcat(str, name);
    name = IupGetLanguageString(str);
    if (name != str)
      undo_data->name = name;
  }
}
Exemple #3
0
static Ihandle* iHandleCreate(void)
{
  Ihandle *ih = (Ihandle*)malloc(sizeof(Ihandle));
  memset(ih, 0, sizeof(Ihandle));

  ih->sig[0] = 'I';
  ih->sig[1] = 'U';
  ih->sig[2] = 'P';
  ih->sig[3] = 0;

  ih->serial = -1;

  ih->attrib = iupTableCreate(IUPTABLE_STRINGINDEXED);

  return ih;
}
Exemple #4
0
void iupRegisterInit(void)
{
  iregister_table = iupTableCreate(IUPTABLE_STRINGINDEXED);
}
Exemple #5
0
void iupNamesInit(void)
{
  inames_strtable = iupTableCreate(IUPTABLE_STRINGINDEXED);
}
void iupFuncInit(void)
{
  ifunc_table = iupTableCreate(IUPTABLE_STRINGINDEXED);
}
void iupGlobalAttribInit(void)
{
  iglobal_table = iupTableCreate(IUPTABLE_STRINGINDEXED);
}
Exemple #8
0
void iupImageStockInit(void)
{
  istock_table = iupTableCreate(IUPTABLE_STRINGINDEXED);
}
Exemple #9
0
void iupGlobalEnvInit(void)
{
  iglobalenv = iupTableCreate(IUPTABLE_STRINGINDEXED);
}
Exemple #10
0
void iupmotGetInitAttTable (void)
{
  int i;

  if (attrEnv) return;

	store[0].attr = IUP_ACTIVE;
	store[0].type = WIDGET_;
	store[1].attr = IUP_FGCOLOR;
	store[1].type = WIDGET_;
	store[2].attr = IUP_BGCOLOR;
	store[2].type = WIDGET_;
	store[3].attr = IUP_WID;
	store[3].type = QUERY_;
	store[4].attr = IUP_X;
	store[4].type = QUERY_;
	store[5].attr = IUP_Y;
	store[5].type = QUERY_;
	store[6].attr = "XSCREEN";
	store[6].type = QUERY_;
	store[7].attr = "XWINDOW";
	store[7].type = QUERY_;
	store[8].attr = "XDISPLAY";
	store[8].type = QUERY_;
	store[9].attr = "SELECTCOLOR";
	store[9].type = TOGGLE_;
	store[10].attr = IUP_VALUE;
	store[10].type = TOGGLE_;
	store[11].attr = IUP_VALUE;
	store[11].type = MULTILINE_;
	store[12].attr = IUP_VALUE;
	store[12].type = TEXT_;
	store[13].attr = IUP_VALUE;
	store[13].type = ITEM_;
	store[14].attr = IUP_VALUE;
	store[14].type = LIST_;
	store[15].attr = IUP_VALUE;
	store[15].type = RADIO_;
	store[16].type = IUP_NC;
	store[16].attr = TEXT_;
	store[17].type = IUP_CARET;
	store[17].attr = TEXT_;
	store[18].type = IUP_CARET;
	store[18].attr = MULTILINE_;
	store[19].type = IUP_SELECTION;
	store[19].attr = TEXT_;
	store[20].type = IUP_SELECTION;
	store[20].attr = MULTILINE_;
	store[21].type = IUP_SELECTEDTEXT;
	store[21].attr = TEXT_;
	store[22].type = IUP_SELECTEDTEXT;
	store[22].attr = MULTILINE_;
	store[23].type = IUP_POSX;
	store[23].attr = CANVAS_;
	store[24].type = IUP_POSY;
	store[24].attr = CANVAS_;
	store[25].type = IUP_CONID;
	store[25].attr = CANVAS_;
	store[26].type = IUP_ALIGNMENT;
	store[26].attr = BUTTON_;
	store[27].type = IUP_MULTIPLE;
	store[27].attr = LIST_;
	store[28].type = IUP_ALIGNMENT;
	store[28].attr = LABEL_;
	store[29].type = IUP_ALIGNMENT;
	store[29].attr = TEXT_;
	store[30].type = IUP_ALIGNMENT;
	store[30].attr = MULTILINE_;

  attrEnv = iupTableCreate(IUPTABLE_STRINGINDEXED);
  attrDefEnv = iupTableCreate(IUPTABLE_STRINGINDEXED);
  for (i=0; i<NATTRIBUTES; i++)
  {
    iupTableSet(attrEnv, attributes[i].name, attributes[i].get, IUP_POINTER);
    iupTableSet(attrDefEnv, attributes[i].name, attributes[i].def, IUP_POINTER);
  }
}