~bromer/infinicolor/trunk

« back to all changes in this revision

Viewing changes to mainwindow.ui

  • Committer: Ben Romer
  • Author(s): Ben Romer
  • Date: 2016-03-14 15:01:42 UTC
  • Revision ID: ben@fang-20160314150142-kvu4aze7v7pbvkby
enhanced save and load

The save and load dialogs built into Qt are painful.

This patch fixes up the pager screen so that it serves as a saved page
loader, book loader, and save dialog too.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
    <x>0</x>
8
8
    <y>0</y>
9
9
    <width>614</width>
10
 
    <height>651</height>
 
10
    <height>618</height>
11
11
   </rect>
12
12
  </property>
13
13
  <property name="sizePolicy">
52
52
       </sizepolicy>
53
53
      </property>
54
54
      <property name="currentIndex">
55
 
       <number>0</number>
 
55
       <number>1</number>
56
56
      </property>
57
57
      <widget class="QWidget" name="book_chooser">
58
58
       <layout class="QVBoxLayout" name="verticalLayout_4">
71
71
        <item>
72
72
         <layout class="QHBoxLayout" name="horizontalLayout_3">
73
73
          <item>
74
 
           <widget class="QLabel" name="label_2">
 
74
           <widget class="QLabel" name="saveload_label">
75
75
            <property name="sizePolicy">
76
76
             <sizepolicy hsizetype="Minimum" vsizetype="Preferred">
77
77
              <horstretch>0</horstretch>
86
86
             </font>
87
87
            </property>
88
88
            <property name="text">
89
 
             <string>Pick a page to color:</string>
 
89
             <string>Load A Page:</string>
90
90
            </property>
91
91
           </widget>
92
92
          </item>
103
103
            </property>
104
104
           </widget>
105
105
          </item>
 
106
          <item>
 
107
           <widget class="QPushButton" name="pushButton_11">
 
108
            <property name="sizePolicy">
 
109
             <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
 
110
              <horstretch>0</horstretch>
 
111
              <verstretch>0</verstretch>
 
112
             </sizepolicy>
 
113
            </property>
 
114
            <property name="text">
 
115
             <string>Settings</string>
 
116
            </property>
 
117
           </widget>
 
118
          </item>
106
119
         </layout>
107
120
        </item>
108
121
        <item>
120
133
         </widget>
121
134
        </item>
122
135
        <item>
 
136
         <layout class="QHBoxLayout" name="saveLayout">
 
137
          <item>
 
138
           <widget class="QLabel" name="save_label">
 
139
            <property name="sizePolicy">
 
140
             <sizepolicy hsizetype="Fixed" vsizetype="Preferred">
 
141
              <horstretch>0</horstretch>
 
142
              <verstretch>0</verstretch>
 
143
             </sizepolicy>
 
144
            </property>
 
145
            <property name="text">
 
146
             <string>Save As:</string>
 
147
            </property>
 
148
           </widget>
 
149
          </item>
 
150
          <item>
 
151
           <widget class="QLineEdit" name="save_name_edit">
 
152
            <property name="sizePolicy">
 
153
             <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
 
154
              <horstretch>0</horstretch>
 
155
              <verstretch>0</verstretch>
 
156
             </sizepolicy>
 
157
            </property>
 
158
           </widget>
 
159
          </item>
 
160
         </layout>
 
161
        </item>
 
162
        <item>
123
163
         <widget class="QComboBox" name="book_chooser_combo">
124
164
          <property name="sizePolicy">
125
 
           <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
 
165
           <sizepolicy hsizetype="Minimum" vsizetype="Fixed">
126
166
            <horstretch>0</horstretch>
127
167
            <verstretch>0</verstretch>
128
168
           </sizepolicy>
131
171
           <enum>Qt::TabFocus</enum>
132
172
          </property>
133
173
          <property name="currentText">
134
 
           <string>Choose a Book:</string>
 
174
           <string>Your Saved Pages:</string>
