TweetFollow Us on Twitter

January 93 - Children of the DogCow

Children of the DogCow

Kent Sandvik and Jeroen Schalk

In MacApp 3.0 it is relatively easy to add extra dialog items to Standard Get File and Standard Put File. However, youhave to use normal 'DLOG' and 'DITL' resources to ac-complish this. It would be much nicer if you were able to add 'View' resources to Standard File.

Using MacApp 2.0, Danie Underwood had already created a number of patches for his MacApp Drafter application that implemented this feature. We decided to implement his ideas in MacApp 3.0 and add some extra features.

You will find that these changes are easy to add to your application. You just have to subclass your application object from TSFPApplication and your document from TSFPFileBasedDocument and override a couple of methods.

As a bonus, file filtering is also implemented as a method. There is no longer a need to write a low level file filter function. Just override the TSFPApplication.FileFilter() method.

Changing Standard File

This article won't explain in detail how to change the behavior of Standard File. A number of resources are available that explain the principle and give example code on how to do it. Suffice it to say that up to four call back routines can be installed with the Standard File routines. These callbacks are invoked by Standard File as part of its event processing:
  • The first callback is the Dialog Hook routine. It is called whenever anything significant happens in Standard File. Of importance for us are the events sfHookFirstCall, sfHookLastCall and sfHookNullEvent. sfHookFirstCall is the first event that happens (before the Standard File dialog is shown). It gives us the opportunity to add items to the dialog. sfHookLastCall gives us the opportunity to do some cleanup, e.g. delete the added view hierarchy. sfHookNullEvent is called repeatedly while the dialog is on screen. The current selection in the Standard File dialog is available for application use during this 'idle time' process.
  • The second call back is the dialog filter routine. It provides raw event data to your routine and gives you the opportunity to intercept events and handle them yourself. We want to intercept update and mouse events that are meant for our added view hierarchy and forward these to the MacApp event handling code.
  • The third callback is the File Filter routine. It is used in Standard Get File to determine which files should be displayed. It is an extension to the filtering on file type that the MacApp framework provides.
  • The fourth callback is an activation callback that can be used if extra edit items have been added to the Standard File. We ignore this callback in our code. It is only available under System 7.0.

The prototype of these callbacks is as follows under System 7.0:

typedef pascal short (*DlgHookYDProcPtr)(short item,
    DialogPtr theDialog, void *yourDataPtr);
typedef pascal Boolean (*ModalFilterYDProcPtr)(DialogPtr theDialog,
    EventRecord *theEvent, short *itemHit, void *yourDataPtr);
typedef pascal Boolean (*FileFilterYDProcPtr)(ParmBlkPtr PB,
    void *yourDataPtr);
typedef pascal void (*ActivateYDProcPtr)(DialogPtr theDialog,
    short itemNo, Boolean activating, void *yourDataPtr);

For System 6.0, the same type of callbacks are present except for the activate callback, but they lack the last parameter. This last parameter (void *yourDataPtr) allows you to pass a user defined data structure to your callback.

Strategy

Given these callbacks, our strategy is as follows:
  1. Install a dialog filter routine that will create a 'View' resource on sfHookFirstCall and add it to the Standard File dialog. Clean up is done on sfHookLastCall, and on sfHookNullEvent we let our application know which file or folder is cur-rently selected. Note that on Standard Put file, the "selected file" is the name of the file that the user is specifying.
  2. Install a dialog hook routine that will intercept selected events. We choose to intercept only the mouseDown and update events. If this mouseDown event occurs within the extent of the 'View' we have added, we will dispatch it to this view. Update events have to be first dispatched to our view hierarchy so that we can refresh the parts that Standard File can not reach. After that, we hand the update event back to Standard File so that it can redraw its own dialog items.
  3. Install a File Filter routine that creates a TFile object from the information it gets and calls one of our application methods to do the actual file filtering. This third step is relevant only for Standard Get File.

Use Of Standard File in MacApp 3.0

Standard File routines are used in two locations in MacApp 3.0. MacApp uses either the Custom routines found in System 7.0 or later releases or the old SFP (Standard File Programmer) routines.

The first use of Standard File routines is in TApplication.ChooseDocument() that is called whenever the user chooses "Open" from the File menu. It calls TApplication.GetStandardFileParameters() to get a reference to a file filter routine, a modal dialog filter routine and a dialog hook routine. It then uses either CustomGetFile() or SFPGetFile() to pose the Standard Get File dialogs.

