make it a first-class terminal:
[X] evas textgrid needs creating and to be used
-[ ] underline and strikethrough need supporting at termio level
+[X] underline and strikethrough need supporting at termio level
[ ] blink and blink2 attributes need to be supported
[ ] improve terminal emulation handling (i know it doesn't handle gfx
chars and it definitely has an incomplete escape handling core -
then maybe not according to convention)
[ ] general input mode handling improvements (keypad, other key
input, mousereporting etc.)
-[ ] save of config after options changes (option checkbox for
+[X] save of config after options changes (option checkbox for
temporary local only changes)
[ ] selection of themes
[ ] selection of background "wallpapers" (and support them at all -
}
else
config->theme = eina_stringshare_add(argv[i]);
+ config_tmp = EINA_TRUE;
}
else if ((!strcmp(argv[i], "-b")) && (i < (argc - 1)))
{
i++;
if (config->background) eina_stringshare_del(config->background);
config->background = eina_stringshare_add(argv[i]);
+ config_tmp = EINA_TRUE;
}
else if ((!strcmp(argv[i], "-m")) && (i < (argc - 1)))
{
i++;
config->mute = atoi(argv[i]);
+ config_tmp = EINA_TRUE;
}
else if ((!strcmp(argv[i], "-vm")) && (i < (argc - 1)))
{
else if (!strcmp(argv[i], "gstreamer")) config->vidmod = 1;
else if (!strcmp(argv[i], "xine")) config->vidmod = 2;
else if (!strcmp(argv[i], "generic")) config->vidmod = 3;
+ config_tmp = EINA_TRUE;
}
}
#include "options_font.h"
#include "options_behavior.h"
#include "options_video.h"
+#include "config.h"
-static Evas_Object *op_frame, *op_box = NULL, *op_toolbar = NULL, *op_opbox = NULL;
+static Evas_Object *op_frame, *op_box = NULL, *op_toolbar = NULL,
+ *op_opbox = NULL, *op_tbox = NULL, *op_temp = NULL;
static Eina_Bool op_out = EINA_FALSE;
static void
options_behavior(op_opbox, data);
}
+static void
+_cb_op_tmp_chg(void *data, Evas_Object *obj, void *event)
+{
+ config_tmp = elm_check_state_get(obj);
+}
+
void
options_toggle(Evas_Object *win, Evas_Object *bg, Evas_Object *term)
{
elm_box_pack_end(op_box, o);
evas_object_show(o);
+ op_tbox = o = elm_box_add(win);
+ evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ evas_object_size_hint_align_set(o, EVAS_HINT_FILL, EVAS_HINT_FILL);
+ elm_box_pack_end(op_box, o);
+ evas_object_show(o);
+
op_toolbar = o = elm_toolbar_add(win);
+ evas_object_size_hint_weight_set(o, 0.0, EVAS_HINT_EXPAND);
+ evas_object_size_hint_align_set(o, 0.5, 0.0);
elm_toolbar_horizontal_set(o, EINA_FALSE);
elm_object_style_set(o, "item_horizontal");
evas_object_size_hint_weight_set(o, 0.0, 0.0);
it_bh = elm_toolbar_item_append(o, "system-run",
"Behavior", _cb_op_behavior, term);
- elm_box_pack_end(op_box, o);
+ elm_box_pack_end(op_tbox, o);
evas_object_show(o);
elm_toolbar_item_selected_set(it_fn, EINA_TRUE);
+
+ op_temp = o = elm_check_add(win);
+ evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ evas_object_size_hint_align_set(o, EVAS_HINT_FILL, 1.0);
+ elm_object_text_set(o, "Temporary");
+ elm_check_state_set(o, config_tmp);
+ elm_box_pack_end(op_tbox, o);
+ evas_object_show(o);
+ evas_object_smart_callback_add(o, "changed", _cb_op_tmp_chg, NULL);
- evas_smart_objects_calculate(evas_object_evas_get(win));
+// evas_smart_objects_calculate(evas_object_evas_get(win));
edje_object_part_swallow(bg, "terminology.options", op_frame);
evas_object_show(o);
}