135
175
          </property>
136
176
          <item>
137
177
           <property name="text">
138
 
            <string>Choose a Book:</string>
 
178
            <string>Your Saved Pages:</string>
139
179
           </property>
140
180
          </item>
141
181
         </widget>
142
182
        </item>
143
183
        <item>
144
184
         <widget class="QScrollArea" name="scrollArea_2">
 
185
          <property name="sizePolicy">
 
186
           <sizepolicy hsizetype="MinimumExpanding" vsizetype="Expanding">
 
187
            <horstretch>0</horstretch>
 
188
            <verstretch>0</verstretch>
 
189
           </sizepolicy>
 
190
          </property>
145
191
          <property name="focusPolicy">
146
192
           <enum>Qt::TabFocus</enum>
147
193
          </property>
154
200
             <x>0</x>
155
201
             <y>0</y>
156
202
             <width>594</width>
157
 
             <height>462</height>
 
203
             <height>396</height>
158
204
            </rect>
159
205
           </property>
160
206
          </widget>
161
207
         </widget>
162
208
        </item>
163
209
        <item>
164
 
         <layout class="QHBoxLayout" name="horizontalLayout_10">
165
 
          <item>
166
 
           <widget class="QPushButton" name="pushButton_11">
167
 
            <property name="text">
168
 
             <string>Settings</string>
169
 
            </property>
170
 
           </widget>
171
 
          </item>
172
 
          <item>
173
 
           <widget class="QPushButton" name="pushButton_7">
174
 
            <property name="focusPolicy">
175
 
             <enum>Qt::TabFocus</enum>
176
 
            </property>
177
 
            <property name="text">
178
 
             <string>Load</string>
179
 
            </property>
180
 
           </widget>
181
 
          </item>
182
 
          <item>
183
 
           <widget class="QPushButton" name="go_to_color_button">
184
 
            <property name="focusPolicy">
185
 
             <enum>Qt::TabFocus</enum>
186
 
            </property>
187
 
            <property name="text">
188
 
             <string>Color &gt;</string>
189
 
            </property>
190
 
           </widget>
191
 
          </item>
192
 
         </layout>
 
210
         <widget class="QPushButton" name="go_to_color_button">
 
211
          <property name="sizePolicy">
 
212
           <sizepolicy hsizetype="Minimum" vsizetype="Fixed">
 
213
            <horstretch>0</horstretch>
 
214
            <verstretch>0</verstretch>
 
215
           </sizepolicy>
 
216
          </property>
 
217
          <property name="focusPolicy">
 
218
           <enum>Qt::TabFocus</enum>
 
219
          </property>
 
220
          <property name="text">
 
221
           <string>Color &gt;</string>
 
222
          </property>
 
223
         </widget>
193
224
        </item>
194
225
       </layout>
195
226
      </widget>
381
412
         </layout>
382
413
        </item>
383
414
        <item>
384
 
         <widget class="QListWidget" name="color_picker">
385
 
          <property name="sizePolicy">
386
 
           <sizepolicy hsizetype="Preferred" vsizetype="Expanding">
387
 
            <horstretch>0</horstretch>
388
 
            <verstretch>0</verstretch>
389
 
           </sizepolicy>
390
 
          </property>
391
 
          <property name="focusPolicy">
392
 
           <enum>Qt::NoFocus</enum>
393
 
          </property>
394
 
          <property name="styleSheet">
395
 
           <string notr="true"/>
396
 
          </property>
397
 
          <property name="showDropIndicator" stdset="0">
398
 
           <bool>false</bool>
399
 
          </property>
400
 
          <property name="movement">
401
 
           <enum>QListView::Static</enum>
402
 
          </property>
403
 
          <property name="flow">
404
 
           <enum>QListView::TopToBottom</enum>
405
 
          </property>
406
 
          <property name="resizeMode">
407
 
           <enum>QListView::Adjust</enum>
408
 
          </property>
409
 
          <property name="layoutMode">
