Parcourir la source

finished ui

tags/v0.5
Robin Thoni il y a 8 ans
Parent
révision
8e9d2bc146
2 fichiers modifiés avec 240 ajouts et 22 suppressions
  1. 1
    0
      maindialog.cpp
  2. 239
    22
      maindialog.ui

+ 1
- 0
maindialog.cpp Voir le fichier

@@ -6,6 +6,7 @@ MainDialog::MainDialog(QWidget *parent) :
6 6
     ui(new Ui::MainDialog)
7 7
 {
8 8
     ui->setupUi(this);
9
+    connect(ui->lineComputer->lineEdit(), SIGNAL(returnPressed()), ui->btnConnect, SLOT(animateClick()));
9 10
 }
10 11
 
11 12
 MainDialog::~MainDialog()

+ 239
- 22
maindialog.ui Voir le fichier

@@ -84,7 +84,7 @@
84 84
       </font>
85 85
      </property>
86 86
      <property name="currentIndex">
87
-      <number>1</number>
87
+      <number>0</number>
88 88
      </property>
89 89
      <widget class="QWidget" name="tabGeneral">
90 90
       <attribute name="title">
@@ -135,6 +135,9 @@
135 135
             <property name="text">
136 136
              <string>Me permettre d'enregistrer les informations d'idenfication</string>
137 137
             </property>
138
+            <property name="checked">
139
+             <bool>true</bool>
140
+            </property>
138 141
            </widget>
139 142
           </item>
140 143
           <item row="0" column="0" rowspan="2">
@@ -260,7 +263,7 @@
260 263
        </item>
261 264
       </layout>
262 265
      </widget>
263
-     <widget class="QWidget" name="tab_2">
266
+     <widget class="QWidget" name="tabDisplay">
264 267
       <attribute name="title">
265 268
        <string>Affichage</string>
266 269
       </attribute>
@@ -286,7 +289,13 @@
286 289
            </widget>
287 290
           </item>
288 291
           <item row="1" column="2">
289
-           <widget class="QSlider" name="horizontalSlider">
292
+           <widget class="QSlider" name="slidResolution">
293
+            <property name="maximum">
294
+             <number>10</number>
295
+            </property>
296
+            <property name="pageStep">
297
+             <number>1</number>
298
+            </property>
290 299
             <property name="orientation">
291 300
              <enum>Qt::Horizontal</enum>
292 301
             </property>
@@ -328,7 +337,7 @@
328 337
            </widget>
329 338
           </item>
330 339
           <item row="2" column="1" colspan="3">
331
-           <widget class="QCheckBox" name="checkBox_2">
340
+           <widget class="QCheckBox" name="checkAllDisplays">
332 341
             <property name="text">
333 342
              <string>Utiliser tous les moniteurs pour la session à distance</string>
334 343
             </property>
@@ -360,13 +369,39 @@
360 369
            </widget>
361 370
           </item>
362 371
           <item row="1" column="1">
363
-           <widget class="QComboBox" name="comboBox">
372
+           <widget class="QComboBox" name="comboColors">
364 373
             <property name="sizePolicy">
365 374
              <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
366 375
               <horstretch>0</horstretch>
367 376
               <verstretch>0</verstretch>
368 377
              </sizepolicy>
369 378
             </property>
379
+            <property name="currentIndex">
380
+             <number>3</number>
381
+            </property>
382
+            <property name="sizeAdjustPolicy">
383
+             <enum>QComboBox::AdjustToContents</enum>
384
+            </property>
385
+            <item>
386
+             <property name="text">
387
+              <string>Haute couleurs (15 bits)</string>
388
+             </property>
389
+            </item>
390
+            <item>
391
+             <property name="text">
392
+              <string>Haute couleurs (16 bits)</string>
393
+             </property>
394
+            </item>
395
+            <item>
396
+             <property name="text">
397
+              <string>Couleurs réeles (24 bits)</string>
398
+             </property>
399
+            </item>
400
+            <item>
401
+             <property name="text">
402
+              <string>Qualité optimale (32 bits)</string>
403
+             </property>
404
+            </item>
370 405
            </widget>
371 406
           </item>
372 407
           <item row="0" column="0" rowspan="2">
@@ -392,10 +427,13 @@
392 427
         </widget>
