Debian Codegraph @

online-accounts-ui/src/dialog.cpp

raw symbols SCIP
1 /*
2 * This file is part of lomiri-online-accounts-ui
3 *
4 * Copyright (C) 2014 Canonical Ltd.
5 *
6 * Contact: Alberto Mardegan <[email protected]>
7 *
8 * This program is free software: you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License version 3, as published
10 * by the Free Software Foundation.
11 *
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranties of
14 * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License along
18 * with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21 #include <online-accounts-common/debug.h>cxx . . $ `<file>/online-accounts-common/debug.h`/
22 #include "dialog.h"cxx . . $ `<file>/online-accounts-ui/src/dialog.h`/
23
24 #include <QEvent>
25
26 using namespace SignOnUi;
27
28 Dialogcxx . . $ SignOnUi/Dialog#::Dialogcxx . . $ SignOnUi/Dialog#Dialog(35681b993d9a3c79).(QWindowcxx . . $ QWindow# *parent):
29 QQuickViewcxx . . $ QQuickView#(parent)
30 {
31 setResizeModecxx . . $ QQuickView#setResizeMode(a59df3724df848c).(QQuickViewcxx . . $ QQuickView#::SizeRootObjectToViewcxx . . $ QQuickView#SizeRootObjectToView.);
32 setWindowStatecxx . . $ QWindow#setWindowState(4ee0ed68fd8debe4).(Qtcxx . . $ Qt/::WindowFullScreencxx . . $ Qt/WindowFullScreen.);
33 }
34
35 Dialogcxx . . $ SignOnUi/Dialog#::~cxx . . $ SignOnUi/Dialog#`~Dialog`(ced63f7c635d850d).Dialogcxx . . $ SignOnUi/Dialog#()
36 {
37 }
38
39 void Dialogcxx . . $ SignOnUi/Dialog#::showcxx . . $ SignOnUi/Dialog#show(7641e05fcddfc04).(WIdcxx . . $ WId# parent, ShowModecxx . . $ SignOnUi/Dialog#ShowMode# mode)
40 {
41 if (mode != TopLevelcxx . . $ SignOnUi/Dialog#TopLevel.) {
42 QWindowcxx . . $ QWindow# *parentWindow = QWindowcxx . . $ QWindow#::fromWinIdcxx . . $ QWindow#fromWinId(698df145cbabc72).(parent);
43 if (mode == Transientcxx . . $ SignOnUi/Dialog#Transient.) {
44 setTransientParentcxx . . $ QWindow#setTransientParent(35681b993d9a3c79).(parentWindow);
45 } else if (mode == Embeddedcxx . . $ SignOnUi/Dialog#Embedded.) {
46 setParentcxx . . $ QWindow#setParent(35681b993d9a3c79).(parentWindow);
47 }
48 }
49 QQuickViewcxx . . $ QQuickView#::showcxx . . $ QWindow#show(49f6e7a06ebc5aa8).();
50 }
51
52 void Dialogcxx . . $ SignOnUi/Dialog#::acceptcxx . . $ SignOnUi/Dialog#accept(49f6e7a06ebc5aa8).()
53 {
54 donecxx . . $ SignOnUi/Dialog#done(d4f767463ce0a6b3).(Dialogcxx . . $ SignOnUi/Dialog#::Acceptedcxx . . $ SignOnUi/Dialog#Accepted.);
55 }
56
57 void Dialogcxx . . $ SignOnUi/Dialog#::rejectcxx . . $ SignOnUi/Dialog#reject(49f6e7a06ebc5aa8).()
58 {
59 donecxx . . $ SignOnUi/Dialog#done(d4f767463ce0a6b3).(Dialogcxx . . $ SignOnUi/Dialog#::Rejectedcxx . . $ SignOnUi/Dialog#Rejected.);
60 }
61
62 void Dialogcxx . . $ SignOnUi/Dialog#::donecxx . . $ SignOnUi/Dialog#done(d4f767463ce0a6b3).(int result)
63 {
64 setVisiblecxx . . $ QWindow#setVisible(b45ddcbc8423892c).(false);
65 Q_EMITcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:95:10`! finishedcxx . . $ SignOnUi/Dialog#finished(d4f767463ce0a6b3).(result);
66 }
67
68 bool Dialogcxx . . $ SignOnUi/Dialog#::eventcxx . . $ SignOnUi/Dialog#event(f123fa2ce489f0bd).(QEventcxx . . $ QEvent# *e)
69 {
70 if (e->typecxx . . $ QEvent#type(916a8de57f4d422b).() == QEventcxx . . $ QEvent#::Closecxx . . $ QEvent#Close.) {
71 rejectcxx . . $ SignOnUi/Dialog#reject(49f6e7a06ebc5aa8).();
72 }
73 return QQuickViewcxx . . $ QQuickView#::eventcxx . . $ QQuickWindow#event(f123fa2ce489f0bd).(e);
74 }