410
 
           <enum>QListView::Batched</enum>
411
 
          </property>
412
 
          <property name="spacing">
413
 
           <number>6</number>
414
 
          </property>
415
 
          <property name="viewMode">
416
 
           <enum>QListView::IconMode</enum>
417
 
          </property>
418
 
          <property name="uniformItemSizes">
419
 
           <bool>true</bool>
420
 
          </property>
421
 
          <property name="wordWrap">
422
 
           <bool>true</bool>
423
 
          </property>
424
 
          <property name="selectionRectVisible">
425
 
           <bool>false</bool>
426
 
          </property>
427
 
         </widget>
 
415
         <layout class="QHBoxLayout" name="horizontalLayout_10">
 
416
          <item>
 
417
           <widget class="QListWidget" name="color_picker">
 
418
            <property name="sizePolicy">
 
419
             <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
 
420
              <horstretch>0</horstretch>
 
421
              <verstretch>0</verstretch>
 
422
             </sizepolicy>
 
423
            </property>
 
424
            <property name="focusPolicy">
 
425
             <enum>Qt::NoFocus</enum>
 
426
            </property>
 
427
            <property name="styleSheet">
 
428
             <string notr="true"/>
 
429
            </property>
 
430
            <property name="showDropIndicator" stdset="0">
 
431
             <bool>false</bool>
 
432
            </property>
 
433
            <property name="movement">
 
434
             <enum>QListView::Static</enum>
 
435
            </property>
 
436
            <property name="flow">
 
437
             <enum>QListView::TopToBottom</enum>
 
438
            </property>
 
439
            <property name="resizeMode">
 
440
             <enum>QListView::Adjust</enum>
 
441
            </property>
 
442
            <property name="layoutMode">
 
443
             <enum>QListView::Batched</enum>
 
444
            </property>
 
445
            <property name="spacing">
 
446
             <number>6</number>
 
447
            </property>
 
448
            <property name="viewMode">
 
449
             <enum>QListView::IconMode</enum>
 
450
            </property>
 
451
            <property name="uniformItemSizes">
 
452
             <bool>true</bool>
 
453
            </property>
 
454
            <property name="wordWrap">
 
455
             <bool>true</bool>
 
456
            </property>
 
457
            <property name="selectionRectVisible">
 
458
             <bool>false</bool>
 
459
            </property>
 
460
           </widget>
 
461
          </item>
 
462
          <item>
 
463
           <layout class="QVBoxLayout" name="verticalLayout_7">
 
464
            <item>
 
465
             <widget class="QLabel" name="label_8">
 
466
              <property name="sizePolicy">
 
467
               <sizepolicy hsizetype="Fixed" vsizetype="Preferred">
 
468
                <horstretch>0</horstretch>
 
469
                <verstretch>0</verstretch>
 
470
               </sizepolicy>
 
471
              </property>
 
472
              <property name="text">
 
473
               <string>Pen Size:</string>
 
474
              </property>
 
475
             </widget>
 
476
            </item>
 
477
            <item>
 
478
             <widget class="QDial" name="dial_pen">
 
479
              <property name="sizePolicy">
 
480
               <sizepolicy hsizetype="Fixed" vsizetype="Minimum">
 
481
                <horstretch>0</horstretch>
 
482
                <verstretch>0</verstretch>
 
483
               </sizepolicy>
 
484
              </property>
 
485
              <property name="minimum">
 
486
               <number>1</number>
 
487
              </property>
 
488
              <property name="maximum">
 
489
               <number>20</number>
 
490
              </property>
 
491
              <property name="notchTarget">
 
492
               <double>1.000000000000000</double>
 
493
              </property>
 
494
              <property name="notchesVisible">
 
495
               <bool>true</bool>
 
496
              </property>
 
497
             </widget>
 
498
            </item>
 
499
            <item>
 
500
             <widget class="QLabel" name="label_9">
 
501
              <property name="sizePolicy">
 