The second use is in TFileHandler.RequestFileName(). This one calls TFileHandler.SFPutParms() to get a modal dialog filter routine and a dialog hook routine and subsequently calls CustomPutFile() or SFPPutFile().

MacApp uses a trick so that the same call back routines can be used in both the Custom…() and the SFP…() cases. In the SFP…() case, it packages the call back routines in a CallBack data structure. This data structure actually contains some assembler code that reserves space for the extra parameter, pushes that extra parameter and jumps to the original callback.

Note that there are some bugs in how this is implemented in MacApp 3.0. First of all, it can't handle the situation where you have more than one callback (as will be the case in our code). Only the modal dialog filter routine was packaged, not the other ones. A second bug could occur if you returned NULL for this modal dialog filter routine in your override of GetStandardFileParameters() or SFPutParms(). The CallBack data structure would make the code jump to zero. Not a good idea. The first thing we had to do was fix these potential problems.

Based on the use of Standard File in MacApp 3.0, we chose the following strategy to implement our changes:

  1. The class TSFPApplication was introduced. It overrides TApplication.GetStandardFileParameters() and TApplication.ChooseDocument(). We also added a method TSFPApplication.ExtraViewID() to determine the id of the 'View' resource to add and a method TSFPApplication.FileFilter() to implement a higher level file filter method.
  2. The class TSFPFileHandler was introduced. It overrides TFileHandler.RequestFileName().
  3. The class TSFPFileBasedDocument was introduced that overrides TFileBasedDocument.SFPutParms() and attaches an instance of a TSFPFileHandler to it in TDocument.DoMakeFileHandler(). We also added a method TSFPFileBasedDocument.ExtraViewID() to determine the id of the 'View' resource to add in and a method TSFPFileBasedDocument.GetPrompt() to determine the prompt to use.

The method ExtraViewID() that determines the ID of the view to add gets the command number used to open or save as a parameter. This means you can test this parameter to add a different dialog if you have more than one command number to open a file. An example is if you want to open a help file as well as a normal document. You could install a view with a "Search Help" button.

TSFPWindow and TSFPView

In order to add a view hierarchy to Standard File, we need to treat the Standard File window as one of our own TWindows. This turns out to be relatively straightforward if you consider the following:
  1. Standard File disposes of the window manager port, and so does TWindow.Free(). We need to override TSFPWindow.Free() to prevent this from happening.
  2. MacApp draw code erases the port rectangle before drawing. Standard File is not aware of this and would not refresh these erased parts. This problem can be fixed by removing the erase adorner from our window. This is done in the TSFPWindow.ISFPWindow() method.
  3. The window itself should NOT draw as Standard File takes care of that. So fShown should be set false. Now this leads to another problem because a view does not show up if its window does not show. We fixed this by introducing a TSFPView class that overrides TView.Shown().
  4. The window should not handle mouse downs but pass them directly to the added view.
  5. When our window updates itself, it should not set the updateRgn to empty afterwards. This is because part of the update region 'belongs' to Standard File. Therefore, we need to restore that part of the update region.

The methods necessary to implement these changes are done in the TWindow subclass TSFPWindow. For completeness, TSFPWindow also keeps a Boolean field fNeedRefresh. If you set this field, an sfHookRebuildList event will be generated in the dialog hook routine.

Whenever one of the Custom…() or SFP…() routines is called, the system loads one of the 'DLOG' resources that contains the dialog items for that routine (sfGetDialogID, getDlgID, sfPutDialogID, putDlgID).

Now, if we know the number of the 'View' resource to add to the dialog, we can change the rectangle of that dialog to accommodate our added items. This is done in TSFPWindow.LocateAndResize().

The view hierarchy that we add to this window must always have one top view of class TSFPView and an identifier 'DLOG'. This is needed so that we can:

  1. Easily locate the added views and resize the Standard File dialog box with the dimensions of that top view.
  2. Add a couple of abstract 'callback' methods to this top view. These methods are called from within our dialog hook routine on sfHookNullEvent events. These callbacks (WantToUpdate() and SetOkEnable()) pass information on the currently selected file or folder and information on the state of the Save/Open button.
  3. Override TView.Shown(). It should not ask its window, but instead use its own fShown field.

