-
Notifications
You must be signed in to change notification settings - Fork 15
/
mainwindow.ui.h
233 lines (166 loc) · 4.37 KB
/
mainwindow.ui.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
/*
License: GPL-2
An electronic filing cabinet: scan, print, stack, arrange
Copyright (C) 2009 Simon Glass, [email protected]
.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
X-Comment: On Debian GNU/Linux systems, the complete text of the GNU General
Public License can be found in the /usr/share/common-licenses/GPL file.
*/
/****************************************************************************
** ui.h extension file, included from the uic-generated form implementation.
**
** If you want to add, delete, or rename functions or slots, use
** Qt Designer to update this file, preserving your code.
**
** You should not define a constructor or destructor in this file.
** Instead, write your code in functions called init() and destroy().
** These will automatically be called by the form's constructor and
** destructor.
*****************************************************************************/
#include "qstatusbar.h"
#include "qstring.h"
#include "about.h"
#include "desktopviewer.h"
#include "desktopwidget.h"
#include "mainwidget.h"
#include "pagewidget.h"
void Mainwindow::init ()
{
connect (_main->getPage (), SIGNAL (newContents (const char *)),
this, SLOT (statusUpdate (const char *)));
connect (_main->getViewer (), SIGNAL (newContents (const char *)),
this, SLOT (statusUpdate (const char *)));
connect (_main, SIGNAL (newContents (const char *)),
this, SLOT (statusUpdate (const char *)));
viewSmoothingAction->setOn (_main->isSmoothing ());
connect (match, SIGNAL (returnPressed()),
this, SLOT (matchUpdate ()));
connect (reset, SIGNAL (pressed()),
this, SLOT (matchReset ()));
connect (match, SIGNAL (textChanged(const QString&)),
this, SLOT (matchChange (const QString &)));
}
void Mainwindow::filePrint()
{
_main->print ();
}
void Mainwindow::fileExit()
{
exit (0);
}
void Mainwindow::editFind()
{
}
void Mainwindow::helpAbout()
{
About about;
about.exec ();
}
Desktopwidget * Mainwindow::getDesktop()
{
return _main->getDesktop ();
}
void Mainwindow::page_clicked()
{
_main->swapDesktop ();
}
void Mainwindow::left_clicked()
{
_main->pageLeft ();
}
void Mainwindow::right_clicked()
{
_main->pageRight ();
}
void Mainwindow::statusUpdate( const char *str )
{
QString s = QString (str);
statusBar()->message (s);
}
void Mainwindow::scan_clicked()
{
_main->scan ();
}
void Mainwindow::pscan_clicked()
{
_main->pscan ();
}
void Mainwindow::selectAll()
{
_main->selectAll ();
}
void Mainwindow::toolsArrangeby_PositionAction_activated()
{
_main->arrangeBy (Mainwidget::byPosition);
}
void Mainwindow::toolsArrangeby_DateAction_activated()
{
_main->arrangeBy (Mainwidget::byDate);
}
void Mainwindow::toolsArrangeby_NameAction_activated()
{
_main->arrangeBy (Mainwidget::byName);
}
void Mainwindow::rotate_left_clicked()
{
_main->rotate (-90);
}
void Mainwindow::rotate_right_clicked()
{
_main->rotate (90);
}
void Mainwindow::hflip_clicked()
{
_main->flip (1);
}
void Mainwindow::vflip_clicked()
{
_main->flip (0);
}
void Mainwindow::viewSmoothingAction_toggled( bool b )
{
_main->setSmoothing (b);
}
void Mainwindow::matchUpdate()
{
_main->matchUpdate (match->text (), global->isChecked ());
}
void Mainwindow::matchReset()
{
// reset the match
_main->matchUpdate (QString::null, false);
}
void Mainwindow::matchChange( const QString & )
{
if (!global->isChecked ())
_main->matchUpdate (match->text (), false);
}
void Mainwindow::pleft_clicked()
{
_main->stackLeft ();
}
void Mainwindow::pright_clicked()
{
_main->stackRight ();
}
void Mainwindow::go_clicked()
{
matchUpdate ();
}
void Mainwindow::options_clicked()
{
_main->options ();
}