502
               <sizepolicy hsizetype="Fixed" vsizetype="Preferred">
 
503
                <horstretch>0</horstretch>
 
504
                <verstretch>0</verstretch>
 
505
               </sizepolicy>
 
506
              </property>
 
507
              <property name="text">
 
508
               <string>Pen Style:</string>
 
509
              </property>
 
510
             </widget>
 
511
            </item>
 
512
            <item>
 
513
             <widget class="QComboBox" name="penWeight">
 
514
              <property name="sizePolicy">
 
515
               <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
 
516
                <horstretch>0</horstretch>
 
517
                <verstretch>0</verstretch>
 
518
               </sizepolicy>
 
519
              </property>
 
520
              <property name="currentIndex">
 
521
               <number>0</number>
 
522
              </property>
 
523
              <item>
 
524
               <property name="text">
 
525
                <string>Pastels (25%)</string>
 
526
               </property>
 
527
              </item>
 
528
              <item>
 
529
               <property name="text">
 
530
                <string>Crayon (50%)</string>
 
531
               </property>
 
532
              </item>
 
533
              <item>
 
534
               <property name="text">
 
535
                <string>Marker (75%)</string>
 
536
               </property>
 
537
              </item>
 
538
              <item>
 
539
               <property name="text">
 
540
                <string>Paint (100%)</string>
 
541
               </property>
 
542
              </item>
 
543
             </widget>
 
544
            </item>
 
545
            <item>
 
546
             <spacer name="verticalSpacer_3">
 
547
              <property name="orientation">
 
548
               <enum>Qt::Vertical</enum>
 
549
              </property>
 
550
              <property name="sizeHint" stdset="0">
 
551
               <size>
 
552
                <width>20</width>
 
553
                <height>40</height>
 
554
               </size>
 
555
              </property>
 
556
             </spacer>
 
557
            </item>
 
558
           </layout>
 
559
          </item>
 
560
         </layout>
428
561
        </item>
429
562
        <item>
430
563
         <widget class="QLabel" name="label_3">
467
600
           <layout class="QVBoxLayout" name="verticalLayout_8">
468
601
            <item>
469
602
             <widget class="QLabel" name="label_4">
 
603
              <property name="sizePolicy">
 
604
               <sizepolicy hsizetype="Minimum" vsizetype="Preferred">
 
605
                <horstretch>0</horstretch>
 
606
                <verstretch>0</verstretch>
 
607
               </sizepolicy>
 
608
              </property>
470
609
              <property name="text">
471
610
               <string>Brightness:</string>
472
611
              </property>
475
614
            <item>
476
615
             <widget class="QDial" name="dial">
477
616
              <property name="sizePolicy">
478
 
               <sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
 
617
               <sizepolicy hsizetype="Minimum" vsizetype="Minimum">
479
618
                <horstretch>0</horstretch>
480
619
                <verstretch>0</verstretch>
481
620
               </sizepolicy>
489
628
              <property name="tracking">
490
629
               <bool>false</bool>
491
630
              </property>
492
 
             </widget>
493
 
            </item>
494
 
           </layout>
495
 
          </item>
496
 
          <item>
497
 
           <layout class="QVBoxLayout" name="verticalLayout_7">
498
 
            <item>
499
 
             <widget class="QLabel" name="label_8">
500
 
              <property name="text">
501
 
               <string>Pen Size:</string>
502
 
              </property>
503
 
             </widget>
504
 
            </item>
505
 
            <item>
506
 
             <widget class="QDial" name="dial_pen">
507
 
              <property name="sizePolicy">
508
 
               <sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
509
 
                <horstretch>0</horstretch>
510
 
                <verstretch>0</verstretch>
511
 
               </sizepolicy>
512
 
              </property>
513
 
              <property name="minimum">
514
 
               <number>1</number>
515
 
              </property>
516
 
              <property name="maximum">
517
 
               <number>20</number>
518
 
              </property>
519
631
              <property name="notchTarget">
