Exemplo n.º 1
0
/*
 * Populate the list of projections.
 * Note that this list is the same as the planet list -
 * its contents are replaced according to context.
 */
static void _fill_projection_ilist(Evas_Object *ilist, const char *value,
      E_Config_Dialog_Data *cfdata, int *store_item)
{
   Evas *evas;
   int count = -1;

   evas = evas_object_evas_get(ilist);
   evas_event_freeze(evas);
   edje_freeze();
   e_widget_ilist_freeze(ilist);
   e_widget_ilist_clear(ilist);

   _add_ilist_entry(ilist, "Ancient", "ancient", value, _cb_source, cfdata,
         ++count, store_item);
   _add_ilist_entry(ilist, "Azimuthal", "azimuthal", value, _cb_source, cfdata,
         ++count, store_item);
   _add_ilist_entry(ilist, "Bonne", "bonne", value, _cb_source, cfdata, ++count, store_item);
   _add_ilist_entry(ilist, "Equal Area", "equalarea", value, _cb_source,
         cfdata, ++count, store_item);
   _add_ilist_entry(ilist, "Gnomonic", "gnomonic", value, _cb_source, cfdata,
         ++count, store_item);
   _add_ilist_entry(ilist, "Hemisphere", "hemisphere", value, _cb_source,
         cfdata, ++count, store_item);
   _add_ilist_entry(ilist, "Icosagnomonic", "icosagnomonic", value, _cb_source,
         cfdata, ++count, store_item);
   _add_ilist_entry(ilist, "Lambert", "lambert", value, _cb_source, cfdata,
         ++count, store_item);
   _add_ilist_entry(ilist, "Mercator", "mercator", value, _cb_source, cfdata,
         ++count, store_item);
   _add_ilist_entry(ilist, "Mollweide", "mollweide", value, _cb_source, cfdata,
         ++count, store_item);
   _add_ilist_entry(ilist, "Orthographic", "orthographic", value, _cb_source,
         cfdata, ++count, store_item);
   _add_ilist_entry(ilist, "Peters", "peters", value, _cb_source, cfdata,
         ++count, store_item);
   _add_ilist_entry(ilist, "Polyconic", "polyconic", value, _cb_source, cfdata,
         ++count, store_item);
   _add_ilist_entry(ilist, "Rectangular", "rectangular", value, _cb_source,
         cfdata, ++count, store_item);

   e_widget_ilist_go(ilist);
   e_widget_ilist_thaw(ilist);
   edje_thaw();
   evas_event_thaw(evas);
}
Exemplo n.º 2
0
/*
 * Populate the list of planets
 * Note that this list is the same as the projection list -
 * its contents are replaced according to context.
 */
static void _fill_planet_ilist(Evas_Object *ilist, const char *value,
      void(*callback)(void *data), E_Config_Dialog_Data *cfdata, int *store_item)
{
   Evas *evas;
   int count = -1;

   evas = evas_object_evas_get(ilist);
   evas_event_freeze(evas);
   edje_freeze();
   e_widget_ilist_freeze(ilist);
   e_widget_ilist_clear(ilist);

   _add_ilist_entry(ilist, "Sun", "sun", value, callback, cfdata, ++count, store_item);
   _add_ilist_entry(ilist, "Mercury", "mercury", value, callback, cfdata,
         ++count, store_item);
   _add_ilist_entry(ilist, "Venus", "venus", value, callback, cfdata, ++count, store_item);
   _add_ilist_entry(ilist, "Earth", "earth", value, callback, cfdata, ++count, store_item);
   _add_ilist_entry(ilist, "   Moon", "moon", value, callback, cfdata, ++count, store_item);
   _add_ilist_entry(ilist, "Mars", "mars", value, callback, cfdata, ++count, store_item);
   _add_ilist_entry(ilist, "   Phobos", "phobos", value, callback, cfdata,
         ++count, store_item);
   _add_ilist_entry(ilist, "   Deimos", "deimos", value, callback, cfdata,
         ++count, store_item);
   _add_ilist_entry(ilist, "Jupiter", "jupiter", value, callback, cfdata,
         ++count, store_item);
   _add_ilist_entry(ilist, "   Io", "io", value, callback, cfdata, ++count, store_item);
   _add_ilist_entry(ilist, "   Europa", "europa", value, callback, cfdata,
         ++count, store_item);
   _add_ilist_entry(ilist, "   Ganymede", "ganymede", value, callback, cfdata,
         ++count, store_item);
   _add_ilist_entry(ilist, "   Callisto", "callisto", value, callback, cfdata,
         ++count, store_item);
   _add_ilist_entry(ilist, "Saturn", "saturn", value, callback, cfdata, ++count, store_item);
   _add_ilist_entry(ilist, "   Mimas", "mimas", value, callback, cfdata, ++count, store_item);
   _add_ilist_entry(ilist, "   Enceladus", "enceladus", value, callback,
         cfdata, ++count, store_item);
   _add_ilist_entry(ilist, "   Tethys", "tethys", value, callback, cfdata,
         ++count, store_item);
   _add_ilist_entry(ilist, "   Dione", "dione", value, callback, cfdata, ++count, store_item);
   _add_ilist_entry(ilist, "   Rhea", "rhea", value, callback, cfdata, ++count, store_item);
   _add_ilist_entry(ilist, "   Titan", "titan", value, callback, cfdata, ++count, store_item);
   _add_ilist_entry(ilist, "   Hyperion", "hyperion", value, callback, cfdata,
         ++count, store_item);
   _add_ilist_entry(ilist, "   Iapetus", "iapetus", value, callback, cfdata,
         ++count, store_item);
   _add_ilist_entry(ilist, "   Phoebe", "phoebe", value, callback, cfdata,
         ++count, store_item);
   _add_ilist_entry(ilist, "Uranus", "uranus", value, callback, cfdata, ++count, store_item);
   _add_ilist_entry(ilist, "   Miranda", "miranda", value, callback, cfdata,
         ++count, store_item);
   _add_ilist_entry(ilist, "   Ariel", "ariel", value, callback, cfdata, ++count, store_item);
   _add_ilist_entry(ilist, "   Umbriel", "umbriel", value, callback, cfdata,
         ++count, store_item);
   _add_ilist_entry(ilist, "   Titania", "titania", value, callback, cfdata,
         ++count, store_item);
   _add_ilist_entry(ilist, "   Oberon", "oberon", value, callback, cfdata,
         ++count, store_item);
   _add_ilist_entry(ilist, "Neptune", "neptune", value, callback, cfdata,
         ++count, store_item);
   _add_ilist_entry(ilist, "   Triton", "triton", value, callback, cfdata,
         ++count, store_item);
   _add_ilist_entry(ilist, "   Nereid", "nereid", value, callback, cfdata,
         ++count, store_item);
   _add_ilist_entry(ilist, "Pluto", "pluto", value, callback, cfdata, ++count, store_item);
   _add_ilist_entry(ilist, "   Charon", "charon", value, callback, cfdata,
         ++count, store_item);
   _add_ilist_entry(ilist, "Random", "random", value, callback, cfdata, ++count, store_item);

   e_widget_ilist_go(ilist);
   e_widget_ilist_thaw(ilist);
   edje_thaw();
   evas_event_thaw(evas);
}
Exemplo n.º 3
0
static void cb_ee_pre_render(Ecore_Evas *ee) {
	edje_thaw();
}