393 428
        </item>
394 429
        <item>
395
-        <widget class="QCheckBox" name="checkBox">
430
+        <widget class="QCheckBox" name="checkFullscreenBar">
396 431
          <property name="text">
397 432
           <string>Afficher la barre de connexion en cas de mode plein écran</string>
398 433
          </property>
434
+         <property name="checked">
435
+          <bool>true</bool>
436
+         </property>
399 437
         </widget>
400 438
        </item>
401 439
        <item>
@@ -413,7 +451,7 @@
413 451
        </item>
414 452
       </layout>
415 453
      </widget>
416
-     <widget class="QWidget" name="tab_3">
454
+     <widget class="QWidget" name="tabResources">
417 455
       <attribute name="title">
418 456
        <string>Resources locales</string>
419 457
       </attribute>
@@ -460,7 +498,7 @@
460 498
            </widget>
461 499
           </item>
462 500
           <item row="1" column="1">
463
-           <widget class="QPushButton" name="pushButton">
501
+           <widget class="QPushButton" name="btnSound">
464 502
             <property name="sizePolicy">
465 503
              <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
466 504
               <horstretch>0</horstretch>
@@ -517,13 +555,34 @@
517 555
            </widget>
518 556
           </item>
519 557
           <item row="1" column="1">
520
-           <widget class="QComboBox" name="comboBox_2">
558
+           <widget class="QComboBox" name="comboMetaKeys">
521 559
             <property name="sizePolicy">
522 560
              <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
523 561
               <horstretch>0</horstretch>
524 562
               <verstretch>0</verstretch>
525 563
              </sizepolicy>
526 564
             </property>
565
+            <property name="currentIndex">
566
+             <number>2</number>
567
+            </property>
568
+            <property name="sizeAdjustPolicy">
569
+             <enum>QComboBox::AdjustToContents</enum>
570
+            </property>
571
+            <item>
572
+             <property name="text">
573
+              <string>Avec</string>
574
+             </property>
575
+            </item>
576
+            <item>
577
+             <property name="text">
578
+              <string>Sans</string>
579
+             </property>
580
+            </item>
581
+            <item>
582
+             <property name="text">
583
+              <string>En mode plein écran uniquement</string>
584
+             </property>
585
+            </item>
527 586
            </widget>
528 587
           </item>
529 588
           <item row="2" column="1">
@@ -575,7 +634,7 @@
575 634
            </widget>
576 635
           </item>
577 636
           <item row="1" column="1">
578
-           <widget class="QCheckBox" name="checkBox_3">
637
+           <widget class="QCheckBox" name="checkPrinters">
579 638
             <property name="sizePolicy">
580 639
              <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
581 640
               <horstretch>0</horstretch>
@@ -588,7 +647,7 @@
588 647
            </widget>
589 648
           </item>
590 649
           <item row="1" column="2">
591
-           <widget class="QCheckBox" name="checkBox_4">
650
+           <widget class="QCheckBox" name="checkClipboard">
592 651
             <property name="sizePolicy">
593 652
              <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
594 653
               <horstretch>0</horstretch>
@@ -601,7 +660,7 @@
601 660
            </widget>
602 661
           </item>
603 662
           <item row="2" column="1">
604
-           <widget class="QPushButton" name="pushButton_2">
663
+           <widget class="QPushButton" name="btnPeriphs">
605 664
             <property name="sizePolicy">
606 665
              <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
607 666
               <horstretch>0</horstretch>
@@ -618,7 +677,7 @@
618 677
        </item>
619 678
       </layout>
620 679
      </widget>
621
-     <widget class="QWidget" name="tab_4">
680
+     <widget class="QWidget" name="tabPrograms">
622 681
       <attribute name="title">
623 682
        <string>Programmes</string>
624 683
       </attribute>
@@ -643,7 +702,7 @@
643 702
            </widget>
644 703
           </item>
645 704
           <item row="0" column="1">
646
-           <widget class="QCheckBox" name="checkBox_5">
705
+           <widget class="QCheckBox" name="checkProgram">
647 706
             <property name="text">
648 707
              <string>Démarrer le programme suivant lors de la connexion:</string>
649 708
             </property>
@@ -651,23 +710,37 @@
651 710
           </item>
652 711
           <item row="1" column="1">