520
 
               <double>1.000000000000000</double>
 
632
               <double>10.000000000000000</double>
521
633
              </property>
522
634
              <property name="notchesVisible">
523
635
               <bool>true</bool>
525
637
             </widget>
526
638
            </item>
527
639
            <item>
528
 
             <widget class="QLabel" name="label_9">
529
 
              <property name="text">
530
 
               <string>Pen Style:</string>
531
 
              </property>
532
 
             </widget>
533
 
            </item>
534
 
            <item>
535
 
             <widget class="QComboBox" name="penWeight">
536
 
              <property name="currentIndex">
537
 
               <number>0</number>
538
 
              </property>
539
 
              <item>
540
 
               <property name="text">
541
 
                <string>Pastels (25%)</string>
542
 
               </property>
543
 
              </item>
544
 
              <item>
545
 
               <property name="text">
546
 
                <string>Crayon (50%)</string>
547
 
               </property>
548
 
              </item>
549
 
              <item>
550
 
               <property name="text">
551
 
                <string>Marker (75%)</string>
552
 
               </property>
553
 
              </item>
554
 
              <item>
555
 
               <property name="text">
556
 
                <string>Paint (100%)</string>
557
 
               </property>
558
 
              </item>
559
 
             </widget>
 
640
             <spacer name="verticalSpacer_4">
 
641
              <property name="orientation">
 
642
               <enum>Qt::Vertical</enum>
 
643
              </property>
 
644
              <property name="sizeHint" stdset="0">
 
645
               <size>
 
646
                <width>20</width>
 
647
                <height>40</height>
 
648
               </size>
 
649
              </property>
 
650
             </spacer>
560
651
            </item>
561
652
           </layout>
562
653
          </item>
596
687
           </widget>
597
688
          </item>
598
689
          <item>
599
 
           <widget class="QPushButton" name="pushButton_5">
600
 
            <property name="text">
601
 
             <string>Load</string>
602
 
            </property>
603
 
           </widget>
604
 
          </item>
605
 
          <item>
606
690
           <widget class="QPushButton" name="pushButton_4">
607
691
            <property name="text">
608
692
             <string>Save</string>
692
776
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:16pt; font-weight:600;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
693
777
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;A CBZ-compatible coloring book application that also generates its own pages! It was originally constructed for Christina Carpenter's art projects and then opened up for universal development. In-app purchasing of new books will eventually be supported.&lt;/p&gt;
694
778
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
695
 
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Written in 2015-2016 by Ben Romer. This application is covered by the GNU GPL version 3.0. Source Code for this application is available on Github at:&lt;/p&gt;
696
 
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;a href=&quot;https://github.com/browren/coloring-book-app
697
 
&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#0000ff;&quot;&gt;https://github.com/browren/coloring-book-app&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
 
779
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Written in 2015-2016 by Ben Romer. This application is covered by the GNU GPL version 3.0. Source Code for this application is available on Launchpad at:&lt;/p&gt;
 
780
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;a href=&quot;https://launchpad.net/infinicolor&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#0000ff;&quot;&gt;https://launchpad.net/infinicolor&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
698
781
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; text-decoration: underline; color:#0000ff;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
699
 
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
700
782
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;QuaZip library Copyright (C) 2005-2012 Sergey A. Tachenov. Distributed under the GNU GPL 3.0 license. The QuaZip library is available at:&lt;/p&gt;
701
783
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;a href=&quot;http://sourceforge.net/projects/quazip/&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#0000ff;&quot;&gt;http://sourceforge.net/projects/quazip/&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
702
784
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; text-decoration: underline; color:#0000ff;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
920
1002
 </resources>
921
1003
 <connections/>
922
1004
 <buttongroups>
 
1005
  <buttongroup name="buttonGroup"/>
923
1006
  <buttongroup name="buttonGroup_2"/>
924
 
  <buttongroup name="buttonGroup"/>
925
1007
 </buttongroups>
926
1008
</ui>