GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |
GeezerVison is showing mevislab.github.io — PythonQt: PythonQtSignalReceiver.h Source File
PythonQtSignalReceiver.h
Go to the documentation of this file.
1#ifndef _PYTHONQTSIGNALRECEIVER_H
2#define _PYTHONQTSIGNALRECEIVER_H
3
4/*
5 *
6 * Copyright (C) 2010 MeVis Medical Solutions AG All Rights Reserved.
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * Further, this software is distributed without any warranty that it is
19 * free of the rightful claim of any third person regarding infringement
20 * or the like. Any license provided herein, whether implied or
21 * otherwise, applies only to this software file. Patent licenses, if
22 * any, provided herein do not apply to combinations of this program with
23 * other software, or any other product whatsoever.
24 *
25 * You should have received a copy of the GNU Lesser General Public
26 * License along with this library; if not, write to the Free Software
27 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
28 *
29 * Contact information: MeVis Medical Solutions AG, Universitaetsallee 29,
30 * 28359 Bremen, Germany or:
31 *
32 * http://www.mevis.de
33 *
34 */
35
36//----------------------------------------------------------------------------------
42//----------------------------------------------------------------------------------
43
44#include "PythonQtPythonInclude.h"
45
46#include "PythonQtSystem.h"
47#include "PythonQtObjectPtr.h"
48
51
53
56{
57public:
59
65
66 ~PythonQtSignalTarget() {};
67
70
73
76
78 static PyObject* call(PyObject* callable, const PythonQtMethodInfo* methodInfo, void** arguments,
79 bool skipFirstArgumentOfMethodInfo = false);
80
81private:
83 PythonQtSafeObjectPtr _callable;
84};
85
87
90{
91 Q_OBJECT
92public:
94};
95
97
100{
101
102public:
105
108
111
114
117
120
123
124private:
125 static int _slotCount;
126 QObject* _sender;
127 int _signalId;
128 bool _alreadyRemoved;
129 PythonQtSignalTarget _target;
130};
131
132#endif
a class that stores all required information about a Qt object (and an optional associated C++ class ... Definition PythonQtClassInfo.h:89 stores information about a specific signal/slot/method Definition PythonQtMethodInfo.h:59 a smart pointer that stores a PyObject pointer and that handles reference counting automatically Definition PythonQtObjectPtr.h:199 PythonQtSignalReceiverBase()=default bool isSameCallable(PyObject *callable) const Check if this object targets the callable given as argument. void markAsRemoved() Mark this object as already removed from the global list of signal receivers. ~PythonQtSignalReceiver() override int qt_metacall(QMetaObject::Call c, int id, void **arguments) override We implement this method to either call the callable, or react to the fact that the sender was destro... static int getSignalIndex(QObject *sender, const char *signal) Get the index of a sender's signal. QObject * sender() const Returns the signal sender for which this receiver was created. Definition PythonQtSignalReceiver.h:107 int signalId() const Returns the signal ID for which this receiver was created. Definition PythonQtSignalReceiver.h:110 PythonQtSignalReceiver(QObject *sender, int signalId, PyObject *callable) PythonQtSignalTarget(const PythonQtMethodInfo *methodInfo, PyObject *callable) Definition PythonQtSignalReceiver.h:60 bool isSame(PyObject *callable) const check if this targets the same callable ~PythonQtSignalTarget() Definition PythonQtSignalReceiver.h:66 static PyObject * call(PyObject *callable, const PythonQtMethodInfo *methodInfo, void **arguments, bool skipFirstArgumentOfMethodInfo=false) call the given callable with arguments described by PythonQtMethodInfo, returns a new reference as re... void call(void **arguments) const call the python callable with the given arguments (as defined in methodInfo) const PythonQtMethodInfo * methodInfo() const get the signals parameter info Definition PythonQtSignalReceiver.h:69 PythonQtSignalTarget() Definition PythonQtSignalReceiver.h:58 Generated on for PythonQt by | |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |