Back to index

salome-geom  6.5.0
DlgRef.cxx
Go to the documentation of this file.
00001 // Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // This library is free software; you can redistribute it and/or
00004 // modify it under the terms of the GNU Lesser General Public
00005 // License as published by the Free Software Foundation; either
00006 // version 2.1 of the License.
00007 //
00008 // This library is distributed in the hope that it will be useful,
00009 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00010 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011 // Lesser General Public License for more details.
00012 //
00013 // You should have received a copy of the GNU Lesser General Public
00014 // License along with this library; if not, write to the Free Software
00015 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00016 //
00017 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00018 //
00019 
00020 // File   : DlgRef.cxx
00021 // Author : Vadim SANDLER, Open CASCADE S.A.S. (vadim.sandler@opencascade.com)
00022 
00023 #include "DlgRef.h"
00024 
00026 // DlgRef_1List1Spin1Btn
00028 
00029 DlgRef_1List1Spin1Btn::DlgRef_1List1Spin1Btn( QWidget* parent, Qt::WindowFlags f )
00030 : QWidget( parent, f )
00031 {
00032   setupUi( this );
00033 }
00034 
00035 DlgRef_1List1Spin1Btn::~DlgRef_1List1Spin1Btn()
00036 {
00037 }
00038 
00040 // DlgRef_1Sel1Check1List
00042 
00043 DlgRef_1Sel1Check1List::DlgRef_1Sel1Check1List( QWidget* parent, Qt::WindowFlags f )
00044 : QWidget( parent, f )
00045 {
00046   setupUi( this );
00047 }
00048 
00049 DlgRef_1Sel1Check1List::~DlgRef_1Sel1Check1List()
00050 {
00051 }
00052 
00054 // DlgRef_1Sel1Check1Sel
00056 
00057 DlgRef_1Sel1Check1Sel::DlgRef_1Sel1Check1Sel( QWidget* parent, Qt::WindowFlags f )
00058 : QWidget( parent, f )
00059 {
00060   setupUi( this );
00061 }
00062 
00063 DlgRef_1Sel1Check1Sel::~DlgRef_1Sel1Check1Sel()
00064 {
00065 }
00066 
00068 // DlgRef_1Sel1Check
00070 
00071 DlgRef_1Sel1Check::DlgRef_1Sel1Check( QWidget* parent, Qt::WindowFlags f )
00072 : QWidget( parent, f )
00073 {
00074   setupUi( this );
00075 }
00076 
00077 DlgRef_1Sel1Check::~DlgRef_1Sel1Check()
00078 {
00079 }
00080 
00082 // DlgRef_1Sel1Frame
00084 
00085 DlgRef_1Sel1Frame::DlgRef_1Sel1Frame( QWidget* parent, Qt::WindowFlags f )
00086 : QWidget( parent, f )
00087 {
00088   setupUi( this );
00089 }
00090 
00091 DlgRef_1Sel1Frame::~DlgRef_1Sel1Frame()
00092 {
00093 }
00094 
00096 // DlgRef_1Sel1List1Check3Btn
00098 
00099 DlgRef_1Sel1List1Check3Btn::DlgRef_1Sel1List1Check3Btn( QWidget* parent, Qt::WindowFlags f )
00100 : QWidget( parent, f )
00101 {
00102   setupUi( this );
00103 }
00104 
00105 DlgRef_1Sel1List1Check3Btn::~DlgRef_1Sel1List1Check3Btn()
00106 {
00107 }
00108 
00110 // DlgRef_1Sel1Spin1Check
00112 
00113 DlgRef_1Sel1Spin1Check::DlgRef_1Sel1Spin1Check( QWidget* parent, Qt::WindowFlags f )
00114 : QWidget( parent, f )
00115 {
00116   setupUi( this );
00117 }
00118 
00119 DlgRef_1Sel1Spin1Check::~DlgRef_1Sel1Spin1Check()
00120 {
00121 }
00122 
00124 // DlgRef_1Sel1Spin
00126 
00127 DlgRef_1Sel1Spin::DlgRef_1Sel1Spin( QWidget* parent, Qt::WindowFlags f )
00128 : QWidget( parent, f )
00129 {
00130   setupUi( this );
00131 }
00132 
00133 DlgRef_1Sel1Spin::~DlgRef_1Sel1Spin()
00134 {
00135 }
00136 
00138 // DlgRef_1Sel2Spin1View1Check
00140 
00141 DlgRef_1Sel2Spin1View1Check::DlgRef_1Sel2Spin1View1Check( QWidget* parent, Qt::WindowFlags f )
00142 : QWidget( parent, f )
00143 {
00144   setupUi( this );
00145 }
00146 
00147 DlgRef_1Sel2Spin1View1Check::~DlgRef_1Sel2Spin1View1Check()
00148 {
00149 }
00150 
00152 // DlgRef_1Sel2Spin
00154 
00155 DlgRef_1Sel2Spin::DlgRef_1Sel2Spin( QWidget* parent, Qt::WindowFlags f )
00156 : QWidget( parent, f )
00157 {
00158   setupUi( this );
00159 }
00160 
00161 DlgRef_1Sel2Spin::~DlgRef_1Sel2Spin()
00162 {
00163 }
00164 
00166 // DlgRef_1Sel3Check
00168 
00169 DlgRef_1Sel3Check::DlgRef_1Sel3Check( QWidget* parent, Qt::WindowFlags f )
00170 : QWidget( parent, f )
00171 {
00172   setupUi( this );
00173 }
00174 
00175 DlgRef_1Sel3Check::~DlgRef_1Sel3Check()
00176 {
00177 }
00178 
00180 // DlgRef_1Sel3Spin
00182 
00183 DlgRef_1Sel3Spin::DlgRef_1Sel3Spin( QWidget* parent, Qt::WindowFlags f )
00184 : QWidget( parent, f )
00185 {
00186   setupUi( this );
00187 }
00188 
00189 DlgRef_1Sel3Spin::~DlgRef_1Sel3Spin()
00190 {
00191 }
00192 
00194 // DlgRef_1Sel3Spin2Check1Spin
00196 
00197 DlgRef_1Sel3Spin2Check1Spin::DlgRef_1Sel3Spin2Check1Spin( QWidget* parent, Qt::WindowFlags f )
00198 : QWidget( parent, f )
00199 {
00200   setupUi( this );
00201 }
00202 
00203 DlgRef_1Sel3Spin2Check1Spin::~DlgRef_1Sel3Spin2Check1Spin()
00204 {
00205 }
00206 
00208 // DlgRef_1Sel3Spin1Check
00210 
00211 DlgRef_1Sel3Spin1Check::DlgRef_1Sel3Spin1Check( QWidget* parent, Qt::WindowFlags f )
00212 : QWidget( parent, f )
00213 {
00214   setupUi( this );
00215 }
00216 
00217 DlgRef_1Sel3Spin1Check::~DlgRef_1Sel3Spin1Check()
00218 {
00219 }
00220 
00222 // DlgRef_1Sel4Spin2Check
00224 
00225 DlgRef_1Sel4Spin2Check::DlgRef_1Sel4Spin2Check( QWidget* parent, Qt::WindowFlags f )
00226 : QWidget( parent, f )
00227 {
00228   setupUi( this );
00229 }
00230 
00231 DlgRef_1Sel4Spin2Check::~DlgRef_1Sel4Spin2Check()
00232 {
00233 }
00234 
00236 // DlgRef_1Sel4Spin
00238 
00239 DlgRef_1Sel4Spin::DlgRef_1Sel4Spin( QWidget* parent, Qt::WindowFlags f )
00240 : QWidget( parent, f )
00241 {
00242   setupUi( this );
00243 }
00244 
00245 DlgRef_1Sel4Spin::~DlgRef_1Sel4Spin()
00246 {
00247 }
00248 
00250 // DlgRef_1Sel5Spin1Check
00252 
00253 DlgRef_1Sel5Spin1Check::DlgRef_1Sel5Spin1Check( QWidget* parent, Qt::WindowFlags f )
00254 : QWidget( parent, f )
00255 {
00256   setupUi( this );
00257 }
00258 
00259 DlgRef_1Sel5Spin1Check::~DlgRef_1Sel5Spin1Check()
00260 {
00261 }
00262 
00264 // DlgRef_1Sel5Spin
00266 
00267 DlgRef_1Sel5Spin::DlgRef_1Sel5Spin( QWidget* parent, Qt::WindowFlags f )
00268 : QWidget( parent, f )
00269 {
00270   setupUi( this );
00271 }
00272 
00273 DlgRef_1Sel5Spin::~DlgRef_1Sel5Spin()
00274 {
00275 }
00276 
00278 // DlgRef_1Spin
00280 
00281 DlgRef_1Spin::DlgRef_1Spin( QWidget* parent, Qt::WindowFlags f )
00282 : QWidget( parent, f )
00283 {
00284   setupUi( this );
00285 }
00286 
00287 DlgRef_1Spin::~DlgRef_1Spin()
00288 {
00289 }
00290 
00292 // DlgRef_1Sel
00294 
00295 DlgRef_1Sel::DlgRef_1Sel( QWidget* parent, Qt::WindowFlags f )
00296 : QWidget( parent, f )
00297 {
00298   setupUi( this );
00299 }
00300 
00301 DlgRef_1Sel::~DlgRef_1Sel()
00302 {
00303 }
00304 
00306 // DlgRef_1SelExt
00308 
00309 DlgRef_1SelExt::DlgRef_1SelExt( QWidget* parent, Qt::WindowFlags f )
00310 : QWidget( parent, f )
00311 {
00312   setupUi( this );
00313 }
00314 
00315 DlgRef_1SelExt::~DlgRef_1SelExt()
00316 {
00317 }
00318 
00320 // DlgRef_2Sel1List1Check
00322 
00323 DlgRef_2Sel1List1Check::DlgRef_2Sel1List1Check( QWidget* parent, Qt::WindowFlags f )
00324 : QWidget( parent, f )
00325 {
00326   setupUi( this );
00327 }
00328 
00329 DlgRef_2Sel1List1Check::~DlgRef_2Sel1List1Check()
00330 {
00331 }
00332 
00334 // DlgRef_2Sel1List2Check
00336 
00337 DlgRef_2Sel1List2Check::DlgRef_2Sel1List2Check( QWidget* parent, Qt::WindowFlags f )
00338 : QWidget( parent, f )
00339 {
00340   setupUi( this );
00341 }
00342 
00343 DlgRef_2Sel1List2Check::~DlgRef_2Sel1List2Check()
00344 {
00345 }
00346 
00348 // DlgRef_2Sel1List
00350 
00351 DlgRef_2Sel1List::DlgRef_2Sel1List( QWidget* parent, Qt::WindowFlags f )
00352 : QWidget( parent, f )
00353 {
00354   setupUi( this );
00355 }
00356 
00357 DlgRef_2Sel1List::~DlgRef_2Sel1List()
00358 {
00359 }
00360 
00362 // DlgRef_2Sel1Spin2Check
00364 
00365 DlgRef_2Sel1Spin2Check::DlgRef_2Sel1Spin2Check( QWidget* parent, Qt::WindowFlags f )
00366 : QWidget( parent, f )
00367 {
00368   setupUi( this );
00369 }
00370 
00371 DlgRef_2Sel1Spin2Check::~DlgRef_2Sel1Spin2Check()
00372 {
00373 }
00374 
00376 // DlgRef_2Sel1Spin3Check1Spin
00378 
00379 DlgRef_2Sel1Spin3Check1Spin::DlgRef_2Sel1Spin3Check1Spin( QWidget* parent, Qt::WindowFlags f )
00380 : QWidget( parent, f )
00381 {
00382   setupUi( this );
00383 }
00384 
00385 DlgRef_2Sel1Spin3Check1Spin::~DlgRef_2Sel1Spin3Check1Spin()
00386 {
00387 }
00388 
00390 // DlgRef_2Sel1Spin
00392 
00393 DlgRef_2Sel1Spin::DlgRef_2Sel1Spin( QWidget* parent, Qt::WindowFlags f )
00394 : QWidget( parent, f )
00395 {
00396   setupUi( this );
00397 }
00398 
00399 DlgRef_2Sel1Spin::~DlgRef_2Sel1Spin()
00400 {
00401 }
00402 
00404 // DlgRef_2Sel1SpinInt
00406 
00407 DlgRef_2Sel1SpinInt::DlgRef_2Sel1SpinInt( QWidget* parent, Qt::WindowFlags f )
00408 : QWidget( parent, f )
00409 {
00410   setupUi( this );
00411 }
00412 
00413 DlgRef_2Sel1SpinInt::~DlgRef_2Sel1SpinInt()
00414 {
00415 }
00416 
00418 // DlgRef_2Sel2List
00420 
00421 DlgRef_2Sel2List::DlgRef_2Sel2List( QWidget* parent, Qt::WindowFlags f )
00422 : QWidget( parent, f )
00423 {
00424   setupUi( this );
00425 }
00426 
00427 DlgRef_2Sel2List::~DlgRef_2Sel2List()
00428 {
00429 }
00430 
00432 // DlgRef_2Sel2Spin1Check
00434 
00435 DlgRef_2Sel2Spin1Check::DlgRef_2Sel2Spin1Check( QWidget* parent, Qt::WindowFlags f )
00436 : QWidget( parent, f )
00437 {
00438   setupUi( this );
00439 }
00440 
00441 DlgRef_2Sel2Spin1Check::~DlgRef_2Sel2Spin1Check()
00442 {
00443 }
00444 
00446 // DlgRef_2Sel2Spin3Check
00448 
00449 DlgRef_2Sel2Spin3Check::DlgRef_2Sel2Spin3Check( QWidget* parent, Qt::WindowFlags f )
00450 : QWidget( parent, f )
00451 {
00452   setupUi( this );
00453 }
00454 
00455 DlgRef_2Sel2Spin3Check::~DlgRef_2Sel2Spin3Check()
00456 {
00457 }
00458 
00460 // DlgRef_2Sel2Spin
00462 
00463 DlgRef_2Sel2Spin::DlgRef_2Sel2Spin( QWidget* parent, Qt::WindowFlags f )
00464 : QWidget( parent, f )
00465 {
00466   setupUi( this );
00467 }
00468 
00469 DlgRef_2Sel2Spin::~DlgRef_2Sel2Spin()
00470 {
00471 }
00472 
00474 // DlgRef_2Sel2Spin1Push
00476 
00477 DlgRef_2Sel2Spin1Push::DlgRef_2Sel2Spin1Push( QWidget* parent, Qt::WindowFlags f )
00478 : QWidget( parent, f )
00479 {
00480   setupUi( this );
00481 }
00482 
00483 DlgRef_2Sel2Spin1Push::~DlgRef_2Sel2Spin1Push()
00484 {
00485 }
00486 
00488 // DlgRef_2Sel2Spin2Push
00490 
00491 DlgRef_2Sel2Spin2Push::DlgRef_2Sel2Spin2Push( QWidget* parent, Qt::WindowFlags f )
00492 : QWidget( parent, f )
00493 {
00494   setupUi( this );
00495 }
00496 
00497 DlgRef_2Sel2Spin2Push::~DlgRef_2Sel2Spin2Push()
00498 {
00499 }
00500 
00502 // DlgRef_2Sel3Spin2Rb
00504 
00505 DlgRef_2Sel3Spin2Rb::DlgRef_2Sel3Spin2Rb( QWidget* parent, Qt::WindowFlags f )
00506 : QWidget( parent, f )
00507 {
00508   setupUi( this );
00509 }
00510 
00511 DlgRef_2Sel3Spin2Rb::~DlgRef_2Sel3Spin2Rb()
00512 {
00513 }
00514 
00516 // DlgRef_2Sel3Spin
00518 
00519 DlgRef_2Sel3Spin::DlgRef_2Sel3Spin( QWidget* parent, Qt::WindowFlags f )
00520 : QWidget( parent, f )
00521 {
00522   setupUi( this );
00523 }
00524 
00525 DlgRef_2Sel3Spin::~DlgRef_2Sel3Spin()
00526 {
00527 }
00528 
00530 // DlgRef_2Sel4Spin1Check
00532 
00533 DlgRef_2Sel4Spin1Check::DlgRef_2Sel4Spin1Check( QWidget* parent, Qt::WindowFlags f )
00534 : QWidget( parent, f )
00535 {
00536   setupUi( this );
00537 }
00538 
00539 DlgRef_2Sel4Spin1Check::~DlgRef_2Sel4Spin1Check()
00540 {
00541 }
00542 
00544 // DlgRef_2Sel
00546 
00547 DlgRef_2Sel::DlgRef_2Sel( QWidget* parent, Qt::WindowFlags f )
00548 : QWidget( parent, f )
00549 {
00550   setupUi( this );
00551 }
00552 
00553 DlgRef_2Sel::~DlgRef_2Sel()
00554 {
00555 }
00556 
00558 // DlgRef_2SelExt
00560 
00561 DlgRef_2SelExt::DlgRef_2SelExt( QWidget* parent, Qt::WindowFlags f )
00562 : QWidget( parent, f )
00563 {
00564   setupUi( this );
00565 }
00566 
00567 DlgRef_2SelExt::~DlgRef_2SelExt()
00568 {
00569 }
00570 
00572 // DlgRef_2Spin
00574 
00575 DlgRef_2Spin::DlgRef_2Spin( QWidget* parent, Qt::WindowFlags f )
00576 : QWidget( parent, f )
00577 {
00578   setupUi( this );
00579 }
00580 
00581 DlgRef_2Spin::~DlgRef_2Spin()
00582 {
00583 }
00584 
00586 // DlgRef_3Check
00588 
00589 DlgRef_3Check::DlgRef_3Check( QWidget* parent, Qt::WindowFlags f )
00590 : QWidget( parent, f )
00591 {
00592   setupUi( this );
00593 }
00594 
00595 DlgRef_3Check::~DlgRef_3Check()
00596 {
00597 }
00598 
00600 // DlgRef_3Radio
00602 
00603 DlgRef_3Radio::DlgRef_3Radio( QWidget* parent, Qt::WindowFlags f )
00604 : QWidget( parent, f )
00605 {
00606   setupUi( this );
00607 }
00608 
00609 DlgRef_3Radio::~DlgRef_3Radio()
00610 {
00611 }
00612 
00614 // DlgRef_3Radio1Sel1Spin
00616 
00617 DlgRef_3Radio1Sel1Spin::DlgRef_3Radio1Sel1Spin( QWidget* parent, Qt::WindowFlags f )
00618 : QWidget( parent, f )
00619 {
00620   setupUi( this );
00621 }
00622 
00623 DlgRef_3Radio1Sel1Spin::~DlgRef_3Radio1Sel1Spin()
00624 {
00625 }
00626 
00628 // DlgRef_3Sel1Check
00630 
00631 DlgRef_3Sel1Check::DlgRef_3Sel1Check( QWidget* parent, Qt::WindowFlags f )
00632 : QWidget( parent, f )
00633 {
00634   setupUi( this );
00635 }
00636 
00637 DlgRef_3Sel1Check::~DlgRef_3Sel1Check()
00638 {
00639 }
00640 
00642 // DlgRef_3Sel1Spin
00644 
00645 DlgRef_3Sel1Spin::DlgRef_3Sel1Spin( QWidget* parent, Qt::WindowFlags f )
00646 : QWidget( parent, f )
00647 {
00648   setupUi( this );
00649 }
00650 
00651 DlgRef_3Sel1Spin::~DlgRef_3Sel1Spin()
00652 {
00653 }
00654 
00656 // DlgRef_3Sel2Spin
00658 
00659 DlgRef_3Sel2Spin::DlgRef_3Sel2Spin( QWidget* parent, Qt::WindowFlags f )
00660 : QWidget( parent, f )
00661 {
00662   setupUi( this );
00663 }
00664 
00665 DlgRef_3Sel2Spin::~DlgRef_3Sel2Spin()
00666 {
00667 }
00668 
00670 // DlgRef_3Sel3Spin1Check
00672 
00673 DlgRef_3Sel3Spin1Check::DlgRef_3Sel3Spin1Check( QWidget* parent, Qt::WindowFlags f )
00674 : QWidget( parent, f )
00675 {
00676   setupUi( this );
00677 }
00678 
00679 DlgRef_3Sel3Spin1Check::~DlgRef_3Sel3Spin1Check()
00680 {
00681 }
00682 
00683 void DlgRef_3Sel3Spin1Check::ShowRows( int fromRow, int toRow, bool toShow )
00684 {
00685   const int maxRows = 7;
00686   
00687   if ( toRow >= fromRow && fromRow >= 0 && toRow <= maxRows ) {
00688     int c = gridLayout1->count();
00689     for ( int i = 0; i < c; i++ ) {
00690       QWidget* w = gridLayout1->itemAt( i )->widget();
00691       int row, col, rowspan, colspan;
00692       gridLayout1->getItemPosition( i, &row, &col, &rowspan, &colspan );
00693       if ( w && row >= fromRow && row <= toRow )
00694         w->setVisible( toShow );
00695     }
00696   }
00697 }
00698 
00700 // DlgRef_3Sel2Check3Spin
00702 
00703 DlgRef_3Sel2Check3Spin::DlgRef_3Sel2Check3Spin( QWidget* parent, Qt::WindowFlags f )
00704 : QWidget( parent, f )
00705 {
00706   setupUi( this );
00707 }
00708 
00709 DlgRef_3Sel2Check3Spin::~DlgRef_3Sel2Check3Spin()
00710 {
00711 }
00712 
00713 void DlgRef_3Sel2Check3Spin::ShowRows( int fromRow, int toRow, bool toShow )
00714 {
00715   const int maxRows = 8;
00716   
00717   if ( toRow >= fromRow && fromRow >= 0 && toRow <= maxRows ) {
00718     int c = gridLayout1->count();
00719     for ( int i = 0; i < c; i++ ) {
00720       QWidget* w = gridLayout1->itemAt( i )->widget();
00721       int row, col, rowspan, colspan;
00722       gridLayout1->getItemPosition( i, &row, &col, &rowspan, &colspan );
00723       if ( w && row >= fromRow && row <= toRow )
00724         w->setVisible( toShow );
00725     }
00726   }
00727 }
00728 
00730 // DlgRef_3Sel3Spin2Check
00732 
00733 DlgRef_3Sel3Spin2Check::DlgRef_3Sel3Spin2Check( QWidget* parent, Qt::WindowFlags f )
00734 : QWidget( parent, f )
00735 {
00736   setupUi( this );
00737 }
00738 
00739 DlgRef_3Sel3Spin2Check::~DlgRef_3Sel3Spin2Check()
00740 {
00741 }
00742 
00743 void DlgRef_3Sel3Spin2Check::ShowRows( int fromRow, int toRow, bool toShow )
00744 {
00745   const int maxRows = 8;
00746   
00747   if ( toRow >= fromRow && fromRow >= 0 && toRow <= maxRows ) {
00748     int c = gridLayout1->count();
00749     for ( int i = 0; i < c; i++ ) {
00750       QWidget* w = gridLayout1->itemAt( i )->widget();
00751       int row, col, rowspan, colspan;
00752       gridLayout1->getItemPosition( i, &row, &col, &rowspan, &colspan );
00753       if ( w && row >= fromRow && row <= toRow )
00754         w->setVisible( toShow );
00755     }
00756   }
00757 }
00758 
00760 // DlgRef_3Sel4Spin2Check
00762 
00763 DlgRef_3Sel4Spin2Check::DlgRef_3Sel4Spin2Check( QWidget* parent, Qt::WindowFlags f )
00764 : QWidget( parent, f )
00765 {
00766   setupUi( this );
00767 }
00768 
00769 DlgRef_3Sel4Spin2Check::~DlgRef_3Sel4Spin2Check()
00770 {
00771 }
00772 
00774 // DlgRef_3Sel
00776 
00777 DlgRef_3Sel::DlgRef_3Sel( QWidget* parent, Qt::WindowFlags f )
00778 : QWidget( parent, f )
00779 {
00780   setupUi( this );
00781 }
00782 
00783 DlgRef_3Sel::~DlgRef_3Sel()
00784 {
00785 }
00786 
00788 // DlgRef_3Spin1Check
00790 
00791 DlgRef_3Spin1Check::DlgRef_3Spin1Check( QWidget* parent, Qt::WindowFlags f )
00792 : QWidget( parent, f )
00793 {
00794   setupUi( this );
00795 }
00796 
00797 DlgRef_3Spin1Check::~DlgRef_3Spin1Check()
00798 {
00799 }
00800 
00802 // DlgRef_3Spin
00804 
00805 DlgRef_3Spin::DlgRef_3Spin( QWidget* parent, Qt::WindowFlags f )
00806 : QWidget( parent, f )
00807 {
00808   setupUi( this );
00809 }
00810 
00811 DlgRef_3Spin::~DlgRef_3Spin()
00812 {
00813 }
00814 
00816 // DlgRef_4Spin
00818 
00819 DlgRef_4Spin::DlgRef_4Spin( QWidget* parent, Qt::WindowFlags f )
00820 : QWidget( parent, f )
00821 {
00822   setupUi( this );
00823 }
00824 
00825 DlgRef_4Spin::~DlgRef_4Spin()
00826 {
00827 }
00828 
00830 // DlgRef_4Sel1List1Check
00832 
00833 DlgRef_4Sel1List1Check::DlgRef_4Sel1List1Check( QWidget* parent, Qt::WindowFlags f )
00834 : QWidget( parent, f )
00835 {
00836   setupUi( this );
00837 }
00838 
00839 DlgRef_4Sel1List1Check::~DlgRef_4Sel1List1Check()
00840 {
00841 }
00842 
00844 // DlgRef_4Sel1List
00846 
00847 DlgRef_4Sel1List::DlgRef_4Sel1List( QWidget* parent, Qt::WindowFlags f )
00848 : QWidget( parent, f )
00849 {
00850   setupUi( this );
00851 }
00852 
00853 DlgRef_4Sel1List::~DlgRef_4Sel1List()
00854 {
00855 }
00856 
00858 // DlgRef_4Sel1Spin2Check
00860 
00861 DlgRef_4Sel1Spin2Check::DlgRef_4Sel1Spin2Check( QWidget* parent, Qt::WindowFlags f )
00862 : QWidget( parent, f )
00863 {
00864   setupUi( this );
00865 }
00866 
00867 DlgRef_4Sel1Spin2Check::~DlgRef_4Sel1Spin2Check()
00868 {
00869 }
00870 
00871 void DlgRef_4Sel1Spin2Check::ShowRows( int fromRow, int toRow, bool toShow )
00872 {
00873   const int maxRows = 6;
00874   
00875   if ( toRow >= fromRow && fromRow >= 0 && toRow <= maxRows ) {
00876     int c = gridLayout1->count();
00877     for ( int i = 0; i < c; i++ ) {
00878       QWidget* w = gridLayout1->itemAt( i )->widget();
00879       int row, col, rowspan, colspan;
00880       gridLayout1->getItemPosition( i, &row, &col, &rowspan, &colspan );
00881       if ( w && row >= fromRow && row <= toRow )
00882         w->setVisible( toShow );
00883     }
00884   }
00885 }
00886 
00888 // DlgRef_4Sel1Spin3Check
00890 
00891 DlgRef_4Sel1Spin3Check::DlgRef_4Sel1Spin3Check( QWidget* parent, Qt::WindowFlags f )
00892 : QWidget( parent, f )
00893 {
00894   setupUi( this );
00895 }
00896 
00897 DlgRef_4Sel1Spin3Check::~DlgRef_4Sel1Spin3Check()
00898 {
00899 }
00900 
00902 // DlgRef_6Sel
00904 
00905 DlgRef_6Sel::DlgRef_6Sel( QWidget* parent, Qt::WindowFlags f )
00906 : QWidget( parent, f )
00907 {
00908   setupUi( this );
00909 }
00910 
00911 DlgRef_6Sel::~DlgRef_6Sel()
00912 {
00913 }
00914 
00916 // DlgRef_Skeleton
00918 
00919 DlgRef_Skeleton::DlgRef_Skeleton( QWidget* parent, Qt::WindowFlags f )
00920 : QWidget( parent, f )
00921 {
00922   setupUi( this );
00923 }
00924 
00925 DlgRef_Skeleton::~DlgRef_Skeleton()
00926 {
00927 }
00928 
00930 // Utility functions
00932 
00933 QString DlgRef::PrintDoubleValue( double theValue, int thePrecision )
00934 {
00935   const double prec = 1e-12;
00936   
00937   if ( qAbs(theValue) < prec )
00938     return "0";
00939 
00940   QString aRes = QLocale().toString( theValue, thePrecision >= 0 ? 'f' : 'g', qAbs( thePrecision ) );
00941 
00942   if ( prec > 0 ) {
00943     int p = 0;
00944     while ( p < thePrecision ) {
00945       QString aRes = QLocale().toString( theValue, thePrecision >= 0 ? 'f' : 'g', qAbs( p++ ) );
00946       double v = aRes.toDouble();
00947       double err = qAbs( theValue - v );
00948       if ( err > 0 && err <= prec )
00949         break;
00950     }
00951   }
00952 
00953   // remove trailing zeroes
00954 
00955   QRegExp expre( QString( "(%1|%2)[+-]?[0-9]+$" ).arg( QLocale().exponential().toLower(), 
00956                                                  QLocale().exponential().toUpper() ) );
00957 
00958   int idx = aRes.indexOf( expre );
00959   QString aResExp = "";
00960   if ( idx >= 0 ) {
00961     aResExp = aRes.mid( idx );
00962     aRes = aRes.left( idx );
00963   }
00964 
00965   if ( aRes.contains( QLocale().decimalPoint() ) )
00966     aRes.remove( QRegExp( QString( "(\\%1|0)0*$" ).arg( QLocale().decimalPoint() ) ) );
00967 
00968   return aRes == "-0" ? QString( "0" ) : aRes + aResExp;
00969 }