Changeset 6810


Ignore:
Timestamp:
2004-02-17T09:41:54+13:00 (20 years ago)
Author:
mdewsnip
Message:

Additions for the GsdlCollageApplet: a classifier that displays a collage of the images in a collection. By Katrina Edgar (kde2).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/pageaction.cpp

    r5633 r6810  
    759759    }
    760760    else {
     761
    761762      text_tmap::iterator check = cinfo->format.find("QueryInterface");
    762763      if(check != cinfo->format.end()){
     
    792793
    793794  } else if (arg_p == "preferences") {
     795 
    794796    if (cinfo == NULL) {
    795797      disp.setmacro("cvariable", "Global", arg_c);
     
    804806
    805807    // _collectionoption_
    806 
    807808    if ((args["ccs"] == "1") && (cinfo->ccsCols.size() > 1)) {
    808809      text_t collectionoption = "_textcollectionoption_";
     
    863864    text_tset metadata;
    864865    metadata.insert ("Title");
     866    //****************
     867    metadata.insert ("childtype");
     868    //****************
    865869    bool getParents = false;
    866870    get_children ("", args["c"], metadata, getParents, collectproto, response, logout);
     
    880884    }
    881885
     886    // ********************************     
     887    int classifiernumber = 0;
     888    bool collage = false;
     889
    882890    while (here != end) {
     891     
     892      classifiernumber++;
     893      text_t childtype = (*here).metadata["childtype"].values[0];
     894      if (childtype == "Collage" && arg_p == "about") {
     895    // get the classifier number
     896    disp.setmacro ("classifier", "about", classifiernumber);
     897    disp.setmacro ("aboutCollage", "about", "_collageapplet_");
     898    collage = true;
     899      }
     900      here ++;
     901    }
     902    if (! collage)
     903      disp.setmacro ("aboutCollage", "about", "_collageempty_");
     904   
     905    // ********************************
     906     
     907    here = response.docInfo.begin();
     908
     909    while (here != end) {
     910     
    883911      text_t title = (*here).metadata["Title"].values[0];
    884 
     912   
    885913      text_t stext, ltext;
    886914      disp.expandstring ("help", "_text" + title + "short_", stext);
Note: See TracChangeset for help on using the changeset viewer.