653 712
            <widget class="QLabel" name="label_22">
713
+            <property name="enabled">
714
+             <bool>false</bool>
715
+            </property>
654 716
             <property name="text">
655 717
              <string>Chemin d'accès au programme et nom du fichier:</string>
656 718
             </property>
657 719
            </widget>
658 720
           </item>
659 721
           <item row="2" column="1">
660
-           <widget class="QLineEdit" name="lineEdit"/>
722
+           <widget class="QLineEdit" name="lineProgramPath">
723
+            <property name="enabled">
724
+             <bool>false</bool>
725
+            </property>
726
+           </widget>
661 727
           </item>
662 728
           <item row="3" column="1">
663 729
            <widget class="QLabel" name="label_23">
730
+            <property name="enabled">
731
+             <bool>false</bool>
732
+            </property>
664 733
             <property name="text">
665 734
              <string>Démarrer dans le dossier suivant:</string>
666 735
             </property>
667 736
            </widget>
668 737
           </item>
669 738
           <item row="4" column="1">
670
-           <widget class="QLineEdit" name="lineEdit_2"/>
739
+           <widget class="QLineEdit" name="lineProgramWorkingDir">
740
+            <property name="enabled">
741
+             <bool>false</bool>
742
+            </property>
743
+           </widget>
671 744
           </item>
672 745
          </layout>
673 746
         </widget>
@@ -687,7 +760,7 @@
687 760
        </item>
688 761
       </layout>
689 762
      </widget>
690
-     <widget class="QWidget" name="tab_5">
763
+     <widget class="QWidget" name="tabExperience">
691 764
       <attribute name="title">
692 765
        <string>Expérience</string>
693 766
       </attribute>
@@ -734,30 +807,77 @@
734 807
            </widget>
735 808
           </item>
736 809
           <item row="1" column="1">
737
-           <widget class="QComboBox" name="comboBox_3">
810
+           <widget class="QComboBox" name="comboExperience">
738 811
             <property name="sizePolicy">
739 812
              <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
740 813
               <horstretch>0</horstretch>
741 814
               <verstretch>0</verstretch>
742 815
              </sizepolicy>
743 816
             </property>
817
+            <property name="currentIndex">
818
+             <number>6</number>
819
+            </property>
820
+            <property name="sizeAdjustPolicy">
821
+             <enum>QComboBox::AdjustToContents</enum>
822
+            </property>
823
+            <item>
824
+             <property name="text">
825
+              <string>Modem (56 Kbits/s)</string>
826
+             </property>
827
+            </item>
828
+            <item>
829
+             <property name="text">
830
+              <string>Bas débit (256 Kbits/s - 2 Mbits/s)</string>
831
+             </property>
832
+            </item>
833
+            <item>
834
+             <property name="text">
835
+              <string>Satellite (2 Mbits/s - 16 Mbits/s avec forte latence)</string>
836
+             </property>
837
+            </item>
838
+            <item>
839
+             <property name="text">
840
+              <string>Haut débit (2 Mbits/s - 10 Mbits/s)</string>
841
+             </property>
842
+            </item>
843
+            <item>
844
+             <property name="text">
845
+              <string>WAN (10 Mbits/s ou plus avec forte latence)</string>
846
+             </property>
847
+            </item>
848
+            <item>
849
+             <property name="text">
850
+              <string>LAN (10 Mbits/s ou plus)</string>
851
+             </property>
852
+            </item>
853
+            <item>
854
+             <property name="text">
855
+              <string>Détecter automatiquement la qualité de la connexion</string>
856
+             </property>
857
+            </item>
744 858
            </widget>
745 859
           </item>
746 860
          </layout>
747 861
         </widget>
748 862
        </item>
749 863
        <item>
750
-        <widget class="QCheckBox" name="checkBox_6">
864
+        <widget class="QCheckBox" name="checkCacheBitmap">
751 865
          <property name="text">
752 866
           <string>Mise en cache permanente des bitmaps</string>
753 867
          </property>
868
+         <property name="checked">
869
+          <bool>true</bool>
870
+         </property>
754 871
         </widget>
755 872
        </item>
756 873
        <item>
757
-        <widget class="QCheckBox" name="checkBox_7">
874
+        <widget class="QCheckBox" name="checkAutoReconnect">
758 875
          <property name="text">
