Logo
  • Main Page
  • Related Pages
  • Modules
  • Classes
  • Files

mmsimagewidgetclass.cpp

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2005-2007 Stefan Schwarzer, Jens Schneider,             *
00003  *                           Matthias Hardt, Guido Madaus                  *
00004  *                                                                         *
00005  *   Copyright (C) 2007-2008 BerLinux Solutions GbR                        *
00006  *                           Stefan Schwarzer & Guido Madaus               *
00007  *                                                                         *
00008  *   Copyright (C) 2009-2013 BerLinux Solutions GmbH                       *
00009  *                                                                         *
00010  *   Authors:                                                              *
00011  *      Stefan Schwarzer   <stefan.schwarzer@diskohq.org>,                 *
00012  *      Matthias Hardt     <matthias.hardt@diskohq.org>,                   *
00013  *      Jens Schneider     <jens.schneider@diskohq.org>,                   *
00014  *      Guido Madaus       <guido.madaus@diskohq.org>,                     *
00015  *      Patrick Helterhoff <patrick.helterhoff@diskohq.org>,               *
00016  *      René Bählkow       <rene.baehlkow@diskohq.org>                     *
00017  *                                                                         *
00018  *   This library is free software; you can redistribute it and/or         *
00019  *   modify it under the terms of the GNU Lesser General Public            *
00020  *   License version 2.1 as published by the Free Software Foundation.     *
00021  *                                                                         *
00022  *   This library is distributed in the hope that it will be useful,       *
00023  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00024  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU     *
00025  *   Lesser General Public License for more details.                       *
00026  *                                                                         *
00027  *   You should have received a copy of the GNU Lesser General Public      *
00028  *   License along with this library; if not, write to the                 *
00029  *   Free Software Foundation, Inc.,                                       *
00030  *   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA            *
00031  **************************************************************************/
00032 
00033 #include "mmsgui/theme/mmsimagewidgetclass.h"
00034 #include <string.h>
00035 
00036 //store attribute descriptions here
00037 TAFF_ATTRDESC MMSGUI_IMAGEWIDGET_ATTR_I[] = MMSGUI_IMAGEWIDGET_ATTR_INIT;
00038 
00039 // address attribute names
00040 #define GETATTRNAME(aname) MMSGUI_IMAGEWIDGET_ATTR_I[MMSGUI_IMAGEWIDGET_ATTR::MMSGUI_IMAGEWIDGET_ATTR_IDS_##aname].name
00041 
00042 // address attribute types
00043 #define GETATTRTYPE(aname) MMSGUI_IMAGEWIDGET_ATTR_I[MMSGUI_IMAGEWIDGET_ATTR::MMSGUI_IMAGEWIDGET_ATTR_IDS_##aname].type
00044 
00045 
00046 MMSImageWidgetClass::MMSImageWidgetClass() {
00047     unsetAll();
00048 }
00049 
00050 void MMSImageWidgetClass::unsetAll() {
00051     this->className = "";
00052     unsetImagePath();
00053     unsetImageName();
00054     unsetSelImagePath();
00055     unsetSelImageName();
00056     unsetImagePath_p();
00057     unsetImageName_p();
00058     unsetSelImagePath_p();
00059     unsetSelImageName_p();
00060     unsetImagePath_i();
00061     unsetImageName_i();
00062     unsetSelImagePath_i();
00063     unsetSelImageName_i();
00064     unsetUseRatio();
00065     unsetFitWidth();
00066     unsetFitHeight();
00067     unsetAlignment();
00068     unsetMirrorSize();
00069     unsetGenTaff();
00070 }
00071 
00072 void MMSImageWidgetClass::setAttributesFromTAFF(MMSTaffFile *tafff, string *prefix, string *path, bool reset_paths) {
00073 
00074     if ((reset_paths)&&(path)&&(*path!="")) {
00075         // unset my paths
00076         unsetImagePath();
00077         unsetSelImagePath();
00078         unsetImagePath_p();
00079         unsetSelImagePath_p();
00080         unsetImagePath_i();
00081         unsetSelImagePath_i();
00082     }
00083 
00084     if (!prefix) {
00085         startTAFFScan
00086         {
00087             switch (attrid) {
00088             case MMSGUI_BASE_ATTR::MMSGUI_BASE_ATTR_IDS_class:
00089                 setClassName(attrval_str);
00090                 break;
00091             case MMSGUI_IMAGEWIDGET_ATTR::MMSGUI_IMAGEWIDGET_ATTR_IDS_image:
00092                 if (*attrval_str)
00093                     setImagePath("");
00094                 else
00095                     setImagePath((path)?*path:"");
00096                 setImageName(attrval_str);
00097                 break;
00098             case MMSGUI_IMAGEWIDGET_ATTR::MMSGUI_IMAGEWIDGET_ATTR_IDS_image_path:
00099                 if (*attrval_str)
00100                     setImagePath(attrval_str);
00101                 else
00102                     setImagePath((path)?*path:"");
00103                 break;
00104             case MMSGUI_IMAGEWIDGET_ATTR::MMSGUI_IMAGEWIDGET_ATTR_IDS_image_name:
00105                 setImageName(attrval_str);
00106                 break;
00107             case MMSGUI_IMAGEWIDGET_ATTR::MMSGUI_IMAGEWIDGET_ATTR_IDS_selimage:
00108                 if (*attrval_str)
00109                     setSelImagePath("");
00110                 else
00111                     setSelImagePath((path)?*path:"");
00112                 setSelImageName(attrval_str);
00113                 break;
00114             case MMSGUI_IMAGEWIDGET_ATTR::MMSGUI_IMAGEWIDGET_ATTR_IDS_selimage_path:
00115                 if (*attrval_str)
00116                     setSelImagePath(attrval_str);
00117                 else
00118                     setSelImagePath((path)?*path:"");
00119                 break;
00120             case MMSGUI_IMAGEWIDGET_ATTR::MMSGUI_IMAGEWIDGET_ATTR_IDS_selimage_name:
00121                 setSelImageName(attrval_str);
00122                 break;
00123             case MMSGUI_IMAGEWIDGET_ATTR::MMSGUI_IMAGEWIDGET_ATTR_IDS_image_p:
00124                 if (*attrval_str)
00125                     setImagePath_p("");
00126                 else
00127                     setImagePath_p((path)?*path:"");
00128                 setImageName_p(attrval_str);
00129                 break;
00130             case MMSGUI_IMAGEWIDGET_ATTR::MMSGUI_IMAGEWIDGET_ATTR_IDS_image_p_path:
00131                 if (*attrval_str)
00132                     setImagePath_p(attrval_str);
00133                 else
00134                     setImagePath_p((path)?*path:"");
00135                 break;
00136             case MMSGUI_IMAGEWIDGET_ATTR::MMSGUI_IMAGEWIDGET_ATTR_IDS_image_p_name:
00137                 setImageName_p(attrval_str);
00138                 break;
00139             case MMSGUI_IMAGEWIDGET_ATTR::MMSGUI_IMAGEWIDGET_ATTR_IDS_selimage_p:
00140                 if (*attrval_str)
00141                     setSelImagePath_p("");
00142                 else
00143                     setSelImagePath_p((path)?*path:"");
00144                 setSelImageName_p(attrval_str);
00145                 break;
00146             case MMSGUI_IMAGEWIDGET_ATTR::MMSGUI_IMAGEWIDGET_ATTR_IDS_selimage_p_path:
00147                 if (*attrval_str)
00148                     setSelImagePath_p(attrval_str);
00149                 else
00150                     setSelImagePath_p((path)?*path:"");
00151                 break;
00152             case MMSGUI_IMAGEWIDGET_ATTR::MMSGUI_IMAGEWIDGET_ATTR_IDS_selimage_p_name:
00153                 setSelImageName_p(attrval_str);
00154                 break;
00155             case MMSGUI_IMAGEWIDGET_ATTR::MMSGUI_IMAGEWIDGET_ATTR_IDS_image_i:
00156                 if (*attrval_str)
00157                     setImagePath_i("");
00158                 else
00159                     setImagePath_i((path)?*path:"");
00160                 setImageName_i(attrval_str);
00161                 break;
00162             case MMSGUI_IMAGEWIDGET_ATTR::MMSGUI_IMAGEWIDGET_ATTR_IDS_image_i_path:
00163                 if (*attrval_str)
00164                     setImagePath_i(attrval_str);
00165                 else
00166                     setImagePath_i((path)?*path:"");
00167                 break;
00168             case MMSGUI_IMAGEWIDGET_ATTR::MMSGUI_IMAGEWIDGET_ATTR_IDS_image_i_name:
00169                 setImageName_i(attrval_str);
00170                 break;
00171             case MMSGUI_IMAGEWIDGET_ATTR::MMSGUI_IMAGEWIDGET_ATTR_IDS_selimage_i:
00172                 if (*attrval_str)
00173                     setSelImagePath_i("");
00174                 else
00175                     setSelImagePath_i((path)?*path:"");
00176                 setSelImageName_i(attrval_str);
00177                 break;
00178             case MMSGUI_IMAGEWIDGET_ATTR::MMSGUI_IMAGEWIDGET_ATTR_IDS_selimage_i_path:
00179                 if (*attrval_str)
00180                     setSelImagePath_i(attrval_str);
00181                 else
00182                     setSelImagePath_i((path)?*path:"");
00183                 break;
00184             case MMSGUI_IMAGEWIDGET_ATTR::MMSGUI_IMAGEWIDGET_ATTR_IDS_selimage_i_name:
00185                 setSelImageName_i(attrval_str);
00186                 break;
00187             case MMSGUI_IMAGEWIDGET_ATTR::MMSGUI_IMAGEWIDGET_ATTR_IDS_useratio:
00188                 setUseRatio((attrval_int) ? true : false);
00189                 break;
00190             case MMSGUI_IMAGEWIDGET_ATTR::MMSGUI_IMAGEWIDGET_ATTR_IDS_fit_width:
00191                 setFitWidth((attrval_int) ? true : false);
00192                 break;
00193             case MMSGUI_IMAGEWIDGET_ATTR::MMSGUI_IMAGEWIDGET_ATTR_IDS_fit_height:
00194                 setFitHeight((attrval_int) ? true : false);
00195                 break;
00196             case MMSGUI_IMAGEWIDGET_ATTR::MMSGUI_IMAGEWIDGET_ATTR_IDS_alignment:
00197                 setAlignment(getAlignmentFromString(attrval_str));
00198                 break;
00199             case MMSGUI_IMAGEWIDGET_ATTR::MMSGUI_IMAGEWIDGET_ATTR_IDS_mirror_size:
00200                 setMirrorSize(attrval_int);
00201                 break;
00202             case MMSGUI_IMAGEWIDGET_ATTR::MMSGUI_IMAGEWIDGET_ATTR_IDS_gen_taff:
00203                 setGenTaff((attrval_int) ? true : false);
00204                 break;
00205             }
00206         }
00207         endTAFFScan
00208     }
00209     else {
00210         unsigned int pl = strlen(prefix->c_str());
00211 
00212         startTAFFScan_WITHOUT_ID
00213         {
00214             // check if attrname has correct prefix
00215             if (pl >= strlen(attrname))
00216                 continue;
00217             if (memcmp(attrname, prefix->c_str(), pl)!=0)
00218                 continue;
00219             attrname = &attrname[pl];
00220 
00221             // special storage for macros
00222             bool attrval_str_valid;
00223             bool int_val_set;
00224             bool byte_val_set;
00225             int  *p_int_val = &attrval_int;
00226 
00227             // okay, correct prefix, check attributes now
00228             if (ISATTRNAME(image)) {
00229                 if (*attrval_str)
00230                     setImagePath("");
00231                 else
00232                     setImagePath((path)?*path:"");
00233                 setImageName(attrval_str);
00234             }
00235             else
00236             if (ISATTRNAME(image_path)) {
00237                 if (*attrval_str)
00238                     setImagePath(attrval_str);
00239                 else
00240                     setImagePath((path)?*path:"");
00241             }
00242             else
00243             if (ISATTRNAME(image_name)) {
00244                 setImageName(attrval_str);
00245             }
00246             else
00247             if (ISATTRNAME(selimage)) {
00248                 if (*attrval_str)
00249                     setSelImagePath("");
00250                 else
00251                     setSelImagePath((path)?*path:"");
00252                 setSelImageName(attrval_str);
00253             }
00254             else
00255             if (ISATTRNAME(selimage_path)) {
00256                 if (*attrval_str)
00257                     setSelImagePath(attrval_str);
00258                 else
00259                     setSelImagePath((path)?*path:"");
00260             }
00261             else
00262             if (ISATTRNAME(selimage_name)) {
00263                 setSelImageName(attrval_str);
00264             }
00265             else
00266             if (ISATTRNAME(image_p)) {
00267                 if (*attrval_str)
00268                     setImagePath_p("");
00269                 else
00270                     setImagePath_p((path)?*path:"");
00271                 setImageName_p(attrval_str);
00272             }
00273             else
00274             if (ISATTRNAME(image_p_path)) {
00275                 if (*attrval_str)
00276                     setImagePath_p(attrval_str);
00277                 else
00278                     setImagePath_p((path)?*path:"");
00279             }
00280             else
00281             if (ISATTRNAME(image_p_name)) {
00282                 setImageName_p(attrval_str);
00283             }
00284             else
00285             if (ISATTRNAME(selimage_p)) {
00286                 if (*attrval_str)
00287                     setSelImagePath_p("");
00288                 else
00289                     setSelImagePath_p((path)?*path:"");
00290                 setSelImageName_p(attrval_str);
00291             }
00292             else
00293             if (ISATTRNAME(selimage_p_path)) {
00294                 if (*attrval_str)
00295                     setSelImagePath_p(attrval_str);
00296                 else
00297                     setSelImagePath_p((path)?*path:"");
00298             }
00299             else
00300             if (ISATTRNAME(selimage_p_name)) {
00301                 setSelImageName_p(attrval_str);
00302             }
00303             else
00304             if (ISATTRNAME(image_i)) {
00305                 if (*attrval_str)
00306                     setImagePath_i("");
00307                 else
00308                     setImagePath_i((path)?*path:"");
00309                 setImageName_i(attrval_str);
00310             }
00311             else
00312             if (ISATTRNAME(image_i_path)) {
00313                 if (*attrval_str)
00314                     setImagePath_i(attrval_str);
00315                 else
00316                     setImagePath_i((path)?*path:"");
00317             }
00318             else
00319             if (ISATTRNAME(image_i_name)) {
00320                 setImageName_i(attrval_str);
00321             }
00322             else
00323             if (ISATTRNAME(selimage_i)) {
00324                 if (*attrval_str)
00325                     setSelImagePath_i("");
00326                 else
00327                     setSelImagePath_i((path)?*path:"");
00328                 setSelImageName_i(attrval_str);
00329             }
00330             else
00331             if (ISATTRNAME(selimage_i_path)) {
00332                 if (*attrval_str)
00333                     setSelImagePath_i(attrval_str);
00334                 else
00335                     setSelImagePath_i((path)?*path:"");
00336             }
00337             else
00338             if (ISATTRNAME(selimage_i_name)) {
00339                 setSelImageName_i(attrval_str);
00340             }
00341             else
00342             if (ISATTRNAME(useratio)) {
00343                 setUseRatio((attrval_int) ? true : false);
00344             }
00345             else
00346             if (ISATTRNAME(fit_width)) {
00347                 setFitWidth((attrval_int) ? true : false);
00348             }
00349             else
00350             if (ISATTRNAME(fit_height)) {
00351                 setFitHeight((attrval_int) ? true : false);
00352             }
00353             else
00354             if (ISATTRNAME(alignment)) {
00355                 setAlignment(getAlignmentFromString(attrval_str));
00356             }
00357             else
00358             if (ISATTRNAME(mirror_size)) {
00359                 setMirrorSize(attrval_int);
00360             }
00361             else
00362             if (ISATTRNAME(gen_taff)) {
00363                 setGenTaff((attrval_int) ? true : false);
00364             }
00365         }
00366         endTAFFScan_WITHOUT_ID
00367     }
00368 
00369     if ((reset_paths)&&(path)&&(*path!="")) {
00370         // set my paths
00371         if (!isImagePath())
00372             setImagePath(*path);
00373         if (!isSelImagePath())
00374             setSelImagePath(*path);
00375         if (!isImagePath_p())
00376             setImagePath_p(*path);
00377         if (!isSelImagePath_p())
00378             setSelImagePath_p(*path);
00379         if (!isImagePath_i())
00380             setImagePath_i(*path);
00381         if (!isSelImagePath_i())
00382             setSelImagePath_i(*path);
00383     }
00384 }
00385 
00386 void MMSImageWidgetClass::setClassName(string className) {
00387     this->className = className;
00388 }
00389 
00390 string MMSImageWidgetClass::getClassName() {
00391     return this->className;
00392 }
00393 
00394 bool MMSImageWidgetClass::isImagePath() {
00395     return this->isimagepath;
00396 }
00397 
00398 void MMSImageWidgetClass::setImagePath(string imagepath) {
00399     this->imagepath = imagepath;
00400     this->isimagepath = true;
00401 }
00402 
00403 void MMSImageWidgetClass::unsetImagePath() {
00404     this->isimagepath = false;
00405 }
00406 
00407 string MMSImageWidgetClass::getImagePath() {
00408     return this->imagepath;
00409 }
00410 
00411 bool MMSImageWidgetClass::isImageName() {
00412     return this->isimagename;
00413 }
00414 
00415 void MMSImageWidgetClass::setImageName(string imagename) {
00416     this->imagename = imagename;
00417     this->isimagename = true;
00418 }
00419 
00420 void MMSImageWidgetClass::unsetImageName() {
00421     this->isimagename = false;
00422 }
00423 
00424 string MMSImageWidgetClass::getImageName() {
00425     return this->imagename;
00426 }
00427 
00428 bool MMSImageWidgetClass::isSelImagePath() {
00429     return this->isselimagepath;
00430 }
00431 
00432 void MMSImageWidgetClass::setSelImagePath(string selimagepath) {
00433     this->selimagepath = selimagepath;
00434     this->isselimagepath = true;
00435 }
00436 
00437 void MMSImageWidgetClass::unsetSelImagePath() {
00438     this->isselimagepath = false;
00439 }
00440 
00441 string MMSImageWidgetClass::getSelImagePath() {
00442     return this->selimagepath;
00443 }
00444 
00445 bool MMSImageWidgetClass::isSelImageName() {
00446     return this->isselimagename;
00447 }
00448 
00449 void MMSImageWidgetClass::setSelImageName(string selimagename) {
00450     this->selimagename = selimagename;
00451     this->isselimagename = true;
00452 }
00453 
00454 void MMSImageWidgetClass::unsetSelImageName() {
00455     this->isselimagename = false;
00456 }
00457 
00458 string MMSImageWidgetClass::getSelImageName() {
00459     return this->selimagename;
00460 }
00461 
00462 
00463 bool MMSImageWidgetClass::isImagePath_p() {
00464     return this->isimagepath_p;
00465 }
00466 
00467 void MMSImageWidgetClass::setImagePath_p(string imagepath_p) {
00468     this->imagepath_p = imagepath_p;
00469     this->isimagepath_p = true;
00470 }
00471 
00472 void MMSImageWidgetClass::unsetImagePath_p() {
00473     this->isimagepath_p = false;
00474 }
00475 
00476 string MMSImageWidgetClass::getImagePath_p() {
00477     return this->imagepath_p;
00478 }
00479 
00480 bool MMSImageWidgetClass::isImageName_p() {
00481     return this->isimagename_p;
00482 }
00483 
00484 void MMSImageWidgetClass::setImageName_p(string imagename_p) {
00485     this->imagename_p = imagename_p;
00486     this->isimagename_p = true;
00487 }
00488 
00489 void MMSImageWidgetClass::unsetImageName_p() {
00490     this->isimagename_p = false;
00491 }
00492 
00493 string MMSImageWidgetClass::getImageName_p() {
00494     return this->imagename_p;
00495 }
00496 
00497 bool MMSImageWidgetClass::isSelImagePath_p() {
00498     return this->isselimagepath_p;
00499 }
00500 
00501 void MMSImageWidgetClass::setSelImagePath_p(string selimagepath_p) {
00502     this->selimagepath_p = selimagepath_p;
00503     this->isselimagepath_p = true;
00504 }
00505 
00506 void MMSImageWidgetClass::unsetSelImagePath_p() {
00507     this->isselimagepath_p = false;
00508 }
00509 
00510 string MMSImageWidgetClass::getSelImagePath_p() {
00511     return this->selimagepath_p;
00512 }
00513 
00514 bool MMSImageWidgetClass::isSelImageName_p() {
00515     return this->isselimagename_p;
00516 }
00517 
00518 void MMSImageWidgetClass::setSelImageName_p(string selimagename_p) {
00519     this->selimagename_p = selimagename_p;
00520     this->isselimagename_p = true;
00521 }
00522 
00523 void MMSImageWidgetClass::unsetSelImageName_p() {
00524     this->isselimagename_p = false;
00525 }
00526 
00527 string MMSImageWidgetClass::getSelImageName_p() {
00528     return this->selimagename_p;
00529 }
00530 
00531 
00532 bool MMSImageWidgetClass::isImagePath_i() {
00533     return this->isimagepath_i;
00534 }
00535 
00536 void MMSImageWidgetClass::setImagePath_i(string imagepath_i) {
00537     this->imagepath_i = imagepath_i;
00538     this->isimagepath_i = true;
00539 }
00540 
00541 void MMSImageWidgetClass::unsetImagePath_i() {
00542     this->isimagepath_i = false;
00543 }
00544 
00545 string MMSImageWidgetClass::getImagePath_i() {
00546     return this->imagepath_i;
00547 }
00548 
00549 bool MMSImageWidgetClass::isImageName_i() {
00550     return this->isimagename_i;
00551 }
00552 
00553 void MMSImageWidgetClass::setImageName_i(string imagename_i) {
00554     this->imagename_i = imagename_i;
00555     this->isimagename_i = true;
00556 }
00557 
00558 void MMSImageWidgetClass::unsetImageName_i() {
00559     this->isimagename_i = false;
00560 }
00561 
00562 string MMSImageWidgetClass::getImageName_i() {
00563     return this->imagename_i;
00564 }
00565 
00566 bool MMSImageWidgetClass::isSelImagePath_i() {
00567     return this->isselimagepath_i;
00568 }
00569 
00570 void MMSImageWidgetClass::setSelImagePath_i(string selimagepath_i) {
00571     this->selimagepath_i = selimagepath_i;
00572     this->isselimagepath_i = true;
00573 }
00574 
00575 void MMSImageWidgetClass::unsetSelImagePath_i() {
00576     this->isselimagepath_i = false;
00577 }
00578 
00579 string MMSImageWidgetClass::getSelImagePath_i() {
00580     return this->selimagepath_i;
00581 }
00582 
00583 bool MMSImageWidgetClass::isSelImageName_i() {
00584     return this->isselimagename_i;
00585 }
00586 
00587 void MMSImageWidgetClass::setSelImageName_i(string selimagename_i) {
00588     this->selimagename_i = selimagename_i;
00589     this->isselimagename_i = true;
00590 }
00591 
00592 void MMSImageWidgetClass::unsetSelImageName_i() {
00593     this->isselimagename_i = false;
00594 }
00595 
00596 string MMSImageWidgetClass::getSelImageName_i() {
00597     return this->selimagename_i;
00598 }
00599 
00600 bool MMSImageWidgetClass::isUseRatio() {
00601     return this->isuseratio;
00602 }
00603 
00604 void MMSImageWidgetClass::setUseRatio(bool useratio) {
00605     this->useratio = useratio;
00606     this->isuseratio = true;
00607 }
00608 
00609 void MMSImageWidgetClass::unsetUseRatio() {
00610     this->isuseratio = false;
00611 }
00612 
00613 bool MMSImageWidgetClass::getUseRatio() {
00614     return this->useratio;
00615 }
00616 
00617 bool MMSImageWidgetClass::isFitWidth() {
00618     return this->isfitwidth;
00619 }
00620 
00621 void MMSImageWidgetClass::setFitWidth(bool fitwidth) {
00622     this->fitwidth = fitwidth;
00623     this->isfitwidth = true;
00624 }
00625 
00626 void MMSImageWidgetClass::unsetFitWidth() {
00627     this->isfitwidth = false;
00628 }
00629 
00630 bool MMSImageWidgetClass::getFitWidth() {
00631     return this->fitwidth;
00632 }
00633 
00634 bool MMSImageWidgetClass::isFitHeight() {
00635     return this->isfitheight;
00636 }
00637 
00638 void MMSImageWidgetClass::setFitHeight(bool fitheight) {
00639     this->fitheight = fitheight;
00640     this->isfitheight = true;
00641 }
00642 
00643 void MMSImageWidgetClass::unsetFitHeight() {
00644     this->isfitheight = false;
00645 }
00646 
00647 bool MMSImageWidgetClass::getFitHeight() {
00648     return this->fitheight;
00649 }
00650 
00651 
00652 bool MMSImageWidgetClass::isAlignment() {
00653     return this->isalignment;
00654 }
00655 
00656 void MMSImageWidgetClass::setAlignment(MMSALIGNMENT alignment) {
00657     this->alignment = alignment;
00658     this->isalignment = true;
00659 }
00660 
00661 void MMSImageWidgetClass::unsetAlignment() {
00662     this->isalignment = false;
00663 }
00664 
00665 MMSALIGNMENT MMSImageWidgetClass::getAlignment() {
00666     return this->alignment;
00667 }
00668 
00669 bool MMSImageWidgetClass::isMirrorSize() {
00670     return this->ismirrorsize;
00671 }
00672 
00673 void MMSImageWidgetClass::setMirrorSize(unsigned int mirrorsize) {
00674     this->mirrorsize = mirrorsize;
00675     this->ismirrorsize = true;
00676 }
00677 
00678 void MMSImageWidgetClass::unsetMirrorSize() {
00679     this->ismirrorsize = false;
00680 }
00681 
00682 unsigned int MMSImageWidgetClass::getMirrorSize() {
00683     return this->mirrorsize;
00684 }
00685 
00686 bool MMSImageWidgetClass::isGenTaff() {
00687     return this->isgentaff;
00688 }
00689 
00690 void MMSImageWidgetClass::setGenTaff(bool gentaff) {
00691     this->gentaff = gentaff;
00692     this->isgentaff = true;
00693 }
00694 
00695 void MMSImageWidgetClass::unsetGenTaff() {
00696     this->isgentaff = false;
00697 }
00698 
00699 bool MMSImageWidgetClass::getGenTaff() {
00700     return this->gentaff;
00701 }
00702 
00703 

Generated by doxygen