Compare commits

..

16 Commits
main ... time

Author SHA1 Message Date
Ben Niemann f94e2e99ab Fix deadlock. 2020-02-22 17:50:09 +01:00
Ben Niemann b57a212144 Tweak UI for vumeter node. 2020-02-22 12:30:14 +01:00
Ben Niemann e567b2330e Fix measure positioning for measured tracks. 2020-02-22 11:42:03 +01:00
Ben Niemann 4d0c2df377 Move the engine load widget into the toolbar.
And split it into separate classes for tracking the engine state and rendering it (so there can be
multiple widgets of the latter without replicating the state tracking).
2020-02-22 11:01:42 +01:00
Ben Niemann dec49c3db4 Persist the display mode of the time display. 2020-02-22 09:03:19 +01:00
Ben Niemann f8162bbb7e Redesigned toolbar.
- Use a custom layout (instead of QToolBar).
- Add a VUMeter for master output.
- Move widget related stuff from player_state.py to project_view.py
2020-02-22 08:14:24 +01:00
Ben Niemann cb040f3686 Add a VUMeter node. 2020-02-22 06:57:47 +01:00
Ben Niemann d34f92e08e Add widget to display current playhead position. 2020-02-21 17:09:17 +01:00
Ben Niemann c08ca2140c Move back/forward by beat. Fix bug when moving playhead w/o snap-to-grid. 2020-02-21 15:25:09 +01:00
Ben Niemann 9e298f3966 Each ProjectView has its own toolbar. PlayerState owns the actions to control the player. 2020-02-21 15:00:25 +01:00
Ben Niemann e9518d6635 Tune time grid rendering. 2020-02-21 06:35:35 +01:00
Ben Niemann f637bddb56 Correctly align timeline. 2020-02-20 12:40:59 +01:00
Ben Niemann d87f862581 Snap to grid when moving playhead. 2020-02-20 12:14:46 +01:00
Ben Niemann 402191ffec Fix player position dragging. 2020-02-20 10:54:04 +01:00
Ben Niemann 0489093fdf Typing improvements. 2020-02-20 10:35:12 +01:00
Ben Niemann 8eea318e98 Fix state updates of player buttons. 2020-02-20 07:56:43 +01:00
1269 changed files with 147864 additions and 87398 deletions

View File

