LCDInfo.com

http://www.lcdinfo.com
It is currently Fri Nov 22, 2024 11:03

All times are UTC + 2 hours




Post new topic Reply to topic  [ 18 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: Thu Feb 17, 2005 23:37 
Offline
User avatar

Joined: Fri Dec 03, 2004 7:03
Posts: 201
Location: Sydney, Australia
Ahhh Well... I was just being hopeful... If it worked it would tie in nicely with my object orientating screen files theory. ;) Guess I'll have to learn how to program properly, and add this functionality.

_________________
Syridian,
http://syridian.com


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 19, 2005 18:15 
Offline

Joined: Sun May 05, 2002 22:05
Posts: 2063
Location: Lappeenranta, Finland
Syridian wrote:
Ok, a bit of wishful thinking here... But would the screen item below actually work?

Code:
   <item type="bar" x="100" y="2">
      <varid>SysInfo.AvailableMemory</varid>
      <direction>vertical</direction>
      <frame>yes</frame>
      <width>15</width>
      <height>60</height>
      <minvalue>0</minvalue>
      <maxvalue>SysInfo.TotalMemory</maxvalue>
      <refresh>500</refresh>
   </item>



Won't work like that. Currently the <maxvalue> has to be some numerical value but modifying it so that it would also get the maxvalue from plugin is possible. I think more work is deciding how to inform LCDInfo if the maxvalue to be parsed is a plugin value or just basic numerical value. Probably just add new config value that tells the type of the data there. Or maybe then make LCDInfo check if a variable with name between maxvalue tags is available and if not interpret it as numerical value (some error checking here of course as we don't know what kind things the user might input so we can't just blindly expect it to be valid value).


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 20, 2005 2:58 
Offline
User avatar

Joined: Fri Dec 03, 2004 7:03
Posts: 201
Location: Sydney, Australia
Ok.... Well I have just go up to an interesting part in my C++ book... It's the part about function overloading. Which basically describes the process of having multiple functions to handle differant information types.

Could this not be used here?

If an Int is parsed, use the Int value, if a String is parsed, read the string, convert it to the variable, then return the Int value that the variable refers to.

Happy to chat with you online sometime to have two minds woking on the same problem, just gotta organise a time when you can sit down and work on LCDinfo, and I am also free to help. :) Time differances are a pain in the butt sometimes.

_________________
Syridian,
http://syridian.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ]  Go to page Previous  1, 2

All times are UTC + 2 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group