2
MAP Client, a program to generate detailed musculoskeletal models for OpenSim.
3
Copyright (C) 2012 University of Auckland
5
This file is part of MAP Client. (http://launchpad.net/mapclient)
7
MAP Client is free software: you can redistribute it and/or modify
8
it under the terms of the GNU General Public License as published by
9
the Free Software Foundation, either version 3 of the License, or
10
(at your option) any later version.
12
MAP Client is distributed in the hope that it will be useful,
13
but WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
GNU General Public License for more details.
17
You should have received a copy of the GNU General Public License
18
along with MAP Client. If not, see <http://www.gnu.org/licenses/>..
21
from PySide import QtGui
23
from mapclient.tools.pmr.ui_oauthcheckdialog import Ui_OAuthCheckDialog
25
logger = logging.getLogger(__name__)
28
class OAuthCheckDialog(QtGui.QDialog):
30
Dialog that other UI elements can spawn to check for existence of
31
token credentials and acquire one from user if it is unavailable.
34
def __init__(self, parent=None):
35
QtGui.QDialog.__init__(self, parent)
36
self._ui = Ui_OAuthCheckDialog()
37
self._ui.setupUi(self)
38
self._makeConnections()
40
def _makeConnections(self):
41
self._ui.continueButton.clicked.connect(self.event_register)
44
return self._ui.tokenLineEdit.text()