Changeset 15243


Ignore:
Timestamp:
04/13/12 00:51:45 (11 years ago)
Author:
obi
Message:

[titan] update grid fix changing view modes

Location:
titan
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • titan/plugins/mc/mc_global.h

    r15220 r15243  
    1717                        node->fontsize = 0;
    1818                        node->height = 0;
     19                        node->width = 0;
     20                        node->height = 0;
     21                        node->bgcol = 0;
     22                        node->transparent = 0;
     23                        node->prozwidth = 0;
     24                        node->posx = 0;
    1925                }
    2026                node = node->next;
     
    2228
    2329        if(view == 0)
    24                 filelist->fontsize = 25;       
     30        {
     31                filelist->fontsize = 25;//, fontspace = 5;
     32                filelist->height = 480;
     33                filelist->width = 1160;
     34                filelist->prozwidth = 0;
     35                filelist->posx = 40;
     36                filelist->transparent = -1;
     37                filelist->bgcol = -1;
     38        }
    2539        else if(view == 1)
    26                 filelist->fontsize = 40;
     40        {
     41                filelist->fontsize = 35;//, fontspace = 5;
     42                filelist->height = 480;
     43                filelist->width = 1160;
     44                filelist->prozwidth = 0;
     45                filelist->posx = 40;
     46                filelist->transparent = -1;
     47                filelist->bgcol = -1;
     48                filelist->prozwidth = 0;               
     49        }
     50        else if(view == 2)
     51        {
     52                filelist->fontsize = 20;//, fontspace = 5;
     53                filelist->height = 480;
     54                filelist->width = 1160;
     55                filelist->prozwidth = 0;       
     56                filelist->posx = 40;
     57                filelist->transparent = -1;
     58                filelist->bgcol = -1;   
     59        }
    2760        else if(view == 3)
    28                 filelist->fontsize = 25;
     61        {
     62                filelist->fontsize = 30;//, fontspace = 5;
     63                filelist->height = 480;
     64                filelist->width = 1160;
     65                filelist->prozwidth = 0;
     66                filelist->posx = 40;
     67                filelist->transparent = -1;
     68                filelist->bgcol = -1;
     69                filelist->prozwidth = 0;               
     70        }
    2971        else if(view == 4)
    30                 filelist->fontsize = 20;
     72        {
     73                filelist->fontsize = 25;//, fontspace = 5;
     74                filelist->height = 480;
     75                filelist->width = 1160;
     76                filelist->prozwidth = 0;
     77                filelist->posx = 40;
     78                filelist->transparent = -1;
     79                filelist->bgcol = -1;
     80                filelist->prozwidth = 0;       
     81        }
    3182        else if(view == 5)
    32                 filelist->fontsize = 25;
    33         else
    34                 filelist->fontsize = 25;
     83        {
     84                filelist->fontsize = 25;//, fontspace = 10;
     85                filelist->height = 350;
     86                filelist->width = 600;
     87                filelist->prozwidth = 0;               
     88                filelist->bgcol = 0x474747;
     89                filelist->transparent = 40;
     90                filelist->posx = 20;
     91        }       
    3592}
    3693
  • titan/plugins/mc/mc_pictureplayer.h

    r15235 r15243  
    5959
    6060        getfilelist(apskin, filelistpath, filelist, currentdirectory, filemask, tmpview, NULL);
     61        mc_changeview(view, filelist);
    6162        addscreenrc(apskin, filelist);
    6263
     
    202203                                drawscreen(skin, 0);
    203204                                getfilelist(apskin, filelistpath, filelist, filelistpath->text, filemask, tmpview, filelist->select->text);
     205                                mc_changeview(view, filelist);
    204206                                addscreenrc(apskin, filelist);
    205207                                                       
  • titan/plugins/mc/mc_videoplayer.h

    r15231 r15243  
    6464
    6565        tmpview = view;
    66 //      mc_changeview(view, filelist);
     66        mc_changeview(view, filelist);
    6767
    6868        printf("111111111: view=%d tmpview=%d\n", view, tmpview);
     
    7070//      filelist->fontsize = 25;
    7171        getfilelist(apskin, filelistpath, filelist, currentdirectory, filemask, tmpview, NULL);
     72//      mc_changeview(view, filelist);
     73       
    7274        addscreenrc(apskin, filelist);
    7375
     
    284286                                }
    285287
     288                                view = getconfigint("view", NULL);
     289                               
     290                                mc_changeview(view, filelist);
     291
     292                                delownerrc(apskin);     
     293//                              getfilelist(apskin, filelistpath, filelist, filelistpath->text, filemask, tmpview, filelist->select->text);
     294                                getfilelist(apskin, filelistpath, filelist, filelistpath->text, filemask, view, filelist->select->text);
     295                                addscreenrc(apskin, filelist);
     296
    286297//                              mc_changeview(view, filelist);
    287 
    288 //new
    289 //                              clearscreen(apskin);
    290 
    291 
    292                                 delownerrc(apskin);     
    293                                 getfilelist(apskin, filelistpath, filelist, filelistpath->text, filemask, tmpview, filelist->select->text);
    294                                 addscreenrc(apskin, filelist);
    295                                 drawscreen(skin, 0);
     298                                                               
     299//                              drawscreen(skin, 0);
    296300//                              status.filelistextend = view;
    297301
  • titan/titan/filelist.h

    r15235 r15243  
    217217        }
    218218
    219         if(status.filelistextend == 2) node->type |= GRID;
     219        if(status.filelistextend == 2)
     220                node->type |= GRID;
     221        else
     222                node->type &= ~(GRID);
     223       
    220224
    221225        status.tmp = node->input;
     
    264268? cover3 (list + imdb)
    265269*/
    266         int fontsize = 20;
    267         int fontspace = 2;
    268         int width = 0;
    269         int height = 0;
    270                
    271 //      if(status.filelistextend == 0)
    272 //              fontsize = 30, fontspace = 5;   
    273         if(status.filelistextend == 1)
    274                 fontsize = 35, fontspace = 5;
    275         else if(status.filelistextend == 2)
    276                 fontsize = 20, fontspace = 5;
    277         else if(status.filelistextend == 3)
    278                 fontsize = 30, fontspace = 5;
    279         else if(status.filelistextend == 4)
    280                 fontsize = 25, fontspace = 5;
    281         else if(status.filelistextend == 5)
    282         {
    283                 fontsize = 25, fontspace = 10;
    284                 width = 600;
    285                 height = 350;
    286         }
    287 
    288         if(status.filelistextend == 5)
    289         {
    290                 node->height = height;
    291                 node->width = width;
    292                 node->bgcol = 0x474747;
    293                 node->transparent = 40;
    294                 node->prozwidth = 0;
    295                 node->posx = 20;
    296         }
    297270
    298271        if(status.filelistextend == 2 && parentdir != NULL)
     
    311284                parentdir->halign = CENTER;
    312285                parentdir->valign = TEXTBOTTOM;
    313                 parentdir->fontsize = fontsize;
    314286                posx += parentdir->width;
    315287               
     
    348320                        if(child != NULL)
    349321                        {
    350                                 if(status.filelistextend != 0)
    351                                         child->fontsize = fontsize;
    352322                                if(status.filelistextend == 2)
    353323                                {
     
    441411                                        child->width = 100;                                                                                                                                     
    442412                                        child->prozwidth = 1;
    443                                         if(status.filelistextend == 0)
    444                                                 child->height = node->fontsize + 2 + (node->bordersize * 2);
    445                                         else
    446                                                 child->height = child->fontsize + fontspace + (node->bordersize * 2);                                   
    447 
     413                                        child->height = node->fontsize + 2 + (node->bordersize * 2);
    448414                                        child->textposx = node->textposx;                               
    449415                                }
     
    520486                                {
    521487                                        debug(10, "filename: %s", filelist[i]->d_name);
    522                                         if(status.filelistextend != 0)
    523                                                 child->fontsize = fontsize;
    524488                                        if(status.filelistextend == 2)
    525489                                        {
     
    545509                                                {
    546510                                                        tmpstr = ostrcat(createpath(node->input, "/"), filelist[i]->d_name, 1, 0);
    547                                                         child->picheight = 210;
    548                                                         child->picwidth = 350;
     511//                                                      child->picheight = 210;
     512//                                                      child->picwidth = 350;
     513                                                        child->picwidth = 1;
     514                                                        child->picheight = 1;
    549515                                                }
    550516                                                else if(cmpfilenameext(filelist[i]->d_name, ".iso") == 0)
     
    614580                                                child->width = 100;
    615581                                                child->prozwidth = 1;
    616                                                 if(status.filelistextend == 0)
    617                                                         child->height = node->fontsize + 2 + (node->bordersize * 2);
    618                                                 else   
    619                                                         child->height = child->fontsize + fontspace + (node->bordersize * 2);
     582                                                child->height = node->fontsize + 2 + (node->bordersize * 2);
    620583
    621584                                                child->textposx = node->textposx;                       
Note: See TracChangeset for help on using the changeset viewer.