MySideBarInfo V1.3.fix : Эльфы : Форум

Страница 1 из 4: [1] 2 3 4 »

 albertnet3:
12.09.10, 02:22
 elf name: MySideBarInfo
Autor: albertnet3
V1.3.fix

enjoy !!!

I think this elf is not more mini-elf, if any member of the staff to mobilefree considers elf mini please move.
greetings ;)
changelog: 

put elf in your preference Zbin or Daemons.
create folder name MySideBarInfo in:
card/other/Zbin/Config/MySideBarInfo

and put the imagen MySideBarInfo.png in the folder MySideBarInfo
add my imagen.png for you ;)
thanks to me friend zhero for created the SideBar.png
Sshot:




[ Edited by albertnet3 в 15.9.10 19:47 ]

[ Edited by albertnet3 в 30.9.10 20:52 ]

[ Edited by albertnet3 в 30.9.10 21:14 ]

Прикрепленный к сообщению файл:

MySideBarInfo_V1_2.zip MySideBarInfo_V1_2.zip (21.01 kb; 249 hits) Скачать файл
MySideBarInfo_V1.3.elf MySideBarInfo_V1.3.elf (28.39 kb; 248 hits) Скачать файл
MySideBarInfoV1.3.fix.zip MySideBarInfoV1.3.fix.zip (8.15 kb; 293 hits) Скачать файл

 den_po:
12.09.10, 02:31
 опять это дурацкое деление на v1/v2/etc

 albertnet3:
12.09.10, 02:38
 den_po, hello master I separate in a2 V1 and A2 v2 for funtions GetVolumenZise is Diferent the method for used in diferent plataform
Код: 
{
       if(SelecDB==0){
     int CARD_ID;
   VOLUMESIZE vol1;
   GetVolumeSize((wchar_t*)L"/card/",&vol1);
   {
   int CARDID[2];
   CARDID[0] = int2strID((unsigned long int)vol1.FreeSpace/1048576);
   CARDID[1] = Str2ID(" MB", 1, 3);
   CARD_ID = Str2ID(CARDID, 5, 2);
   }
   SetFont(font_8);
   DrawString(CARD_ID,0,X_POS_8,Y_POS_8,X_POS_8+200,Y_POS_8+50,10,0x05,ColorCard,ColorCard);
   TextFree(CARD_ID);
  }
   if(SelecDB==1){
    int CARD_ID;  
   VOLUMESIZE_A2 vol1;
   GetVolumeSize((wchar_t*)L"/card/",(VOLUMESIZE*)&vol1);
   {
   int CARDID[2];
   CARDID[0] = int2strID((unsigned long int)vol1.FreeSpace/1048576);
   CARDID[1] = Str2ID(" MB", 1, 3);
   CARD_ID = Str2ID(CARDID, 5, 2);
   }
   SetFont(font_8);
   DrawString(CARD_ID,0,X_POS_8,Y_POS_8,X_POS_8+200,Y_POS_8+50,10,0x05,ColorCard,ColorCard);
   TextFree(CARD_ID);
      }
   } 


 den_po:
12.09.10, 03:09
 albertnet3, man, VOLUMESIZE_A2 is used for all A2 phones. use getchipid for detect platform.

and once again: a2 phones classification used at se-nse is stupid

 blacklizard:
12.09.10, 03:23
 
den_po пишет:
albertnet3, man, VOLUMESIZE_A2 is used for all A2 phones. use getchipid for detect platform.

and once again: a2 phones classification used at se-nse is stupid


With due respect.

Why VOLUMESIZE_A2 returns wrong value for W890, W910, W890, K850...?
Can you show the correct example?

Thanks

 den_po:
12.09.10, 04:39
 blacklizard,
С702
compare images ;)


Добавлено 12.9.10 05:11

ok

Код: 

long long totalspace;
long long freespace;

switch( GetChipID() & CHIPID_MASK )
{
  case CHIPID_DB2000:
  case CHIPID_DB2010:
  case CHIPID_DB2020:
  case CHIPID_PNX5230:
  {
     VOLUMESIZE vs;
     GetVolumeSize( L"/card", &vs );
     totalspace = (long long) vs.BytesPerCluster * vs.TotalClusters;
     freespace = (long long) vs.BytesPerCluster * vs.TotalFreeClusters;
     break;
  }
  case CHIPID_DB3150:
  case CHIPID_DB3200:
  case CHIPID_DB3210:
  case CHIPID_DB3350:
  {
     VOLUMESIZE_A2 vs;
     GetVolumeSize( L"/card", &vs );
     totalspace = vs.TotalSpace;
     freespace = vs.FreeSpace;
     break;
  }
  default:
     //unknown platform
     totalspace = 0;
     freespace = 0;
}


there is no need to use typecasting when you use a result as integer. also such typecasting may cause dataloss for volumes larger than 2GB when used int and 4GB when used unsigned int.
if you want to print "long long" with *printf functions, use "%lld" mask.

Прикрепленный к сообщению файл:

sshot.PNG sshot.PNG (17.95 kb; 1144 hits) Скачать файл
windows.png windows.png (16.97 kb; 1144 hits) Скачать файл

 albertnet3:
16.09.10, 01:40
 elf name: MySideBarInfo
Autor: albertnet3
V1.3

enjoy !!!
+delete option select your DB, Thanks den_po for your explaind for correctly method for using GetVolumenSize for all plataforms.
+add option to show or hide Battery charge Bar.
+add option to show or hide Memory card Bar.
+add option to show or hide Memory phone Bar.
blacklizard, joost206, thanks friends for all ;)

This new version update in the first post ;)



 DemoN-PC:
20.09.10, 19:43
 albertnet3, привет!сделай пожалуйста что бы память показывал сколько свободно из общего объема флешки и телефона и что бы для каждого пункта можно было подгонять картинку а не только один бар что бы был

 degafe:
20.09.10, 21:09
 albernet, share file mySidebarInfo.png of version 1.3 please!

good elf!!

 Sahib:
21.09.10, 02:58
 Perfect elf but can u add eanglish on it ?
Страница 1 из 4: [1] 2 3 4 »

URL этой темы:
https://mobilefree.justdanpo.ru/newbb_plus/viewtopic.php?topic_id=5055

© 2005-2018 supertrubka.org