Putting It All Together: USFP.cp and USFP.h

The implementation is available in the source files USFP.cp and USFP.h. Functionality for overriding Standard Get File and Standard Put File is combined, although you could split it up if necessary. We use a set of globals (all beginning with "pSFP") to store some global references. This is necessary so that we can use them from within our call back routines.

The dialog hook routine is called SFPDialogHook(). During sfHookFirstCall processing in our dialog hook procedure we create an instance of our special window TSFPWindow. We also create our view hierarchy and adapt the size and location of Standard File's dialog (in TSFPWindow.DoLocateAndResize()).

During sfHookNullEvent we call TSFPView.WantToUpdate() with information on the currently selected file or folder. We also determine whether the Save/Open button is currently enabled and pass this information to our view in TSFPView.SetOkEnable(). In sfHookLastCall we can clean up any views that we have added:

static pascal short SFPDialogHook(short item, DialogPtr theDialog, void *)
{
    short returnItem = item;
    switch (item) {
    case sfHookFirstCall:
    // set reference to Standard File Dialog
        pSFPDialog = theDialog;
    // Install the MacApp world.
        if (! pSFPWindow && pSFPViewID) {
            pSFPWindow = new TSFPWindow;
            if (pSFPWindow) {
                pSFPWindow->ISFPWindow(NULL, GrafPtr(theDialog));
                pSFPWindow->SavePortInfo();
                gViewServer->DoCreateViews(NULL, pSFPWindow,
                        pSFPViewID, gZeroVPt);
                pSFPWindow->DoLocateAndResize();
                pSFPWindow->GetSFPView()->Show(true, false);
                pSFPWindow->RestorePortInfo();
            }
        }
        break;
    case sfHookNullEvent:
        if (pSFPWindow) {

            // see if list of files needs updating
            if (pSFPWindow->GetNeedRefresh()) {
                pSFPWindow->SetNeedRefresh(false);
                returnItem = sfHookRebuildList;
            } else {
                pSFPWindow->SavePortInfo();
            // get added view
                TSFPView *view = pSFPWindow->GetSFPView();
            // focus on window
                pSFPWindow->InvalidateFocus();
                pSFPWindow->Focus();

                // update view depending on OK state
                Handle  dialogItem;
                CRect   itsBox;
                short   itemType;
                ::GetDItem(theDialog, pSFPGetPutOK, itemType,
                        dialogItem, itsBox);
                Boolean okEnabled =         
                    ((**ControlHandle(dialogItem)).contrlHilite
                        != 255);
                view->SetOkEnable(okEnabled);

                // update view with information on current reply
                view->WantToUpdate(pSFPReply,
                        pSFPStandardFileReply);
                pSFPWindow->RestorePortInfo();
            }
        }
        break;

    case sfHookLastCall:
        if (pSFPWindow) {
        // throw out allocated view hierarchy
            pSFPWindow->Free();
            pSFPWindow = NULL;
        }
        break;
    } // end of switch()
    return returnItem;
}

The dialog filter routine is called SFPDialogFilter(). In our dialog filter callback we detect mouseDowns inside our added view and pass these events directly to that added view. We handle update events for our special TSFPWindow (which shares the window manager port of Standard File) by drawing our added view hierarchy and passing on the update event to Standard File:

static pascal Boolean SFPDialogFilter(DialogPtr theDialog,
        EventRecord& theEvent, short& itemHit, void *yourDataPtr)
{
    Boolean result = false;
    switch (theEvent.what) {

        case mouseDown: { 
        // mouse down events the MacApp way.
            Boolean oldObjectPerm;
            oldObjectPerm = AllocateObjectsFromPerm(FALSE);
            TToolboxEvent* theToolBoxEvent = new TToolboxEvent;
            AllocateObjectsFromPerm(oldObjectPerm);
            theToolBoxEvent->IToolboxEvent(gApplication, theEvent);

            // get mouse location
            CPoint theMouse = theEvent.where;
            ::SetPort(theDialog);
            ::GlobalToLocal(theMouse);
            TSFPView *view = pSFPWindow->GetSFPView();
            pSFPWindow->InvalidateFocus();
            pSFPWindow->Focus();

            // convert to local coordinates
            VPoint theVMouse = theMouse;
            view->SuperToLocal(theVMouse);
            if (view->ContainsMouse(theVMouse) &&
                view->HandleMouseDown(theVMouse, theToolBoxEvent,
                gStdHysteresis)) {
                result = true;
            }
            theToolBoxEvent->Free();
        }
        break;

        case updateEvt:
            if (WindowPtr(theEvent.message) != theDialog) {
            // update MacApp windows
                gApplication->UpdateAllWindows();
            result = true;
        } else {
        // update MacApp part and pass update to Stand File
            pSFPWindow->InvalidateFocus();
            pSFPWindow->Focus();
            pSFPWindow->Update();
        }
        break;
    }
    return result;
}

