forked from enlightenment/efl
elementary-cxx: Removed example from datetime
This commit is contained in:
parent
e6b074ad21
commit
5929f0311d
|
@ -185,7 +185,6 @@ calendar_cxx_example_03.cc \
|
||||||
calendar_cxx_example_04.cc \
|
calendar_cxx_example_04.cc \
|
||||||
calendar_cxx_example_05.cc \
|
calendar_cxx_example_05.cc \
|
||||||
clock_cxx_example.cc \
|
clock_cxx_example.cc \
|
||||||
datetime_cxx_example.cc \
|
|
||||||
icon_cxx_example_01.cc \
|
icon_cxx_example_01.cc \
|
||||||
button_cxx_example_00.cc
|
button_cxx_example_00.cc
|
||||||
endif
|
endif
|
||||||
|
@ -286,7 +285,6 @@ conformant_example_01 \
|
||||||
conformant_example_02 \
|
conformant_example_02 \
|
||||||
combobox_example_01 \
|
combobox_example_01 \
|
||||||
ctxpopup_example_01 \
|
ctxpopup_example_01 \
|
||||||
datetime_example \
|
|
||||||
dayselector_example \
|
dayselector_example \
|
||||||
diskselector_example_01 \
|
diskselector_example_01 \
|
||||||
diskselector_example_02 \
|
diskselector_example_02 \
|
||||||
|
@ -408,7 +406,6 @@ calendar_cxx_example_03 \
|
||||||
calendar_cxx_example_04 \
|
calendar_cxx_example_04 \
|
||||||
calendar_cxx_example_05 \
|
calendar_cxx_example_05 \
|
||||||
clock_cxx_example \
|
clock_cxx_example \
|
||||||
datetime_cxx_example \
|
|
||||||
icon_cxx_example_01 \
|
icon_cxx_example_01 \
|
||||||
button_cxx_example_00
|
button_cxx_example_00
|
||||||
# examples_PROGRAMS += \
|
# examples_PROGRAMS += \
|
||||||
|
@ -423,7 +420,6 @@ button_cxx_example_00
|
||||||
# icon_cxx_example_01 \
|
# icon_cxx_example_01 \
|
||||||
# hoversel_cxx_example_01 \
|
# hoversel_cxx_example_01 \
|
||||||
# glview_cxx_example_01 \
|
# glview_cxx_example_01 \
|
||||||
# datetime_cxx_example \
|
|
||||||
# clock_cxx_example \
|
# clock_cxx_example \
|
||||||
# calendar_cxx_example_05 \
|
# calendar_cxx_example_05 \
|
||||||
# calendar_cxx_example_04 \
|
# calendar_cxx_example_04 \
|
||||||
|
@ -451,7 +447,6 @@ endif
|
||||||
|
|
||||||
if HAVE_CXX11
|
if HAVE_CXX11
|
||||||
icon_cxx_example_01_SOURCES = icon_cxx_example_01.cc
|
icon_cxx_example_01_SOURCES = icon_cxx_example_01.cc
|
||||||
datetime_cxx_example_SOURCES = datetime_cxx_example.cc
|
|
||||||
clock_cxx_example_SOURCES = clock_cxx_example.cc
|
clock_cxx_example_SOURCES = clock_cxx_example.cc
|
||||||
calendar_cxx_example_05_SOURCES = calendar_cxx_example_05.cc
|
calendar_cxx_example_05_SOURCES = calendar_cxx_example_05.cc
|
||||||
calendar_cxx_example_04_SOURCES = calendar_cxx_example_04.cc
|
calendar_cxx_example_04_SOURCES = calendar_cxx_example_04.cc
|
||||||
|
@ -472,7 +467,6 @@ button_cxx_example_00_SOURCES = button_cxx_example_00.cc
|
||||||
# icon_cxx_example_01_SOURCES = icon_cxx_example_01.cc
|
# icon_cxx_example_01_SOURCES = icon_cxx_example_01.cc
|
||||||
# hoversel_cxx_example_01_SOURCES = hoversel_cxx_example_01.cc
|
# hoversel_cxx_example_01_SOURCES = hoversel_cxx_example_01.cc
|
||||||
# glview_cxx_example_01_SOURCES = glview_cxx_example_01.cc
|
# glview_cxx_example_01_SOURCES = glview_cxx_example_01.cc
|
||||||
# datetime_cxx_example_SOURCES = datetime_cxx_example.cc
|
|
||||||
# clock_cxx_example_SOURCES = clock_cxx_example.cc
|
# clock_cxx_example_SOURCES = clock_cxx_example.cc
|
||||||
# calendar_cxx_example_05_SOURCES = calendar_cxx_example_05.cc
|
# calendar_cxx_example_05_SOURCES = calendar_cxx_example_05.cc
|
||||||
# calendar_cxx_example_04_SOURCES = calendar_cxx_example_04.cc
|
# calendar_cxx_example_04_SOURCES = calendar_cxx_example_04.cc
|
||||||
|
|
|
@ -1,60 +0,0 @@
|
||||||
#ifdef HAVE_CONFIG_H
|
|
||||||
#include "config.h"
|
|
||||||
#include "elementary_config.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <Elementary.hh>
|
|
||||||
|
|
||||||
EAPI_MAIN int
|
|
||||||
elm_main (int argc, char *argv[])
|
|
||||||
{
|
|
||||||
elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_HIDDEN);
|
|
||||||
|
|
||||||
efl::ui::win::Standard win;
|
|
||||||
//win.title_set("Datetime");
|
|
||||||
win.autohide_set(true);
|
|
||||||
|
|
||||||
//::elm::Bg bg(efl::eo::parent = win);
|
|
||||||
//bg.size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
|
||||||
//win.resize_object_add(bg);
|
|
||||||
//bg.efl::Gfx::size_set(100,100);
|
|
||||||
//bg.visible_set(true);
|
|
||||||
|
|
||||||
efl::ui::Box bx(win);
|
|
||||||
//bx.size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
|
||||||
//win.resize_object_add(bx);
|
|
||||||
bx.eo_cxx::efl::Gfx::size_set(20,20);
|
|
||||||
bx.visible_set(true);
|
|
||||||
|
|
||||||
::elm::Datetime datetime(bx);
|
|
||||||
// datetime.size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
|
||||||
// datetime.size_hint_align_set(EVAS_HINT_FILL, EVAS_HINT_FILL);
|
|
||||||
datetime.field_visible_set(ELM_DATETIME_HOUR, false);
|
|
||||||
datetime.field_visible_set(ELM_DATETIME_MINUTE, false);
|
|
||||||
datetime.field_visible_set(ELM_DATETIME_AMPM, false);
|
|
||||||
//bx.pack_end(datetime);
|
|
||||||
datetime.visible_set(true);
|
|
||||||
|
|
||||||
::elm::Datetime datetime2(bx);
|
|
||||||
// datetime2.size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
|
||||||
// datetime2.size_hint_align_set(EVAS_HINT_FILL, 0.5);
|
|
||||||
datetime2.field_visible_set(ELM_DATETIME_YEAR, false);
|
|
||||||
datetime2.field_visible_set(ELM_DATETIME_MONTH, false);
|
|
||||||
datetime2.field_visible_set(ELM_DATETIME_DATE, false);
|
|
||||||
//bx.pack_end(datetime2);
|
|
||||||
datetime2.eo_cxx::efl::Gfx::size_set(200,150);
|
|
||||||
datetime2.visible_set(true);
|
|
||||||
|
|
||||||
::elm::Datetime datetime3(bx);
|
|
||||||
// datetime3.size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
|
||||||
// datetime3.size_hint_align_set(EVAS_HINT_FILL, 0.5);
|
|
||||||
//bx.pack_end(datetime3);
|
|
||||||
datetime3.eo_cxx::efl::Gfx::size_set(200,280);
|
|
||||||
datetime3.visible_set(true);
|
|
||||||
|
|
||||||
win.visible_set(true);
|
|
||||||
|
|
||||||
elm_run();
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
ELM_MAIN()
|
|
Loading…
Reference in New Issue