759 876
           <string>Rétablir la connexion si elle est interrompue</string>
760 877
          </property>
878
+         <property name="checked">
879
+          <bool>true</bool>
880
+         </property>
761 881
         </widget>
762 882
        </item>
763 883
        <item>
@@ -802,7 +922,7 @@
802 922
       </spacer>
803 923
      </item>
804 924
      <item>
805
-      <widget class="QPushButton" name="pushButton_4">
925
+      <widget class="QPushButton" name="btnConnect">
806 926
        <property name="text">
807 927
         <string>Connexion</string>
808 928
        </property>
@@ -826,5 +946,102 @@
826 946
  <resources>
827 947
   <include location="rc.qrc"/>
828 948
  </resources>
829
- <connections/>
949
+ <connections>
950
+  <connection>
951
+   <sender>checkProgram</sender>
952
+   <signal>toggled(bool)</signal>
953
+   <receiver>label_22</receiver>
954
+   <slot>setEnabled(bool)</slot>
955
+   <hints>
956
+    <hint type="sourcelabel">
957
+     <x>69</x>
958
+     <y>158</y>
959
+    </hint>
960
+    <hint type="destinationlabel">
961
+     <x>79</x>
962
+     <y>183</y>
963
+    </hint>
964
+   </hints>
965
+  </connection>
966
+  <connection>
967
+   <sender>checkProgram</sender>
968
+   <signal>toggled(bool)</signal>
969
+   <receiver>lineProgramPath</receiver>
970
+   <slot>setEnabled(bool)</slot>
971
+   <hints>
972
+    <hint type="sourcelabel">
973
+     <x>244</x>
974
+     <y>165</y>
975
+    </hint>
976
+    <hint type="destinationlabel">
977
+     <x>251</x>
978
+     <y>209</y>
979
+    </hint>
980
+   </hints>
981
+  </connection>
982
+  <connection>
983
+   <sender>checkProgram</sender>
984
+   <signal>toggled(bool)</signal>
985
+   <receiver>label_23</receiver>
986
+   <slot>setEnabled(bool)</slot>
987
+   <hints>
988
+    <hint type="sourcelabel">
989
+     <x>175</x>
990
+     <y>162</y>
991
+    </hint>
992
+    <hint type="destinationlabel">
993
+     <x>166</x>
994
+     <y>234</y>
995
+    </hint>
996
+   </hints>
997
+  </connection>
998
+  <connection>
999
+   <sender>checkProgram</sender>
1000
+   <signal>toggled(bool)</signal>
1001
+   <receiver>lineProgramWorkingDir</receiver>
1002
+   <slot>setEnabled(bool)</slot>
1003
+   <hints>
1004
+    <hint type="sourcelabel">
1005
+     <x>215</x>
1006
+     <y>159</y>
1007
+    </hint>
1008
+    <hint type="destinationlabel">
1009
+     <x>213</x>
1010
+     <y>252</y>
1011
+    </hint>
1012
+   </hints>
1013
+  </connection>
1014
+  <connection>
1015
+   <sender>lineUsername</sender>
1016
+   <signal>returnPressed()</signal>
1017
+   <receiver>btnConnect</receiver>
1018
+   <slot>animateClick()</slot>
1019
+   <hints>
1020
+    <hint type="sourcelabel">
1021
+     <x>338</x>
1022
+     <y>212</y>
1023
+    </hint>
1024
+    <hint type="destinationlabel">
1025
+     <x>404</x>
1026
+     <y>464</y>
1027
+    </hint>
1028
+   </hints>
1029
+  </connection>
1030
+  <connection>
1031
+   <sender>linePassword</sender>
1032
+   <signal>returnPressed()</signal>
1033
+   <receiver>btnConnect</receiver>
1034
+   <slot>animateClick()</slot>
1035
+   <hints>
1036
+    <hint type="sourcelabel">
1037
+     <x>277</x>
1038
+     <y>240</y>
1039
+    </hint>
1040
+    <hint type="destinationlabel">
1041
+     <x>406</x>
1042
+     <y>459</y>
1043
+    </hint>
1044
+   </hints>
1045
+  </connection>
1046
+ </connections>
830 1047
 </ui>

Chargement…
Annuler
Enregistrer