Last, our file filter call back SFPFileFilter() will get information about the file to test, makes that into a TFile object and calls a method of our TSFPApplication:

pascal Boolean SFPFileFilter(ParmBlkPtr p, void *)
{
// no #define for stationary bit
const short isStationery = 0x0800;
// get current volume
ParamBlockRec oldVol;
oldVol.volumeParam.ioNamePtr = NULL;
::PBGetVol(&oldVol, false);

// get current directory
WDPBRec     WDRec;
WDRec.ioNamePtr     = NULL;
WDRec.ioVRefNum     = p->fileParam.ioVRefNum;
WDRec.ioWDProcID    = 'ERIK';
WDRec.ioWDDirID     = *kCurDirStorePtr;
::PBOpenWD(&WDRec, false);
::PBSetVol(&oldVol, false);

// name of file to test is passed in
CStr63 name = p->ioParam.ioNamePtr;
// create TFile
TFile *aFile = new TFile;
aFile->SpecifyWithTrio(p->fileParam.ioVRefNum,
        WDRec.ioWDDirID, name);
::PBCloseWD(&WDRec, false);

// set type and creator
FInfo finderInfo;
if (aFile->GetFinderInfo(finderInfo) == noErr) {
    aFile->fFileType = finderInfo.fdType;
    aFile->fCreator = finderInfo.fdCreator;
    if (finderInfo.fdFlags & isStationery) {
        aFile->fStationery = TRUE;
    }
}

// pass it to the application object
Boolean returnVal =
    ((TSFPApplication *)gApplication)->FileFilter(aFile);
aFile->Free();
return returnVal;
}

Examples: UMySFP.cp and UMySFP.h

As an example of how you can use these extensions, we developed a small application called UMySFP. This application overrides both Standard Get File and Standard Put File.

In Standard Get File, we show a 'preview' of AppleLink documents, where the preview consists of the sender followed by '•', followed by the subject, e.g. "SCHALK1 • Not So Standard File". As you can see in the sources, we define a subclass TOpenAppleLink of TSFPView with a method TSFPView.WantToUpdate(). We also subclass TSFPApplication and implement TMySFPApplication.ExtraViewID() to return the ID of the 'View' to add. As a bonus, we also change TSFPApplication.FileFilter() so that we filter out all files that have already been opened (see Figure 1):

pascal short TMySFPApplication::ExtraViewID(CommandNumber)
{
    return kOpenAppleLinkViewID;
}
pascal void TOpenAppleLink::WantToUpdate(SFReply &aSFReply,
        StandardFileReply& aCustomReply)
{
    CStr255 aPreview;
// create "originator • subject"
    this->CreatePreView(aSFReply, aCustomReply, aPreview);
// and set in text field
    this->SetPreviewText(aPreview);
}
pascal Boolean TMySFPApplication::FileFilter(TFile *aFile)
{
    if (inherited::FileFilter(aFile) ||
            (aFile->fCreator != 'GEOL') ||
            gApplication->FindDocument(aFile)) {
        return true;
    }
    return false;
}

The second part customizes Standard Put File. We add a couple of radio buttons and a popup menu to select the type of file to save. Again we use a subclass TSaveAppleLink of TSFPView. We subclass our TMySFPFileBasedDocument from TSFPFileBasedDocument and give it an ExtraViewID() method to yield the id of the 'View' resource to add. Note that you would have methods in your TSaveAppleLink class to let your application know which type of document was selected. This is not implemented (see Figure 2).

pascal short TMySFPFileBasedDocument::ExtraViewID(CommandNumber)
{
    return kSaveAppleLinkViewID;
}

The views themselves are created in a ViewEdit file. Don't forget to give them a top-level view of a subclass of TSFPView and to set its identifier to 'DLOG'

References

  • New Inside Macintosh : Files
  • New Technical Notes M.FL.SFCustomize
  • MacApp ™ Drafter on E.T.O. 9
 

Community Search:
MacTech Search:

Software Updates via MacUpdate

jAlbum Pro 12.6.4 - Organize your digita...
jAlbum Pro has all the features you love in jAlbum, but comes with a commercial license. With jAlbum, you can create gorgeous custom photo galleries for the Web without writing a line of code!... Read more
jAlbum 12.6.4 - Create custom photo gall...
With jAlbum, you can create gorgeous custom photo galleries for the Web without writing a line of code! Beginner-friendly, with pro results Simply drag and drop photos into groups, choose a design... Read more
Microsoft Remote Desktop 8.0.16 - Connec...
With Microsoft Remote Desktop, you can connect to a remote PC and your work resources from almost anywhere. Experience the power of Windows with RemoteFX in a Remote Desktop client designed to help... Read more
Spotify 1.0.4.90. - Stream music, create...
Spotify is a streaming music service that gives you on-demand access to millions of songs. Whether you like driving rock, silky R&B, or grandiose classical music, Spotify's massive catalogue puts... Read more
djay Pro 1.1 - Transform your Mac into a...
djay Pro provides a complete toolkit for performing DJs. Its unique modern interface is built around a sophisticated integration with iTunes and Spotify, giving you instant access to millions of... Read more
Vivaldi 1.0.118.19 - Lightweight browser...
Vivaldi browser. In 1994, two programmers started working on a web browser. Our idea was to make a really fast browser, capable of running on limited hardware, keeping in mind that users are... Read more
Stacks 2.6.11 - New way to create pages...
Stacks is a new way to create pages in RapidWeaver. It's a plugin designed to combine drag-and-drop simplicity with the power of fluid layout. Features: Fluid Layout: Stacks lets you build pages... Read more
xScope 4.1.3 - Onscreen graphic measurem...
xScope is powerful set of tools that are ideal for measuring, inspecting, and testing on-screen graphics and layouts. Its tools float above your desktop windows and can be accessed via a toolbar,... Read more
Cyberduck 4.7 - FTP and SFTP browser. (F...
Cyberduck is a robust FTP/FTP-TLS/SFTP browser for the Mac whose lack of visual clutter and cleverly intuitive features make it easy to use. Support for external editors and system technologies such... Read more
Labels & Addresses 1.7 - Powerful la...
Labels & Addresses is a home and office tool for printing all sorts of labels, envelopes, inventory labels, and price tags. Merge-printing capability makes the program a great tool for holiday... Read more

This Week at 148Apps: April 20-24, 2015
The Apps of April How do you know what apps are worth your time and money? Just look to the review team at 148Apps. We sort through the chaos and find the apps you're looking for. The ones we love become Editor’s Choice, standing out above the many... | Read more »
Discover Your Reflexes With Minimalist G...
Discover O, BYOF Studios, may look simple at first with its' color matching premise and swipe controls, but as you speed up the task becomes more daunting. [Read more] | Read more »
Here's Another Roundup of Notable A...
Now that the Apple Watch is publically available (kind of), even more apps and games have been popping up for it. Some of them are updates to existing software, others are brand new. The main thing is that they're all for the Apple Watch, and if you... | Read more »
Use Batting Average and the Apple Watch...
Batting Average, by Pixolini, is designed to help you manage your statistics. Every time you go to bat, you can use your Apple Watch to track  your swings, strikes, and hits. [Read more] | Read more »
Celebrate Studio Pango's 3rd Annive...
It is time to party, Pangoland pals! Studio Pango is celebrating their 3rd birthday and their gift to you is a new update to Pangoland. [Read more] | Read more »
Become the World's Most Important D...
Must Deliver, by cherrypick games, is a top-down endless-runner witha healthy dose of the living dead. [Read more] | Read more »
SoundHound + LiveLyrics is Making its De...
SoundHound Inc. has announced that SoundHound + LiveLyrics, will be one of the first third-party apps to hit the Apple Watch. With  SoundHound you'll be able to tap on your watch and have the app recognize the music you are listening to, then have... | Read more »
Adobe Joins the Apple Watch Lineup With...
A whole tidal wave of apps are headed for the Apple Watch, and Adobe has joined in with 3 new ways to enhance your creativity and collaborate with others. The watch apps pair with iPad/iPhone apps to give you total control over your Adobe projects... | Read more »
Z Steel Soldiers, Sequel to Kavcom'...
Kavcom has released Z Steel Soldiers, which continues the story of the comedic RTS originally created by the Bitmap Brothers. [Read more] | Read more »
Seene Lets You Create 3D Images With You...
Seene, by Obvious Engineering, is a 3D capture app that's meant to allow you to create visually stunning 3D images with a tap of your finger, and then share them as a 3D photo, video or gif. [Read more] | Read more »

Price Scanner via MacPrices.net

Final day for Best Buy’s 4 Day Sale: Up to $3...
Best Buy has the new 2015 13″ 1.6GHz/128GB MacBook Air on sale for $799.99 through April 27th. That’s $200 off MSRP, and it’s the lowest price available for this new model from any reseller. Choose... Read more
College Student Deals: Additional $50 off Mac...
Take an additional $50 off all MacBooks and iMacs at Best Buy Online with their College Students Deals Savings, valid through May 9, 2015. Anyone with a valid .EDU email address can take advantage of... Read more
Save up to $300 on a new Mac, $30 on an iPad,...
Purchase a new Mac or iPad at The Apple Store for Education and take up to $300 off MSRP. All teachers, students, and staff of any educational institution qualify for the discount. Shipping is free,... Read more
Zoho Business Apps for Apple Watch Put Select...
Pleasanton, California based Zoho has launched Zoho Business Apps for Apple Watch, a line of apps that extends Zoho business applications to let users perform select functions from an Apple Watch.... Read more
Universal Stylus Initiative Launched to Creat...
OEMs, stylus and touch controller manufacturers have announced the launch of Universal Stylus Initiative (USI), a new organization formed to develop and promote an industry specification for an... Read more
Amazon Shopping App for Apple Watch
With the new Amazon shopping app for Apple Watch, Amazon customers with one of the wearable devices can simply tap the app on the watch to purchase items in seconds, or save an idea for later. The... Read more
Mac Pros on sale for up to $260 off MSRP
B&H Photo has Mac Pros on sale for up to $260 off MSRP. Shipping is free, and B&H charges sales tax in NY only: - 3.7GHz 4-core Mac Pro: $2799, $200 off MSRP - 3.5GHz 6-core Mac Pro: $3719.99... Read more
Apple refurbished Time Capsules available for...
The Apple Store has certified refurbished Time Capsules available for $100 off MSRP. Apple’s one-year warranty is included with each Time Capsule, and shipping is free: - 2TB Time Capsule: $199, $100... Read more
Intel Compute Stick: A New Mini-Computing For...
The Intel Compute Stick, a new pocket-sized computer based on a quad-core Intel Atom processor running Windows 8.1 with Bing, is available now through Intel Authorized Dealers across much of the... Read more
Heal to Launch First One-Touch House Call Doc...
Santa Monica, California based Heal, a pioneer in on-demand personal health care services — will offer the first one-touch, on-demand house call doctor app for the Apple Watch. Heal’s Watch app,... Read more

Jobs Board

*Apple* iOS Specialist - TCML (United States...
AppleiOS Specialist Senior Apple /iOS Administrator/Engineer responsible for configuration and distribution of desktop, laptop and mobile devices to State Employees Read more
*Apple* Client Systems Solution Specialist -...
…drive revenue and profit in assigned sales segment and/or region specific to the Apple brand and product sets. This person will work directly with CDW Account Managers Read more
*Apple* Retail - Multiple Positions (US) - A...
Sales Specialist - Retail Customer Service and Sales Transform Apple Store visitors into loyal Apple customers. When customers enter the store, you're also the Read more
*Apple* Support Technician IV - Jack Henry a...
Job Description Jack Henry & Associates is seeking an Apple Support Technician. This position while acting independently, ensures the proper day-to-day control of Read more
*Apple* Client Systems Solution Specialist -...
…drive revenue and profit in assigned sales segment and/or region specific to the Apple brand and product sets. This person will work directly with CDW Account Managers Read more
All contents are Copyright 1984-2011 by Xplain Corporation. All rights reserved. Theme designed by Icreon.