From: Daniel J. S. <seo...@gm...> - 2012-07-04 11:34:50
|
what examples are they? where can I get them? On Jul 4, 2012 7:28 PM, "Roland Kloeters" <rol...@xc...> wrote: > Hi Hermet, > > I finally made with just using a layout. > Thanks for the hint. > > My conformant is not being used any longer. There was one banana skin I > had be fallen over. You have to use elm_object_part_content_set(parent, > "elm.swallow.content", child) instead of elm_object_content_set(parent, > child). > > Now everything is fine with the layout. Nothing hidden under the > indicator and a nice toolbar at the top. > > Kind regards > Roland > > PS: I will change the application to use appcore again for usage in the > Tizen environment. I had seen that in all the examples and it seems to > be needed for resume/reset/terminate and stuff. > > Am 03.07.2012 16:56, schrieb ChunEon Park: > > Even the raser is correct, > > Unfortunately, you don't need the conformant for indicator in Tizen. > > > > You just need a layout.(what I gave you sample) > > > > and appcore is needed for app developers in Tizen. > > Appcore will nofity apps when they should be paused and when they can be > resumed (by phone call, alarm such as things.) > > > > > > ------------------------------------ > > -Regards, Hermet- > > -----Original Message----- > > From: "Roland Kloeters"<rol...@xc...> > > To: "Carsten Haitzler (The Rasterman)"<ra...@ra...>; > > Cc: "Enlightenment developer list"< > enl...@li...>;<he...@na...>; > > Sent: 2012-07-03 (화) 16:49:22 > > Subject: Re: [E-devel] [SOLVED] Problem with indicator space in > conformant > > > > > > Hi folks, > > > > i finally made it happen. > > The indicator problem is gone. > > > > How come: It was a combination of what Carsten Haitzler told me > with what Hermet told me. > > > > You gotta use a conformant AND a layout. > > > > Here is what my code looks like now: > > > > /* > > * main.cpp > > * > > * Created on: Jun 28, 2012 > > * Author: rkloeters > > */ > > > > #include<Elementary.h> > > > > int elm_main(int argc, char *argv[]) > > { > > Evas_Object *win, *conform, *btn, *layout; > > > > win = elm_win_add(NULL, "conformant", ELM_WIN_BASIC); > > elm_win_conformant_set(win, EINA_TRUE); > > elm_win_indicator_mode_set(win, ELM_WIN_INDICATOR_SHOW); > > elm_win_indicator_opacity_set(win, > ELM_WIN_INDICATOR_TRANSPARENT); > > > > conform = elm_conformant_add(win); > > evas_object_size_hint_weight_set(conform, EVAS_HINT_EXPAND, > EVAS_HINT_EXPAND); > > evas_object_size_hint_align_set(conform, EVAS_HINT_FILL, > EVAS_HINT_FILL); > > elm_win_resize_object_add(win, conform); > > evas_object_show(conform); > > > > layout = elm_layout_add(win); > > elm_layout_theme_set(layout, "layout", "application", > "default"); > > evas_object_size_hint_weight_set(layout, EVAS_HINT_EXPAND, > EVAS_HINT_EXPAND); > > elm_win_resize_object_add(win, layout); > > evas_object_show(layout); > > > > btn = elm_button_add(win); > > elm_object_text_set(btn, "Test Conformant"); > > evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND, > EVAS_HINT_EXPAND); > > evas_object_size_hint_align_set(btn, EVAS_HINT_FILL, > EVAS_HINT_FILL); > > evas_object_show(btn); > > elm_object_content_set(conform, btn); > > > > evas_object_show(win); > > elm_run(); > > elm_shutdown(); > > return 0; > > } > > ELM_MAIN() > > > > I stripped it down to the solution Carsten posted before (getting > rid of the appcore stuff). > > > > Now I got a beautiful big fat button not being overlayed by the > indicator. > > > > Thx to everybody for their help. > > > > Kind regards > > Roland > > > > > > Am 03.07.2012 08:23, schrieb Carsten Haitzler (The Rasterman): > On Tue, 03 Jul 2012 08:15:27 +0200 Roland Kloeters< > rol...@xc...>said: Hi Carsten,thank you for the > advice.I tested your simple app - wich is indeed much simpler than my > sample using appcore - but had no success.Even in that simple case the > upper part of the button is hidden under the indicator.So I'll just take it > as "my Tizen image is broken".I'm running Tizen inside the emulator so I > guess I have no chance in upgrading the image, right?I'll post that > question on the Tizen List. yeah. you'll have to assume its > broken. :( "Works For Me" (on newer softwareiterations), so at least from a > development point of view i don't have a bugto fix. i checked to make sure, > because if there was a still a bug - i'd need togo on the todo list. :) > For now I will just make the indicator invisible so it is not in > the way.Unfortunately I have to say: Tizen native app dev documentation is > poor to not existing. That is very sad and will give Tizen a bad start, I > propose.Without people in the position to simple setup their own apps, > Tizen will fastly gain a lack of attention. officially there is > no native development for 3rd parties on tizen. that's why.what happens in > future - is another matter. Hopefully the Tizen core unit will > change that situation as soon as possible.I would love to see Tizen in the > field kicking Androids a**.Kind regardsRolandAm 03.07.2012 05:46, schrieb > Carsten Haitzler (The Rasterman): On Tue, 03 Jul 2012 > 00:46:20 +0200 Roland Kloeters<rol...@xc...>said:ok. first. i > cut your test app down to 1/2 the original code. you had asmall buglet in > setting align on btn before its created. i have usedcurrent upstream efl > and removed all the appcore stuff (aside - appcoreseriously increases base > complexity of any app. you'll notice by theattached modified example). this > is a disagreement i have with the appcoredesign and development, so my > advice is "don't use it". :) we'll have mostif not all things appcore gives > you in core efl (if not already there) in aless painful way. eg appcore's > design assumes u have 1 app == 1 window forone thing.anyway - this is on a > more recent tizen internal build, but i compiled andran the attached (using > upstream efl) and the button is below the indicator- not covered by it, as > it should be. all i can say is there probably is abug in the tizen image > you have that has since been fixed, but due to thefact that tizen > development is opaque and nothing is don't in gitrepositories or no > communication about development work and status, youcan't really know > :(suffice to say "it works as intended for me with pristine upstream efl > (nopatches) with a more recent tizen build". we'll be happy to help you > figureout efl and make apps with it that run on not just tizen but on > regulardesktops too. :) Hello folks,I'm new to > devloping application with enlightment.I made a simple application for my > Tizen environment and had to find outthe conformant I am using is not > concidering the space of the indicator.The application consists of a > window, a conformant and a button.That looks ok except that the button > (which takes all the space) isbeing overlayed by the indicator at the top > of the screen.The conformant should have resized the window so that it fits > below theindicator.Here is my > code:#include<Elementary.h>#include<Ecore_X.h>#include<appcore-efl.h>#include<iostream>typedef > struct __appdata { Evas *evas; Evas_Object *win_main; > Evas_Object *ly_main; /* window */ Evas_Object *navigator;} > appdata;static int app_create(void *data) { Evas_Object *win, *bg, > *conform, *btn, *bx, *en; win = elm_win_add(NULL, "conformant", > ELM_WIN_BASIC); elm_win_borderless_set(win, EINA_TRUE); > elm_win_conformant_set(win, EINA_TRUE); > elm_win_indicator_mode_set(win, ELM_WIN_INDICATOR_SHOW); > elm_win_indicator_opacity_set(win, ELM_WIN_INDICATOR_TRANSPARENT); > evas_object_size_hint_weight_set(win, EVAS_HINT_EXPAND,EVAS_HINT_EXPAND); > conform = elm_conformant_add(win); > evas_object_size_hint_weight_set(conform, > EVAS_HINT_EXPAND,EVAS_HINT_EXPAND); > evas_object_size_hint_align_set(btn, EVAS_HINT_FILL, EVAS_HINT_FILL); > elm_win_resize_object_add(win, conform); evas_object_show(conform); > btn = elm_button_add(win); elm_object_text_set(btn, "Test > Conformant"); evas_object_size_hint_weight_set(btn, > EVAS_HINT_EXPAND,EVAS_HINT_EXPAND); > evas_object_size_hint_align_set(btn, EVAS_HINT_FILL, EVAS_HINT_FILL); > evas_object_show(btn); elm_object_content_set(conform, btn); > evas_object_show(win); return 0;}static int app_terminate(void *data) > { return 0;}static int app_pause(void *data) { return 0;}static > int app_resume(void *data) { return 0;}static int app_reset(bundle *b, > void *data) { return 0;}int main(int argc, char *argv[]) { > appdata ad; struct appcore_ops ops; ops.create = app_create; > ops.terminate = app_terminate; ops.pause = app_pause; ops.resume > = app_resume; ops.reset = app_reset; memset(&ad, 0x0, > sizeof(appdata)); ops.data =&ad; return > appcore_efl_main(PACKAGE,&argc,&argv,&ops);}What am I doing wrong.Any help > is appreciated.Kind > regardsRoland------------------------------------------------------------------------------Live > Security Virtual ConferenceExclusive live event will cover all the ways > today's security andthreat landscape has changed and how IT managers can > respond. Discussionswill include endpoint security, mobile security and the > latest in malwarethreats. > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/_______________________________________________enlightenment-develmailing > lis...@li...https:// > lists.sourceforge.net/lists/listinfo/enlightenment-devel > -- XCOM AGRoland KloetersParkstr. 4247877 > WillichDeutschlandFon: +49 (0) 2154 / 9209 - 9712Fax: +49 (0) 2154 / 9209 - > 77http://www.xcom.de*** XCOM AG Legal Disclaimer ***Diese E-Mail > einschliesslich ihrer Anhaenge ist vertraulich und istallein für den > Gebrauch durch den vorgesehenen Empfaenger bestimmt.Dritten ist das Lesen, > Verteilen oder Weiterleiten dieser E-Mailuntersagt. Wir bitten, eine > fehlgeleitete E-Mail unverzueglichvollstaendig zu loeschen und uns eine > Nachricht zukommen zu lassen.This email may contain material that is > confidential and for the soleuse of the intended recipient. Any review, > distribution by others orforwarding without express permission is strictly > prohibited. If you arenot the intended recipient, please contact the sender > and delete allcopies.Hauptsitz: Bahnstrasse 37, D-47877 Willich, USt-IdNr.: > DE 812 885 664Kommunikation: Telefon +49 2154 9209-70, Telefax +49 2154 > 9209-900,www.xcom.deHandelsregister: Amtsgericht Krefeld, HRB > 10340Vorstand: Matthias Albrecht, Dirk Franzmeyer, Dr. Rainer Fuchs, > MarcoMarty, Dirk WernerVorsitzender des Aufsichtsrates: Stefan H. > Tarach------------------------------------------------------------------------------Live > Security Virtual ConferenceExclusive live event will cover all the ways > today's security and threat landscape has changed and how IT managers can > respond. Discussions will include endpoint security, mobile security and > the latest in malware threats. > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/_______________________________________________enlightenment-develmailing > lis...@li...https:// > lists.sourceforge.net/lists/listinfo/enlightenment-devel > > -- XCOM AGRoland KloetersParkstr. 4247877 WillichDeutschlandFon: > +49 (0) 2154 / 9209 - 9712Fax: +49 (0) 2154 / 9209 - 77http://www.xcom.de*** > XCOM AG Legal Disclaimer ***Diese E-Mail einschliesslich ihrer Anhaenge ist > vertraulich und istallein für den Gebrauch durch den vorgesehenen > Empfaenger bestimmt.Dritten ist das Lesen, Verteilen oder Weiterleiten > dieser E-Mailuntersagt. Wir bitten, eine fehlgeleitete E-Mail > unverzueglichvollstaendig zu loeschen und uns eine Nachricht zukommen zu > lassen.This email may contain material that is confidential and for the > soleuse of the intended recipient. Any review, distribution by others > orforwarding without express permission is strictly prohibited. If you > arenot the intended recipient, please contact the sender and delete > allcopies.Hauptsitz: Bahnstrasse 37, D-47877 Willich, USt-IdNr.: DE 812 885 > 664Kommunikation: Telefon +49 2154 9209-70, Telefax +49 2154 > 9209-900,www.xcom.deHandelsregister: Amtsgericht Krefeld, HRB > 10340Vorstand: Matthias Albrecht, Dirk Franzmeyer, Dr. Rainer Fuchs, > MarcoMarty, Dirk WernerVorsitzender des Aufsichtsrates: Stefan H. Tarach > > -- > XCOM AG > Roland Kloeters > Parkstr. 42 > 47877 Willich > Deutschland > Fon: +49 (0) 2154 / 9209 - 9712 > Fax: +49 (0) 2154 / 9209 - 77 > http://www.xcom.de > > > > > > *** XCOM AG Legal Disclaimer *** > > Diese E-Mail einschliesslich ihrer Anhaenge ist vertraulich und ist > allein für den Gebrauch durch den vorgesehenen Empfaenger bestimmt. > Dritten ist das Lesen, Verteilen oder Weiterleiten dieser E-Mail > untersagt. Wir bitten, eine fehlgeleitete E-Mail unverzueglich > vollstaendig zu loeschen und uns eine Nachricht zukommen zu lassen. > > This email may contain material that is confidential and for the sole > use of the intended recipient. Any review, distribution by others or > forwarding without express permission is strictly prohibited. If you are > not the intended recipient, please contact the sender and delete all > copies. > > Hauptsitz: Bahnstrasse 37, D-47877 Willich, USt-IdNr.: DE 812 885 664 > Kommunikation: Telefon +49 2154 9209-70, Telefax +49 2154 9209-900, > www.xcom.de > Handelsregister: Amtsgericht Krefeld, HRB 10340 > Vorstand: Matthias Albrecht, Dirk Franzmeyer, Dr. Rainer Fuchs, Marco > Marty, Dirk Werner > Vorsitzender des Aufsichtsrates: Stefan H. Tarach > > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > enlightenment-devel mailing list > enl...@li... > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > |