Jump to content

[request] Iconbook


Recommended Posts

Is there someone else interested in it?

I think it could be great to have an application

like Pixadex for WinXP.

I think there is not yet a similar application for

Windows users (I have not found) and surely it would

make happy a lot of people (firstly me :D ).

So, if some talented developer is hearing... ;)

In each case, congratulations to AndreasV for his

stunning applications.

Link to comment
  • Replies 100
  • Created
  • Last Reply

Top Posters In This Topic

speaking of dreams, did you see waking life?

anyway i don't understand the need for a windwos-ized pixadex/iconbox-esque app when you have explorer set to view as icons what's the point of a third-party app? explorer renders icons in 'icon view' superfast and, well, perfectly. you organize by creating.... *gasp*... subfolders.

pixadex has other functions which make it more than just a storage facility, but i believe you're just asking for a redundant storage app. go create some subfolders and leave andreas alone :moon:

Link to comment

Andreas you should be a tired man... Thanks for all of your great work. As far as the icon book idea.. I know that it is totally uneccesary because explorer does a very good job and my icons are organized into subfolders... The only reason to have an icon book would be for icandy. Anways, I use nexplorer to browse all my icons... especially in column browsin mode. Who needs and icon book :naughty:

bzeitler

Link to comment
Originally posted by AndreasV@May 19 2004, 07:04 PM

Again, wtf is an ICONBOOK?

px_library.jpg

:D

i think some programer could use the neplorer source code(is vneuman will give permission) to mode it and to ad functionalities needed for an pixadex for windows, right? :blink:

Link to comment

If someone wants to fix my Java-project, then I'll do the iconbook.

//	Project;  ST2-Project
// File:  ResourceManager.java
// First Author: Andreas Verhoeven
// First Date:  maandag 26 april 2004,12:25:36
// Version:  1

// List of changes:
//  - 1: initial version

import java.util.Vector;

public class ResourceManager
{
 private Vector devices = new Vector();
 private JobPool jobPool = null;

private Device getDevice(String name)
// pre:  name is not null
// post: the device with name has been returned
{
 assert name != null;

 // loop thru all devices to find the one with name name.
 // If it's found, return it, otherwise throw an exception, because it's not
 // this methods Job to handle an unknown device.
 int i = 0;
 while( i < devices.size() && !((Device)devices.get(i)).getName().equals(name))
 i++;
 
 if(i < devices.size() )
 return (Device)devices.get(i);
 else
 throw new UnknownDeviceException(name);
}

 public bool execute(Request r)
// pre:  r is not null
// post: true has been returned if the request was granted,
//  otherwise, false has been returned and the request
//  has been queued
{
 assert r != null;
 
 if(r != null)
 {
 // get the devicetype for this request. Device
 // is an abstraction of devicetype.
           Device device = getDevice(r.getDeviceName());
               
           // now, get an instance of the device; this can be either
           // a particular instance if so requested, or just a free
           // instan
 DeviceInstance deviceInstance = null;

 // the request wants a particular instance
 // so request the abstract Device to get that particular
 // instance by name.
 // OR, the request just wants some free instance.
        if(r.wantsParticularDevice() )
   deviceInstance = device.GetInstance(r.InstanceName() );
        else
   deviceInstance = device.GetInstance();

        if(deviceInstance == null || deviceInstance.isLocked() )
        {
            // if we didn't get a deviceInstance, or the deviceinstance was locked,
   // queue this request up. Also, indicate that the request hadn't been
   // granted by returning false
            device.addToWaitingQueue(r);
            return false;
        }
        else
        {
   // the request has been granted, so lock the deviceinstance and
            // add it to the process' locked-resources list. Also, return true
            // to indicate that the request had been granted
   deviceInstance.lock();
            r.getParentProcess().addResource(r.getAlias(),deviceInstance);
            return true;
        }
 }
 return false;
}

public bool execute(Release r)
// pre:  r is not null
// post: true has been returned if the release was executed,
//   otherwise false has been returned
{
       assert r != null;

       if(r != null)
       {
       // get the parent-process of this device, so we can access
       // its locked-resources queue
              Process p = r.getParentProcess();
               
           // remove the deviceInstance from the process'  locked-resources
           // queue and unlock() the deviceInstance.
 deviceInstance deviceInstance = r.removeResource(r.getAlias() );
 deviceInstance.release();

 // now, check if there are any requests pending for this resource.
 // if so, add that resource to the job-pool again so it can be
 // assigned to this resource when its getting scheduled again.
 // Also, don't forget to remove it from the waitingQueue for the
 // device, otherwise
 Device device = deviceInstance.getDevice();
 Request r = device.findFirstOnWaitingQueue(deviceInstance);
 if(r)
   jobPool.add(device.removeFromWaitingQueue(r) );
 
 // return true, to indicate the release has been executed
 return true;
       }
 return false;
}

public void addResource(String deviceName, String instanceName)
// pre:  deviceName and instanceName are not null
// post: A DeviceInstance of type deviceName and with name instanceName
//   has been added to the list of DeviceInstances
{
 assert deviceName != null;
 assert instanceName != null;

 if(deviceName == null || instanceName == null)
 return;

 // first, try to get the Device with name deviceName
 // if we get an UnknownDeviceException, the device does not exists yet,
 // so we need to create it
 Device device = null;
 try
 {
 device = getDevice(deviceName);
 }
 catch(UknownDeviceException e)
 {
 device = new Device(deviceName);
 }

 // now that we have obtained a Device object with name deviceName,
 // we can tell that Device to add an instance with name instanceName
 device.addInstance(instanceName);
}
};

I have 50 more files like this to fix and to review (and not everyone is using the same style-guides >.< )

I hope noone takes this serious... <_<

Link to comment
Originally posted by AndreasV@May 19 2004, 09:50 PM-->
QUOTE(AndreasV @ May 19 2004, 09:50 PM)
unsafe{   unchecked ( give me checked exceptions );<!--QuoteEBegin
[b]

:canadian:

Rather that I may use unsafe code knowingly than always be using "unsafe" code and potentially not realise (C++), or be restricted so much that I can't use "unsafe" code, even if it makes sense (Java).

Also, unsafe is obscure enough that your average user won't find it by accident.

Blaming the tools for your inadequacies again, Ave... :rolleyes:

Link to comment

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...