@ -1,8 +1,12 @@
; TODO:
; - add shortcuts to run tests
; - add tweaks to C++ indentation
; - no indentation for namespace
; - correct indentation for arg list continuation
((nil . (
; Projetile
(projectile-project-test-cmd . "nix-shell --run './waf test'")
(projectile-project-compilation-cmd . "nix-shell --run './waf build'")
(projectile-project-run-cmd . "nix-shell --run 'DEBUG=0 ./bin/noisicaa-dev'")
(projectile-project-test-cmd . "./waf test")
(pyvenv-workon . "noisicaa")
@ -12,11 +16,6 @@
; Be more generous than 80 columns.
(fill-column . 100)
; Do not indent body of namespaces.
(eval . (add-to-list 'c-offsets-alist '(innamespace . 0)))
(eval . (add-to-list 'c-offsets-alist '(arglist-intro . ++)))
(eval . (add-to-list 'c-offsets-alist '(arglist-close . 0)))
; Highlight tabs, so they don't slip in unnoticed.
; TODO: make this work correctly
; - should only show leading tabs

16
.gitignore vendored
View File

@ -1,11 +1,13 @@
*.pyc
__pycache__/
/build
/3rdparty/*/build
/vmtests
/ENV
*~
.nobackup
/.waf*
/.lock-waf*
/build/
/result
/playground/
/website/.venv/
/.venv
/website/_build/
/website/_serve/
/.waf*
/.lock-waf*
/venv/

15
.gitmodules vendored
View File

@ -1,15 +0,0 @@
[submodule "noisicaa/node_lib/swh/src"]
path = noisicaa/node_lib/swh/src
url = https://github.com/swh/ladspa
[submodule "3rdparty/qnanopainter"]
path = 3rdparty/qnanopainter
url = https://github.com/QUItCoding/qnanopainter
[submodule "3rdparty/dep_sort"]
path = 3rdparty/dep_sort
url = https://github.com/graphitemaster/dep_sort
[submodule "3rdparty/subprocess"]
path = 3rdparty/subprocess
url = https://github.com/benman64/subprocess
[submodule "3rdparty/flatpy"]
path = 3rdparty/flatpy
url = https://git.odahoda.de/pink/flatpy.git

View File

@ -1,10 +1,3 @@
-/build/
-/.waf*
-/.lock-waf*
-/website/.venv/
-/website/_serve/
-/website/_build/
-/3rdparty/qnanopainter/
-/3rdparty/subprocess/
-/3rdparty/dep_sort/
-/3rdparty/flatpy/
-/build
-/venv
-/vmtests

17
3rdparty/README.md vendored
View File

@ -1,17 +0,0 @@
Some of the more obscure packages, which are not generally available in distributions.
* qnanopainter: Library for implementing OpenGL accelerated Qt5 C++ UI components.
- Source: https://github.com/QUItCoding/qnanopainter
- License: zlib
* dep_sort: Generic topological sorting for sorting a list of dependencies in C++17.
- Source: https://github.com/graphitemaster/dep_sort
- License: MIT
* subprocess: cross platform subprocess library for c++ similar to design of python subprocess
- Source: https://github.com/benman64/subprocess
- License: MIT
* flatpy: An alternative Python code generator for flatbuffers.
- Source: https://git.odahoda.de/pink/flatpy
- License: Apache-2.0

1
3rdparty/dep_sort vendored

@ -1 +0,0 @@
Subproject commit 9e96e9426e74e6dc24ba26fdd9c2bee5bab72b0b

1
3rdparty/flatpy vendored

@ -1 +0,0 @@
Subproject commit bf1a4e391ffcd484f627ba81ae54ffe0c073acb9

@ -1 +0,0 @@
Subproject commit 963870484151ebe6ca9225e0e73588abb7e564e0

1
3rdparty/subprocess vendored

@ -1 +0,0 @@
Subproject commit e1cae5e86e5d089e65e906f7c13917b7bbb75d04

8550
3rdparty/typeshed/PyQt5/QtCore.pyi vendored 100644

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,511 @@
# The PEP 484 type hints stub file for the QtDBus module.
#
# Generated by SIP 4.19.8
#
# Copyright (c) 2018 Riverbank Computing Limited <info@riverbankcomputing.com>
#
# This file is part of PyQt5.
#
# This file may be used under the terms of the GNU General Public License
# version 3.0 as published by the Free Software Foundation and appearing in
# the file LICENSE included in the packaging of this file. Please review the
# following information to ensure the GNU General Public License version 3.0
# requirements will be met: http://www.gnu.org/copyleft/gpl.html.
#
# If you do not wish to use this file under the terms of the GPL version 3.0
# then you may purchase a commercial license. For more information contact
# info@riverbankcomputing.com.
#
# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
import typing
import sip
from PyQt5 import QtCore
# Support for QDate, QDateTime and QTime.
import datetime
# Convenient type aliases.
PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal]
PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal]
class QDBusAbstractAdaptor(QtCore.QObject):
def __init__(self, parent: QtCore.QObject) -> None: ...
def autoRelaySignals(self) -> bool: ...
def setAutoRelaySignals(self, enable: bool) -> None: ...
class QDBusAbstractInterface(QtCore.QObject):
def __init__(self, service: str, path: str, interface: str, connection: 'QDBusConnection', parent: QtCore.QObject) -> None: ...
def disconnectNotify(self, signal: QtCore.QMetaMethod) -> None: ...
def connectNotify(self, signal: QtCore.QMetaMethod) -> None: ...
def asyncCallWithArgumentList(self, method: str, args: typing.Iterable[typing.Any]) -> 'QDBusPendingCall': ...
def asyncCall(self, method: str, arg1: typing.Any = ..., arg2: typing.Any = ..., arg3: typing.Any = ..., arg4: typing.Any = ..., arg5: typing.Any = ..., arg6: typing.Any = ..., arg7: typing.Any = ..., arg8: typing.Any = ...) -> 'QDBusPendingCall': ...
@typing.overload
def callWithCallback(self, method: str, args: typing.Iterable[typing.Any], returnMethod: PYQT_SLOT, errorMethod: PYQT_SLOT) -> bool: ...
@typing.overload
def callWithCallback(self, method: str, args: typing.Iterable[typing.Any], slot: PYQT_SLOT) -> bool: ...
def callWithArgumentList(self, mode: 'QDBus.CallMode', method: str, args: typing.Iterable[typing.Any]) -> 'QDBusMessage': ...
@typing.overload
def call(self, method: str, arg1: typing.Any = ..., arg2: typing.Any = ..., arg3: typing.Any = ..., arg4: typing.Any = ..., arg5: typing.Any = ..., arg6: typing.Any = ..., arg7: typing.Any = ..., arg8: typing.Any = ...) -> 'QDBusMessage': ...
@typing.overload
def call(self, mode: 'QDBus.CallMode', method: str, arg1: typing.Any = ..., arg2: typing.Any = ..., arg3: typing.Any = ..., arg4: typing.Any = ..., arg5: typing.Any = ..., arg6: typing.Any = ..., arg7: typing.Any = ..., arg8: typing.Any = ...) -> 'QDBusMessage': ...
def timeout(self) -> int: ...
def setTimeout(self, timeout: int) -> None: ...
def lastError(self) -> 'QDBusError': ...
def interface(self) -> str: ...
def path(self) -> str: ...
def service(self) -> str: ...
def connection(self) -> 'QDBusConnection': ...
def isValid(self) -> bool: ...
class QDBusArgument(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, other: 'QDBusArgument') -> None: ...
@typing.overload
def __init__(self, arg: typing.Any, id: int = ...) -> None: ...
def swap(self, other: 'QDBusArgument') -> None: ...
def endMapEntry(self) -> None: ...
def beginMapEntry(self) -> None: ...
def endMap(self) -> None: ...
def beginMap(self, kid: int, vid: int) -> None: ...
def endArray(self) -> None: ...
def beginArray(self, id: int) -> None: ...
def endStructure(self) -> None: ...
def beginStructure(self) -> None: ...
def add(self, arg: typing.Any, id: int = ...) -> None: ...
class QDBus(sip.simplewrapper):
class CallMode(int): ...
NoBlock = ... # type: 'QDBus.CallMode'
Block = ... # type: 'QDBus.CallMode'
BlockWithGui = ... # type: 'QDBus.CallMode'
AutoDetect = ... # type: 'QDBus.CallMode'
class QDBusConnection(sip.simplewrapper):
class ConnectionCapability(int): ...
UnixFileDescriptorPassing = ... # type: 'QDBusConnection.ConnectionCapability'
class UnregisterMode(int): ...
UnregisterNode = ... # type: 'QDBusConnection.UnregisterMode'
UnregisterTree = ... # type: 'QDBusConnection.UnregisterMode'
class RegisterOption(int): ...
ExportAdaptors = ... # type: 'QDBusConnection.RegisterOption'
ExportScriptableSlots = ... # type: 'QDBusConnection.RegisterOption'
ExportScriptableSignals = ... # type: 'QDBusConnection.RegisterOption'
ExportScriptableProperties = ... # type: 'QDBusConnection.RegisterOption'
ExportScriptableInvokables = ... # type: 'QDBusConnection.RegisterOption'
ExportScriptableContents = ... # type: 'QDBusConnection.RegisterOption'
ExportNonScriptableSlots = ... # type: 'QDBusConnection.RegisterOption'
ExportNonScriptableSignals = ... # type: 'QDBusConnection.RegisterOption'
ExportNonScriptableProperties = ... # type: 'QDBusConnection.RegisterOption'
ExportNonScriptableInvokables = ... # type: 'QDBusConnection.RegisterOption'
ExportNonScriptableContents = ... # type: 'QDBusConnection.RegisterOption'
ExportAllSlots = ... # type: 'QDBusConnection.RegisterOption'
ExportAllSignals = ... # type: 'QDBusConnection.RegisterOption'
ExportAllProperties = ... # type: 'QDBusConnection.RegisterOption'
ExportAllInvokables = ... # type: 'QDBusConnection.RegisterOption'
ExportAllContents = ... # type: 'QDBusConnection.RegisterOption'
ExportAllSignal = ... # type: 'QDBusConnection.RegisterOption'
ExportChildObjects = ... # type: 'QDBusConnection.RegisterOption'
class BusType(int): ...
SessionBus = ... # type: 'QDBusConnection.BusType'
SystemBus = ... # type: 'QDBusConnection.BusType'
ActivationBus = ... # type: 'QDBusConnection.BusType'
class RegisterOptions(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, f: typing.Union['QDBusConnection.RegisterOptions', 'QDBusConnection.RegisterOption']) -> None: ...
@typing.overload
def __init__(self, a0: 'QDBusConnection.RegisterOptions') -> None: ...
def __hash__(self) -> int: ...
def __bool__(self) -> int: ...
def __invert__(self) -> 'QDBusConnection.RegisterOptions': ...
def __int__(self) -> int: ...
class ConnectionCapabilities(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, f: typing.Union['QDBusConnection.ConnectionCapabilities', 'QDBusConnection.ConnectionCapability']) -> None: ...
@typing.overload
def __init__(self, a0: 'QDBusConnection.ConnectionCapabilities') -> None: ...
def __hash__(self) -> int: ...
def __bool__(self) -> int: ...
def __invert__(self) -> 'QDBusConnection.ConnectionCapabilities': ...
def __int__(self) -> int: ...
@typing.overload
def __init__(self, name: str) -> None: ...
@typing.overload
def __init__(self, other: 'QDBusConnection') -> None: ...
def swap(self, other: 'QDBusConnection') -> None: ...
@staticmethod
def sender() -> 'QDBusConnection': ...
@staticmethod
def systemBus() -> 'QDBusConnection': ...
@staticmethod
def sessionBus() -> 'QDBusConnection': ...
@staticmethod
def localMachineId() -> QtCore.QByteArray: ...
@staticmethod
def disconnectFromPeer(name: str) -> None: ...
@staticmethod
def disconnectFromBus(name: str) -> None: ...
@staticmethod
def connectToPeer(address: str, name: str) -> 'QDBusConnection': ...
@typing.overload
@staticmethod
def connectToBus(type: 'QDBusConnection.BusType', name: str) -> 'QDBusConnection': ...
@typing.overload
@staticmethod
def connectToBus(address: str, name: str) -> 'QDBusConnection': ...
def interface(self) -> 'QDBusConnectionInterface': ...
def unregisterService(self, serviceName: str) -> bool: ...
def registerService(self, serviceName: str) -> bool: ...
def objectRegisteredAt(self, path: str) -> QtCore.QObject: ...
def unregisterObject(self, path: str, mode: 'QDBusConnection.UnregisterMode' = ...) -> None: ...
@typing.overload
def registerObject(self, path: str, object: QtCore.QObject, options: typing.Union['QDBusConnection.RegisterOptions', 'QDBusConnection.RegisterOption'] = ...) -> bool: ...
@typing.overload
def registerObject(self, path: str, interface: str, object: QtCore.QObject, options: typing.Union['QDBusConnection.RegisterOptions', 'QDBusConnection.RegisterOption'] = ...) -> bool: ...
@typing.overload
def disconnect(self, service: str, path: str, interface: str, name: str, slot: PYQT_SLOT) -> bool: ...
@typing.overload
def disconnect(self, service: str, path: str, interface: str, name: str, signature: str, slot: PYQT_SLOT) -> bool: ...
@typing.overload
def disconnect(self, service: str, path: str, interface: str, name: str, argumentMatch: typing.Iterable[str], signature: str, slot: PYQT_SLOT) -> bool: ...
@typing.overload
def connect(self, service: str, path: str, interface: str, name: str, slot: PYQT_SLOT) -> bool: ...
@typing.overload
def connect(self, service: str, path: str, interface: str, name: str, signature: str, slot: PYQT_SLOT) -> bool: ...
@typing.overload
def connect(self, service: str, path: str, interface: str, name: str, argumentMatch: typing.Iterable[str], signature: str, slot: PYQT_SLOT) -> bool: ...
def asyncCall(self, message: 'QDBusMessage', timeout: int = ...) -> 'QDBusPendingCall': ...
def call(self, message: 'QDBusMessage', mode: QDBus.CallMode = ..., timeout: int = ...) -> 'QDBusMessage': ...
def callWithCallback(self, message: 'QDBusMessage', returnMethod: PYQT_SLOT, errorMethod: PYQT_SLOT, timeout: int = ...) -> bool: ...
def send(self, message: 'QDBusMessage') -> bool: ...
def connectionCapabilities(self) -> 'QDBusConnection.ConnectionCapabilities': ...
def name(self) -> str: ...
def lastError(self) -> 'QDBusError': ...
def baseService(self) -> str: ...
def isConnected(self) -> bool: ...
class QDBusConnectionInterface(QDBusAbstractInterface):
class RegisterServiceReply(int): ...
ServiceNotRegistered = ... # type: 'QDBusConnectionInterface.RegisterServiceReply'
ServiceRegistered = ... # type: 'QDBusConnectionInterface.RegisterServiceReply'
ServiceQueued = ... # type: 'QDBusConnectionInterface.RegisterServiceReply'
class ServiceReplacementOptions(int): ...
DontAllowReplacement = ... # type: 'QDBusConnectionInterface.ServiceReplacementOptions'
AllowReplacement = ... # type: 'QDBusConnectionInterface.ServiceReplacementOptions'
class ServiceQueueOptions(int): ...
DontQueueService = ... # type: 'QDBusConnectionInterface.ServiceQueueOptions'
QueueService = ... # type: 'QDBusConnectionInterface.ServiceQueueOptions'
ReplaceExistingService = ... # type: 'QDBusConnectionInterface.ServiceQueueOptions'
def disconnectNotify(self, a0: QtCore.QMetaMethod) -> None: ...
def connectNotify(self, a0: QtCore.QMetaMethod) -> None: ...
def callWithCallbackFailed(self, error: 'QDBusError', call: 'QDBusMessage') -> None: ...
def serviceUnregistered(self, service: str) -> None: ...
def serviceRegistered(self, service: str) -> None: ...
def startService(self, name: str) -> 'QDBusReply': ...
def serviceUid(self, serviceName: str) -> 'QDBusReply': ...
def servicePid(self, serviceName: str) -> 'QDBusReply': ...
def registerService(self, serviceName: str, qoption: 'QDBusConnectionInterface.ServiceQueueOptions' = ..., roption: 'QDBusConnectionInterface.ServiceReplacementOptions' = ...) -> 'QDBusReply': ...
def unregisterService(self, serviceName: str) -> 'QDBusReply': ...
def serviceOwner(self, name: str) -> typing.Any: ...
def isServiceRegistered(self, serviceName: str) -> 'QDBusReply': ...
def registeredServiceNames(self) -> typing.Any: ...
class QDBusError(sip.simplewrapper):
class ErrorType(int): ...
NoError = ... # type: 'QDBusError.ErrorType'
Other = ... # type: 'QDBusError.ErrorType'
Failed = ... # type: 'QDBusError.ErrorType'
NoMemory = ... # type: 'QDBusError.ErrorType'
ServiceUnknown = ... # type: 'QDBusError.ErrorType'
NoReply = ... # type: 'QDBusError.ErrorType'
BadAddress = ... # type: 'QDBusError.ErrorType'
NotSupported = ... # type: 'QDBusError.ErrorType'
LimitsExceeded = ... # type: 'QDBusError.ErrorType'
AccessDenied = ... # type: 'QDBusError.ErrorType'
NoServer = ... # type: 'QDBusError.ErrorType'
Timeout = ... # type: 'QDBusError.ErrorType'
NoNetwork = ... # type: 'QDBusError.ErrorType'
AddressInUse = ... # type: 'QDBusError.ErrorType'
Disconnected = ... # type: 'QDBusError.ErrorType'
InvalidArgs = ... # type: 'QDBusError.ErrorType'
UnknownMethod = ... # type: 'QDBusError.ErrorType'
TimedOut = ... # type: 'QDBusError.ErrorType'
InvalidSignature = ... # type: 'QDBusError.ErrorType'
UnknownInterface = ... # type: 'QDBusError.ErrorType'
InternalError = ... # type: 'QDBusError.ErrorType'
UnknownObject = ... # type: 'QDBusError.ErrorType'
InvalidService = ... # type: 'QDBusError.ErrorType'
InvalidObjectPath = ... # type: 'QDBusError.ErrorType'
InvalidInterface = ... # type: 'QDBusError.ErrorType'
InvalidMember = ... # type: 'QDBusError.ErrorType'
UnknownProperty = ... # type: 'QDBusError.ErrorType'
PropertyReadOnly = ... # type: 'QDBusError.ErrorType'
def __init__(self, other: 'QDBusError') -> None: ...
def swap(self, other: 'QDBusError') -> None: ...
@staticmethod
def errorString(error: 'QDBusError.ErrorType') -> str: ...
def isValid(self) -> bool: ...
def message(self) -> str: ...
def name(self) -> str: ...
def type(self) -> 'QDBusError.ErrorType': ...
class QDBusObjectPath(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, objectPath: str) -> None: ...
@typing.overload
def __init__(self, a0: 'QDBusObjectPath') -> None: ...
def swap(self, other: 'QDBusObjectPath') -> None: ...
def __hash__(self) -> int: ...
def setPath(self, objectPath: str) -> None: ...
def path(self) -> str: ...
class QDBusSignature(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, dBusSignature: str) -> None: ...
@typing.overload
def __init__(self, a0: 'QDBusSignature') -> None: ...
def swap(self, other: 'QDBusSignature') -> None: ...
def __hash__(self) -> int: ...
def setSignature(self, dBusSignature: str) -> None: ...
def signature(self) -> str: ...
class QDBusVariant(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, dBusVariant: typing.Any) -> None: ...
@typing.overload
def __init__(self, a0: 'QDBusVariant') -> None: ...
def swap(self, other: 'QDBusVariant') -> None: ...
def setVariant(self, dBusVariant: typing.Any) -> None: ...
def variant(self) -> typing.Any: ...
class QDBusInterface(QDBusAbstractInterface):
def __init__(self, service: str, path: str, interface: str = ..., connection: QDBusConnection = ..., parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
class QDBusMessage(sip.simplewrapper):
class MessageType(int): ...
InvalidMessage = ... # type: 'QDBusMessage.MessageType'
MethodCallMessage = ... # type: 'QDBusMessage.MessageType'
ReplyMessage = ... # type: 'QDBusMessage.MessageType'
ErrorMessage = ... # type: 'QDBusMessage.MessageType'
SignalMessage = ... # type: 'QDBusMessage.MessageType'
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, other: 'QDBusMessage') -> None: ...
@staticmethod
def createTargetedSignal(service: str, path: str, interface: str, name: str) -> 'QDBusMessage': ...
def swap(self, other: 'QDBusMessage') -> None: ...
def arguments(self) -> typing.List[typing.Any]: ...
def setArguments(self, arguments: typing.Iterable[typing.Any]) -> None: ...
def autoStartService(self) -> bool: ...
def setAutoStartService(self, enable: bool) -> None: ...
def isDelayedReply(self) -> bool: ...
def setDelayedReply(self, enable: bool) -> None: ...
def isReplyRequired(self) -> bool: ...
def signature(self) -> str: ...
def type(self) -> 'QDBusMessage.MessageType': ...
def errorMessage(self) -> str: ...
def errorName(self) -> str: ...
def member(self) -> str: ...
def interface(self) -> str: ...
def path(self) -> str: ...
def service(self) -> str: ...
@typing.overload
def createErrorReply(self, name: str, msg: str) -> 'QDBusMessage': ...
@typing.overload
def createErrorReply(self, error: QDBusError) -> 'QDBusMessage': ...
@typing.overload
def createErrorReply(self, type: QDBusError.ErrorType, msg: str) -> 'QDBusMessage': ...
@typing.overload
def createReply(self, arguments: typing.Iterable[typing.Any] = ...) -> 'QDBusMessage': ...
@typing.overload
def createReply(self, argument: typing.Any) -> 'QDBusMessage': ...
@typing.overload
@staticmethod
def createError(name: str, msg: str) -> 'QDBusMessage': ...
@typing.overload
@staticmethod
def createError(error: QDBusError) -> 'QDBusMessage': ...
@typing.overload
@staticmethod
def createError(type: QDBusError.ErrorType, msg: str) -> 'QDBusMessage': ...
@staticmethod
def createMethodCall(service: str, path: str, interface: str, method: str) -> 'QDBusMessage': ...
@staticmethod
def createSignal(path: str, interface: str, name: str) -> 'QDBusMessage': ...
class QDBusPendingCall(sip.simplewrapper):
def __init__(self, other: 'QDBusPendingCall') -> None: ...
def swap(self, other: 'QDBusPendingCall') -> None: ...
@staticmethod
def fromCompletedCall(message: QDBusMessage) -> 'QDBusPendingCall': ...
@staticmethod
def fromError(error: QDBusError) -> 'QDBusPendingCall': ...
class QDBusPendingCallWatcher(QtCore.QObject, QDBusPendingCall):
def __init__(self, call: QDBusPendingCall, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def finished(self, watcher: typing.Optional['QDBusPendingCallWatcher'] = ...) -> None: ...
def waitForFinished(self) -> None: ...
def isFinished(self) -> bool: ...
class QDBusServiceWatcher(QtCore.QObject):
class WatchModeFlag(int): ...
WatchForRegistration = ... # type: 'QDBusServiceWatcher.WatchModeFlag'
WatchForUnregistration = ... # type: 'QDBusServiceWatcher.WatchModeFlag'
WatchForOwnerChange = ... # type: 'QDBusServiceWatcher.WatchModeFlag'
class WatchMode(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, f: typing.Union['QDBusServiceWatcher.WatchMode', 'QDBusServiceWatcher.WatchModeFlag']) -> None: ...
@typing.overload
def __init__(self, a0: 'QDBusServiceWatcher.WatchMode') -> None: ...
def __hash__(self) -> int: ...
def __bool__(self) -> int: ...
def __invert__(self) -> 'QDBusServiceWatcher.WatchMode': ...
def __int__(self) -> int: ...
@typing.overload
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
@typing.overload
def __init__(self, service: str, connection: QDBusConnection, watchMode: typing.Union['QDBusServiceWatcher.WatchMode', 'QDBusServiceWatcher.WatchModeFlag'] = ..., parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def serviceOwnerChanged(self, service: str, oldOwner: str, newOwner: str) -> None: ...
def serviceUnregistered(self, service: str) -> None: ...
def serviceRegistered(self, service: str) -> None: ...
def setConnection(self, connection: QDBusConnection) -> None: ...
def connection(self) -> QDBusConnection: ...
def setWatchMode(self, mode: typing.Union['QDBusServiceWatcher.WatchMode', 'QDBusServiceWatcher.WatchModeFlag']) -> None: ...
def watchMode(self) -> 'QDBusServiceWatcher.WatchMode': ...
def removeWatchedService(self, service: str) -> bool: ...
def addWatchedService(self, newService: str) -> None: ...
def setWatchedServices(self, services: typing.Iterable[str]) -> None: ...
def watchedServices(self) -> typing.List[str]: ...
class QDBusUnixFileDescriptor(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, fileDescriptor: int) -> None: ...
@typing.overload
def __init__(self, other: 'QDBusUnixFileDescriptor') -> None: ...
def swap(self, other: 'QDBusUnixFileDescriptor') -> None: ...
@staticmethod
def isSupported() -> bool: ...
def setFileDescriptor(self, fileDescriptor: int) -> None: ...
def fileDescriptor(self) -> int: ...
def isValid(self) -> bool: ...
class QDBusPendingReply(QDBusPendingCall):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, other: 'QDBusPendingReply') -> None: ...
@typing.overload
def __init__(self, call: QDBusPendingCall) -> None: ...
@typing.overload
def __init__(self, reply: QDBusMessage) -> None: ...
def value(self, type: typing.Any = ...) -> typing.Any: ...
def waitForFinished(self) -> None: ...
def reply(self) -> QDBusMessage: ...
def isValid(self) -> bool: ...
def isFinished(self) -> bool: ...
def isError(self) -> bool: ...
def error(self) -> QDBusError: ...
def argumentAt(self, index: int) -> typing.Any: ...
class QDBusReply(sip.simplewrapper):
@typing.overload
def __init__(self, reply: QDBusMessage) -> None: ...
@typing.overload
def __init__(self, call: QDBusPendingCall) -> None: ...
@typing.overload
def __init__(self, error: QDBusError) -> None: ...
@typing.overload
def __init__(self, other: 'QDBusReply') -> None: ...
def value(self, type: typing.Any = ...) -> typing.Any: ...
def isValid(self) -> bool: ...
def error(self) -> QDBusError: ...

8207
3rdparty/typeshed/PyQt5/QtGui.pyi vendored 100644

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,330 @@
# The PEP 484 type hints stub file for the QtOpenGL module.
#
# Generated by SIP 4.19.8
#
# Copyright (c) 2018 Riverbank Computing Limited <info@riverbankcomputing.com>
#
# This file is part of PyQt5.
#
# This file may be used under the terms of the GNU General Public License
# version 3.0 as published by the Free Software Foundation and appearing in
# the file LICENSE included in the packaging of this file. Please review the
# following information to ensure the GNU General Public License version 3.0
# requirements will be met: http://www.gnu.org/copyleft/gpl.html.
#
# If you do not wish to use this file under the terms of the GPL version 3.0
# then you may purchase a commercial license. For more information contact
# info@riverbankcomputing.com.
#
# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
import typing
import sip
from PyQt5 import QtWidgets
from PyQt5 import QtGui
from PyQt5 import QtCore
# Support for QDate, QDateTime and QTime.
import datetime
# Convenient type aliases.
PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal]
PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal]
# Convenient aliases for complicated OpenGL types.
PYQT_OPENGL_ARRAY = typing.Union[typing.Sequence[int], typing.Sequence[float],
sip.Buffer, None]
PYQT_OPENGL_BOUND_ARRAY = typing.Union[typing.Sequence[int],
typing.Sequence[float], sip.Buffer, int, None]
class QGL(sip.simplewrapper):
class FormatOption(int): ...
DoubleBuffer = ... # type: 'QGL.FormatOption'
DepthBuffer = ... # type: 'QGL.FormatOption'
Rgba = ... # type: 'QGL.FormatOption'
AlphaChannel = ... # type: 'QGL.FormatOption'
AccumBuffer = ... # type: 'QGL.FormatOption'
StencilBuffer = ... # type: 'QGL.FormatOption'
StereoBuffers = ... # type: 'QGL.FormatOption'
DirectRendering = ... # type: 'QGL.FormatOption'
HasOverlay = ... # type: 'QGL.FormatOption'
SampleBuffers = ... # type: 'QGL.FormatOption'
SingleBuffer = ... # type: 'QGL.FormatOption'
NoDepthBuffer = ... # type: 'QGL.FormatOption'
ColorIndex = ... # type: 'QGL.FormatOption'
NoAlphaChannel = ... # type: 'QGL.FormatOption'
NoAccumBuffer = ... # type: 'QGL.FormatOption'
NoStencilBuffer = ... # type: 'QGL.FormatOption'
NoStereoBuffers = ... # type: 'QGL.FormatOption'
IndirectRendering = ... # type: 'QGL.FormatOption'
NoOverlay = ... # type: 'QGL.FormatOption'
NoSampleBuffers = ... # type: 'QGL.FormatOption'
DeprecatedFunctions = ... # type: 'QGL.FormatOption'
NoDeprecatedFunctions = ... # type: 'QGL.FormatOption'
class FormatOptions(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, f: typing.Union['QGL.FormatOptions', 'QGL.FormatOption']) -> None: ...
@typing.overload
def __init__(self, a0: 'QGL.FormatOptions') -> None: ...
def __hash__(self) -> int: ...
def __bool__(self) -> int: ...
def __invert__(self) -> 'QGL.FormatOptions': ...
def __int__(self) -> int: ...
class QGLFormat(sip.simplewrapper):
class OpenGLContextProfile(int): ...
NoProfile = ... # type: 'QGLFormat.OpenGLContextProfile'
CoreProfile = ... # type: 'QGLFormat.OpenGLContextProfile'
CompatibilityProfile = ... # type: 'QGLFormat.OpenGLContextProfile'
class OpenGLVersionFlag(int): ...
OpenGL_Version_None = ... # type: 'QGLFormat.OpenGLVersionFlag'
OpenGL_Version_1_1 = ... # type: 'QGLFormat.OpenGLVersionFlag'
OpenGL_Version_1_2 = ... # type: 'QGLFormat.OpenGLVersionFlag'
OpenGL_Version_1_3 = ... # type: 'QGLFormat.OpenGLVersionFlag'
OpenGL_Version_1_4 = ... # type: 'QGLFormat.OpenGLVersionFlag'
OpenGL_Version_1_5 = ... # type: 'QGLFormat.OpenGLVersionFlag'
OpenGL_Version_2_0 = ... # type: 'QGLFormat.OpenGLVersionFlag'
OpenGL_Version_2_1 = ... # type: 'QGLFormat.OpenGLVersionFlag'
OpenGL_Version_3_0 = ... # type: 'QGLFormat.OpenGLVersionFlag'
OpenGL_Version_3_1 = ... # type: 'QGLFormat.OpenGLVersionFlag'
OpenGL_Version_3_2 = ... # type: 'QGLFormat.OpenGLVersionFlag'
OpenGL_Version_3_3 = ... # type: 'QGLFormat.OpenGLVersionFlag'
OpenGL_Version_4_0 = ... # type: 'QGLFormat.OpenGLVersionFlag'
OpenGL_Version_4_1 = ... # type: 'QGLFormat.OpenGLVersionFlag'
OpenGL_Version_4_2 = ... # type: 'QGLFormat.OpenGLVersionFlag'
OpenGL_Version_4_3 = ... # type: 'QGLFormat.OpenGLVersionFlag'
OpenGL_ES_Common_Version_1_0 = ... # type: 'QGLFormat.OpenGLVersionFlag'
OpenGL_ES_CommonLite_Version_1_0 = ... # type: 'QGLFormat.OpenGLVersionFlag'
OpenGL_ES_Common_Version_1_1 = ... # type: 'QGLFormat.OpenGLVersionFlag'
OpenGL_ES_CommonLite_Version_1_1 = ... # type: 'QGLFormat.OpenGLVersionFlag'
OpenGL_ES_Version_2_0 = ... # type: 'QGLFormat.OpenGLVersionFlag'
class OpenGLVersionFlags(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, f: typing.Union['QGLFormat.OpenGLVersionFlags', 'QGLFormat.OpenGLVersionFlag']) -> None: ...
@typing.overload
def __init__(self, a0: 'QGLFormat.OpenGLVersionFlags') -> None: ...
def __hash__(self) -> int: ...
def __bool__(self) -> int: ...
def __invert__(self) -> 'QGLFormat.OpenGLVersionFlags': ...
def __int__(self) -> int: ...
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, options: typing.Union[QGL.FormatOptions, QGL.FormatOption], plane: int = ...) -> None: ...
@typing.overload
def __init__(self, other: 'QGLFormat') -> None: ...
def profile(self) -> 'QGLFormat.OpenGLContextProfile': ...
def setProfile(self, profile: 'QGLFormat.OpenGLContextProfile') -> None: ...
def minorVersion(self) -> int: ...
def majorVersion(self) -> int: ...
def setVersion(self, major: int, minor: int) -> None: ...
@staticmethod
def openGLVersionFlags() -> 'QGLFormat.OpenGLVersionFlags': ...
def swapInterval(self) -> int: ...
def setSwapInterval(self, interval: int) -> None: ...
def blueBufferSize(self) -> int: ...
def setBlueBufferSize(self, size: int) -> None: ...
def greenBufferSize(self) -> int: ...
def setGreenBufferSize(self, size: int) -> None: ...
def redBufferSize(self) -> int: ...
def setRedBufferSize(self, size: int) -> None: ...
def sampleBuffers(self) -> bool: ...
def hasOverlay(self) -> bool: ...
def directRendering(self) -> bool: ...
def stereo(self) -> bool: ...
def stencil(self) -> bool: ...
def accum(self) -> bool: ...
def alpha(self) -> bool: ...
def rgba(self) -> bool: ...
def depth(self) -> bool: ...
def doubleBuffer(self) -> bool: ...
@staticmethod
def hasOpenGLOverlays() -> bool: ...
@staticmethod
def hasOpenGL() -> bool: ...
@staticmethod
def setDefaultOverlayFormat(f: 'QGLFormat') -> None: ...
@staticmethod
def defaultOverlayFormat() -> 'QGLFormat': ...
@staticmethod
def setDefaultFormat(f: 'QGLFormat') -> None: ...
@staticmethod
def defaultFormat() -> 'QGLFormat': ...
def testOption(self, opt: typing.Union[QGL.FormatOptions, QGL.FormatOption]) -> bool: ...
def setOption(self, opt: typing.Union[QGL.FormatOptions, QGL.FormatOption]) -> None: ...
def setPlane(self, plane: int) -> None: ...
def plane(self) -> int: ...
def setOverlay(self, enable: bool) -> None: ...
def setDirectRendering(self, enable: bool) -> None: ...
def setStereo(self, enable: bool) -> None: ...
def setStencil(self, enable: bool) -> None: ...
def setAccum(self, enable: bool) -> None: ...
def setAlpha(self, enable: bool) -> None: ...
def setRgba(self, enable: bool) -> None: ...
def setDepth(self, enable: bool) -> None: ...
def setDoubleBuffer(self, enable: bool) -> None: ...
def samples(self) -> int: ...
def setSamples(self, numSamples: int) -> None: ...
def setSampleBuffers(self, enable: bool) -> None: ...
def stencilBufferSize(self) -> int: ...
def setStencilBufferSize(self, size: int) -> None: ...
def alphaBufferSize(self) -> int: ...
def setAlphaBufferSize(self, size: int) -> None: ...
def accumBufferSize(self) -> int: ...
def setAccumBufferSize(self, size: int) -> None: ...
def depthBufferSize(self) -> int: ...
def setDepthBufferSize(self, size: int) -> None: ...
class QGLContext(sip.wrapper):
class BindOption(int): ...
NoBindOption = ... # type: 'QGLContext.BindOption'
InvertedYBindOption = ... # type: 'QGLContext.BindOption'
MipmapBindOption = ... # type: 'QGLContext.BindOption'
PremultipliedAlphaBindOption = ... # type: 'QGLContext.BindOption'
LinearFilteringBindOption = ... # type: 'QGLContext.BindOption'
DefaultBindOption = ... # type: 'QGLContext.BindOption'
class BindOptions(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, f: typing.Union['QGLContext.BindOptions', 'QGLContext.BindOption']) -> None: ...
@typing.overload
def __init__(self, a0: 'QGLContext.BindOptions') -> None: ...
def __hash__(self) -> int: ...
def __bool__(self) -> int: ...
def __invert__(self) -> 'QGLContext.BindOptions': ...
def __int__(self) -> int: ...
def __init__(self, format: QGLFormat) -> None: ...
def moveToThread(self, thread: QtCore.QThread) -> None: ...
@staticmethod
def areSharing(context1: 'QGLContext', context2: 'QGLContext') -> bool: ...
def setInitialized(self, on: bool) -> None: ...
def initialized(self) -> bool: ...
def setWindowCreated(self, on: bool) -> None: ...
def windowCreated(self) -> bool: ...
def deviceIsPixmap(self) -> bool: ...
def chooseContext(self, shareContext: typing.Optional['QGLContext'] = ...) -> bool: ...
@staticmethod
def currentContext() -> 'QGLContext': ...
def overlayTransparentColor(self) -> QtGui.QColor: ...
def device(self) -> QtGui.QPaintDevice: ...
def getProcAddress(self, proc: str) -> sip.voidptr: ...
@staticmethod
def textureCacheLimit() -> int: ...
@staticmethod
def setTextureCacheLimit(size: int) -> None: ...
def deleteTexture(self, tx_id: int) -> None: ...
@typing.overload
def drawTexture(self, target: QtCore.QRectF, textureId: int, textureTarget: int = ...) -> None: ...
@typing.overload
def drawTexture(self, point: typing.Union[QtCore.QPointF, QtCore.QPoint], textureId: int, textureTarget: int = ...) -> None: ...
@typing.overload
def bindTexture(self, image: QtGui.QImage, target: int = ..., format: int = ...) -> int: ...
@typing.overload
def bindTexture(self, pixmap: QtGui.QPixmap, target: int = ..., format: int = ...) -> int: ...
@typing.overload
def bindTexture(self, fileName: str) -> int: ...
@typing.overload
def bindTexture(self, image: QtGui.QImage, target: int, format: int, options: typing.Union['QGLContext.BindOptions', 'QGLContext.BindOption']) -> int: ...
@typing.overload
def bindTexture(self, pixmap: QtGui.QPixmap, target: int, format: int, options: typing.Union['QGLContext.BindOptions', 'QGLContext.BindOption']) -> int: ...
def swapBuffers(self) -> None: ...
def doneCurrent(self) -> None: ...
def makeCurrent(self) -> None: ...
def setFormat(self, format: QGLFormat) -> None: ...
def requestedFormat(self) -> QGLFormat: ...
def format(self) -> QGLFormat: ...
def reset(self) -> None: ...
def isSharing(self) -> bool: ...
def isValid(self) -> bool: ...
def create(self, shareContext: typing.Optional['QGLContext'] = ...) -> bool: ...
class QGLWidget(QtWidgets.QWidget):
@typing.overload
def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., shareWidget: typing.Optional['QGLWidget'] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ...
@typing.overload
def __init__(self, context: QGLContext, parent: typing.Optional[QtWidgets.QWidget] = ..., shareWidget: typing.Optional['QGLWidget'] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ...
@typing.overload
def __init__(self, format: QGLFormat, parent: typing.Optional[QtWidgets.QWidget] = ..., shareWidget: typing.Optional['QGLWidget'] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ...
def glDraw(self) -> None: ...
def glInit(self) -> None: ...
def resizeEvent(self, a0: QtGui.QResizeEvent) -> None: ...
def paintEvent(self, a0: QtGui.QPaintEvent) -> None: ...
def autoBufferSwap(self) -> bool: ...
def setAutoBufferSwap(self, on: bool) -> None: ...
def paintOverlayGL(self) -> None: ...
def resizeOverlayGL(self, w: int, h: int) -> None: ...
def initializeOverlayGL(self) -> None: ...
def paintGL(self) -> None: ...
def resizeGL(self, w: int, h: int) -> None: ...
def initializeGL(self) -> None: ...
def event(self, a0: QtCore.QEvent) -> bool: ...
def updateOverlayGL(self) -> None: ...
def updateGL(self) -> None: ...
def deleteTexture(self, tx_id: int) -> None: ...
@typing.overload
def drawTexture(self, target: QtCore.QRectF, textureId: int, textureTarget: int = ...) -> None: ...
@typing.overload
def drawTexture(self, point: typing.Union[QtCore.QPointF, QtCore.QPoint], textureId: int, textureTarget: int = ...) -> None: ...
@typing.overload
def bindTexture(self, image: QtGui.QImage, target: int = ..., format: int = ...) -> int: ...
@typing.overload
def bindTexture(self, pixmap: QtGui.QPixmap, target: int = ..., format: int = ...) -> int: ...
@typing.overload
def bindTexture(self, fileName: str) -> int: ...
@typing.overload
def bindTexture(self, image: QtGui.QImage, target: int, format: int, options: typing.Union[QGLContext.BindOptions, QGLContext.BindOption]) -> int: ...
@typing.overload
def bindTexture(self, pixmap: QtGui.QPixmap, target: int, format: int, options: typing.Union[QGLContext.BindOptions, QGLContext.BindOption]) -> int: ...
def paintEngine(self) -> QtGui.QPaintEngine: ...
@typing.overload
def renderText(self, x: int, y: int, str: str, font: QtGui.QFont = ...) -> None: ...
@typing.overload
def renderText(self, x: float, y: float, z: float, str: str, font: QtGui.QFont = ...) -> None: ...
@staticmethod
def convertToGLFormat(img: QtGui.QImage) -> QtGui.QImage: ...
def overlayContext(self) -> QGLContext: ...
def makeOverlayCurrent(self) -> None: ...
def grabFrameBuffer(self, withAlpha: bool = ...) -> QtGui.QImage: ...
def renderPixmap(self, width: int = ..., height: int = ..., useContext: bool = ...) -> QtGui.QPixmap: ...
def setContext(self, context: QGLContext, shareContext: typing.Optional[QGLContext] = ..., deleteOldContext: bool = ...) -> None: ...
def context(self) -> QGLContext: ...
def format(self) -> QGLFormat: ...
def swapBuffers(self) -> None: ...
def doubleBuffer(self) -> bool: ...
def doneCurrent(self) -> None: ...
def makeCurrent(self) -> None: ...
def isSharing(self) -> bool: ...
def isValid(self) -> bool: ...
def qglClearColor(self, c: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ...
def qglColor(self, c: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ...

View File

@ -0,0 +1,433 @@
# The PEP 484 type hints stub file for the QtPrintSupport module.
#
# Generated by SIP 4.19.8
#
# Copyright (c) 2018 Riverbank Computing Limited <info@riverbankcomputing.com>
#
# This file is part of PyQt5.
#
# This file may be used under the terms of the GNU General Public License
# version 3.0 as published by the Free Software Foundation and appearing in
# the file LICENSE included in the packaging of this file. Please review the
# following information to ensure the GNU General Public License version 3.0
# requirements will be met: http://www.gnu.org/copyleft/gpl.html.
#
# If you do not wish to use this file under the terms of the GPL version 3.0
# then you may purchase a commercial license. For more information contact
# info@riverbankcomputing.com.
#
# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
import typing
import sip
from PyQt5 import QtWidgets
from PyQt5 import QtGui
from PyQt5 import QtCore
# Support for QDate, QDateTime and QTime.
import datetime
# Convenient type aliases.
PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal]
PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal]
# Convenient aliases for complicated OpenGL types.
PYQT_OPENGL_ARRAY = typing.Union[typing.Sequence[int], typing.Sequence[float],
sip.Buffer, None]
PYQT_OPENGL_BOUND_ARRAY = typing.Union[typing.Sequence[int],
typing.Sequence[float], sip.Buffer, int, None]
class QAbstractPrintDialog(QtWidgets.QDialog):
class PrintDialogOption(int): ...
None_ = ... # type: 'QAbstractPrintDialog.PrintDialogOption'
PrintToFile = ... # type: 'QAbstractPrintDialog.PrintDialogOption'
PrintSelection = ... # type: 'QAbstractPrintDialog.PrintDialogOption'
PrintPageRange = ... # type: 'QAbstractPrintDialog.PrintDialogOption'
PrintCollateCopies = ... # type: 'QAbstractPrintDialog.PrintDialogOption'
PrintShowPageSize = ... # type: 'QAbstractPrintDialog.PrintDialogOption'
PrintCurrentPage = ... # type: 'QAbstractPrintDialog.PrintDialogOption'
class PrintRange(int): ...
AllPages = ... # type: 'QAbstractPrintDialog.PrintRange'
Selection = ... # type: 'QAbstractPrintDialog.PrintRange'
PageRange = ... # type: 'QAbstractPrintDialog.PrintRange'
CurrentPage = ... # type: 'QAbstractPrintDialog.PrintRange'
class PrintDialogOptions(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, f: typing.Union['QAbstractPrintDialog.PrintDialogOptions', 'QAbstractPrintDialog.PrintDialogOption']) -> None: ...
@typing.overload
def __init__(self, a0: 'QAbstractPrintDialog.PrintDialogOptions') -> None: ...
def __hash__(self) -> int: ...
def __bool__(self) -> int: ...
def __invert__(self) -> 'QAbstractPrintDialog.PrintDialogOptions': ...
def __int__(self) -> int: ...
def __init__(self, printer: 'QPrinter', parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...
def enabledOptions(self) -> 'QAbstractPrintDialog.PrintDialogOptions': ...
def setEnabledOptions(self, options: typing.Union['QAbstractPrintDialog.PrintDialogOptions', 'QAbstractPrintDialog.PrintDialogOption']) -> None: ...
def setOptionTabs(self, tabs: typing.Iterable[QtWidgets.QWidget]) -> None: ...
def printer(self) -> 'QPrinter': ...
def toPage(self) -> int: ...
def fromPage(self) -> int: ...
def setFromTo(self, fromPage: int, toPage: int) -> None: ...
def maxPage(self) -> int: ...
def minPage(self) -> int: ...
def setMinMax(self, min: int, max: int) -> None: ...
def printRange(self) -> 'QAbstractPrintDialog.PrintRange': ...
def setPrintRange(self, range: 'QAbstractPrintDialog.PrintRange') -> None: ...
def exec(self) -> int: ...
def exec_(self) -> int: ...
class QPageSetupDialog(QtWidgets.QDialog):
@typing.overload
def __init__(self, printer: 'QPrinter', parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...
@typing.overload
def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...
def printer(self) -> 'QPrinter': ...
def done(self, result: int) -> None: ...
@typing.overload
def open(self) -> None: ...
@typing.overload
def open(self, slot: PYQT_SLOT) -> None: ...
def exec(self) -> int: ...
def exec_(self) -> int: ...
def setVisible(self, visible: bool) -> None: ...
class QPrintDialog(QAbstractPrintDialog):
@typing.overload
def __init__(self, printer: 'QPrinter', parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...
@typing.overload
def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...
@typing.overload
def accepted(self) -> None: ...
@typing.overload
def accepted(self, printer: 'QPrinter') -> None: ...
@typing.overload
def open(self) -> None: ...
@typing.overload
def open(self, slot: PYQT_SLOT) -> None: ...
def setVisible(self, visible: bool) -> None: ...
def options(self) -> QAbstractPrintDialog.PrintDialogOptions: ...
def setOptions(self, options: typing.Union[QAbstractPrintDialog.PrintDialogOptions, QAbstractPrintDialog.PrintDialogOption]) -> None: ...
def testOption(self, option: QAbstractPrintDialog.PrintDialogOption) -> bool: ...
def setOption(self, option: QAbstractPrintDialog.PrintDialogOption, on: bool = ...) -> None: ...
def done(self, result: int) -> None: ...
def accept(self) -> None: ...
def exec(self) -> int: ...
def exec_(self) -> int: ...
class QPrintEngine(sip.simplewrapper):
class PrintEnginePropertyKey(int): ...
PPK_CollateCopies = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
PPK_ColorMode = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
PPK_Creator = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
PPK_DocumentName = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
PPK_FullPage = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
PPK_NumberOfCopies = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
PPK_Orientation = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
PPK_OutputFileName = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
PPK_PageOrder = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
PPK_PageRect = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
PPK_PageSize = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
PPK_PaperRect = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
PPK_PaperSource = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
PPK_PrinterName = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
PPK_PrinterProgram = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
PPK_Resolution = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
PPK_SelectionOption = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
PPK_SupportedResolutions = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
PPK_WindowsPageSize = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
PPK_FontEmbedding = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
PPK_Duplex = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
PPK_PaperSources = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
PPK_CustomPaperSize = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
PPK_PageMargins = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
PPK_PaperSize = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
PPK_CopyCount = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
PPK_SupportsMultipleCopies = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
PPK_PaperName = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
PPK_QPageSize = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
PPK_QPageMargins = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
PPK_QPageLayout = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
PPK_CustomBase = ... # type: 'QPrintEngine.PrintEnginePropertyKey'
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, a0: 'QPrintEngine') -> None: ...
def printerState(self) -> 'QPrinter.PrinterState': ...
def metric(self, a0: QtGui.QPaintDevice.PaintDeviceMetric) -> int: ...
def abort(self) -> bool: ...
def newPage(self) -> bool: ...
def property(self, key: 'QPrintEngine.PrintEnginePropertyKey') -> typing.Any: ...
def setProperty(self, key: 'QPrintEngine.PrintEnginePropertyKey', value: typing.Any) -> None: ...
class QPrinter(QtGui.QPagedPaintDevice):
class DuplexMode(int): ...
DuplexNone = ... # type: 'QPrinter.DuplexMode'
DuplexAuto = ... # type: 'QPrinter.DuplexMode'
DuplexLongSide = ... # type: 'QPrinter.DuplexMode'
DuplexShortSide = ... # type: 'QPrinter.DuplexMode'
class Unit(int): ...
Millimeter = ... # type: 'QPrinter.Unit'
Point = ... # type: 'QPrinter.Unit'
Inch = ... # type: 'QPrinter.Unit'
Pica = ... # type: 'QPrinter.Unit'
Didot = ... # type: 'QPrinter.Unit'
Cicero = ... # type: 'QPrinter.Unit'
DevicePixel = ... # type: 'QPrinter.Unit'
class PrintRange(int): ...
AllPages = ... # type: 'QPrinter.PrintRange'
Selection = ... # type: 'QPrinter.PrintRange'
PageRange = ... # type: 'QPrinter.PrintRange'
CurrentPage = ... # type: 'QPrinter.PrintRange'
class OutputFormat(int): ...
NativeFormat = ... # type: 'QPrinter.OutputFormat'
PdfFormat = ... # type: 'QPrinter.OutputFormat'
class PrinterState(int): ...
Idle = ... # type: 'QPrinter.PrinterState'
Active = ... # type: 'QPrinter.PrinterState'
Aborted = ... # type: 'QPrinter.PrinterState'
Error = ... # type: 'QPrinter.PrinterState'
class PaperSource(int): ...
OnlyOne = ... # type: 'QPrinter.PaperSource'
Lower = ... # type: 'QPrinter.PaperSource'
Middle = ... # type: 'QPrinter.PaperSource'
Manual = ... # type: 'QPrinter.PaperSource'
Envelope = ... # type: 'QPrinter.PaperSource'
EnvelopeManual = ... # type: 'QPrinter.PaperSource'
Auto = ... # type: 'QPrinter.PaperSource'
Tractor = ... # type: 'QPrinter.PaperSource'
SmallFormat = ... # type: 'QPrinter.PaperSource'
LargeFormat = ... # type: 'QPrinter.PaperSource'
LargeCapacity = ... # type: 'QPrinter.PaperSource'
Cassette = ... # type: 'QPrinter.PaperSource'
FormSource = ... # type: 'QPrinter.PaperSource'
MaxPageSource = ... # type: 'QPrinter.PaperSource'
Upper = ... # type: 'QPrinter.PaperSource'
CustomSource = ... # type: 'QPrinter.PaperSource'
LastPaperSource = ... # type: 'QPrinter.PaperSource'
class ColorMode(int): ...
GrayScale = ... # type: 'QPrinter.ColorMode'
Color = ... # type: 'QPrinter.ColorMode'
class PageOrder(int): ...
FirstPageFirst = ... # type: 'QPrinter.PageOrder'
LastPageFirst = ... # type: 'QPrinter.PageOrder'
class Orientation(int): ...
Portrait = ... # type: 'QPrinter.Orientation'
Landscape = ... # type: 'QPrinter.Orientation'
class PrinterMode(int): ...
ScreenResolution = ... # type: 'QPrinter.PrinterMode'
PrinterResolution = ... # type: 'QPrinter.PrinterMode'
HighResolution = ... # type: 'QPrinter.PrinterMode'
@typing.overload
def __init__(self, mode: 'QPrinter.PrinterMode' = ...) -> None: ...
@typing.overload
def __init__(self, printer: 'QPrinterInfo', mode: 'QPrinter.PrinterMode' = ...) -> None: ...
def paperName(self) -> str: ...
def setPaperName(self, paperName: str) -> None: ...
def setEngines(self, printEngine: QPrintEngine, paintEngine: QtGui.QPaintEngine) -> None: ...
def metric(self, a0: QtGui.QPaintDevice.PaintDeviceMetric) -> int: ...
def getPageMargins(self, unit: 'QPrinter.Unit') -> typing.Tuple[float, float, float, float]: ...
def setPageMargins(self, left: float, top: float, right: float, bottom: float, unit: 'QPrinter.Unit') -> None: ...
def setMargins(self, m: QtGui.QPagedPaintDevice.Margins) -> None: ...
def printRange(self) -> 'QPrinter.PrintRange': ...
def setPrintRange(self, range: 'QPrinter.PrintRange') -> None: ...
def toPage(self) -> int: ...
def fromPage(self) -> int: ...
def setFromTo(self, fromPage: int, toPage: int) -> None: ...
def printEngine(self) -> QPrintEngine: ...
def paintEngine(self) -> QtGui.QPaintEngine: ...
def printerState(self) -> 'QPrinter.PrinterState': ...
def abort(self) -> bool: ...