Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Sobota, 24. október 2026

Rozdiely pre tucniak/cuchar/cc_key.c medzi verziami 1.2 a 1.3

verzia 1.2, 2005/11/27 20:14:50 verzia 1.3, 2005/11/29 18:46:31
Riadok 1 
Riadok 1 
 /*  /*
   Name: lc_key.c    Name: cc_key.c
   Author: Michal Sudolsky    Author: Michal Sudolsky <michals@sulysoft.com>
   Date: 22.09.2005 14:45    Date: 22.09.2005 14:45
 */  */
 // modified by Juraj Kolesar <koli@koli.sk>  // modified by Juraj Kolesar <koli@koli.sk>
Riadok 322  bool dosendsyskeymessage(WIN *spcfocus,u
Riadok 322  bool dosendsyskeymessage(WIN *spcfocus,u
     vscroll=&list->vscroll->extra->scroll;      vscroll=&list->vscroll->extra->scroll;
     hscroll=&list->hscroll->extra->scroll;      hscroll=&list->hscroll->extra->scroll;
     actline=list->activeline;      actline=list->activeline;
     numlines=g_list_length(list->lines);      numlines=list->numlines;
     switch(key)      switch(key)
     {      {
       case KK_LEFT:if(hscroll->pos>hscroll->minpos){hscroll->pos--;chang=true;}gets=true;break;        case KK_LEFT:if(hscroll->pos>hscroll->minpos){hscroll->pos--;chang=true;}gets=true;break;
Riadok 345  bool dosendsyskeymessage(WIN *spcfocus,u
Riadok 345  bool dosendsyskeymessage(WIN *spcfocus,u
       if(list->dblclk!=NULL)        if(list->dblclk!=NULL)
       {        {
         if((list->combotyp==CT_COMBO)&&(spcfocus->parent!=NULL)&&          if((list->combotyp==CT_COMBO)&&(spcfocus->parent!=NULL)&&
            (spcfocus->parent->extra->type==TP_COMBO))             (spcfocus->parent->extra->type==TP_COMBO)&&(list->activeitem!=NULL))
         {          {
           combo=&spcfocus->parent->extra->combo;            combo=&spcfocus->parent->extra->combo;
           char *data=g_list_nth_data(list->lines,list->activeline);            char *data=list->activeitem->data;
           set_text(combo->edit,data);            set_text(combo->edit,data);
         }          }
         list->dblclk(spcfocus);          list->dblclk(spcfocus);
Riadok 372  bool dosendsyskeymessage(WIN *spcfocus,u
Riadok 372  bool dosendsyskeymessage(WIN *spcfocus,u
     if(list->activeline-spcfocus->vy+3>vscroll->pos)vscroll->pos=list->activeline-spcfocus->vy+3;      if(list->activeline-spcfocus->vy+3>vscroll->pos)vscroll->pos=list->activeline-spcfocus->vy+3;
     if(actline!=list->activeline)      if(actline!=list->activeline)
     {      {
         setlistactiveitem(list,actline,list->activeline);
       if(list->change!=NULL)list->change(spcfocus);        if(list->change!=NULL)list->change(spcfocus);
       chang=true;        chang=true;
     }      }
Riadok 381  bool dosendsyskeymessage(WIN *spcfocus,u
Riadok 382  bool dosendsyskeymessage(WIN *spcfocus,u
     list=&combo->list->extra->list;      list=&combo->list->extra->list;
     vscroll=&list->vscroll->extra->scroll;      vscroll=&list->vscroll->extra->scroll;
     actline=combo->activeline;      actline=combo->activeline;
     numlines=g_list_length(list->lines);      numlines=list->numlines;
     x=spcfocus->vx-1;      x=spcfocus->vx-1;
     y=0;      y=0;
     client_to_screen(spcfocus,&x,&y);      client_to_screen(spcfocus,&x,&y);

Legend:
Odstranené z verzie1.2  
zmenené riadky
  Pridané vo verzii1.3

Platon Group <platon@platon.sk> http://platon.sk/
Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok