forked from enlightenment/terminology
mv options_helpers.{c,h} options_mouse.{c,h}
This commit is contained in:
parent
c011c48720
commit
08bfebcf6d
|
@ -18,7 +18,7 @@ A simple documentation to navige through the C files:
|
||||||
* `src/bin/options_colors.c`: the settings panel about colors in the terminal
|
* `src/bin/options_colors.c`: the settings panel about colors in the terminal
|
||||||
* `src/bin/options_elm.c`: the settings panel to configure Elementary
|
* `src/bin/options_elm.c`: the settings panel to configure Elementary
|
||||||
* `src/bin/options_font.c`: the settings panel to choose the Font
|
* `src/bin/options_font.c`: the settings panel to choose the Font
|
||||||
* `src/bin/options_helpers.c`: the settings panel on Helpers
|
* `src/bin/options_mouse.c`: the settings panel on mouse interactions
|
||||||
* `src/bin/options_keys.c`: the settings panel to configure key bindings
|
* `src/bin/options_keys.c`: the settings panel to configure key bindings
|
||||||
* `src/bin/options_theme.c`: the settings panel to choose a theme
|
* `src/bin/options_theme.c`: the settings panel to choose a theme
|
||||||
* `src/bin/options_themepv.c`: the widget that handles theme previews
|
* `src/bin/options_themepv.c`: the widget that handles theme previews
|
||||||
|
|
|
@ -15,7 +15,7 @@ terminology_sources = ['private.h',
|
||||||
'options_colors.c', 'options_colors.h',
|
'options_colors.c', 'options_colors.h',
|
||||||
'options_behavior.c', 'options_behavior.h',
|
'options_behavior.c', 'options_behavior.h',
|
||||||
'options_keys.c', 'options_keys.h',
|
'options_keys.c', 'options_keys.h',
|
||||||
'options_helpers.c', 'options_helpers.h',
|
'options_mouse.c', 'options_mouse.h',
|
||||||
'options_elm.c', 'options_elm.h',
|
'options_elm.c', 'options_elm.h',
|
||||||
'sel.c', 'sel.h',
|
'sel.c', 'sel.h',
|
||||||
'miniview.c', 'miniview.h',
|
'miniview.c', 'miniview.h',
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
#include "options_colors.h"
|
#include "options_colors.h"
|
||||||
#include "options_behavior.h"
|
#include "options_behavior.h"
|
||||||
#include "options_keys.h"
|
#include "options_keys.h"
|
||||||
#include "options_helpers.h"
|
#include "options_mouse.h"
|
||||||
#include "options_elm.h"
|
#include "options_elm.h"
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "termio.h"
|
#include "termio.h"
|
||||||
|
@ -23,7 +23,7 @@ enum option_mode {
|
||||||
OPTION_BACKGROUND,
|
OPTION_BACKGROUND,
|
||||||
OPTION_COLORS,
|
OPTION_COLORS,
|
||||||
OPTION_KEYS,
|
OPTION_KEYS,
|
||||||
OPTION_HELPERS,
|
OPTION_MOUSE,
|
||||||
OPTION_ELM,
|
OPTION_ELM,
|
||||||
|
|
||||||
OPTIONS_MODE_NB
|
OPTIONS_MODE_NB
|
||||||
|
@ -82,16 +82,16 @@ _cb_opdt_hide_done(void *data,
|
||||||
elm_box_clear(ctx->opbox);
|
elm_box_clear(ctx->opbox);
|
||||||
switch (ctx->mode)
|
switch (ctx->mode)
|
||||||
{
|
{
|
||||||
case OPTION_NONE: break;
|
case OPTION_NONE: break;
|
||||||
case OPTION_BEHAVIOR: options_behavior(ctx->opbox, ctx->term); break;
|
case OPTION_BEHAVIOR: options_behavior(ctx->opbox, ctx->term); break;
|
||||||
case OPTION_FONT: options_font(ctx->opbox, ctx->term); break;
|
case OPTION_FONT: options_font(ctx->opbox, ctx->term); break;
|
||||||
case OPTION_THEME: options_theme(ctx->opbox, ctx->term); break;
|
case OPTION_THEME: options_theme(ctx->opbox, ctx->term); break;
|
||||||
case OPTION_BACKGROUND: options_background(ctx->opbox, ctx->term); break;
|
case OPTION_BACKGROUND: options_background(ctx->opbox, ctx->term); break;
|
||||||
case OPTION_COLORS: options_colors(ctx->opbox, ctx->term, ctx->bg); break;
|
case OPTION_COLORS: options_colors(ctx->opbox, ctx->term, ctx->bg); break;
|
||||||
case OPTION_KEYS: options_keys(ctx->opbox, ctx->term); break;
|
case OPTION_KEYS: options_keys(ctx->opbox, ctx->term); break;
|
||||||
case OPTION_HELPERS: options_helpers(ctx->opbox, ctx->term); break;
|
case OPTION_MOUSE: options_mouse(ctx->opbox, ctx->term); break;
|
||||||
case OPTION_ELM: options_elm(ctx->opbox, ctx->term); break;
|
case OPTION_ELM: options_elm(ctx->opbox, ctx->term); break;
|
||||||
case OPTIONS_MODE_NB: assert(0 && "should not occur");
|
case OPTIONS_MODE_NB: assert(0 && "should not occur");
|
||||||
}
|
}
|
||||||
elm_layout_signal_emit(ctx->base, "optdetails,show", "terminology");
|
elm_layout_signal_emit(ctx->base, "optdetails,show", "terminology");
|
||||||
}
|
}
|
||||||
|
@ -215,12 +215,12 @@ options_show(Evas_Object *win, Evas_Object *base, Evas_Object *bg, Evas_Object *
|
||||||
(void*) &ctx->modes[OPTION_##_option_mode])
|
(void*) &ctx->modes[OPTION_##_option_mode])
|
||||||
|
|
||||||
it_fn = ITEM_APPEND("preferences-system", _("Behavior"), BEHAVIOR);
|
it_fn = ITEM_APPEND("preferences-system", _("Behavior"), BEHAVIOR);
|
||||||
|
ITEM_APPEND("input-mouse", _("Mouse"), MOUSE);
|
||||||
ITEM_APPEND("preferences-desktop-font", _("Font"), FONT);
|
ITEM_APPEND("preferences-desktop-font", _("Font"), FONT);
|
||||||
ITEM_APPEND("preferences-desktop-theme", _("Theme"), THEME);
|
ITEM_APPEND("preferences-desktop-theme", _("Theme"), THEME);
|
||||||
ITEM_APPEND("preferences-desktop-wallpaper", _("Background"), BACKGROUND);
|
ITEM_APPEND("preferences-desktop-wallpaper", _("Background"), BACKGROUND);
|
||||||
ITEM_APPEND("preferences-color", _("Colors"), COLORS);
|
ITEM_APPEND("preferences-color", _("Colors"), COLORS);
|
||||||
ITEM_APPEND("preferences-desktop-keyboard", _("Keys"), KEYS);
|
ITEM_APPEND("preferences-desktop-keyboard", _("Keys"), KEYS);
|
||||||
ITEM_APPEND("system-run", _("Helpers"), HELPERS);
|
|
||||||
ITEM_APPEND("preferences-desktop", _("Toolkit"), ELM);
|
ITEM_APPEND("preferences-desktop", _("Toolkit"), ELM);
|
||||||
#undef ITEM_APPEND
|
#undef ITEM_APPEND
|
||||||
|
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
#ifndef _OPTIONS_HELPERS_H__
|
|
||||||
#define _OPTIONS_HELPERS_H__ 1
|
|
||||||
|
|
||||||
void options_helpers(Evas_Object *opbox, Evas_Object *term);
|
|
||||||
|
|
||||||
#endif
|
|
|
@ -4,7 +4,7 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "termio.h"
|
#include "termio.h"
|
||||||
#include "options.h"
|
#include "options.h"
|
||||||
#include "options_helpers.h"
|
#include "options_mouse.h"
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -180,7 +180,7 @@ _cb_op_helper_local_general_chg(void *data,
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
options_helpers(Evas_Object *opbox, Evas_Object *term)
|
options_mouse(Evas_Object *opbox, Evas_Object *term)
|
||||||
{
|
{
|
||||||
Config *config = termio_config_get(term);
|
Config *config = termio_config_get(term);
|
||||||
Evas_Object *o, *tb, *sc, *fr, *bx;
|
Evas_Object *o, *tb, *sc, *fr, *bx;
|
||||||
|
@ -190,7 +190,7 @@ options_helpers(Evas_Object *opbox, Evas_Object *term)
|
||||||
fr = o = elm_frame_add(opbox);
|
fr = o = elm_frame_add(opbox);
|
||||||
evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
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);
|
evas_object_size_hint_align_set(o, EVAS_HINT_FILL, EVAS_HINT_FILL);
|
||||||
elm_object_text_set(o, _("Helpers"));
|
elm_object_text_set(o, _("Mouse"));
|
||||||
elm_box_pack_end(opbox, o);
|
elm_box_pack_end(opbox, o);
|
||||||
evas_object_show(o);
|
evas_object_show(o);
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
#ifndef _OPTIONS_MOUSE_H__
|
||||||
|
#define _OPTIONS_MOUSE_H__ 1
|
||||||
|
|
||||||
|
void options_mouse(Evas_Object *opbox, Evas_Object *term);
|
||||||
|
|
||||||
|
#endif
|
Loading…
Reference in New Issue