##// END OF EJS Templates
Pre-0.7 partially back-ported.
Alexis Jeandet -
r106:7598f3bdb8ba 0.6
parent child
Show More
@@ -1,4 +1,4
1 1 1cb664ab4bb3c531d706b1948a378ed9810c0dda src/SocExplorerEngine/PeripheralWidget
2 2 1f143e4ae72a0bb4832b546eb76eb50e94049b80 src/common/genericBinaryFiles
3 2dce25b198558be573f56c1cf337aa95ddd666d6 src/common/lppserial
3 2b353bf8243cbfb3db44e196f33bd164c11c9949 src/common/lppserial
4 4 923afde9cc96bb419cf898560d080ec96991aeca src/common/qhexedit
@@ -1,442 +1,459
1 1 <?xml version='1.0' encoding='utf-8'?>
2 2 <soc name="Leon">
3 3 <peripheral vid="1" name="AHBUART" pid="7">
4 4 <register name="STATUS" addOffset="4">
5 5 <bitField size="1" name="DR" mode="1" desc="Data ready (DR) - indicates that new data has been received by the AMBA AHB master interface. Read only. Reset&#xa;value: ‘0’.&#xa;"/>
6 6 <bitField size="1" name="TS" mode="3" desc="Transmitter shift register empty (TS) - indicates that the transmitter shift register is empty. Read only. Reset value:&#xa;‘1’"/>
7 7 <bitField name="TH" size="1" mode="1" desc="Transmitter hold register empty (TH) - indicates that the transmitter hold register is empty. Read only. Reset value:&#xa;‘1’"/>
8 8 <bitField name="BR" size="1" mode="1" desc="Break (BR) - indicates that a BREAKE has been received. Reset value: ‘0’"/>
9 9 <bitField name="OV" size="1" mode="1" desc="Overflow (OV) - indicates that one or more character have been lost due to receiver overflow. Reset value: ‘0’"/>
10 10 <bitField name="FE" size="1" mode="1" desc="Frame error (FE) - indicates that a framing error was detected. Reset value: ‘0’"/>
11 11 </register>
12 12 <register name="CONTROL" addOffset="8">
13 13 <bitField name="EN" size="1" mode="3" desc="Receiver enable (EN) - if set, enables both the transmitter and receiver. Reset value: ‘0’."/>
14 14 <bitField name="BL" size="1" mode="3" desc="Baud rate locked (BL) - is automatically set when the baud rate is locked. Reset value: ‘0’."/>
15 15 </register>
16 16 <register name="SCALE" addOffset="12">
17 17 <bitField name="SCALER RELOAD VALUE" size="18" mode="3" desc="Baudrate scaler reload value = (((system_clk*10)/(baudrate*8))-5)/10. Reset value: “3FFFF“."/>
18 18 </register>
19 19 </peripheral>
20 20 <peripheral vid="1" name="APBUART" pid="12">
21 21 <register name="DATA">
22 22 <bitField name="DATA" size="8" mode="3" desc="Receiver holding register or FIFO (read access)&#xa;Transmitter holding register or FIFO (write access)&#xa;"/>
23 23 </register>
24 24 <register name="STATUS" addOffset="4">
25 25 <bitField name="DR" size="1" mode="1" desc="Data ready (DR) - indicates that new data is available in the receiver holding register. Reset: 0&#xa;"/>
26 26 <bitField name="TS" size="1" mode="1" desc="Transmitter shift register empty (TS) - indicates that the transmitter shift register is empty. Reset: 1"/>
27 27 <bitField name="TE" size="1" mode="1" desc="Transmitter FIFO empty (TE) - indicates that the transmitter FIFO is empty. Reset: 1&#xa;"/>
28 28 <bitField name="BR" size="1" mode="1" desc="Break received (BR) - indicates that a BREAK has been received. Reset: 0&#xa;"/>
29 29 <bitField name="OV" size="1" mode="1" desc="Overrun (OV) - indicates that one or more character have been lost due to overrun. Reset: 0&#xa;"/>
30 30 <bitField name="PE" size="1" mode="1" desc="Parity error (PE) - indicates that a parity error was detected. Reset: 0&#xa;"/>
31 31 <bitField name="FE" size="1" mode="1" desc="Framing error (FE) - indicates that a framing error was detected. Reset: 0&#xa;"/>
32 32 <bitField name="TH" size="1" mode="1" desc="Transmitter FIFO half-full (TH) - indicates that the FIFO is less than half-full. Reset: 0&#xa;"/>
33 33 <bitField name="RH" size="1" mode="1" desc="Receiver FIFO half-full (RH) -indicates that at least half of the FIFO is holding data. Reset: 0&#xa;"/>
34 34 <bitField name="TF" size="1" mode="1" desc="Transmitter FIFO full (TF) - indicates that the Transmitter FIFO is full. Reset: 0&#xa;"/>
35 35 <bitField name="RF" size="1" mode="1" desc="Receiver FIFO full (RF) - indicates that the Receiver FIFO is full. Reset: 0&#xa;"/>
36 36 <bitField name="TCNT" size="6" mode="1" desc="Transmitter FIFO count (TCNT) - shows the number of data frames in the transmitter FIFO. Reset: 0&#xa;"/>
37 37 <bitField name="RCNT" size="6" mode="1" desc="Receiver FIFO count (RCNT) - shows the number of data frames in the receiver FIFO. Reset: 0"/>
38 38 </register>
39 39 <register name="CONTROL" addOffset="8">
40 40 <bitField name="RE" size="1" mode="3" desc="Receiver enable (RE) - if set, enables the receiver. Reset: 0&#xa;"/>
41 41 <bitField name="TE" size="1" mode="3" desc="Transmitter enable (TE) - if set, enables the transmitter. Reset: 0&#xa;"/>
42 42 <bitField name="RI" size="1" mode="3" desc="Receiver interrupt enable (RI) - if set, interrupts are generated when characters are received (see sec-&#xa;tion 15.6 for details). Not Reset.&#xa;"/>
43 43 <bitField name="TI" size="1" mode="3" desc="Transmitter interrupt enable (TI) - if set, interrupts are generated when characters are transmitted&#xa;(see section 15.6 for details). Not Reset.&#xa;"/>
44 44 <bitField name="PS" size="1" mode="3" desc="Parity select (PS) - selects parity polarity (0 = even parity, 1 = odd parity) (when implemented). Not&#xa;Reset.&#xa;"/>
45 45 <bitField name="PE" size="1" mode="3" desc="Parity enable (PE) - if set, enables parity generation and checking (when implemented). Not Reset.&#xa;"/>
46 46 <bitField name="FL" size="1" mode="3" desc="Flow control (FL) - if set, enables flow control using CTS/RTS (when implemented). Reset: 0&#xa;"/>
47 47 <bitField name="LB" size="1" mode="3" desc="Loop back (LB) - if set, loop back mode will be enabled. Not Reset.&#xa;"/>
48 48 <bitField name="EC" size="1" mode="3" desc="External Clock (EC) - if set, the UART scaler will be clocked by UARTI.EXTCLK. Reset: 0&#xa;"/>
49 49 <bitField name="TF" size="1" mode="3" desc="Transmitter FIFO interrupt enable (TF) - when set, Transmitter FIFO level interrupts are enabled.&#xa;Not Reset.&#xa;"/>
50 50 <bitField name="RF" size="1" mode="3" desc="Receiver FIFO interrupt enable (RF) - when set, Receiver FIFO level interrupts are enabled. Not&#xa;Reset.&#xa;"/>
51 51 <bitField name="DB" size="1" mode="3" desc="FIFO debug mode enable (DB) - when set, it is possible to read and write the FIFO debug register.&#xa;Not Reset.&#xa;"/>
52 52 <bitField name="BI" size="1" mode="3" desc="Break interrupt enable (BI) - When set, an interrupt will be generated each time a break character is&#xa;received. See section 16.6 for more details. Not Reset.&#xa;"/>
53 53 <bitField name="DI" size="1" mode="3" desc="Delayed interrupt enable (DI) - When set, delayed receiver interrupts will be enabled and an inter-&#xa;rupt will only be generated for received characters after a delay of 4 character times + 4 bits if no&#xa;new character has been received during that interval. This is only applicable if receiver interrupt&#xa;enable is set.&#xa;"/>
54 54 <bitField name="SI" size="1" mode="3" desc="Transmitter shift register empty interrupt enable (SI) - When set, an interrupt will be generated when&#xa;the transmitter shift register becomes empty.&#xa;"/>
55 55 <bitField name="FA" size="1" mode="3" desc="FIFOs available (FA) - Set to 1 when receiver and transmitter FIFOs are available. When 0, only&#xa;holding register are available. Read only.&#xa;"/>
56 56 </register>
57 57 <register name="SCALE" addOffset="12">
58 58 <bitField name="SCALER RELOAD VALUE" size="31" mode="3" desc="sbits-1:0 Scaler reload value"/>
59 59 </register>
60 60 <register name="FIFO Debug" addOffset="16">
61 61 <bitField name="DATA" size="8" mode="3" desc="Transmitter holding register or FIFO (read access)&#xa;Receiver holding register or FIFO (write access)&#xa;"/>
62 62 </register>
63 63 </peripheral>
64 64 <peripheral vid="1" name="LEON3" pid="3"/>
65 65 <peripheral vid="1" name="DSU3" pid="4">
66 66 <register name="Control">
67 67 <bitField name="UNUSED" size="20" mode="1" desc="UNUSED" offset="12"/>
68 68 <bitField name="PW" size="1" mode="1" offset="11" desc="Power down (PW). Returns ‘1’ when processor in in power-down mode."/>
69 69 <bitField name="HL" size="1" mode="1" offset="10" desc="Processor halt (HL). Returns ‘1’ on read when processor is halted. If the processor is in debug mode, setting this bit will put the processor in halt mode."/>
70 70 <bitField name="PE" size="1" mode="3" offset="9" desc="Processor error mode (PE) - returns ‘1’ on read when processor is in error mode, else ‘0’. If written with ‘1’, it will clear the error and halt mode."/>
71 71 <bitField name="EB" size="1" mode="1" offset="8" desc="EB - value of the external DSUBRE signal (read-only)"/>
72 72 <bitField name="EE" size="1" mode="1" offset="7" desc="EE - value of the external DSUEN signal (read-only)"/>
73 73 <bitField name="DM" size="1" mode="1" offset="6" desc="Debug mode (DM). Indicates when the processor has entered debug mode (read-only)."/>
74 74 <bitField name="BZ" size="1" mode="3" offset="5" desc="Break on error traps (BZ) - if set, will force the processor into debug mode on all except the following traps: priviledged_instruction, fpu_disabled, window_overflow, window_underflow, asynchronous_interrupt, ticc_trap."/>
75 75 <bitField name="BX" size="1" mode="3" offset="4" desc="Break on trap (BX) - if set, will force the processor into debug mode when any trap occurs."/>
76 76 <bitField name="BS" size="1" mode="3" offset="3" desc="Break on S/W breakpoint (BS) - if set, debug mode will be forced when an breakpoint instruction (ta 1) is executed."/>
77 77 <bitField name="BW" size="1" mode="3" offset="2" desc="Break on IU watchpoint (BW)- if set, debug mode will be forced on a IU watchpoint (trap 0xb)."/>
78 78 <bitField name="BE" size="1" mode="3" offset="1" desc="Break on error (BE) - if set, will force the processor to debug mode when the processor would have entered error condition (trap in trap)."/>
79 79 <bitField name="TE" size="1" mode="3" offset="0" desc="Trace enable (TE). Enables instruction tracing. If set the instructions will be stored in the trace buffer. Remains set&#xa;when then processor enters debug or error mode."/>
80 80 </register>
81 81 <register name="Time tag counter" addOffset="8">
82 82 <bitField name="UNUSED" size="2" mode="1" offset="30" desc=""/>
83 83 <bitField name="DSU TIME TAG VALUE" size="30" mode="1" offset="0" desc="The value is used as time tag in the instruction and AHB trace buffer. The width of the timer (up to 30 bits) is configurable through the DSU generic port."/>
84 84 </register>
85 85 <register name="Break and Single Step" addOffset="32">
86 86 <bitField name="SSx" size="16" mode="3" offset="16" desc="[31:16] : Single step (SSx) - if set, the processor x will execute one instruction and return to debug mode. The bit remains set after the processor goes into the debug mode."/>
87 87 <bitField name="BNx" size="16" mode="3" offset="0" desc="[15:0] : Break now (BNx) -Force processor x into debug mode if the Break on watchpoint (BW) bit in the processors DSU control register is set. If cleared, the processor x will resume execution."/>
88 88 </register>
89 89 <register name="Debug Mode Mask" addOffset="36">
90 90 <bitField name="DMx" size="16" mode="3" offset="16" desc="[31:16]: Debug mode mask. If set, the corresponding processor will not be able to force running processors into debug mode even if it enters debug mode."/>
91 91 <bitField name="EDx" size="16" mode="3" offset="0" desc="[15:0] : Enter debug mode (EDx) - Force processor x into debug mode if any of processors in a multiprocessor system enters the debug mode. If 0, the processor x will not enter the debug mode."/>
92 92 </register>
93 93 <register name="AHB Trace buffer control" addOffset="64">
94 94 <bitField name="DCNT" size="16" mode="1" offset="16" desc="Trace buffer delay counter (DCNT). Note that the number of bits actually implemented depends on the size of the trace buffer."/>
95 95 <bitField name="RESERVED" size="13" mode="1" offset="3" desc=""/>
96 96 <bitField name="BR" size="1" mode="3" offset="2" desc="Break (BR). If set, the processor will be put in debug mode when AHB trace buffer stops due to AHB breakpoint hit."/>
97 97 <bitField name="DM" size="1" mode="1" offset="1" desc="Delay counter mode (DM). Indicates that the trace buffer is in delay counter mode."/>
98 98 <bitField name="EN" size="1" mode="3" offset="0" desc="Trace enable (EN). Enables the trace buffer."/>
99 99 </register>
100 100 <register name="AHB trace buffer index" addOffset="68">
101 101 <bitField name="INDEX" size="28" mode="3" offset="4" desc="Trace buffer index counter (INDEX). Note that the number of bits actually implemented depends on the size of the trace buffer."/>
102 102 <bitField name="UNUSED" size="4" mode="1" offset="0" desc=""/>
103 103 </register>
104 104 <register name="AHB breakpoint address 1" addOffset="80">
105 105 <bitField name="BADDR[31:2]" size="30" mode="3" offset="2" desc="Breakpoint address (bits 31:2)"/>
106 106 <bitField name="UNUSED" size="2" mode="1" offset="0" desc=""/>
107 107 </register>
108 108 <register name="AHB mask register 1" addOffset="84">
109 109 <bitField name="BMASK[31:2]" size="30" mode="3" offset="2" desc="Breakpoint mask"/>
110 110 <bitField name="LD" size="1" mode="3" offset="1" desc="LD - break on data load address"/>
111 111 <bitField name="ST" size="1" mode="3" offset="0" desc="ST - break on data store address"/>
112 112 </register>
113 113 <register name="AHB breakpoint address 2" addOffset="88">
114 114 <bitField name="BADDR[31:2]" size="30" mode="3" offset="2" desc="Breakpoint address (bits 31:2)"/>
115 115 <bitField name="UNUSED" size="2" mode="1" offset="0" desc=""/>
116 116 </register>
117 117 <register name="AHB mask register 2" addOffset="92">
118 118 <bitField name="BMASK[31:2]" size="30" mode="3" offset="2" desc="Breakpoint mask "/>
119 119 <bitField name="LD" size="1" mode="3" offset="1" desc="LD - break on data load address"/>
120 120 <bitField name="ST" size="1" mode="3" offset="0" desc="ST - beak on data store address"/>
121 121 </register>
122 122 <register name="Instruction Trace buffer control" addOffset="1114112">
123 123 <bitField name="RESERVED" size="16" mode="1" offset="16" desc=""/>
124 124 <bitField name="IT POINTER" size="16" mode="3" offset="0" desc="Instruction trace pointer. Note that the number of bits actually implemented depends on the size of the trace buffer."/>
125 125 </register>
126 126 <register name="SP" addOffset="3145784">
127 127 <bitField name="SP" size="32" mode="3" offset="0" desc="IU Window 0 Stack Pointer"/>
128 128 </register>
129 129 <register name="Y" addOffset="4194304"/>
130 130 <register name="PSR" addOffset="4194308">
131 131 <bitField name="IMPL" size="4" mode="3" offset="28" desc="Bits 31 through 28 are hardwired to identify an implementation or class of implementations of the architecture. The hardware should not change this field in response to a WRPSR instruction. Together, the PSR.impl and PSR.ver fields define a unique implementation or class of implementations of the architecture. See Appendix L, “Implementation Characteristics.”"/>
132 132 <bitField name="VER" size="4" mode="3" offset="24" desc="Bits 27 through 24 are implementation-dependent. The ver field is either hardwired to identify one or more particular implementations or is a readable and writable state field whose properties are implementation-dependent. See Appendix L, “Implementation Characteristics.”"/>
133 133 <bitField name="NEGATIVE" size="1" mode="3" offset="23" desc="Bit 23 indicates whether the 32-bit 2’s complement ALU result was negative for the last instruction that modified the icc field. 1 = negative, 0 = not negative."/>
134 134 <bitField name="ZERO" size="1" mode="3" offset="22" desc="Bit 22 indicates whether the 32-bit ALU result was zero for the last instruction that modified the icc field. 1 = zero, 0 = nonzero."/>
135 135 <bitField name="OVERFLOW" size="1" mode="3" offset="21" desc="Bit 21 indicates whether the ALU result was within the range of (was representable in) 32-bit 2’s complement notation for the last instruction that modified the icc field. 1 = overflow, 0 = no overflow."/>
136 136 <bitField name="CARRY" size="1" mode="3" offset="20" desc="Bit 21 indicates whether the ALU result was within the range of (was representable in) 32-bit 2’s complement notation for the last instruction that modified the icc field. 1 = overflow, 0 = no overflow."/>
137 137 <bitField name="RESERVED" size="6" mode="1" offset="14" desc="Bits 19 through 14 are reserved. When read by a RDPSR instruction, these bits deliver zeros. For future compatibility, supervisor software should only issue WRPSR instructions with zero values in this field."/>
138 138 <bitField name="EC" size="1" mode="3" offset="13" desc="Bit 13 determines whether the implementation-dependent coprocessor is enabled. If disabled, a coprocessor instruction will trap. 1 = enabled, 0 = disabled. If an implementation does not support a coprocessor in hardware, PSR.EC should always read as 0 and writes to it should be ignored."/>
139 139 <bitField name="EF" size="1" mode="3" offset="12" desc="Bit 12 determines whether the FPU is enabled. If disabled, a floating-point instruction will trap. 1 = enabled, 0 = disabled. If an implementation does not support a hardware FPU, PSR.EF should always read as 0 and writes to it should be ignored. &#xa; Programming Note Software can use the EF and EC bits to determine whether a particular process uses the FPU or CP. If a process does not use the FPU/CP, its registers do not need to be saved across a context switch."/>
140 140 <bitField name="PIL" size="1" mode="3" offset="11" desc="Bits 11 (the most significant bit) through 8 (the least significant bit) identify the interrupt level above which the processor will accept an interrupt. See Chapter 7, “Traps.”"/>
141 141 <bitField name="S" size="1" mode="3" offset="7" desc="Bit 7 determines whether the processor is in supervisor or user mode. 1 = supervisor mode, 0 = user mode."/>
142 142 <bitField name="PS" size="1" mode="3" offset="6" desc="Bit 6 contains the value of the S bit at the time of the most recent trap."/>
143 143 <bitField name="ET" size="1" mode="3" offset="5" desc="Bit 5 determines whether traps are enabled. A trap automatically resets ET to 0. When ET=0, an interrupt request is ignored and an exception trap causes the IU to halt execution, which typically results in a reset trap that resumes execution at address 0. 1 = traps enabled, 0 = traps disabled. See Chapter 7, “Traps.”"/>
144 144 <bitField name="CWP" size="5" mode="3" offset="0" desc="Bits 4 (the MSB) through 0 (the LSB) comprise the current window pointer, a counter that identifies the current window into the r registers. The hardware decrements the CWP on traps and SAVE instructions, and increments it on RESTORE and RETT instructions (modulo NWINDOWS )."/>
145 145 </register>
146 146 <register name="WIM" addOffset="4194312"/>
147 147 <register name="TBR" addOffset="4194316"/>
148 148 <register name="PC" addOffset="4194320"/>
149 149 <register name="NPC" addOffset="4194324"/>
150 150 <register name="FSR" addOffset="4194328"/>
151 151 <register name="CPSR" addOffset="4194332"/>
152 152 <register name="DSU trap" addOffset="4194336">
153 153 <bitField name="RESERVED" size="19" mode="1" offset="13" desc=""/>
154 154 <bitField name="EM" size="1" mode="1" offset="12" desc="Error mode (EM). Set if the trap would have cause the processor to enter error mode."/>
155 155 <bitField name="TRAP TYPE" size="8" mode="1" offset="4" desc="8-bit SPARC trap type"/>
156 156 <bitField name="UNUSED" size="4" mode="1" offset="0" desc=""/>
157 157 </register>
158 158 <register name="DSU ASI" addOffset="4194340">
159 159 <bitField name="UNUSED" size="24" mode="1" offset="8" desc=""/>
160 160 <bitField name="ASI" size="8" mode="1" offset="0" desc="ASI to be used on diagnostic ASI access"/>
161 161 </register>
162 162 <register name="ASR16" addOffset="4194368"/>
163 163 <register name="ASR17" addOffset="4194372"/>
164 164 <register name="ASR18" addOffset="4194376"/>
165 165 <register name="ASR19" addOffset="4194380"/>
166 166 <register name="ASR20" addOffset="4194384"/>
167 167 <register name="ASR21" addOffset="4194388"/>
168 168 <register name="ASR22" addOffset="4194392"/>
169 169 <register name="ASR23" addOffset="4194396"/>
170 170 <register name="ASR24" addOffset="4194400"/>
171 171 <register name="ASR25" addOffset="4194404"/>
172 172 <register name="ASR26" addOffset="4194408"/>
173 173 <register name="ASR27" addOffset="4194412"/>
174 174 <register name="ASR28" addOffset="4194416"/>
175 175 <register name="ASR29" addOffset="4194420"/>
176 176 <register name="ASR30" addOffset="4194424"/>
177 177 <register name="ASR31" addOffset="4194428"/>
178 178 </peripheral>
179 179 <peripheral vid="1" name="GPTIMER" pid="17">
180 180 <register name="Scaler value">
181 181 <bitField name="SCALER VALUE" size="16" mode="3" desc="Scaler value&#xa;Any unused most significant bits are reserved. Always reads as ‘000...0’."/>
182 182 </register>
183 183 <register name="Scaler reload value" addOffset="4">
184 184 <bitField name="SCALER RELOAD VALUE" size="16" mode="3" desc="Scaler reload value&#xa;Any unused most significant bits are reserved. Always read as ‘000...0’."/>
185 185 </register>
186 186 <register name="Configuration" addOffset="8">
187 187 <bitField name="TIMERS" size="3" mode="1" desc="Number of implemented timers. Read-only.&#xa;"/>
188 188 <bitField name="IRQ" size="5" mode="1" desc="APB Interrupt: If configured to use common interrupt all timers will drive APB interrupt nr. IRQ,&#xa;otherwise timer nwill drive APB Interrupt IRQ+n (has to be less the MAXIRQ). Read-only.&#xa;"/>
189 189 <bitField name="SI" size="1" mode="1" desc="Separate interrupts (SI). Reads ‘1’ if the timer unit generates separate interrupts for each timer, oth-erwise ‘0’. Read-only.&#xa;"/>
190 190 <bitField name="DF" size="1" mode="3" desc="Disable timer freeze (DF). If set the timer unit can not be freezed, otherwise signal GPTI.DHALT&#xa;freezes the timer unit.&#xa;"/>
191 191 </register>
192 192 <register name="Unused" addOffset="12"/>
193 193 <register name="Timer 1 counter value" addOffset="16">
194 194 <bitField name="TIMER COUNTER VALUE" size="32" mode="3" desc="Timer Counter value. Decremented by 1 for each prescaler tick.&#xa;Any unused most significant bits are reserved. Always reads as ‘000...0’."/>
195 195 </register>
196 196 <register name="Timer 1 reload value" addOffset="20">
197 197 <bitField name="TIMER RELOAD VALUE" size="32" mode="3" desc="Timer Reload value. This value is loaded into the timer counter value register when ‘1’ is written to&#xa;load bit in the timers control register or when the RS bit is set in the control register and the timer&#xa;underflows.&#xa;Any unused most significant bits are reserved. Always reads as ‘000...0’."/>
198 198 </register>
199 199 <register name="Timer 1 control" addOffset="24">
200 200 <bitField name="EN" size="1" mode="3" desc="Enable (EN): Enable the timer."/>
201 201 <bitField name="RS" size="1" mode="3" desc="Restart (RS): If set, the timer counter value register is reloaded with the value of the reload register when the timer underflows"/>
202 202 <bitField name="LD"/>
203 203 <bitField name="IE" size="1" mode="3" desc="Interrupt Enable (IE): If set the timer signals interrupt when it underflows.&#xa;"/>
204 204 <bitField name="IP" size="1" mode="3" desc="Interrupt Pending (IP): The core sets this bit to ‘1’ when an interrupt is signalled. This bit remains ‘1’ until cleared by writing ‘1’ to this bit, writes of ‘0’ have no effect.&#xa;"/>
205 205 <bitField name="CH" size="1" mode="3" desc="Chain (CH): Chain with preceding timer. If set for timer n, timer n will be decremented each time when timer (n-1) underflows.&#xa;"/>
206 206 <bitField name="DH" size="1" mode="1" desc="Debug Halt (DH): Value of GPTI.DHALT signal which is used to freeze counters (e.g. when a sys-tem is in debug mode). Read-only.&#xa;"/>
207 207 </register>
208 208 </peripheral>
209 209 <peripheral vid="1" name="GRTIMER" pid="56">
210 210 <register name="Scaler value">
211 211 <bitField name="SCALER Value" size="16" mode="3" desc="Scaler value"/>
212 212 </register>
213 213 <register name="Scaler reload value" addOffset="4">
214 214 <bitField name="SCALER Reload Value" size="32" mode="3" desc="SCALER Reload Value"/>
215 215 </register>
216 216 <register name="Configuration" addOffset="8">
217 217 <bitField name="TIMERS" size="3" mode="1" desc="Number of implemented timers. Read-only.&#xa;"/>
218 218 <bitField name="IRQ" size="5" mode="1" desc="APB Interrupt: If configured to use common interrupt all timers will drive APB interrupt nr. IRQ,&#xa;otherwise timer nwill drive APB Interrupt IRQ+n (has to be less the MAXIRQ). Read-only.&#xa;"/>
219 219 <bitField name="SI" size="1" mode="1" desc="Separate interrupts (SI). Reads ‘1’ if the timer unit generates separate interrupts for each timer, oth-erwise ‘0’. Read-only.&#xa;"/>
220 220 <bitField name="DF" size="1" mode="3" desc="Disable timer freeze (DF). If set the timer unit can not be freezed, otherwise signal GPTI.DHALT&#xa;freezes the timer unit.&#xa;"/>
221 221 <bitField name="EE" size="1" mode="3" desc="Enable external clock source (EE). If set the prescaler is clocked from the external clock source."/>
222 222 <bitField name="EL" size="1" mode="3" desc="Enable latching (EL). If set, on the next matching interrupt, the latches will be loaded with the corresponding timer&#xa;values. The bit is then automatically cleared, not to load a timer value until set again."/>
223 223 <bitField name="ES" size="1" mode="3" desc="Enable set (ES). If set, on the next matching interrupt, the timers will be loaded with the corresponding timer reload&#xa;values. The bit is then automatically cleared, not to reload the timer values until set again. (Added to revision 2)."/>
224 224 </register>
225 225 <register name="Timer latch configuration" addOffset="12">
226 226 <bitField name="LTCV" size="32" mode="3" desc="[nbits-1:0] Latched Timer Counter Value (LTCV). Value latch from corresponding timer."/>
227 227 </register>
228 228 <register name="Timer 1 counter value" addOffset="16">
229 229 <bitField name="TIMER COUNTER VALUE" size="32" mode="3" desc="[nbits-1:0] Timer Counter value. Decremented by 1 for each prescaler tick."/>
230 230 </register>
231 231 <register name="Timer 1 reload value" addOffset="20">
232 232 <bitField name="TIMER RELOAD VALUE" size="32" mode="3" desc="[nbits-1:0] Timer Reload value. This value is loaded into the timer counter value register when ‘1’ is written to load bit in the timers control register."/>
233 233 </register>
234 234 <register name="Timer 1 control" addOffset="24">
235 235 <bitField name="EN" size="1" mode="3" desc="Enable (EN): Enable the timer."/>
236 236 <bitField name="RS" size="1" mode="3" desc="Restart (RS): If set the value from the timer reload register is loaded to the timer counter value register and&#xa;decrementing the timer is restarted."/>
237 237 <bitField name="LD" size="1" mode="3" desc="Load (LD): Load value from the timer reload register to the timer counter value register."/>
238 238 <bitField name="IE" size="1" mode="3" desc="Interrupt Enable (IE): If set the timer signals interrupt when it underflows."/>
239 239 <bitField name="IP" size="1" mode="3" desc="Interrupt Pending (IP): The core sets this bit to ‘1’ when an interrupt is signalled. This bit remains ‘1’ until cleared&#xa;by writing ‘1’ to this bit, writes of ‘0’ have no effect."/>
240 240 <bitField name="CH" size="1" mode="3" desc="Chain (CH): Chain with preceding timer. If set for timer n, timer n will be decremented each time when timer (n-1)&#xa;underflows."/>
241 241 <bitField name="DH" size="1" mode="3" desc="Debug Halt (DH): Value of GPTI.DHALT signal which is used to freeze counters (e.g. when a system is in debug&#xa;mode). Read-only."/>
242 242 </register>
243 243 <register name="Timer 1 latch" addOffset="28">
244 244 <bitField name="LTCV" size="32" mode="3" desc="[nbits-1:0] Latched Timer Counter Value (LTCV). Value latch from corresponding timer."/>
245 245 </register>
246 246 </peripheral>
247 247 <peripheral vid="4" name="MCTRL" pid="15">
248 248 <register name="MCFG1">
249 249 <bitField name="PROM READ WS" size="4" mode="3" desc="PROM read waitstates (PROM READ WS) - Sets the number of wait states for PROM read cycles (“0000”=0, “0001”=1, “0010”=2,...,”1111”=15). Reset to “1111”.&#xa;"/>
250 250 <bitField name="PROM WRITE WS" size="4" mode="3" desc="PROM write waitstates (PROM WRITE WS) - Sets the number of wait states for PROM write cycles&#xa;(“0000”=0, “0001”=1, “0010”=2,..., “1111”=15).&#xa;"/>
251 251 <bitField name="PROM WIDTH" size="2" mode="3" desc="PROM width (PROM WIDTH) - Sets the data width of the PROM area (“00”=8, “01”=16,&#xa; “10”=32).&#xa;"/>
252 252 <bitField name="PWEN" size="1" mode="3" desc="PROM write enable (PWEN) - Enables write cycles to the PROM area.&#xa;"/>
253 253 <bitField name="RESERVED"/>
254 254 <bitField name="IOEN" size="1" mode="3" desc="I/O enable (IOEN) - Enables accesses to the memory bus I/O area.&#xa;"/>
255 255 <bitField name="IO WAITSTATES" size="4" mode="3" desc="I/O waitstates (IO WAITSTATES) - Sets the number of waitstates during I/O accesses (“0000”=0, “0001”=1, “0010”=2,..., “1111”=15).&#xa;"/>
256 256 <bitField name="BEXCN" size="1" mode="3" desc="Bus error enable (BEXCN) - Enables bus error signalling. Reset to ‘0’.&#xa;"/>
257 257 <bitField name="IBRDY" size="1" mode="3" desc="I/O bus ready enable (IBRDY) - Enables bus ready (BRDYN) signalling for the I/O area. Reset to ‘0’.&#xa;"/>
258 258 <bitField name="IOBUSW" size="1" mode="3" desc="I/O bus width (IOBUSW) - Sets the data width of the I/O area (“00”=8, “01”=16, “10” =32).&#xa;"/>
259 259 </register>
260 260 <register name="MCFG2" addOffset="4">
261 261 <bitField name="RAM READ WS" size="2" mode="3" desc="RAM read waitstates (RAM READ WS) - Sets the number of wait states for RAM read cycles (“00”=0, “01”=1, “10”=2, “11”=3).&#xa;"/>
262 262 <bitField name="RAM WRITE WS" size="2" mode="3" desc="RAM write waitstates (RAM WRITE WS) - Sets the number of wait states for RAM write cycles (“00”=0, “01”=1, “10”=2, “11”=3).&#xa;"/>
263 263 <bitField name="RAM WIDTH" size="2" mode="3" desc="RAM width (RAM WIDTH) - Sets the data width of the RAM area (“00”=8, “01”=16, “1X”=32).&#xa;"/>
264 264 <bitField name="RMW" size="1" mode="3" desc="Read-modify-write enable (RMW) - Enables read-modify-write cycles for sub-word writes to 16- bit 32-bit areas with common write strobe (no byte write strobe).&#xa;"/>
265 265 <bitField name="RBRDY" size="1" mode="3" desc="RAM bus ready enable (RBRDY) - Enables bus ready signalling for the RAM area.&#xa;"/>
266 266 <bitField name="RAM BANK SIZE" size="4" mode="3" desc="RAM bank size (RAM BANK SIZE) - Sets the size of each RAM bank (“0000”=8 kbyte, “0001”=16 kbyte, ..., “1111”=256 Mbyte).&#xa;"/>
267 267 <bitField name="SI" size="1" mode="3" desc="SRAM disable (SI) - Disables accesses RAM if bit 14 (SE) is set to ‘1’.&#xa;"/>
268 268 <bitField name="SE" size="1" mode="3" desc="SDRAM enable (SE) - Enables the SDRAM controller.&#xa;"/>
269 269 <bitField name="RESERVED" size="1" mode="1" desc=""/>
270 270 <bitField name="MS" size="1" mode="1" desc="Mobile SDR support enabled. ‘1’ = Enabled, ‘0’ = Disabled (read-only)"/>
271 271 <bitField name="RESERVED" size="1" mode="1" desc=""/>
272 272 <bitField name="D64" size="1" mode="1" desc="64-bit SDRAM data bus (D64) - Reads ‘1’ if the memory controller is configured for 64-bit SDRAM data bus width, ‘0’ otherwise. Read-only.&#xa;"/>
273 273 <bitField name="SDRAM CMD" size="2" mode="3" desc="SDRAM command (SDRAM CMD) - Writing a non-zero value will generate a SDRAM command. “01”=PRECHARGE, “10”=AUTO-REFRESH, “11”=LOAD-COMMAND-REGISTER. The field is reset after the command has been executed.&#xa;"/>
274 274 <bitField name="SDRAM COLSZ" size="2" mode="3" desc="SDRAM column size (SDRAM COLSZ) - “00”=256, “01”=512, “10”=1024, “11”=4096 when bit 25:23=”111” 2048 otherwise.&#xa;"/>
275 275 <bitField name="SDRAM BANKSZ" size="3" mode="3" desc="SDRAM bank size (SDRAM BANKSZ) - Sets the bank size for SDRAM chip selects (“000”=4 Mbyte, “001”=8 Mbyte, “010”=16 Mbyte.... “111”=512 Mbyte).&#xa;"/>
276 276 <bitField name="TCAS" size="1" mode="3" desc="SDRAM TCAS parameter (TCAS) - Selects 2 or 3 cycle CAS delay (0/1). When changed, a LOAD-COMMAND-REGISTER command must be issued at the same time. Also sets RAS/CAS delay (tRCD).&#xa;"/>
277 277 <bitField name="SDRAM TRFC" size="3" mode="3" desc="SDRAM TRFC parameter (SDRAM TRFC) - tRFC will be equal to 3+field-value system clocks.&#xa;"/>
278 278 <bitField name="TRP" size="1" mode="3" desc="SDRAM TRP parameter (TRP) - tRP will be equal to 2 or 3 system clocks (0/1).&#xa;"/>
279 279 <bitField name="SDRF" size="1" mode="3" desc="SDRAM refresh (SDRF) - Enables SDRAM refresh.&#xa;"/>
280 280 </register>
281 281 <register name="MCFG3" addOffset="8">
282 282 <bitField name="SDRAM REFRESH RELOAD VALUE" size="15" mode="3" desc="SDRAM refresh counter reload value (SDRAM REFRESH RELOAD VALUE)&#xa;&#xa;The period between each AUTO-REFRESH command is calculated as follows:&#xa;tREFRESH = ((reload value) + 1) / SYSCLK"/>
283 283 </register>
284 284 <register name="MCFG4(Power-Saving configuration)" addOffset="12">
285 285 <bitField name="PASR" size="3" mode="3" desc="Partial Array Self Refresh (Read only when Mobile SDR support is disabled).&#xa;“000”: Full array (Banks 0, 1, 2 and 3)&#xa;“001”: Half array (Banks 0 and 1)&#xa;“010”: Quarter array (Bank 0)&#xa;“101”: One-eighth array (Bank 0 with row MSB = 0)&#xa;“110”: One-sixteenth array (Bank 0 with row MSB = 00)&#xa;"/>
286 286 <bitField name="TCSR" size="2" mode="3" desc="Reserved for Temperature-Compensated Self Refresh (Read only when Mobile SDR support is disa-bled).&#xa;“00”: 70aC&#xa;“01”: 45aC&#xa;“10”: 15aC&#xa;“11”: 85aC&#xa;"/>
287 287 <bitField name="DS" size="2" mode="3" desc="Selectable output drive strength (Read only when Mobile SDR support is disabled).&#xa;“00”: Full&#xa;“01”: One-half&#xa;“10”: One-quarter&#xa;“11”: Three-quarter&#xa;"/>
288 288 <bitField name="PMODE" size="3" mode="3" desc="Power-Saving mode (Read only when Mobile SDR support is disabled).&#xa;“000”: none&#xa;“001”: Power-Down (PD)&#xa;“010”: Self-Refresh (SR)&#xa;“101”: Deep Power-Down (DPD)&#xa;"/>
289 289 <bitField name="tXSR" size="4" mode="3" desc="SDRAM tXSR timing. tXSR will be equal to field-value system clocks. (Read only when Mobile SDR support is disabled).&#xa;"/>
290 290 <bitField name="EM" size="1" mode="3" desc="EMR. When set, the LOAD-COMMAND-REGISTER command issued by the SDRAM command filed in MCFG2 will be interpret as a LOAD-EXTENDED-COMMAND-REGISTER command.&#xa;"/>
291 291 <bitField name="CE" size="1" mode="3" desc="Clock enable (CE). This value is driven on the CKE inputs of the SDRAM. Should be set to ‘1’ for correct operation. This register bit is read only when Power-Saving mode is other then none.&#xa;"/>
292 292 <bitField name="ME" size="1" mode="3" desc="Mobile SDRAM functionality enabled. ‘1’ = Enabled (support for Mobile SDRAM), ‘0’ = disabled (support for standard SDRAM)&#xa;"/>
293 293 </register>
294 294 </peripheral>
295 295 <peripheral vid="1" name="IRQMP" pid="13">
296 296 <register name="Interrupt level"/>
297 297 <register name="Interrupt pending" addOffset="4"/>
298 298 <register name="Interrupt force (NCPU=0)" addOffset="8"/>
299 299 <register name="Interrupt clear" addOffset="12"/>
300 300 <register name="Multiprocessor status" addOffset="16"/>
301 301 <register name="Broadcast" addOffset="20"/>
302 302 <register name="Processor interrupt mask" addOffset="64"/>
303 303 <register name="Processor 1 interrupt mask" addOffset="68"/>
304 304 <register name="Processor interrupt force" addOffset="128"/>
305 305 <register name="Processor 1 interrupt force" addOffset="132"/>
306 306 <register name="Processor extended interrupt acknowledge" addOffset="192"/>
307 307 <register name="Processor 1 extended interrupt acknowledge" addOffset="196"/>
308 308 </peripheral>
309 309 <peripheral vid="1" name="GRSPW2" pid="41">
310 310 <register name="Control"/>
311 311 <register name="Status/Interrupt-source" addOffset="4"/>
312 312 <register name="Node address" addOffset="8"/>
313 313 <register name="Clock divisor" addOffset="12"/>
314 314 <register name="Destination key" addOffset="16"/>
315 315 <register name="Time" addOffset="20"/>
316 316 <register name="DMA channel 1 control/status" addOffset="32"/>
317 317 <register name="DMA channel 1 rx maximum length" addOffset="36"/>
318 318 <register name="DMA channel 1 transmit descriptor table address" addOffset="40"/>
319 319 <register name="DMA channel 1 receive descriptor table address" addOffset="44"/>
320 320 <register name="DMA channel 1 address" addOffset="48"/>
321 321 <register name="DMA channel 2 control/status" addOffset="64"/>
322 322 <register name="DMA channel 2 rx maximum length" addOffset="68"/>
323 323 <register name="DMA channel 2 transmit descriptor table address" addOffset="72"/>
324 324 <register name="DMA channel 2 receive descriptor table address" addOffset="76"/>
325 325 <register name="DMA channel 2 address" addOffset="80"/>
326 326 <register name="DMA channel 3 control/status" addOffset="96"/>
327 327 <register name="DMA channel 3 rx maximum length" addOffset="100"/>
328 328 <register name="DMA channel 3 transmit descriptor table address" addOffset="104"/>
329 329 <register name="DMA channel 3 receive descriptor table address" addOffset="108"/>
330 330 <register name="DMA channel 3 address" addOffset="112"/>
331 331 <register name="DMA channel 4 control/status" addOffset="128"/>
332 332 <register name="DMA channel 4 rx maximum length" addOffset="132"/>
333 333 <register name="DMA channel 4 transmit descriptor table address" addOffset="136"/>
334 334 <register name="DMA channel 4 receive descriptor table address" addOffset="140"/>
335 335 <register name="DMA channel 4 address" addOffset="144"/>
336 336 </peripheral>
337 337 <peripheral vid="1" name="SRCTRL" pid="8"/>
338 338 <peripheral vid="1" name="SSRCTRL" pid="10">
339 339 <register name="Memory configuration"/>
340 340 </peripheral>
341 341 <peripheral vid="1" name="AHBDPRAM" pid="15"/>
342 342 <peripheral vid="1" name="GRGPIO" pid="26">
343 343 <register name="Data">
344 344 <bitField name="DATA" size="32" mode="1" desc=""/>
345 345 </register>
346 346 <register name="Output" addOffset="4">
347 347 <bitField name="OUTPUT" size="32" mode="3" desc=""/>
348 348 </register>
349 349 <register name="Direction" addOffset="8">
350 350 <bitField name="DIRECTION" size="32" mode="3" desc=""/>
351 351 </register>
352 352 <register name="Interrupt mask" addOffset="12"/>
353 353 <register name="Interrupt polarity" addOffset="16"/>
354 354 <register name="Interrupt edge" addOffset="20"/>
355 355 <register name="Bypass" addOffset="24"/>
356 356 <register name="Capability" addOffset="28"/>
357 357 <register name="IRQ map 0" addOffset="32"/>
358 358 <register name="IRQ map 1" addOffset="36"/>
359 359 <register name="IRQ map 2" addOffset="40"/>
360 360 <register name="IRQ map 3" addOffset="44"/>
361 361 <register name="IRQ map 4" addOffset="48"/>
362 362 <register name="IRQ map 5" addOffset="52"/>
363 363 <register name="IRQ map 6" addOffset="56"/>
364 364 <register name="IRQ map 7" addOffset="60"/>
365 365 </peripheral>
366 366 <peripheral vid="1" name="GRSPW" pid="31">
367 367 <register name="Control">
368 368 <bitField name="RA" size="1" offset="31" mode="1" desc="RMAP available (RA) - Set to one if the RMAP command handler is available. Only readable."/>
369 369 <bitField name="RX" size="1" offset="30" mode="1" desc="RX unaligned access (RX) - Set to one if unaligned writes are available for the receiver. Only read-
370 370 able."/>
371 371 <bitField name="RC" size="1" offset="29" mode="1" desc="RMAP CRC available (RC) - Set to one if RMAP CRC is enabled in the core. Only readable."/>
372 372 <bitField name="PO" size="1" offset="26" mode="1" desc="The number of available SpaceWire ports minus one. Only readable."/>
373 373 <bitField name="PS" size="1" offset="21" mode="3" desc="Port select (PS) - Selects the active port when the no port force bit is zero. ‘0’ selects the port connected to data and strobe on index 0 while ‘1’ selects index 1. Only available if the ports VHDL
374 374 generic is set to 2. Reset value: ‘0’."/>
375 375 <bitField name="NP" size="1" offset="20" mode="3" desc="No port force (NP) - Disable port force. When disabled the port select bit cannot be used to select the active port. Instead, it is automatically selected by checking the activity on the respective receive links. Only available if the ports VHDL generic is set to 2. Reset value: ‘0’ if the RMAP command handler is not available. If available the reset value is set to the value of the rmapen input signal."/>
376 376 <bitField name="RD" size="1" offset="17" mode="3" desc="RMAP buffer disable (RD) - Unused. If set only one RMAP buffer is used. This ensures that all RMAP commands will be executed consecutively. Only available if the rmap VHDL generic is set to1. Reset value: ‘0’."/>
377 377 <bitField name="RE" size="1" offset="16" mode="3" desc="RMAP Enable (RE) - Unused. Enable RMAP command handler. Only available if rmap VHDL generic is set to 1. Reset value: ‘1’."/>
378 378 <bitField name="TR" size="1" offset="11" mode="3" desc="Time Rx Enable (TR) - Enable time-code receptions. Reset value: ‘0’."/>
379 379 <bitField name="TT" size="1" offset="10" mode="3" desc="Time Tx Enable (TT) - Enable time-code transmissions. Reset value: ‘0’."/>
380 380 <bitField name="LI" size="1" offset="9" mode="3" desc="Link error IRQ (LI) - Generate interrupt when a link error occurs. Not reset."/>
381 381 <bitField name="TQ" size="1" offset="8" mode="3" desc="Tick-out IRQ (TQ) - Generate interrupt when a valid time-code is received. Not reset."/>
382 382 <bitField name="RS" size="1" offset="6" mode="3" desc="Reset (RS) - Make complete reset of the SpaceWire node. Self clearing. Reset value: ‘0’."/>
383 383 <bitField name="PM" size="1" offset="5" mode="3" desc="Promiscuous Mode (PM) - Enable Promiscuous mode. Reset value: ‘0’."/>
384 384 <bitField name="TI" size="1" offset="4" mode="3" desc="Tick In (TI) - The host can generate a tick by writing a one to this field. This will increment the timer counter and the new value is transmitted after the current character is transferred. A tick can also be generated by asserting the tick_in signal. Reset value: ‘0’."/>
385 385 <bitField name="IE" size="1" offset="3" mode="3" desc="Interrupt Enable (IE) - If set, an interrupt is generated when one or both of bit 8 to 9 is set and its corresponding event occurs. Reset value: ‘0’."/>
386 386 <bitField name="AS" size="1" offset="2" mode="3" desc="Autostart (AS) - Automatically start the link when a NULL has been received. Reset value: ‘0’ if the RMAP command handler is not available. If available the reset value is set to the value of the rmapen input signal."/>
387 387 <bitField name="LS" size="1" offset="1" mode="3" desc="Link Start (LS) - Start the link, i.e. allow a transition from ready to started state. Reset value: ‘0’."/>
388 388 <bitField name="LD" size="1" offset="0" mode="3" desc="Link Disable (LD) - Disable the SpaceWire codec. Reset value: ‘0’."/>
389 389 </register>
390 390 <register name="Status/Interrupt-source">
391 391 <bitField name="LS" size="3" offset="21" mode="1" desc="Link State (LS) - The current state of the start-up sequence. 0 = Error-reset, 1 = Error-wait, 2 = Ready, 3 = Started, 4 = Connecting, 5 = Run. Reset value: 0."/>
392 392 <bitField name="AP" size="1" offset="9" mode="1" desc="Active port (AP) - Shows the currently active port. ‘0’ = Port 0 and ‘1’ = Port 1 where the port numbers refer to the index number of the data and strobe signals. Only available if the ports generic is set to 2."/>
393 393 <bitField name="EE" size="1" offset="8" mode="1" desc="Early EOP/EEP (EE) - Set to one when a packet is received with an EOP after the first byte for a non-rmap packet and after the second byte for a RMAP packet. Cleared when written with a one. Reset value: ‘0’."/>
394 394 <bitField name="IA" size="1" offset="7" mode="1" desc="Invalid Address (IA) - Set to one when a packet is received with an invalid destination address field, i.e it does not match the nodeaddr register. Cleared when written with a one. Reset value: ‘0’."/>
395 395 <bitField name="WE" size="1" offset="6" mode="1" desc="Write synchronization Error (WE) - A synchronization problem has occurred when receiving NChars. Cleared when written with a one. Reset value: ‘0’."/>
396 396 <bitField name="PE" size="1" offset="4" mode="1" desc="Parity Error (PE) - A parity error has occurred. Cleared when written with a one. Reset value: ‘0’."/>
397 397 <bitField name="DE" size="1" offset="3" mode="1" desc="Disconnect Error (DE) - A disconnection error has occurred. Cleared when written with a one. Reset value: ‘0’."/>
398 398 <bitField name="ER" size="1" offset="2" mode="1" desc="Escape Error (ER) - An escape error has occurred. Cleared when written with a one. Reset value: ‘0’."/>
399 399 <bitField name="CE" size="1" offset="1" mode="1" desc="Credit Error (CE) - A credit has occurred. Cleared when written with a one. Reset value: ‘0’."/>
400 400 <bitField name="TO" size="1" offset="0" mode="1" desc="Tick Out (TO) - A new time count value was received and is stored in the time counter field. Cleared when written with a one. Reset value: ‘0’."/>
401 401 </register>
402 402 <register name="Node address">
403 403 <bitField name="NODEADDR" size="8" offset="0" mode="3" desc="Node address (NODEADDR) - 8-bit node address used for node identification on the SpaceWire network. Reset value: 254 (taken from the nodeaddr VHDL generic when /= 255, else from the rmapnodeaddr input signal)"/>
404 404 </register>
405 405 <register name="Clock divisor">
406 406 <bitField name="DATA" size="32" mode="1" desc=""/>
407 407 </register>
408 408 <register name="Destination key">
409 409 <bitField name="DESTKEY" size="8" offset="0" mode="3" desc="Destination key (DESTKEY) - RMAP destination key. Only available if the rmap VHDL generic is set to 1. Reset value: 0 (taken from the deskey VHDL generic)"/>
410 410 </register>
411 411 <register name="Time">
412 412 <bitField name="DATA" size="32" mode="1" desc=""/>
413 413 </register>
414 414 <register name="Timer end Disconnect">
415 415 <bitField name="DATA" size="32" mode="1" desc=""/>
416 416 </register>
417 417 <register name="DMA channel 1 control/status">
418 418 <bitField name="DATA" size="32" mode="1" desc=""/>
419 419 </register>
420 420 <register name="DMA channel 1 rx maximum length">
421 421 <bitField name="DATA" size="32" mode="1" desc=""/>
422 422 </register>
423 423 <register name="DMA channel 1 transmit descriptor table address">
424 424 <bitField name="DATA" size="32" mode="1" desc=""/>
425 425 </register>
426 426 <register name="DMA channel 1 control/status">
427 427 <bitField name="DATA" size="32" mode="1" desc=""/>
428 428 </register>
429 429 <register name="DMA channel 1 receive descriptor table address">
430 430 <bitField name="DATA" size="32" mode="1" desc=""/>
431 431 </register>
432 432 </peripheral>
433 <peripheral vid="1" name="SDCTRL" pid="9">
434 <register name="configuration" addOffset="0">
435 <bitField size="1" name="Refresh" offset="31" mode="3" desc="SDRAM refresh. If set, the SDRAM refresh will be enabled."/>
436 <bitField size="1" name="tRP" offset="30" mode="3" desc="SDRAM tRP timing. tRP will be equal to 2 or 3 system clocks (0/1). When mobile SDRAM support is enabled, this bit also represent the MSB in the tRFC timing."/>
437 <bitField name="tRFC" size="3" offset="27" mode="3" desc="SDRAM tRFC timing. tRFC will be equal to 3 + field-value system clocks. When mobile SDRAM support is enabled, this field is extended with the bit 30."/>
438 <bitField name="tCD" size="1" offset="26" mode="3" desc="SDRAM CAS delay. Selects 2 or 3 cycle CAS delay (0/1). When changed, a LOAD-COMMAND-REGISTER command must be issued at the same time. Also sets RAS/CAS delay (tRCD)."/>
439 <bitField name="SDRAM bank size" offset="23" size="3" mode="3" desc="SDRAM banks size. Defines the decoded memory size for each SDRAM chip select: “000”= 4 Mbyte, “001”= 8 Mbyte, “010”= 16 Mbyte .... “111”= 512 Mbyte."/>
440 <bitField name="SDRAM col. size" offset="21" size="2" mode="3" desc="SDRAM column size. “00”=256, “01”=512, “10”=1024, “11”=2048 except when bit[25:23]= ̆111 ̆then ̆11 ̆=4096"/>
441 <bitField name="SDRAM command" offset="18" size="3" mode="3" desc="SDRAM command. Writing a non-zero value will generate an SDRAM command: “010”=PRE-CHARGE, “100”=AUTO-REFRESH, “110”=LOAD-COMMAND-REGISTER, “111”=LOAD-EXTENDED-COMMAND-REGISTER. The field is reset after command has been executed."/>
442 <bitField name="Page-Burst" offset="17" size="1" mode="3" desc="1 = pageburst is used for read operations, 0 = line burst of length 8 is used for read operations. (Only available when VHDL generic pageburst i set to 2)"/>
443 <bitField name="MS" offset="16" size="1" mode="3" desc="Mobile SDR support enabled. ‘1’ = Enabled, ‘0’ = Disabled (read-only)"/>
444 <bitField name="D64" offset="15" size="1" mode="3" desc="64-bit data bus (D64) - Reads ‘1’ if memory controller is configured for 64-bit data bus, otherwise‘0’. Read-only."/>
445 <bitField name="SDRAM refresh load value" offset="0" size="15" mode="3" desc="The period between each AUTO-REFRESH command - Calculated as follows: tREFRESH = ((reload value) + 1) / SYSCLK"/>
446 </register>
447 <register name="Power-Saving configuration" addOffset="4">
448 </register>
449 </peripheral>
433 450 </soc>
434 451
435 452
436 453
437 454
438 455
439 456
440 457
441 458
442 459
@@ -1,119 +1,103
1 1 #include "pythonconsole.h"
2 2 #include <QPushButton>
3 3 #include <QFile>
4 4 #include <QTextStream>
5 5 #include <QCustomPlot/qcustomplot.h>
6 6 #include "../common/pythonQtOut/generated_cpp/PySocExplorer/PySocExplorer0.h"
7 7
8 8 #include <PythonQt.h>
9 9 #include "pluginloader.h"
10 10 #include <socexplorer.h>
11 11
12 12 void PythonQt_init_PySocExplorer(PyObject* module);
13 13 void PythonQt_init_PySocExplorerEngine(PyObject* module) ;
14 14
15 15 PythonConsole::PythonConsole(socexplorerproxy *proxy, QWidget *parent) :
16 16 QWidget(parent)
17 17 {
18 //PythonQt::init();
19 18 PythonQt::init(PythonQt::RedirectStdOut);
20 19 PythonQt_QtAll::init();
21 20 this->proxy = proxy;
22 21 this->mainlayout = new QHBoxLayout;
23 22 this->mainContext = new PythonQtObjectPtr(PythonQt::self()->getMainModule());
24 23 this->mainContext->addVariable(QString("PYMODULES"),QVariant(QString(PYMODULES)));
25 24 this->console = new PythonQtScriptingConsoleDandD(NULL, PythonQt::self()->getMainModule());
26 25 this->mainlayout->addWidget(this->console);
27 26 this->setWindowTitle(tr("Python Scripting Console"));
28 this->bussdriver = 0;
29 27 this->setAcceptDrops(true);
30 28 this->setLayout(this->mainlayout);
31 29 connect(this->console,SIGNAL(pyConsoleRunFiles(QStringList)),this,SLOT(pyConsoleRunFiles(QStringList)));
32 30 this->mainContext->addObject("proxy", proxy);
33 31 PythonQt_init_PySocExplorer(0);
34 32 PythonQt_init_PySocExplorerEngine(0);
35 33 this->mainContext->evalScript(QString("from PythonQt import *"));
36 34 }
37 35
38 36 void PythonConsole::addObject(const QString& name, QObject* object)
39 37 {
40 38 this->mainContext->addObject(name, object);
41 39 }
42 40
43 41 void PythonConsole::removeVariable(const QString& name)
44 42 {
45 43 this->mainContext->removeVariable(name);
46 44 }
47 45
48
49 void PythonConsole::setBussDriver(socexplorerplugin *driver)
50 {
51 this->bussdriver = driver;
52 this->mainContext->addObject("buss", this->bussdriver);
53 }
54
55 46 void PythonConsole::registerObject(QObject* object,const QString& instanceName)
56 47 {
57 48 this->mainContext->addObject(instanceName,object);
58 49 }
59 50
60 51 void PythonConsole::changeSysDriverInstName(const QString newinstanceName,const QString previnstanceName)
61 52 {
62 53 socexplorerplugin* obj= this->proxy->getSysDriver(previnstanceName);
63 54 if(obj==NULL)obj= this->proxy->getSysDriver(newinstanceName);
64 55 if(obj==NULL)return;
65 56 // this->mainContext->addObject(newinstanceName,obj->getPyObjectWrapper());
66 57 this->mainContext->addObject(newinstanceName,obj);
67 58 this->mainContext->removeVariable(previnstanceName);
68 59 }
69 60
70 61 void PythonConsole::removeDriver(const QString& instanceName)
71 62 {
72 63 this->mainContext->removeVariable(instanceName);
73 64 }
74 65
75 void PythonConsole::removeBussDriver()
76 {
77 this->bussdriver = 0;
78 this->mainContext->removeVariable("buss");
79 emit this->rootDriverDelete();
80 }
81
82 66
83 67 void PythonConsole::pyConsoleRunFiles(const QStringList & pathList)
84 68 {
85 69 for (int i = 0; i < pathList.size() && i < 32; ++i)
86 70 {
87 71 this->pyConsoleRunFile(pathList.at(i));
88 72 }
89 73 }
90 74
91 75 void PythonConsole::pyConsoleRunFile(const QString& fileName)
92 76 {
93 77 QString code;
94 78 QFile file;
95 79 QFileInfo fileinfo;
96 80
97 81 code.clear();
98 82 file.setFileName(fileName);
99 83 fileinfo.setFile(fileName);
100 84 if(!fileinfo.suffix().compare("py"))
101 85 {
102 86 QString CMD="execfile(\'"+fileName+"\')";
103 87 this->console->executePythonCommand(CMD);
104 88 }
105 89 }
106 90
107 91
108 92 QSize PythonConsole::sizeHint()
109 93 {
110 94 return QSize(800,80);
111 95 }
112 96
113 97
114 98
115 99
116 100
117 101
118 102
119 103
@@ -1,73 +1,69
1 1 /*------------------------------------------------------------------------------
2 2 -- This file is a part of the SocExplorer Software
3 3 -- Copyright (C) 2011, Plasma Physics Laboratory - CNRS
4 4 --
5 5 -- This program is free software; you can redistribute it and/or modify
6 6 -- it under the terms of the GNU General Public License as published by
7 7 -- the Free Software Foundation; either version 2 of the License, or
8 8 -- (at your option) any later version.
9 9 --
10 10 -- This program is distributed in the hope that it will be useful,
11 11 -- but WITHOUT ANY WARRANTY; without even the implied warranty of
12 12 -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 13 -- GNU General Public License for more details.
14 14 --
15 15 -- You should have received a copy of the GNU General Public License
16 16 -- along with this program; if not, write to the Free Software
17 17 -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 18 -------------------------------------------------------------------------------*/
19 19 /*-- Author : Alexis Jeandet
20 20 -- Mail : alexis.jeandet@lpp.polytechnique.fr
21 21 ----------------------------------------------------------------------------*/
22 22 #ifndef PYTHONCONSOLE_H
23 23 #define PYTHONCONSOLE_H
24 24
25 25 #include <QWidget>
26 26 #include <QDockWidget>
27 27 #include <QHBoxLayout>
28 28 #include <QtGui/QDragEnterEvent>
29 29 #include <QtGui/QDragLeaveEvent>
30 30 #include <QtGui/QDragMoveEvent>
31 31 #include <QtGui/QDropEvent>
32 32 #include <QtCore/QMimeData>
33 33 #include <QtCore/QUrl>
34 34 #include <QtCore/QList>
35 35 #include "PythonQt.h"
36 36 #include "PythonQt_QtAll.h"
37 37 #include <gui/PythonQtScriptingConsole.h>
38 38 #include "../plugins/socexplorerplugin.h"
39 39 #include "pythonqtscriptingconsoledandd.h"
40 40 #include <QMainWindow>
41 41 #include "../proxy/socexplorerproxy.h"
42 42 class SocExplorerMainWindow;
43 43 class PythonConsole : public QWidget
44 44 {
45 45 Q_OBJECT
46 46 public:
47 47 explicit PythonConsole(socexplorerproxy* proxy,QWidget *parent = 0);
48 48
49 49 signals:
50 50 void rootDriverDelete();
51 51 public slots:
52 void setBussDriver(socexplorerplugin* driver);
53 void removeBussDriver();
54 52 void removeDriver(const QString& instanceName);
55 53 void pyConsoleRunFiles(const QStringList&);
56 54 void pyConsoleRunFile(const QString& fileName);
57 55 void registerObject(QObject* object,const QString& instanceName);
58 56 void changeSysDriverInstName(const QString newinstanceName,const QString previnstanceName);
59 57 void addObject(const QString& name, QObject* object);
60 58 void removeVariable(const QString& name);
61 59 protected:
62 60 QSize sizeHint();
63 61
64 62 private:
65 63 QHBoxLayout* mainlayout;
66 socexplorerplugin* bussdriver;
67 64 PythonQtScriptingConsoleDandD* console;
68 65 PythonQtObjectPtr* mainContext;
69 66 socexplorerproxy* proxy;
70 //LPMONMainWindow* mainwin;
71 67 };
72 68
73 69 #endif // PYTHONCONSOLE_H
@@ -1,174 +1,186
1 1 SOCEXPLORER_ROOT = \"$${PWD}/../..\"
2 2
3 3 include($${PWD}/../../build_cfg/socexplorer.pri)
4 4
5 5 TARGET = socexplorerengine$${DEBUG_EXT}
6 6 TEMPLATE = lib
7 7
8 8 #more verbose plugin loader to debug plugin loading issues such as dependencies issues
9 9 SOCEXPLORER_PLUGIN_LOADER="custom"
10 10
11 11 SOCEXPLORER_CHAGESETNUM=$$system(hg id)
12 12 isEmpty(SOCEXPLORER_CHAGESETNUM){
13 13 SOCEXPLORER_CHAGESETNUM=c258386c3c39+
14 14 }
15 15 SOCEXPLORER_CHAGESETNUMSTR = '\\"$${SOCEXPLORER_CHAGESETNUM}\\"'
16 16 SOCEXPLORER_BRANCH=$$system(hg branch)
17 17 isEmpty(SOCEXPLORER_BRANCH){
18 18 SOCEXPLORER_BRANCH=default
19 19 }
20 20 SOCEXPLORER_BRANCHSTR = '\\"$${SOCEXPLORER_BRANCH}\\"'
21 21
22 22 DEFINES += SOCEXPLORER_VERSION="\"\\\"0.6.4"\\\"\"
23 23 DEFINES += SOCEXPLORER_CHAGESET=\"$${SOCEXPLORER_CHAGESETNUMSTR}\"
24 24 DEFINES += SOCEXPLORER_BRANCH=\"$${SOCEXPLORER_BRANCHSTR}\"
25 25
26 26
27 27 message("Building SOCEXPLORER changeset $${SOCEXPLORER_CHAGESETNUM}")
28 28
29 29 DEFINES += SOCEXPLORER_EXPORTS
30 30
31 31 include ( plugins/socexplorerplugin.prf )
32 32 include ( PeripheralWidget/PeripheralWidget.pri)
33 33
34 34 win32:CONFIG += dll
35 35 win32:CONFIG -= static
36 36 win32:LIBS+=-L$${SOCEXPLORER_ROOT}/bin/win32 -lsocexplorercommon$${DEBUG_EXT}
37 37
38 38 contains(SOCEXPLORER_PLUGIN_LOADER,"custom")
39 39 {
40 40 unix:LIBS+= -ldl
41 41 unix:DEFINES += SOCEXPLORER_CUSTOM_PLUGIN_LOADER
42 42 unix:HEADERS += \
43 43 pluginloader/unix/unixpluginloader.h
44 44 unix:SOURCES += \
45 45 pluginloader/unix/unixpluginloader.cpp
46 46 }
47 47
48 48 target.path = $$[QT_INSTALL_LIBS]
49 49 isEmpty(target.path) {
50 50 error(can\'t get QT_INSTALL_LIBS)
51 51 }
52 52
53 53 header.path = $$[QT_INSTALL_HEADERS]/SocExplorer
54 54 header.files = engine/socexplorerengine.h \
55 55 pluginloader/pluginscache.h \
56 56 plugins/socexplorerplugin.h \
57 57 proxy/socexplorerproxy.h \
58 58 engine/socexplorerxmlfile.h \
59 59 SOC/socexplorerenumdevice.h \
60 60 XmlEngine/XMLmodel.h \
61 61 XmlEngine/XMLdata.h \
62 62 XmlEngine/xmldriver.h \
63 63 SOC/socmodel.h \
64 64 SOC/registerdata.h \
65 65 SOC/socclk.h \
66 66 PeripheralWidget/src/peripheralwidget.h \
67 67 PeripheralWidget/src/registerwidget.h \
68 68 PeripheralWidget/src/socregsviewer.h \
69 69 PeripheralWidget/src/socregsviewernew.h \
70 memtester/memtester.h
70 memtester/memtester.h \
71 engine/socexplorersettings.h \
72 engine/socexplorersettingsdialog.h \
73 engine/socexplorergui.h\
74 engine/socexplorerconfigkeys.h
71 75
72 76
73 77
74 78 isEmpty(header.path) {
75 79 error(can\'t get QT_INSTALL_HEADERS)
76 80 }
77 81
78 82 pluginif.files = pluginsInterface/*.h \
79 83 pluginsInterface/*.cpp
80 84
81 85 pluginif.path = $$[QT_INSTALL_HEADERS]/SocExplorer/pluginsInterface
82 86
83 87
84 88 INSTALLS += target header pluginif
85 89
86 90 INCLUDEPATH += engine \
87 91 pluginloader \
88 92 pluginsInterface \
89 93 proxy \
90 94 plugins \
91 95 pluginManagerWdgt \
92 96 ../common \
93 97 ../common/genericBinaryFiles \
94 98 ../ \
95 99 RegisterMVS \
96 100 XmlEngine \
97 101 SOC \
98 102 PeripheralWidget/src \
99 103 memtester
100 104
101 105
102 106 HEADERS += \
103 107 pluginloader/pluginscache.h \
104 108 pluginloader/pluginloader.h \
105 109 pluginManagerWdgt/plugintree.h \
106 110 pluginManagerWdgt/pluginmanagerWDGT.h \
107 111 pluginManagerWdgt/pluginlist.h \
108 112 pluginManagerWdgt/plugininfoswdgt.h \
109 113 XmlEngine/XMLmodel.h \
110 114 XmlEngine/XMLdata.h \
111 115 SOC/socmodel.h \
112 116 SOC/registerdata.h \
113 117 XmlEngine/xmldriver.h \
114 118 PeripheralWidget/src/peripheralwidget.h \
115 119 PeripheralWidget/src/registerwidget.h \
116 120 PeripheralWidget/src/socregsviewer.h \
117 121 SOC/socclk.h \
118 122 engine/socexplorerengine.h \
119 123 engine/socexplorerxmlfile.h \
120 124 plugins/socexplorerplugin.h \
121 125 pluginsInterface/socexplorerplugininterface.h \
122 126 pluginsInterface/socexplorerplugininterface_global.h \
123 127 proxy/socexplorerproxy.h \
124 128 SOC/socexplorerenumdevice.h \
125 129 PySocExplorerEngine.h \
126 130 memtester/memtester.h\
127 131 PeripheralWidget/src/socregsviewernew.h \
128 PeripheralWidget/src/collapsableperipheralwidget.h
132 PeripheralWidget/src/collapsableperipheralwidget.h \
133 engine/socexplorersettings.h \
134 engine/socexplorersettingsdialog.h \
135 engine/socexplorergui.h \
136 engine/socexplorerconfigkeys.h
129 137
130 138
131 139
132 140
133 141
134 142
135 143 SOURCES += \
136 144 pluginloader/pluginscache.cpp \
137 145 pluginloader/pluginloader.cpp \
138 146 pluginManagerWdgt/plugintree.cpp \
139 147 pluginManagerWdgt/pluginmanagerWDGT.cpp \
140 148 pluginManagerWdgt/pluginlist.cpp \
141 149 pluginManagerWdgt/plugininfoswdgt.cpp \
142 150 XmlEngine/XMLmodel.cpp \
143 151 XmlEngine/XMLdata.cpp \
144 152 SOC/socmodel.cpp \
145 153 SOC/registerdata.cpp \
146 154 XmlEngine/xmldriver.cpp \
147 155 PeripheralWidget/src/peripheralwidget.cpp \
148 156 PeripheralWidget/src/registerwidget.cpp \
149 157 PeripheralWidget/src/socregsviewer.cpp \
150 158 SOC/socclk.cpp \
151 159 engine/socexplorerengine.cpp \
152 160 engine/socexplorerxmlfile.cpp \
153 161 proxy/socexplorerproxy.cpp \
154 162 SOC/socexplorerenumdevice.cpp \
155 163 plugins/socexplorerplugin.cpp \
156 164 memtester/memtester.cpp \
157 165 PeripheralWidget/src/socregsviewernew.cpp \
158 PeripheralWidget/src/collapsableperipheralwidget.cpp
166 PeripheralWidget/src/collapsableperipheralwidget.cpp \
167 engine/socexplorersettings.cpp \
168 engine/socexplorersettingsdialog.cpp \
169 engine/socexplorergui.cpp
159 170
160 171
161 172 OTHER_FILES += \
162 173 plugins/socexplorerplugin.cpp \
163 174 pluginsInterface/socexplorerplugininterface.cpp \
164 175 plugins/socexplorerplugin.prf \
165 176 pythongenerator.sh \
166 177 pythonQtgeneratorCfg.txt
167 178
168 179 FORMS += \
169 180 PeripheralWidget/src/socregsviewernew.ui \
170 PeripheralWidget/src/collapsableperipheralwidget.ui
181 PeripheralWidget/src/collapsableperipheralwidget.ui \
182 engine/socexplorersettingsdialog.ui
171 183
172 184
173 185 RESOURCES += \
174 186 PeripheralWidget/ressources/peripheralwidget.qrc
@@ -1,300 +1,331
1 1 /*------------------------------------------------------------------------------
2 2 -- This file is a part of the SocExplorer Software
3 3 -- Copyright (C) 2012, Plasma Physics Laboratory - CNRS
4 4 --
5 5 -- This program is free software; you can redistribute it and/or modify
6 6 -- it under the terms of the GNU General Public License as published by
7 7 -- the Free Software Foundation; either version 2 of the License, or
8 8 -- (at your option) any later version.
9 9 --
10 10 -- This program is distributed in the hope that it will be useful,
11 11 -- but WITHOUT ANY WARRANTY; without even the implied warranty of
12 12 -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 13 -- GNU General Public License for more details.
14 14 --
15 15 -- You should have received a copy of the GNU General Public License
16 16 -- along with this program; if not, write to the Free Software
17 17 -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 18 -------------------------------------------------------------------------------*/
19 19 /*-- Author : Alexis Jeandet
20 20 -- Mail : alexis.jeandet@lpp.polytechnique.fr
21 21 ----------------------------------------------------------------------------*/
22 22 #include "socexplorerengine.h"
23 23 #include <proxy/socexplorerproxy.h>
24 #include <socexplorersettings.h>
25 #include <socexplorercoresettingsgui.h>
26 #include <socexplorerconfigkeys.h>
24 27
25 28 SocExplorerEngine* SocExplorerEngine::_self = NULL;
26 29 socExplorerXmlModel* SocExplorerEngine::p_xmlmodel=NULL;
27 30 QMainWindow* SocExplorerEngine::mainWindow=NULL;
28 31 QList<SOCModel*>* SocExplorerEngine::SOCs=NULL;
32 QSettings* SocExplorerEngine::m_settings=NULL;
29 33 int SocExplorerEngine::loglvl=1;
30 34
35
31 36 SocExplorerEngine::SocExplorerEngine(QObject *parent) :
32 37 QObject(parent)
33 38 {
34 39 if(SOCs==NULL)
35 40 {
36 41 SOCs = new QList<SOCModel*>;
37 42 }
38
43 m_settings = new QSettings();
44 SocExplorerCoreSettingsGUI* cfggui=new SocExplorerCoreSettingsGUI();
45 SocExplorerSettings::registerConfigEntry(cfggui,QIcon(":/images/config.svg"),"SocExplorer Core");
39 46 }
40 47
41 48
42 49 void SocExplorerEngine::init()
43 50 {
44 51 QDir dir;
45 52 if(!_self)
46 53 {
47 54 _self= new SocExplorerEngine;
48 55 }
49 56 if(!dir.exists(configFolder()))
50 57 dir.mkdir(configFolder());
51 58 p_xmlmodel = new socExplorerXmlModel(_self);
52 59 p_xmlmodel->updateSOClist();
53 60 }
54 61
55 62 QString SocExplorerEngine::configFolder()
56 63 {
57 64 return QString(SOCEXPLORER_CONFIG_PATH);
58 65 }
59 66
60 67 QStringList SocExplorerEngine::pluginFolders()
61 68 {
62 69 if(!_self)
63 70 init();
64 71 QStringList folders;
65 72 QDir pluginFolders(QString(SOCEXPLORER_CONFIG_PATH)+"/plugin.conf.d");
66 73 if(pluginFolders.exists())
67 74 {
68 75 pluginFolders.setFilter(QDir::Files | QDir::NoSymLinks);
69 76 QFileInfoList list = pluginFolders.entryInfoList();
70 77 for (int i = 0; i < list.size(); ++i)
71 78 {
72 79 QFileInfo fileInfo = list.at(i);
73 80 if(fileInfo.suffix()=="conf")
74 81 {
75 82 QFile confFile(fileInfo.absoluteFilePath());
76 83 if(confFile.open(QIODevice::ReadOnly))
77 84 {
78 85 while (!confFile.atEnd())
79 86 {
80 87 QString line = confFile.readLine();
81 88 QDir plugDir(line.remove("\n"));
82 89 if(plugDir.exists() && !folders.contains(plugDir.absolutePath()))
83 90 {
84 91 folders.append(plugDir.absolutePath());
85 92 }
86 93 }
87 94 }
88 95 }
89 96 }
90 97 }
98 QStringList localCfg = SocExplorerSettings::value(SOCEXPLORERENGINE_SETTINGS_SCOPE,SOCEXPLORERENGINE_SETTINGS_PLUGINS_LOOKUP_PATH).toString().split(";");
99 QString dir;
100 foreach (dir, localCfg)
101 {
102 QDir plugDir(dir);
103 if(plugDir.exists())
104 folders.append(dir);
105 }
91 106 return folders;
92 107 }
93 108
94 109 SOCModel *SocExplorerEngine::plugin2Soc(socexplorerplugin *plugin)
95 110 {
96 111 if(!_self)
97 112 init();
98 113 if(plugin)
99 114 {
100 115 while (plugin->parent!=NULL) {
101 116 plugin = plugin->parent;
102 117 }
103 118 for(int i=0;i<SOCs->count();i++)
104 119 {
105 120 if(SOCs->at(i)->isRootDev(plugin))
106 121 return SOCs->at(i);
107 122 }
108 123 //no soc found so create a new one
109 124 SOCModel* soc=new SOCModel(plugin);
110 125 SOCs->append(soc);
111 126 return soc;
112 127 }
113 128 return NULL;
114 129 }
115 130
116 131
117 132 int SocExplorerEngine::addEnumDevice(socexplorerplugin* rootPlugin,int VID, int PID, qint32 baseAddress, const QString &name)
118 133 {
119 134 if(!_self)
120 135 init();
121 136 SOCModel* soc = plugin2Soc(rootPlugin);
122 137 if(soc && !soc->enumDeviceExists(baseAddress))
123 138 {
124 139 emit _self->enumDeviceAdded(soc->addEnumDevice(VID,PID,baseAddress,name));
125 140 return 1;
126 141 }
127 142 return 0;
128 143 }
129 144
130 145 QList<SOCModel *> *SocExplorerEngine::getSOCs()
131 146 {
132 147 if(!_self)
133 148 init();
134 149 return SOCs;
135 150 }
136 151
137 152 qint32 SocExplorerEngine::getEnumDeviceBaseAddress(const QString& rootPlugin,int VID, int PID, int count)
138 153 {
139 154 socexplorerplugin* plugin = socexplorerproxy::findPlugin(rootPlugin);
140 155 if(plugin==NULL)return -1;
141 156 SOCModel* soc = plugin2Soc(plugin);
142 157 if(soc==NULL)
143 158 return -1;
144 159 return soc->getEnumDeviceBaseAddress(VID,PID,count);
145 160 }
146 161
147 162 qint32 SocExplorerEngine::getEnumDeviceBaseAddress(socexplorerplugin *plugin, int VID, int PID, int count)
148 163 {
149 164 if(plugin==NULL)return -1;
150 165 SOCModel* soc = plugin2Soc(plugin);
151 166 if(soc==NULL)
152 167 return -1;
153 168 return soc->getEnumDeviceBaseAddress(VID,PID,count);
154 169 }
155 170
156 171 qint32 SocExplorerEngine::getEnumDeviceCount(socexplorerplugin *plugin, int VID, int PID)
157 172 {
158 173 if(plugin==NULL)return 0;
159 174 SOCModel* soc = plugin2Soc(plugin);
160 175 if(soc==NULL)
161 176 return 0;
162 177 return soc->getEnumDeviceCount(VID,PID);
163 178 }
164 179
165 180 qint32 SocExplorerEngine::getEnumDeviceCount(const QString &rootPlugin, int VID, int PID)
166 181 {
167 182 socexplorerplugin* plugin = socexplorerproxy::findPlugin(rootPlugin);
168 183 if(plugin==NULL)return 0;
169 184 SOCModel* soc = plugin2Soc(plugin);
170 185 if(soc==NULL)
171 186 return 0;
172 187 return soc->getEnumDeviceCount(VID,PID);
173 188 }
174 189
175 190 int SocExplorerEngine::addEnumDevice(const QString &rootPlugin, int VID, int PID, qint32 baseAddress, const QString &name)
176 191 {
177 192 socexplorerplugin* plugin = socexplorerproxy::findPlugin(rootPlugin);
178 193 if(plugin==NULL)return -1;
179 194 SOCModel* soc = plugin2Soc(plugin);
180 195 if(soc==NULL)
181 196 return -1;
182 197 soc->addEnumDevice(VID,PID,baseAddress,name);
183 198 return 1;
184 199 }
185 200
186 201 unsigned int SocExplorerEngine::memMeasureSize(socexplorerplugin *plugin, unsigned int address, unsigned int maxSize)
187 202 {
188 203 return MemTester::measureMemSize(plugin,address,maxSize);
189 204 }
190 205
191 206 unsigned int SocExplorerEngine::memMeasureSize(const QString &plugin, unsigned int address, unsigned int maxSize)
192 207 {
193 208 return MemTester::measureMemSize(plugin,address,maxSize);
194 209 }
195 210
196 211
197 212 QString SocExplorerEngine::getDevName(int VID, int PID)
198 213 {
199 214 QList<QDomNodeList> list=p_xmlmodel->getAllNodes("peripheral");
200 215 for(int i=0;i<list.count();i++)
201 216 {
202 217 QDomNodeList nodes=list.at(i);
203 218 for(int l=0;l<nodes.count();l++)
204 219 {
205 220 QDomElement node=nodes.at(l).toElement();
206 221 int nodeVID=node.attribute("vid","0").toInt();
207 222 int nodePID=node.attribute("pid","0").toInt();
208 223 if((nodeVID==VID)&&(nodePID==PID))
209 224 {
210 225 return node.attribute("name","Unknow device");
211 226 }
212 227 }
213 228 }
214 229 return QString("Unknow device");
215 230 }
216 231
217 232 QString SocExplorerEngine::SocExplorerVersion(){return QString(SOCEXPLORER_VERSION);}
218 233
219 234 QString SocExplorerEngine::SocExplorerChangeset(){return QString(SOCEXPLORER_CHAGESET).split(" ").at(0);}
220 235
221 236 QString SocExplorerEngine::SocExplorerBranch(){return QString(SOCEXPLORER_BRANCH);}
222 237
223 238 socExplorerXmlModel *SocExplorerEngine::xmlModel()
224 239 {
225 240 if(!_self)
226 241 init();
227 242 return p_xmlmodel;
228 243 }
229 244
230 245 void SocExplorerEngine::setMainWindow(QMainWindow *Mainwindow)
231 246 {
232 247 if(!_self)
233 248 init();
234 249 mainWindow=Mainwindow;
235 250 }
236 251
237 252 QProgressBar *SocExplorerEngine::getProgressBar(const QString& format, int max)
238 253 {
239 254 if(!_self)
240 255 init();
241 256 QProgressBar* progressBar;
242 257 if(mainWindow!=NULL)
243 258 {
244 259 progressBar = new QProgressBar(mainWindow);
245 260 mainWindow->statusBar()->addWidget(progressBar);
246 261 }
247 262 else
248 263 {
249 264 progressBar = new QProgressBar();
250 265 }
251 266 progressBar->setMaximum(max);
252 267 progressBar->setFormat(format);
253 268 return progressBar;
254 269 }
255 270
256 271 void SocExplorerEngine::deleteProgressBar(QProgressBar *progressBar)
257 272 {
258 273 if(mainWindow!=NULL)
259 274 {
260 275 mainWindow->statusBar()->removeWidget(progressBar);
261 276 }
262 277 delete progressBar;
263 278 }
264 279
265 280 void SocExplorerEngine::addSOC(socexplorerplugin *rootPlugin)
266 281 {
267 282 plugin2Soc(rootPlugin);
268 283 }
269 284
270 285 void SocExplorerEngine::removeSOC(socexplorerplugin *rootPlugin)
271 286 {
272 287 SOCModel* soc=plugin2Soc(rootPlugin);
273 288 SOCs->removeAll(soc);
274 289 delete soc;
275 290 }
276 291
292
277 293 void SocExplorerEngine::message(socexplorerplugin *sender, const QString &message, int debugLevel)
278 294 {
295 if(!_self)
296 init();
297 SocExplorerEngine::message(sender->instanceName(),message,debugLevel);
298 }
299
300 void SocExplorerEngine::message(QObject *sender, const QString &message, int debugLevel)
301 {
302 if(!_self)
303 init();
304 SocExplorerEngine::message(sender->objectName(),message,debugLevel);
305 }
306
307 void SocExplorerEngine::message(const QString &sender, const QString &message, int debugLevel)
308 {
279 309 // TODO add multi output message manager IE also log in files
310 static QTextStream SocExplorerEngineStdout(stdout);
280 311 if(!_self)
281 312 init();
282 313 if(loglvl>=debugLevel)
283 qDebug()<< QTime::currentTime().toString()+" " + sender->instanceName()+":"+message;
314 SocExplorerEngineStdout << QTime::currentTime().toString()+" " + sender+":"+message << endl;
284 315 }
285 316
286 317 void SocExplorerEngine::setLogLevel(int level)
287 318 {
288 319 if(!_self)
289 320 init();
290 321 printf("Set log level to %d\n",level);
291 322 loglvl = level;
292 323 }
293 324
294 325 bool SocExplorerEngine::isSocLitleEndian(socexplorerplugin *plugin)
295 326 {
296 327 return plugin2Soc(plugin)->isLitleEndian();
297 328 }
298 329
299 330
300 331
@@ -1,141 +1,145
1 1 /*------------------------------------------------------------------------------
2 2 -- This file is a part of the SocExplorer Software
3 3 -- Copyright (C) 2012, Plasma Physics Laboratory - CNRS
4 4 --
5 5 -- This program is free software; you can redistribute it and/or modify
6 6 -- it under the terms of the GNU General Public License as published by
7 7 -- the Free Software Foundation; either version 2 of the License, or
8 8 -- (at your option) any later version.
9 9 --
10 10 -- This program is distributed in the hope that it will be useful,
11 11 -- but WITHOUT ANY WARRANTY; without even the implied warranty of
12 12 -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 13 -- GNU General Public License for more details.
14 14 --
15 15 -- You should have received a copy of the GNU General Public License
16 16 -- along with this program; if not, write to the Free Software
17 17 -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 18 -------------------------------------------------------------------------------*/
19 19 /*-- Author : Alexis Jeandet
20 20 -- Mail : alexis.jeandet@lpp.polytechnique.fr
21 21 ----------------------------------------------------------------------------*/
22 22 #ifndef SOCEXPLORERENGINE_H
23 23 #define SOCEXPLORERENGINE_H
24 24
25 25 #include <stdint.h>
26 26 #include <QObject>
27 27 #include <QtWidgets>
28 28 #include <QStringList>
29 29 #include <QDomDocument>
30 30 #include <QDomElement>
31 31 #include <QDomNodeList>
32 32 #include <QFile>
33 33 #include <QTextStream>
34 34 #include <QDir>
35 35 #include <QApplication>
36 36 #include <QtCore/qglobal.h>
37 37 #include <QFileDialog>
38 38 #include <socexplorerxmlfile.h>
39 39 #include <socexplorerenumdevice.h>
40 40 #include <XMLmodel.h>
41 41 #include <peripheralwidget.h>
42 42 #include <registerwidget.h>
43 43 #include <socmodel.h>
44 44 #include <memtester.h>
45 #include <QSettings>
45 46
46 47 #if defined(SOCEXPLORER_SDK_BUILD)
47 48 # define SOCEXPLORER_SDK_EXPORT Q_DECL_EXPORT
48 49 #else
49 50 # define SOCEXPLORER_SDK_EXPORT Q_DECL_IMPORT
50 51 #endif
51 52
52 53
53 54 class SOCEXPLORER_SDK_EXPORT SocExplorerAutoProgressBar
54 55 {
55 56 public:
56 57 SocExplorerAutoProgressBar(QProgressBar* progressBar=NULL)
57 58 {
58 59 this->p_progressbar=progressBar;
59 60 }
60 61 ~SocExplorerAutoProgressBar()
61 62 {
62 63 if(p_progressbar)
63 64 {
64 65 delete p_progressbar;
65 66 }
66 67 }
67 68 void setProgressBar(QProgressBar* progressBar)
68 69 {
69 70 this->p_progressbar=progressBar;
70 71 }
71 72 void setValue(int value)
72 73 {
73 74 p_progressbar->setValue(value);
74 75 }
75 76 private:
76 77 QProgressBar* p_progressbar;
77 78 };
78 79
79 80 //! SocExplorerEngine is a pure static class which aims to provide services for both SocExplorer software and plugins.
80 81
81 82 class SOCEXPLORER_SDK_EXPORT SocExplorerEngine : public QObject
82 83 {
83 84 Q_OBJECT
84 85 private:
85 86 static SocExplorerEngine* _self;
87 static QSettings* m_settings;
86 88 SocExplorerEngine(QObject *parent = 0);
87 89 static void init();
88 90
89 91 public:
90 92 static SocExplorerEngine* self(){ if(!_self){_self= new SocExplorerEngine;}return _self;}
91 93 //! Return the configuration folder path, OS dependant.
92 94 SOCEXPLORER_SDK_EXPORT static QString configFolder();
93 95 //! Return the default plugin folder path, OS dependant.
94 96 static QStringList pluginFolders();
95 97 static QString configPath(){return QString(SOCEXPLORER_CONFIG_PATH);}
96 98 static QString sharePath(){return QString(SOCEXPLORER_SHARE_PATH);}
97 99 static int addEnumDevice(socexplorerplugin* rootPlugin,int VID,int PID,qint32 baseAddress,const QString& name);
98 100 static QList<SOCModel*>* getSOCs();
99 101 static QString getDevName(int VID, int PID);
100 102 static QString SocExplorerVersion();
101 103 static QString SocExplorerChangeset();
102 104 static QString SocExplorerBranch();
103 105 static socExplorerXmlModel* xmlModel();
104 106 static void setMainWindow(QMainWindow* Mainwindow);
105 107 static QProgressBar* getProgressBar(const QString &format, int max);
106 108 static void deleteProgressBar(QProgressBar* progressBar);
107 109 static void addSOC(socexplorerplugin* rootPlugin);
108 110 static void removeSOC(socexplorerplugin* rootPlugin);
109 111 static void message(socexplorerplugin* sender,const QString& message,int debugLevel=0);
112 static void message(QObject* sender,const QString& message,int debugLevel=0);
113 static void message(const QString& sender,const QString& message,int debugLevel=0);
110 114 static void setLogLevel(int level);
111 115 static bool isSocLitleEndian(socexplorerplugin* plugin);
112 116 signals:
113 117 void enumDeviceAdded(socExplorerEnumDevice* device);
114 118 public slots:
115 119 QString getSocExplorerVersion(){return SocExplorerEngine::SocExplorerVersion();}
116 120 QString getSocExplorerChangeset(){return SocExplorerEngine::SocExplorerChangeset();}
117 121 QString getSocExplorerBranch(){return SocExplorerEngine::SocExplorerBranch();}
118 122 qint32 getEnumDeviceBaseAddress(const QString& rootPlugin,int VID,int PID,int count=0);
119 123 qint32 getEnumDeviceBaseAddress(socexplorerplugin* plugin,int VID,int PID,int count=0);
120 124 qint32 getEnumDeviceCount(socexplorerplugin* plugin,int VID,int PID);
121 125 qint32 getEnumDeviceCount(const QString& rootPlugin,int VID,int PID);
122 126 int addEnumDevice(const QString& rootPlugin,int VID,int PID,qint32 baseAddress,const QString& name);
123 127 unsigned int memMeasureSize(socexplorerplugin* plugin, unsigned int address,unsigned int maxSize=0xFFFFFFFF);
124 128 unsigned int memMeasureSize(const QString& plugin, unsigned int address,unsigned int maxSize=0xFFFFFFFF);
125 129
126 130 private:
127 131 static SOCModel* plugin2Soc(socexplorerplugin* plugin);
128 132 static socExplorerXmlModel* p_xmlmodel;
129 133 static QMainWindow* mainWindow;
130 134 static QList<SOCModel*>* SOCs;
131 135 static int loglvl;
132 136 };
133 137
134 138 #endif // SOCEXPLORERENGINE_H
135 139
136 140
137 141
138 142
139 143
140 144
141 145
@@ -1,143 +1,99
1 1 /*------------------------------------------------------------------------------
2 2 -- This file is a part of the SocExplorer Software
3 3 -- Copyright (C) 2011, Plasma Physics Laboratory - CNRS
4 4 --
5 5 -- This program is free software; you can redistribute it and/or modify
6 6 -- it under the terms of the GNU General Public License as published by
7 7 -- the Free Software Foundation; either version 2 of the License, or
8 8 -- (at your option) any later version.
9 9 --
10 10 -- This program is distributed in the hope that it will be useful,
11 11 -- but WITHOUT ANY WARRANTY; without even the implied warranty of
12 12 -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 13 -- GNU General Public License for more details.
14 14 --
15 15 -- You should have received a copy of the GNU General Public License
16 16 -- along with this program; if not, write to the Free Software
17 17 -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 18 -------------------------------------------------------------------------------*/
19 19 /*-- Author : Alexis Jeandet
20 20 -- Mail : alexis.jeandet@lpp.polytechnique.fr
21 21 ----------------------------------------------------------------------------*/
22 22 #include "pluginmanagerWDGT.h"
23 23 #include "pluginloader.h"
24 24 #include <QFileDialog>
25 25 #include <unistd.h>
26 26 #include <qsvgicon.h>
27 27 #include <socexplorerengine.h>
28 28
29 29 #define mkbutton(button,text,image)button = new QPushButton();\
30 30 button->setIcon(QSvgIcon(image));\
31 31 button->setIconSize(QSize(16,16));\
32 32 button->setToolTip(text)
33 33
34 34
35 35
36 36 pluginmanagerWDGT::pluginmanagerWDGT(QWidget *parent) :
37 37 QSplitter(parent)
38 38 {
39 39 this->setWindowTitle("Plugin Manager");
40 40 this->setOrientation(Qt::Vertical);
41 41 this->pluginListWidgetContainer = new QWidget();
42 42 this->mainlayoutSpliter = new QSplitter;
43 43 this->pluginListLayout = new QVBoxLayout();
44 44 this->mainlayoutSpliter->setOrientation(Qt::Vertical);
45 45 this->treeview = new plugintree();
46 46 this->pluginTable = new PluginList;
47 47 this->ButtonsLayout = new QHBoxLayout();
48 48 this->ButtonsLayout->addStretch();
49 49 this->pluginListLayout->addLayout(this->ButtonsLayout);
50 50 this->addWidget(this->treeview);
51 51 this->pluginListWidgetContainer->setLayout(this->pluginListLayout);
52 52 this->addWidget(this->pluginListWidgetContainer);
53 53 this->pluginListLayout->addWidget(this->pluginTable);
54 54 this->pluginInfos = new pluginInfosWdgt;
55 55
56 56 mkbutton(this->addPluginBt,tr("add plugin"),":/images/open.svg");
57 57 mkbutton(this->removePluginBt,tr("remove plugin(s)"),":/images/trash.svg");
58 58 mkbutton(this->refreshPluginListBt,tr("Refresh Plugin(s) list"),":/images/refresh.svg");
59 59
60 60 this->ButtonsLayout->addWidget(this->addPluginBt);
61 61 this->ButtonsLayout->addWidget(this->refreshPluginListBt);
62 62 this->ButtonsLayout->addWidget(this->removePluginBt);
63 63
64 64 this->addWidget(this->pluginInfos);
65 65
66 66 connect(this->treeview,SIGNAL(geteplugintree()),this,SIGNAL(geteplugintree()));
67 67 connect(this,SIGNAL(treeChanged(QList<socexplorerplugin*>)),this->treeview,SLOT(treeChanged(QList<socexplorerplugin*>)));
68 68 connect(this->pluginTable,SIGNAL(currentRowChanged(int)),this,SLOT(libselected(int)));
69 69 connect(this->pluginTable,SIGNAL(itemSelectionChanged(QStringList)),this->pluginInfos,SLOT(updateInfos(QStringList)));
70 70 connect(this->addPluginBt,SIGNAL(clicked()),this,SLOT(addPlugin()));
71 71 connect(this->removePluginBt,SIGNAL(clicked()),this,SLOT(removePlugin()));
72 72 connect(this->pluginTable,SIGNAL(itemDoubleClicked(QListWidgetItem*)),this,SLOT(loadplugin(QListWidgetItem*)));
73 73 connect(this->refreshPluginListBt,SIGNAL(clicked()),this->pluginTable,SLOT(refreshPluginList()));
74 74 connect(this->treeview,SIGNAL(loadSysDriver(QString)),this,SIGNAL(loadSysDrviver(QString)));
75 75 connect(this->treeview,SIGNAL(loadSysDriverToParent(QString,QString)),this,SIGNAL(loadSysDriverToParent(QString,QString)));
76 76 connect(this->treeview,SIGNAL(changeSysDriverInstName(QString,QString)),this,SIGNAL(changeSysDriverInstName(QString,QString)));
77 77 connect(this->treeview,SIGNAL(closeSysDriver(QString)),this,SIGNAL(closeSysDriver(QString)));
78 78 connect(this->treeview,SIGNAL(pluginselected(QString)),this,SIGNAL(pluginselected(QString)));
79 79 this->rootLoadable = false;
80 80 this->childLoadable = false;
81 81 this->pluginTable->refreshPluginList();
82 82 this->pluginTable->refreshPluginList();
83 83 }
84 84
85 85
86 86 void pluginmanagerWDGT::setRootLoadable(bool flag)
87 87 {
88 88 this->rootLoadable = flag;
89 89 }
90 90
91 91
92 92 void pluginmanagerWDGT::setChildLoadable(bool flag)
93 93 {
94 94 this->childLoadable = flag;
95 95 }
96 96
97 97
98 98
99 99
100 void pluginmanagerWDGT::addPlugin()
101 {
102 // /!\ TODO update it remove maximum operation from widget
103 // QString fileName = QFileDialog::getOpenFileName(this,tr("Open Plugin"), QDir::homePath(), tr("Plugin Files Files (*.dll *.so *.so.*)"));
104 // if(pluginloader::checklibrary(fileName))
105 // {
106 // QFile::copy(fileName,QString(SocExplorerEngine::pluginFolder())+"/"+ fileName.section('/',-1));
107 // }
108 // this->pluginTable->refreshPluginList();
109 }
110
111
112 void pluginmanagerWDGT::removePlugin()
113 {
114 // for(int i=0;i<this->pluginTable->selectedItems().count();i++)
115 // {
116 // QListWidgetItem* item = this->pluginTable->selectedItems().at(i);
117 // if(item!=NULL)
118 // {
119 // QFile::remove(QString(SocExplorerEngine::pluginFolder())+"/"+item->text());
120 // }
121 // }
122 // this->pluginTable->refreshPluginList();
123 }
124
125
126
127 void pluginmanagerWDGT::loadplugin()
128 {
129 // for(int i=0;i<this->pluginTable->selectedItems().count();i++)
130 // {
131 // QListWidgetItem* item = this->pluginTable->selectedItems().at(i);
132 // if(item!=NULL)
133 // {
134 // QString plugin = QString(SocExplorerEngine::pluginFolder())+"/"+item->text();
135 // emit this->loadSysDrviver(plugin);
136 // }
137 // }
138 // this->pluginTable->refreshPluginList();
139 }
140
141
142
143
@@ -1,94 +1,90
1 1 /*------------------------------------------------------------------------------
2 2 -- This file is a part of the SocExplorer Software
3 3 -- Copyright (C) 2011, Plasma Physics Laboratory - CNRS
4 4 --
5 5 -- This program is free software; you can redistribute it and/or modify
6 6 -- it under the terms of the GNU General Public License as published by
7 7 -- the Free Software Foundation; either version 2 of the License, or
8 8 -- (at your option) any later version.
9 9 --
10 10 -- This program is distributed in the hope that it will be useful,
11 11 -- but WITHOUT ANY WARRANTY; without even the implied warranty of
12 12 -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 13 -- GNU General Public License for more details.
14 14 --
15 15 -- You should have received a copy of the GNU General Public License
16 16 -- along with this program; if not, write to the Free Software
17 17 -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 18 -------------------------------------------------------------------------------*/
19 19 /*-- Author : Alexis Jeandet
20 20 -- Mail : alexis.jeandet@lpp.polytechnique.fr
21 21 ----------------------------------------------------------------------------*/
22 22 #ifndef PLUGINMANAGERWDGT_H
23 23 #define PLUGINMANAGERWDGT_H
24 24
25 25 #include <QApplication>
26 26 #include <QWidget>
27 27 #include <QDockWidget>
28 28 #include <QVBoxLayout>
29 29 #include <QHBoxLayout>
30 30 #include <QTableWidget>
31 31 #include <QDir>
32 32 #include <QStringList>
33 33 #include <QFileInfoList>
34 34 #include <QFileInfo>
35 35 #include <QTextEdit>
36 36 #include <QPushButton>
37 37 #include <QSplitter>
38 38 #include "plugininfoswdgt.h"
39 39 #include "pluginlist.h"
40 40 #include <socexplorerplugin.h>
41 41 #include <QList>
42 42 #include "plugintree.h"
43 43
44 44 #if defined(SOCEXPLORER_SDK_BUILD)
45 45 # define SOCEXPLORER_SDK_EXPORT Q_DECL_EXPORT
46 46 #else
47 47 # define SOCEXPLORER_SDK_EXPORT Q_DECL_IMPORT
48 48 #endif
49 49
50 50 class pluginmanagerWDGT : public QSplitter
51 51 {
52 52 Q_OBJECT
53 53 public:
54 54 SOCEXPLORER_SDK_EXPORT explicit pluginmanagerWDGT(QWidget *parent = 0);
55 55 SOCEXPLORER_SDK_EXPORT void setRootLoadable(bool flag);
56 56 SOCEXPLORER_SDK_EXPORT void setChildLoadable(bool flag);
57 57
58 58 signals:
59 59 void updatepluginInfo(const QString libname);
60 60 void loadSysDrviver(const QString name);
61 61 void loadSysDriverToParent(const QString name, const QString instanceName);
62 62 void geteplugintree(void);
63 63 void treeChanged(const QList<socexplorerplugin*>& drivers);
64 64 void changeSysDriverInstName(const QString newinstanceName,const QString previnstanceName);
65 65 void closeSysDriver(const QString instanceName);
66 66 void pluginselected(const QString& instanceName);
67 67
68 68 public slots:
69 //void libselected(int row);
70 void addPlugin();
71 void removePlugin();
72 void loadplugin();
73 //void loadplugin(QListWidgetItem*);
69
74 70
75 71 private:
76 72
77 73 bool rootLoadable;
78 74 bool childLoadable;
79 75 QWidget* pluginListWidgetContainer;
80 76 QVBoxLayout* pluginListLayout;
81 77 QHBoxLayout* ButtonsLayout;
82 78 QSplitter* mainlayoutSpliter;
83 79 PluginList* pluginTable;
84 80 pluginInfosWdgt* pluginInfos;
85 81 plugintree* treeview;
86 82 QPushButton* addPluginBt;
87 83 QPushButton* removePluginBt;
88 84 QPushButton* loadPluginBt;
89 85 QPushButton* refreshPluginListBt;
90 86
91 87
92 88 };
93 89
94 90 #endif // PLUGINMANAGERWDGT_H
@@ -1,560 +1,531
1 1 #include "pluginloader.h"
2 2 #include <QDir>
3 3 #include <QFile>
4 4 #include <QFileInfoList>
5 5 #include <QFileInfo>
6 6 #include <QString>
7 7 #include <QStringList>
8 8 #include <QLabel>
9 9 #include <QSettings>
10 10 #include <QApplication>
11 11 #include <QCoreApplication>
12 12 #include <socexplorerengine.h>
13 13 #ifdef SOCEXPLORER_CUSTOM_PLUGIN_LOADER
14 14 #include "unix/unixpluginloader.h"
15 15 #endif
16 #include <socexplorerengine.h>
17 #include <socexplorersettings.h>
16 18
17 19 pluginloader* pluginloader::_self = NULL;
18 20 PluginsCache* pluginloader::_cache = NULL;
19 21 QStringList* pluginloader::_folderList = NULL;
20 22
21 23
22 24 pluginloader::pluginloader()
23 25 {
24 26 _cache = new PluginsCache();
25 27 _folderList = new QStringList();
26 28 _folderList->append(SocExplorerEngine::pluginFolders());
27 29 scanFolders();
28 30 }
29 31
30
31 QStringList pluginloader::readFoldersList(const QStringList confFiles)
32 {
33 QDir testDir;
34 QStringList folders;
35 QFile confFile;
36 for(int i=0;i<confFiles.count();i++)
37 {
38 confFile.setFileName(confFiles.at(i));
39 if(confFile.exists())
40 {
41 if (confFile.open(QIODevice::ReadOnly | QIODevice::Text))
42 {
43 QTextStream in(&confFile);
44 QString line = in.readLine();
45 while (!line.isNull())
46 {
47 testDir.setPath(line);
48 if(testDir.exists())
49 {
50 if(!folders.contains(line))
51 folders << line;
52 }
53 line = in.readLine();
54 }
55 }
56 }
57 }
58 return folders;
59 }
60
61
62 32 void pluginloader::scanFolders()
63 33 {
64 34 QDir dir;
65 35 QStringList filters;
66 36 filters <<"*.so"<< "*.dll";
67 37 _cache->flush();
68 38 for(int d=0;d<_folderList->count();d++)
69 39 {
70 40 dir.setPath(_folderList->at(d));
71 41 dir.setFilter(QDir::Files);
72 42 dir.setNameFilters(filters);
73 43 QFileInfoList list = dir.entryInfoList();
74 44 for (int i = 0; i < list.size(); ++i)
75 45 {
76 46 QFileInfo fileInfo = list.at(i);
47 SocExplorerEngine::message("pluginloader::scanFolders","Checking "+ fileInfo.filePath(),3);
77 48 if(checklibrary(fileInfo.filePath())!=0)
78 49 {
79 50 _cache->append(fileInfo.fileName(),fileInfo.path(),_getlibName(fileInfo.filePath()),_getlibPID(fileInfo.filePath()),_getlibPID(fileInfo.filePath()));
80 51 }
81 52 }
82 53 }
83 54 }
84 55
85 56 int pluginloader::p_checklibraryQlib(const QString fileName)
86 57 {
87 58 QLibrary* lib = new QLibrary;
88 59 lib->setFileName(fileName);
89 60 lib->setLoadHints(QLibrary::PreventUnloadHint);
90 61 lib->load();
91 62 if(!lib->isLoaded())
92 63 {
93 qDebug()<<lib->errorString();
64 SocExplorerEngine::message("pluginloader::p_checklibraryQlib",lib->errorString(),3);
94 65 lib->~QLibrary();
95 66 lib = new QLibrary(fileName);
96 67 lib->load();
97 68 }
98 69 delete lib;
99 70 if(QLibrary::resolve(fileName,"socexplorerpluginCreateObject"))
100 71 {
101 72 if(QLibrary::resolve(fileName,"socexplorerpluginpid"))
102 73 {
103 74 if(QLibrary::resolve(fileName,"socexplorerpluginvid"))
104 75 {
105 76 if(QLibrary::resolve(fileName,"socexplorerpluginVersion"))
106 77 {
107 78 if(QLibrary::resolve(fileName,"socexplorerpluginAuthor"))
108 79 {
109 80 if(QLibrary::resolve(fileName,"socexplorerpluginDescription"))
110 81 {
111 82 return 1;
112 83 }
113 84 }
114 85 }
115 86 }
116 87 }
117 88 }
118 89 return 0;
119 90 }
120 91
121 92 int pluginloader::p_checklibraryCustom(const QString fileName)
122 93 {
123 94 #ifdef SOCEXPLORER_CUSTOM_PLUGIN_LOADER
124 95 unixPluginLoader lib(fileName);
125 96 if(NULL!=lib.resolve("socexplorerpluginCreateObject"))
126 97 {
127 98 if(NULL!=lib.resolve("socexplorerpluginpid"))
128 99 {
129 100 if(NULL!=lib.resolve("socexplorerpluginvid"))
130 101 {
131 102 if(NULL!=lib.resolve("socexplorerpluginVersion"))
132 103 {
133 104 if(NULL!=lib.resolve("socexplorerpluginAuthor"))
134 105 {
135 106 if(NULL!=lib.resolve("socexplorerpluginDescription"))
136 107 {
137 108 return 1;
138 109 }
139 110 }
140 111 }
141 112 }
142 113 }
143 114 }
144 115 #endif
145 116 return 0;
146 117 }
147 118
148 119 socexplorerplugin *pluginloader::p_newsocexplorerpluginQlib(const QString Name)
149 120 {
150 121 QString* libfile= _cacheLookup(Name);
151 122 if(libfile==NULL)return NULL;
152 123 QLibrary* lib = new QLibrary(*libfile);
153 124 delete libfile;
154 125 socexplorerpluginCreateObjectT newDrvr = NULL;
155 126 newDrvr=(socexplorerpluginCreateObjectT)lib->resolve("socexplorerpluginCreateObject");
156 127 if(newDrvr==NULL)
157 128 {
158 129 return NULL;
159 130 }
160 131 return (socexplorerplugin*) newDrvr();
161 132 }
162 133
163 134 socexplorerplugin *pluginloader::p_newsocexplorerpluginCustom(const QString Name)
164 135 {
165 136 #ifdef SOCEXPLORER_CUSTOM_PLUGIN_LOADER
166 137 QString* libfile= _cacheLookup(Name);
167 138 if(libfile==NULL)return NULL;
168 139 unixPluginLoader lib(*libfile);
169 140 delete libfile;
170 141 socexplorerpluginCreateObjectT newDrvr = NULL;
171 142 newDrvr=(socexplorerpluginCreateObjectT)lib.resolve("socexplorerpluginCreateObject");
172 143 if(newDrvr==NULL)
173 144 {
174 145 return NULL;
175 146 }
176 147 return (socexplorerplugin*) newDrvr();
177 148 #endif
178 149 }
179 150
180 151 QList<PluginsCacheItem*> pluginloader::listAvailiables(bool rescan)
181 152 {
182 153 if(_self==NULL)
183 154 {
184 155 init();
185 156 return _cache->listDrivers();
186 157 }
187 158 if(rescan)
188 159 {
189 160 scanFolders();
190 161 }
191 162
192 163 return _cache->listDrivers();
193 164 }
194 165
195 166
196 167 void pluginloader::init()
197 168 {
198 169 if(_self==NULL)
199 170 {
200 171 _self=new pluginloader();
201 172 }
202 173 }
203 174
204 175
205 176 pluginloader* pluginloader::self()
206 177 {
207 178 if(_self==NULL)
208 179 {
209 180 init();
210 181 }
211 182 return _self;
212 183 }
213 184
214 185 bool pluginloader::isvalid(QString Name)
215 186 {
216 187 if(_self==NULL)init();
217 188 QString* libfile= _cacheLookup(Name);
218 189 if(libfile==NULL)return false;
219 190 else
220 191 {
221 192 delete libfile;
222 193 return true;
223 194 }
224 195
225 196 }
226 197
227 198 int pluginloader::checklibrary(const QString fileName)
228 199 {
229 200 #ifdef SOCEXPLORER_CUSTOM_PLUGIN_LOADER
230 201 return _self->p_checklibraryCustom(fileName);
231 202 #else
232 203 return _self->p_checklibraryQlib(fileName);
233 204 #endif
234 205 }
235 206
236 207
237 208
238 209
239 210
240 211 socexplorerplugin* pluginloader::newsocexplorerplugin(const QString Name)
241 212 {
242 213 #ifdef SOCEXPLORER_CUSTOM_PLUGIN_LOADER
243 214 return _self->p_newsocexplorerpluginCustom(Name);
244 215 #else
245 216 return _self->p_newsocexplorerpluginQlib(Name);
246 217 #endif
247 218 }
248 219
249 220
250 221 QString pluginloader::getlibTypeStr(QString Name)
251 222 {
252 223 if(_self==NULL)init();
253 224 QString* libfile= _cacheLookup(Name);
254 225 if(libfile==NULL)return NULL;
255 226 QLibrary* lib = new QLibrary(*libfile);
256 227 delete libfile;
257 228 lib->load();
258 229 if(lib->isLoaded())
259 230 {
260 231 socexplorerpluginTypeT plugintype = (socexplorerpluginTypeT)lib->resolve("socexplorerpluginType");
261 232 if(plugintype!=NULL)
262 233 {
263 234 pluginT type = plugintype();
264 235 switch(type)
265 236 {
266 237 case ComDriverT:
267 238 ////lib->unload();
268 239 lib->~QLibrary();
269 240 return QObject::tr("Comunaication Driver Plugin.");
270 241 break;
271 242 case PerifDriverT:
272 243 ////lib->unload();
273 244 lib->~QLibrary();
274 245 return QObject::tr("Periferial Driver Plugin.");
275 246 break;
276 247 default:
277 248 ////lib->unload();
278 249 lib->~QLibrary();
279 250 return QObject::tr("Unknow Plugin.");
280 251 break;
281 252 }
282 253 }
283 254 }
284 255 lib->~QLibrary();
285 256 return QObject::tr("Can't load Plugin.");
286 257 }
287 258
288 259
289 260
290 261
291 262 pluginT pluginloader::getlibType(QString Name)
292 263 {
293 264 if(_self==NULL)init();
294 265 QString* libfile= _cacheLookup(Name);
295 266 if(libfile==NULL)return (pluginT)NULL;
296 267 QLibrary* lib = new QLibrary(*libfile);
297 268 delete libfile;
298 269 lib->load();
299 270 if(lib->isLoaded())
300 271 {
301 272 socexplorerpluginTypeT plugintype = (socexplorerpluginTypeT)lib->resolve("socexplorerpluginType");
302 273 if(plugintype!=NULL)
303 274 {
304 275 return plugintype();
305 276 }
306 277 }
307 278 lib->~QLibrary();
308 279 return -1;
309 280 }
310 281
311 282
312 283 QString pluginloader::getlibVersion(const QString Name)
313 284 {
314 285 if(_self==NULL)init();
315 286 QString* libfile= _cacheLookup(Name);
316 287 if(libfile==NULL)return NULL;
317 288 QLibrary* lib = new QLibrary(*libfile);
318 289 delete libfile;
319 290 lib->load();
320 291 if(lib->isLoaded())
321 292 {
322 293 socexplorerpluginVersionT pluginversion = (socexplorerpluginVersionT)lib->resolve("socexplorerpluginVersion");
323 294 if(pluginversion!=NULL)
324 295 {
325 296 QString version = pluginversion();
326 297 ////lib->unload();
327 298 lib->~QLibrary();
328 299 return version;
329 300 }
330 301 }
331 302 lib->~QLibrary();
332 303 return QObject::tr("Can't load Plugin.");
333 304 }
334 305
335 306
336 307
337 308 QString pluginloader::getlibPIDstr(const QString Name)
338 309 {
339 310 return QString("0x" + QString::number(pluginloader::getlibPID(Name) , 16));
340 311 }
341 312
342 313 QString pluginloader::getlibVIDstr(const QString Name)
343 314 {
344 315 return QString("0x" + QString::number(pluginloader::getlibVID(Name) , 16));
345 316 }
346 317
347 318
348 319
349 320 int pluginloader::libcanbechild(const QString Name)
350 321 {
351 322 if(_self==NULL)init();
352 323 QString* libfile= _cacheLookup(Name);
353 324 if(libfile==NULL)return (int)NULL;
354 325 QLibrary* lib = new QLibrary(*libfile);
355 326 delete libfile;
356 327 lib->load();
357 328 if(lib->isLoaded())
358 329 {
359 330 socexplorerplugincanbechildT canbechild = (socexplorerplugincanbechildT)lib->resolve("socexplorerplugincanbechild");
360 331 if(canbechild!=NULL)
361 332 {
362 333 int value = canbechild();
363 334 ////lib->unload();
364 335 //lib->~QLibrary();
365 336 return value;
366 337 }
367 338 }
368 339 //lib->~QLibrary();
369 340 return 0;
370 341 }
371 342
372 343
373 344
374 345
375 346 int pluginloader::libcanberoot(const QString Name)
376 347 {
377 348 if(_self==NULL)init();
378 349 QString* libfile= _cacheLookup(Name);
379 350 if(libfile==NULL)return (int)NULL;
380 351 QLibrary* lib = new QLibrary(*libfile);
381 352 delete libfile;
382 353 lib->load();
383 354 if(lib->isLoaded())
384 355 {
385 356 socexplorerplugincanberootT canberoot = (socexplorerplugincanberootT)lib->resolve("socexplorerplugincanberoot");
386 357 if(canberoot!=NULL)
387 358 {
388 359 int value = canberoot();
389 360 ////lib->unload();
390 361 //lib->~QLibrary();
391 362 return value;
392 363 }
393 364 }
394 365 delete lib;
395 366 //lib->~QLibrary();
396 367 return 0;
397 368 }
398 369
399 370 int pluginloader::getlibVID(const QString Name)
400 371 {
401 372 if(_self==NULL)init();
402 373 QString* libfile= _cacheLookup(Name);
403 374 if(libfile==NULL)return 0;
404 375 QString file(*libfile);
405 376 delete libfile;
406 377 return _getlibVID(file);
407 378 }
408 379
409 380
410 381 int pluginloader::getlibPID(const QString Name)
411 382 {
412 383 if(_self==NULL)init();
413 384 QString* libfile= _cacheLookup(Name);
414 385 if(libfile==NULL)return 0;
415 386 QString file(*libfile);
416 387 delete libfile;
417 388 return _getlibPID(file);
418 389 }
419 390
420 391 QString pluginloader::getlibAuthor(const QString Name)
421 392 {
422 393 if(_self==NULL)init();
423 394 QString* libfile= _cacheLookup(Name);
424 395 if(libfile==NULL)return NULL;
425 396 QLibrary* lib = new QLibrary(*libfile);
426 397 delete libfile;
427 398 lib->load();
428 399 if(lib->isLoaded())
429 400 {
430 401 socexplorerpluginAuthorT pluginauthor = (socexplorerpluginAuthorT)lib->resolve("socexplorerpluginAuthor");
431 402 if(pluginauthor!=NULL)
432 403 {
433 404 QString author = pluginauthor();
434 405 ////lib->unload();
435 406 lib->~QLibrary();
436 407 return author;
437 408 }
438 409 }
439 410 lib->~QLibrary();
440 411 return QObject::tr("Can't load Plugin.");
441 412 }
442 413
443 414 QString pluginloader::getlibName(const QString Name)
444 415 {
445 416 if(_self==NULL)init();
446 417 QString* libfile= _cacheLookup(Name);
447 418 if(libfile==NULL)return QString("");
448 419 QString file(*libfile);
449 420 delete libfile;
450 421 return _getlibName(file);
451 422 }
452 423
453 424 QString pluginloader::getlibDescription(const QString Name)
454 425 {
455 426 if(_self==NULL)init();
456 427 QString* libfile= _cacheLookup(Name);
457 428 if(libfile==NULL)return NULL;
458 429 QLibrary* lib = new QLibrary(*libfile);
459 430 delete libfile;
460 431 lib->load();
461 432 if(lib->isLoaded())
462 433 {
463 434 socexplorerpluginDescriptionT plugindescription = (socexplorerpluginDescriptionT)lib->resolve("socexplorerpluginDescription");
464 435 if(plugindescription!=NULL)
465 436 {
466 437 QString description = plugindescription();
467 438 ////lib->unload();
468 439 lib->~QLibrary();
469 440 return description;
470 441 }
471 442 }
472 443 lib->~QLibrary();
473 444 return QObject::tr("Can't load Plugin.");
474 445 }
475 446
476 447 QString pluginloader::getlibDir(const QString Name)
477 448 {
478 449 if(_self==NULL)init();
479 450 return *_cacheLookup(Name);
480 451 }
481 452
482 453 QString pluginloader::_getlibName(const QString fileName)
483 454 {
484 455 QLibrary* lib = new QLibrary(fileName);
485 456 lib->load();
486 457 if(lib->isLoaded())
487 458 {
488 459 socexplorerpluginNameT pluginName = (socexplorerpluginAuthorT)lib->resolve("socexplorerpluginName");
489 460 if(pluginName!=NULL)
490 461 {
491 462 QString name = pluginName();
492 463 //lib->unload();
493 464 lib->~QLibrary();
494 465 return name;
495 466 }
496 467 }
497 468 lib->~QLibrary();
498 469 return QObject::tr("Can't load Plugin.");
499 470 }
500 471
501 472 int pluginloader::_getlibPID(const QString fileName)
502 473 {
503 474 QLibrary* lib = new QLibrary(fileName);
504 475 lib->load();
505 476 if(lib->isLoaded())
506 477 {
507 478 socexplorerpluginpidT pluginpid = (socexplorerpluginpidT)lib->resolve("socexplorerpluginpid");
508 479 if(pluginpid!=NULL)
509 480 {
510 481 int pid = pluginpid();
511 482 //lib->unload();
512 483 lib->~QLibrary();
513 484 return pid;
514 485 }
515 486 }
516 487 lib->~QLibrary();
517 488 return 0;
518 489 }
519 490
520 491 int pluginloader::_getlibVID(const QString fileName)
521 492 {
522 493 QLibrary* lib = new QLibrary(fileName);
523 494 lib->load();
524 495 if(lib->isLoaded())
525 496 {
526 497 socexplorerpluginvidT pluginvid = (socexplorerpluginvidT)lib->resolve("socexplorerpluginvid");
527 498 if(pluginvid!=NULL)
528 499 {
529 500 int vid = pluginvid();
530 501 //lib->unload();
531 502 lib->~QLibrary();
532 503 return vid;
533 504 }
534 505 }
535 506 lib->~QLibrary();
536 507 return 0;
537 508 }
538 509
539 510 QString* pluginloader::_cacheLookup(const QString Name)
540 511 {
541 512 QString* libfile= new QString(_cache->first(Name));
542 513 if(!QFile::exists(*libfile))
543 514 {
544 515 scanFolders();
545 516 *libfile = _cache->first(Name);
546 517 if(QFile::exists(*libfile))return libfile;
547 518 }
548 519 else
549 520 {
550 521 return libfile;
551 522 }
552 523 delete libfile;
553 524 return NULL;
554 525 }
555 526
556 527 /*QString findlib(QString name)
557 528 {
558 529
559 530 }*/
560 531
@@ -1,90 +1,89
1 1 /*------------------------------------------------------------------------------
2 2 -- This file is a part of the SocExplorer Software
3 3 -- Copyright (C) 2011, Plasma Physics Laboratory - CNRS
4 4 --
5 5 -- This program is free software; you can redistribute it and/or modify
6 6 -- it under the terms of the GNU General Public License as published by
7 7 -- the Free Software Foundation; either version 2 of the License, or
8 8 -- (at your option) any later version.
9 9 --
10 10 -- This program is distributed in the hope that it will be useful,
11 11 -- but WITHOUT ANY WARRANTY; without even the implied warranty of
12 12 -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 13 -- GNU General Public License for more details.
14 14 --
15 15 -- You should have received a copy of the GNU General Public License
16 16 -- along with this program; if not, write to the Free Software
17 17 -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 18 -------------------------------------------------------------------------------*/
19 19 /*-- Author : Alexis Jeandet
20 20 -- Mail : alexis.jeandet@lpp.polytechnique.fr
21 21 ----------------------------------------------------------------------------*/
22 22 #ifndef PLUGINLOADER_H
23 23 #define PLUGINLOADER_H
24 24
25 25 #include <QString>
26 26 #include <QLibrary>
27 27 #include <QObject>
28 28 #include <QStringList>
29 29 #include <socexplorerplugininterface.h>
30 30 #include <socexplorerplugin.h>
31 31 #include <pluginscache.h>
32 32 /*
33 33 Debug
34 34 */
35 35 #include <stdio.h>
36 36
37 37 #define loadlib(filename) QLibrary* lib = new QLibrary((fileName));\
38 38 lib->load();\
39 39 if(!lib->isLoaded())\
40 40 {\
41 41 return 0;\
42 42 }
43 43
44 44
45 45 class pluginloader
46 46 {
47 47
48 48 private:
49 49 static pluginloader* _self;
50 50 static PluginsCache* _cache;
51 51 static QStringList* _folderList;
52 52 ~pluginloader();
53 53 pluginloader();
54 54 public:
55 55
56 56 static void init();
57 57 static pluginloader* self();
58 58
59 59 static int checklibrary(const QString fileName);
60 60 static bool isvalid(QString Name);
61 61 static socexplorerplugin* newsocexplorerplugin(const QString Name);
62 62 static QString getlibTypeStr(QString Name);
63 63 static pluginT getlibType(QString Name);
64 64 static QString getlibVersion(const QString Name);
65 65 static QString getlibPIDstr(const QString Name);
66 66 static QString getlibVIDstr(const QString Name);
67 67 static int getlibPID(const QString Name);
68 68 static int getlibVID(const QString Name);
69 69 static int libcanbechild(const QString Name);
70 70 static int libcanberoot(const QString Name);
71 71 static QString getlibAuthor(const QString Name);
72 72 static QString getlibName(const QString Name);
73 73 static QString getlibDescription(const QString Name);
74 74 static QString getlibDir(const QString Name);
75 75 static QString findlib(QString name);
76 76 static QList<PluginsCacheItem *> listAvailiables(bool rescan=true);
77 77 static void scanFolders();
78 78 static void showCache(){_cache->show();}
79 79 private:
80 80 int p_checklibraryQlib(const QString fileName);
81 81 int p_checklibraryCustom(const QString fileName);
82 82 socexplorerplugin* p_newsocexplorerpluginQlib(const QString Name);
83 83 socexplorerplugin* p_newsocexplorerpluginCustom(const QString Name);
84 static QStringList readFoldersList(const QStringList confFiles);
85 84 static QString* _cacheLookup(const QString Name);
86 85 static QString _getlibName(const QString fileName);
87 86 static int _getlibPID(const QString fileName);
88 87 static int _getlibVID(const QString fileName);
89 88 };
90 89 #endif
@@ -1,164 +1,165
1 1 #include "pluginscache.h"
2 2 #include <QDebug>
3 #include <socexplorerengine.h>
3 4
4 5 PluginsCacheItem::PluginsCacheItem(const QString &fileName, const QString &path, const QString &pluginName, int VID, int PID)
5 6 {
6 7 this->fileName = new QString(fileName);
7 8 this->path = new QString(path);
8 9 this->pluginName = new QString(pluginName);
9 10 this->VID = VID;
10 11 this->PID = PID;
11 12 }
12 13
13 14 bool PluginsCacheItem::comparePluginName(const QString& pluginName)
14 15 {
15 16 return (!this->pluginName->compare(pluginName));
16 17 }
17 18
18 19 bool PluginsCacheItem::comparefileName(const QString &fileName)
19 20 {
20 21 bool same=false;
21 22 same|=!(this->fileName->compare(fileName));
22 23 same|=!(this->fileName->compare(fileName+".so"));
23 24 same|=!(this->fileName->compare("lib"+fileName+".so"));
24 25 return same;
25 26 }
26 27
27 28 bool PluginsCacheItem::comparefilePath(const QString &filePath)
28 29 {
29 30 return (!QString::compare(*this->path +"/"+*this->fileName,filePath));
30 31 }
31 32
32 33 bool PluginsCacheItem::compareIDs(int VID,int PID)
33 34 {
34 35 return (VID==this->VID && PID==this->PID);
35 36 }
36 37
37 38 bool PluginsCacheItem::compare(PluginsCacheItem *item)
38 39 {
39 40 return comparefilePath(item->getpath()+"/"+item->getfileName());
40 41 }
41 42
42 43
43 44
44 45 PluginsCache::PluginsCache(QObject* parent)
45 46 :QObject(parent)
46 47 {
47 48 this->items = new QList<PluginsCacheItem*>;
48 49 this->__view =NULL;
49 50 }
50 51
51 52
52 53 void PluginsCache::append(const QString &fileName, const QString &path, const QString &pluginName, int VID, int PID)
53 54 {
54 55 PluginsCacheItem* item=new PluginsCacheItem(fileName,path,pluginName, VID, PID);
55 56 for(int i=0;i<this->items->count();i++)
56 57 {
57 58 if(this->items->at(i)->compare(item))
58 59 {
59 qDebug()<< fileName << "already in the cache";
60 SocExplorerEngine::message("PluginsCache",fileName + " already in the cache",3);
60 61 delete item;
61 62 return;
62 63 }
63 64 }
64 qDebug()<< fileName << "added to cache";
65 SocExplorerEngine::message("PluginsCache",fileName + " added to cache",3);
65 66 this->items->append(item);
66 67 }
67 68
68 69
69 70 QString PluginsCache::first(const QString& pluginName)
70 71 {
71 72 for(int i=0;i<this->items->count();i++)
72 73 {
73 74 if(this->items->at(i)->comparePluginName(pluginName))
74 75 {
75 76 return QString(this->items->at(i)->getpath()+"/"+this->items->at(i)->getfileName());
76 77 }
77 78 if(this->items->at(i)->comparefileName(pluginName))
78 79 {
79 80 return QString(this->items->at(i)->getpath()+"/"+this->items->at(i)->getfileName());
80 81 }
81 82 if(this->items->at(i)->comparefilePath(pluginName))
82 83 {
83 84 return QString(this->items->at(i)->getpath()+"/"+this->items->at(i)->getfileName());
84 85 }
85 86
86 87 }
87 88 return QString("");
88 89 }
89 90
90 91
91 92
92 93
93 94 QString PluginsCache::first(int VID,int PID)
94 95 {
95 96 for(int i=0;i<this->items->count();i++)
96 97 {
97 98 if(this->items->at(i)->compareIDs(VID,PID))
98 99 {
99 100 return QString(this->items->at(i)->getpath()+"/"+this->items->at(i)->getfileName());
100 101 }
101 102 }
102 103 return QString("");
103 104 }
104 105
105 106
106 107
107 108 QList<PluginsCacheItem *> PluginsCache::listDrivers()
108 109 {
109 110 return *items;
110 111 }
111 112
112 113
113 114 void PluginsCache::flush()
114 115 {
115 116 PluginsCacheItem* ptr;
116 117 for(int i=0;i<this->items->count();i++)
117 118 {
118 119 ptr=this->items->at(i);
119 120 this->items->removeAt(i);
120 121 delete ptr;
121 122 }
122 123 }
123 124
124 125
125 126
126 127 void PluginsCache::show()
127 128 {
128 129 if(this->__view==NULL)this->__view = new QTableWidget(0,5);
129 130 if(!this->__view->isVisible())
130 131 {
131 132 this->__view->clear();
132 133 this->__view->setHorizontalHeaderLabels(QStringList()<<"File Name"<<"Path"<<"PluginName"<<"VID"<<"PID");
133 134 QTableWidgetItem* item;
134 135 this->__view->setRowCount(this->items->count());
135 136 for(int i=0;i<this->items->count();i++)
136 137 {
137 138 item = new QTableWidgetItem(items->at(i)->getfileName());
138 139 item->setFlags(Qt::ItemIsEnabled|Qt::ItemIsSelectable);
139 140 this->__view->setItem(i,0,item);
140 141 item = new QTableWidgetItem(items->at(i)->getpath());
141 142 item->setFlags(Qt::ItemIsEnabled|Qt::ItemIsSelectable);
142 143 this->__view->setItem(i,1,item);
143 144 item = new QTableWidgetItem(items->at(i)->getpluginName());
144 145 item->setFlags(Qt::ItemIsEnabled|Qt::ItemIsSelectable);
145 146 this->__view->setItem(i,2,item);
146 147 item = new QTableWidgetItem(QString::number(items->at(i)->getVID()));
147 148 item->setFlags(Qt::ItemIsEnabled|Qt::ItemIsSelectable);
148 149 this->__view->setItem(i,3,item);
149 150 item = new QTableWidgetItem(QString::number(items->at(i)->getPID()));
150 151 item->setFlags(Qt::ItemIsEnabled|Qt::ItemIsSelectable);
151 152 this->__view->setItem(i,4,item);
152 153 }
153 154 this->__view->resizeRowsToContents();
154 155 this->__view->resizeColumnsToContents();
155 156 this->__view->show();
156 157 }
157 158 }
158 159
159 160
160 161
161 162
162 163
163 164
164 165
@@ -1,38 +1,39
1 1 #include "unixpluginloader.h"
2 2 #include <stdio.h>
3 3 #include <QDebug>
4 #include <socexplorerengine.h>
4 5
5 6 unixPluginLoader::unixPluginLoader(const QString &libPath)
6 7 {
7 qDebug()<<"try to open "+libPath;
8 SocExplorerEngine::message("unixPluginLoader::unixPluginLoader","try to open "+libPath,3);
8 9 dlHandle = dlopen(libPath.toStdString().c_str(),RTLD_LAZY|RTLD_GLOBAL);
9 10 if(dlHandle==NULL)
10 qDebug() << "Failed"<< dlerror();
11 SocExplorerEngine::message("unixPluginLoader::unixPluginLoader",QString("Failed ") + dlerror(),3);
11 12 else
12 qDebug() << "Success";
13 SocExplorerEngine::message("unixPluginLoader::unixPluginLoader","Success " ,3);
13 14 this->libPath = libPath;
14 15 }
15 16
16 17 void *unixPluginLoader::resolve(const QString &symbol)
17 18 {
18 19 if(dlHandle!=NULL)
19 20 {
20 qDebug()<<"try to resolve "+symbol+" in "+libPath;
21 SocExplorerEngine::message("unixPluginLoader::resolve","try to resolve "+symbol+" in "+libPath ,3);
21 22 void* sym = dlsym (dlHandle, symbol.toStdString().c_str());
22 23 if(sym==NULL)
23 qDebug() << "Failed"<< dlerror();
24 SocExplorerEngine::message("unixPluginLoader::resolve",QString("Failed")+ dlerror() ,3);
24 25 else
25 qDebug() << "Success";
26 SocExplorerEngine::message("unixPluginLoader::resolve","Success",3);
26 27 return sym;
27 28 }
28 29 return NULL;
29 30 }
30 31
31 32 void unixPluginLoader::close()
32 33 {
33 34 if(dlHandle!=NULL)
34 35 {
35 36 dlclose(dlHandle);
36 qDebug() << dlerror();
37 SocExplorerEngine::message("unixPluginLoader::close",dlerror(),3);
37 38 }
38 39 }
@@ -1,264 +1,264
1 1 /*------------------------------------------------------------------------------
2 2 -- This file is a part of the SocExplorer Software
3 3 -- Copyright (C) 2014, Plasma Physics Laboratory - CNRS
4 4 --
5 5 -- This program is free software; you can redistribute it and/or modify
6 6 -- it under the terms of the GNU General Public License as published by
7 7 -- the Free Software Foundation; either version 2 of the License, or
8 8 -- (at your option) any later version.
9 9 --
10 10 -- This program is distributed in the hope that it will be useful,
11 11 -- but WITHOUT ANY WARRANTY; without even the implied warranty of
12 12 -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 13 -- GNU General Public License for more details.
14 14 --
15 15 -- You should have received a copy of the GNU General Public License
16 16 -- along with this program; if not, write to the Free Software
17 17 -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 18 -------------------------------------------------------------------------------*/
19 19 /*-- Author : Alexis Jeandet
20 20 -- Mail : alexis.jeandet@lpp.polytechnique.fr
21 21 ----------------------------------------------------------------------------*/
22 22
23 23 #include <socexplorerplugin.h>
24 24 #include <abstractbinfile.h>
25 25 #include <srec/srecfile.h>
26 26 #include <BinFile/binaryfile.h>
27 27
28 28 int socexplorerplugin::isConnected(){return this->Connected;}
29 29
30 30 QString socexplorerplugin::baseName(){return *_Name;}
31 31
32 32 int socexplorerplugin::baseAddress(){return this->BaseAddress;}
33 33
34 34 void socexplorerplugin::setBaseAddress(unsigned int baseAddress){this->BaseAddress = baseAddress;}
35 35
36 36 QString socexplorerplugin::instanceName()
37 37 {
38 38 return this->_instanceName;
39 39 }
40 40
41 41 int socexplorerplugin::registermenu(QMenu *menu)
42 42 {
43 43 this->menu = menu->addMenu(this->_instanceName);
44 44 this->closeAction = this->menu->addAction(tr("Close plugin"));
45 45 QObject::connect(this->closeAction,SIGNAL(triggered()),this,SLOT(closeMe()));
46 46 this->ChildsMenu = this->menu->addMenu(QString("Childs"));
47 47 for(int i=0;i<this->childs.count();i++)
48 48 {
49 49 this->childs.at(i)->registermenu(this->ChildsMenu);
50 50 }
51 51 emit this->registerObject((QObject*)this,this->instanceName());
52 52 return 0;
53 53 }
54 54
55 55 void socexplorerplugin::postInstantiationTrigger()
56 56 {
57 57 return;
58 58 }
59 59
60 60 unsigned int socexplorerplugin::Write(unsigned int *Value, unsigned int count, unsigned int address)
61 61 {
62 62 if(parent!=NULL)
63 63 {
64 64 return parent->Write(Value,count,address);
65 65 }
66 66 return 0;
67 67 }
68 68
69 69 unsigned int socexplorerplugin::Read(unsigned int *Value, unsigned int count, unsigned int address)
70 70 {
71 71 if(parent!=NULL)
72 72 {
73 73 return parent->Read(Value,count,address);
74 74 }
75 75 return 0;
76 76 }
77 77
78 78 QVariantList socexplorerplugin::Read(unsigned int address,unsigned int count)
79 79 {
80 80 unsigned int data[count];
81 81 QVariantList result;
82 82 Read(data,count,address);
83 83 for(unsigned int i = 0;i<count;i++)
84 84 {
85 85 result.append(QVariant((int)data[i]));
86 86 }
87 87 return result;
88 88 }
89 89 void socexplorerplugin::Write(unsigned int address,QList<QVariant> dataList)
90 90 {
91 91 unsigned int data[dataList.count()];
92 92 for(int i = 0;i<dataList.count();i++)
93 93 {
94 94 data[i] = (unsigned int)dataList.at(i).toUInt();
95 95 }
96 96 Write(data,dataList.count(),address);
97 97 }
98 98
99 99
100 100
101 101 void socexplorerplugin::closeMe(){emit this->closePlugin(this);}
102 102
103 103 void socexplorerplugin::activate(bool flag){this->setEnabled(flag);emit this->activateSig(flag);}
104 104
105 105 void socexplorerplugin::setInstanceName(const QString &newName)
106 106 {
107 107 this->_instanceName = newName;
108 108 if(this->menu)
109 109 this->menu->setTitle(this->_instanceName);
110 110 this->setWindowTitle(newName);
111 this->setObjectName(newName);
111 112 }
112 113
113 114 bool socexplorerplugin::dumpMemory(unsigned int address, unsigned int count, QString file)
114 115 {
115 116 unsigned int* buffer = (unsigned int*)malloc(count*sizeof(unsigned int));
116 117 if(buffer!=NULL)
117 118 {
118 119 this->Read(buffer,count,address);
119 120 QFile outfile(file);
120 121 if (!outfile.open(QIODevice::ReadWrite | QIODevice::Text))
121 122 return false;
122 123 QTextStream out(&outfile);
123 124 for(int i=0;(unsigned int)i<count;i++)
124 125 out << "0x"+QString::number(address+(i*4),16) + ": 0x" + QString::number(buffer[i],16) + "\n";
125 126 free(buffer);
126 127 out.flush();
127 128 outfile.close();
128 129 return true;
129 130 }
130 131 return false;
131 132 }
132 133
133 134 bool socexplorerplugin::memSet(unsigned int address, int value, unsigned int count)
134 135 {
135 136 unsigned int* buffer = (unsigned int*)malloc(count*sizeof(unsigned int));
136 137 if(buffer!=NULL)
137 138 {
138 139 memset((void*)buffer,value,count*sizeof(unsigned int));
139 140 this->Write(buffer,count,address);
140 141 free(buffer );
141 142 return true;
142 143 }
143 144 return false;
144 145 }
145 146
146 147 bool socexplorerplugin::loadbin(unsigned int address, QString file)
147 148 {
148 149 QFile infile(file);
149 150 if (!infile.open(QIODevice::ReadOnly))
150 151 return false;
151 152 uint32_t* buffer = (uint32_t*)malloc(infile.size());
152 153 if(buffer!=NULL)
153 154 {
154 155 infile.read((char*)buffer,infile.size());
155 156 for(int i=0;i<(infile.size()/4);i++)
156 157 {
157 158 buffer[i] = socexplorerBswap32(buffer[i]);
158 159 }
159 160 this->Write(buffer,infile.size()/4,address);
160 161 free(buffer);
161 162 return true;
162 163 }
163 164 return false;
164 165
165 166 }
166 167
167 168 bool socexplorerplugin::loadfile(abstractBinFile *file)
168 169 {
169 170 if(file->isopened())
170 171 {
171 172 QList<codeFragment*> fragments= file->getFragments();
172 173 for(int i=0;i<fragments.count();i++)
173 174 {
174 175 int size = fragments.at(i)->size/4;
175 176 // TODO fixme, should be the oposite
176 177 #if __BYTE_ORDER == __LITTLE_ENDIAN
177 178 if(!file->litleendian)
178 179 {
179 180 uint32_t* buffer = (uint32_t*)malloc(fragments.at(i)->size);
180 181 memcpy(buffer,fragments.at(i)->data,fragments.at(i)->size);
181 182 if(buffer!=NULL)
182 183 {
183 184 for(int l=0;l<(size);l++)
184 185 {
185 186 buffer[l] = socexplorerBswap32(buffer[l]);
186 187 }
187 188 this->Write(buffer,size,fragments.at(i)->address);
188 189 free(buffer);
189 190 }
190 191 }
191 192 else
192 193 {
193 194 this->Write((uint32_t*) fragments.at(i)->data,size,fragments.at(i)->address);
194 195 }
195 196 #elif __BYTE_ORDER == __BIG_ENDIAN
196 197 if(file->litleendian)
197 198 {
198 199 uint32_t* buffer = (uint32_t*)malloc(fragments.at(i)->size);
199 200 memcpy(buffer,fragments.at(i)->data,fragments.at(i)->size);
200 201 if(buffer!=NULL)
201 202 {
202 203 for(int l=0;l<(size);l++)
203 204 {
204 205 buffer[l] = socexplorerBswap32(buffer[l]);
205 206 }
206 207 this->Write(buffer,size,fragments.at(i)->address);
207 208 free(buffer);
208 209 }
209 210 }
210 211 else
211 212 {
212 213 this->Write((uint32_t*) fragments.at(i)->data,size,fragments.at(i)->address);
213 214 }
214 215 #endif
215 216 }
216 217 }
217 218 return true;
218 219 }
219 220
220 221 bool socexplorerplugin::dumpMemory(unsigned int address, unsigned int count, QString file, const QString &format)
221 222 {
222 223 unsigned int* buffer = (unsigned int*)malloc(count*sizeof(unsigned int));
223 224 if(buffer!=NULL)
224 225 {
225 226 this->Read(buffer,count,address);
226 227 if(!format.compare("srec",Qt::CaseInsensitive))
227 228 {
228 229 //need to convert from in memory endianness to file endianness
229 230 //SREC is always big endian
230 231 #if __BYTE_ORDER == __LITTLE_ENDIAN
231 232 for(int l=0;l<(count);l++)
232 233 {
233 234 buffer[l] = socexplorerBswap32(buffer[l]);
234 235 }
235 236 #elif __BYTE_ORDER == __BIG_ENDIAN
236 237
237 238 #endif
238 239 codeFragment fragment((char*)buffer,count*4,address);
239 240 srecFile::toSrec(QList<codeFragment*>()<<&fragment,file);
240 241 }
241 242 if(!format.compare("bin",Qt::CaseInsensitive))
242 243 {
243 244 //beware this format is not portable from a big endian host to a litle endian one
244 245 codeFragment fragment((char*)buffer,count*4,address);
245 246 binaryFile::toBinary(QList<codeFragment*>()<<&fragment,file);
246 247 }
247 248 if(!format.compare("hexa",Qt::CaseInsensitive))
248 249 {
249 250 QFile outfile(file);
250 251 if (!outfile.open(QIODevice::ReadWrite | QIODevice::Text))
251 252 return false;
252 253 QTextStream out(&outfile);
253 254 for(int i=0;(unsigned int)i<count;i++)
254 255 out << "0x"+QString::number(address+(i*4),16) + ": 0x" + QString::number(buffer[i],16) + "\n";
255 256 free(buffer);
256 257 out.flush();
257 258 outfile.close();
258 259 }
259 260 return true;
260 261 }
261 262 return false;
262 263 }
263 264
264
@@ -1,181 +1,182
1 1 /*------------------------------------------------------------------------------
2 2 ███████╗ ██████╗ ██████╗ ███████╗██╗ ██╗██████╗ ██╗ ██████╗ ██████╗ ███████╗██████╗
3 3 ██╔════╝██╔═══██╗██╔════╝ ██╔════╝╚██╗██╔╝██╔══██╗██║ ██╔═══██╗██╔══██╗██╔════╝██╔══██╗
4 4 ███████╗██║ ██║██║ █████╗ ╚███╔╝ ██████╔╝██║ ██║ ██║██████╔╝█████╗ ██████╔╝
5 5 ╚════██║██║ ██║██║ ██╔══╝ ██╔██╗ ██╔═══╝ ██║ ██║ ██║██╔══██╗██╔══╝ ██╔══██╗
6 6 ███████║╚██████╔╝╚██████╗ ███████╗██╔╝ ██╗██║ ███████╗╚██████╔╝██║ ██║███████╗██║ ██║
7 7 ╚══════╝ ╚═════╝ ╚═════╝ ╚══════╝╚═╝ ╚═╝╚═╝ ╚══════╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝
8 8
9 9 -- This file is a part of the SOC Explorer Software
10 10 -- Copyright (C) 2011, Plasma Physics Laboratory - CNRS
11 11 --
12 12 -- This program is free software; you can redistribute it and/or modify
13 13 -- it under the terms of the GNU General Public License as published by
14 14 -- the Free Software Foundation; either version 2 of the License, or
15 15 -- (at your option) any later version.
16 16 --
17 17 -- This program is distributed in the hope that it will be useful,
18 18 -- but WITHOUT ANY WARRANTY; without even the implied warranty of
19 19 -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 20 -- GNU General Public License for more details.
21 21 --
22 22 -- You should have received a copy of the GNU General Public License
23 23 -- along with this program; if not, write to the Free Software
24 24 -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 25 -------------------------------------------------------------------------------*/
26 26 /*-- Author : Alexis Jeandet
27 27 -- Mail : alexis.jeandet@lpp.polytechnique.fr
28 28 ----------------------------------------------------------------------------*/
29 29 #ifndef SOCEXPLORERPLUGIN_H
30 30 #define SOCEXPLORERPLUGIN_H
31 31 #include <QWidget>
32 32 #include <QAction>
33 33 #include <QDockWidget>
34 34 #include <QMainWindow>
35 35 #include <QList>
36 36 #include <QMenu>
37 37 #include <socexplorer.h>
38 38 #include <QObject>
39 39 #include <QVariant>
40 40 #include <QVariantList>
41 41 #include <malloc.h>
42 42 #include <QFile>
43 43 #include <stdint.h>
44 44 #include <QTextStream>
45 45 #include <abstractbinfile.h>
46 46 #ifndef driver_Name
47 47 #define driver_Name "Plugin"
48 48 #endif
49 49 #ifndef driver_Author
50 50 #define driver_Author "No Author"
51 51 #endif
52 52 #ifndef driver_Version
53 53 #define driver_Version "0.0.0"
54 54 #endif
55 55 #ifndef driver_Description
56 56 #define driver_Description "No description."
57 57 #endif
58 58 #ifndef driver_can_be_root
59 59 #define driver_can_be_root 0
60 60 #endif
61 61 #ifndef driver_can_be_child
62 62 #define driver_can_be_child 0
63 63 #endif
64 64 #ifndef driver_VID
65 65 #define driver_VID 0
66 66 #endif
67 67 #ifndef driver_PID
68 68 #define driver_PID 0
69 69 #endif
70 70
71 71 #if defined(SOCEXPLORER_SDK_BUILD)
72 72 # define SOCEXPLORER_SDK_EXPORT Q_DECL_EXPORT
73 73 #else
74 74 # define SOCEXPLORER_SDK_EXPORT Q_DECL_IMPORT
75 75 #endif
76 76
77 77
78 78 //! socexplorerplugin is the base class for any SocExplorer plugin, it gives a standard interface to communicate
79 79 //! between each plugins and to interact with SocExplorer software.
80 80
81 81 class SOCEXPLORER_SDK_EXPORT socexplorerplugin : public QDockWidget
82 82 {
83 83 Q_OBJECT
84 84 public:
85 85 //! Default plugin constructor, any plugin should call this constructor.
86 86 socexplorerplugin(QWidget *parent = 0,bool createPyObject=true):QDockWidget(parent)
87 87 {
88 Q_UNUSED(createPyObject)
88 89 closeAction=NULL;
89 90 menu=NULL;
90 91 ChildsMenu=NULL;
91 92 this->Connected = false;
92 93 this->setFeatures(QDockWidget::DockWidgetMovable|QDockWidget::DockWidgetFloatable|QDockWidget::DockWidgetVerticalTitleBar);
93 94 _Name = new QString(driver_Name);
94 95 _Author = new QString(driver_Author);
95 96 _Version = new QString(driver_Version);
96 97 _Description = new QString(driver_Description);
97 98 _canBeChild = driver_can_be_child;
98 99 _canBeRoot = driver_can_be_root;
99 100 _VID = driver_VID;
100 101 _PID = driver_PID;
101 102 }
102 103 //! Tells if the plugin is connected, it is used to enable or disable all childrens interfaces.
103 104 virtual int isConnected();
104 105 //! Gives the associated Vendor IDentifier, usefull to automatically associate plugins with found
105 106 //! hardware while board enumeration.
106 107 virtual int VID(){return _PID;}
107 108 //! Gives the associated Product IDentifier, usefull to automatically associate plugins with found
108 109 //! hardware while board enumeration.
109 110 virtual int PID(){return _VID;}
110 111 //! Gives the plugin's base name, usefull to automatically generate instance name.
111 112 virtual QString baseName();
112 113 //! Gives the base address of the current instance, for example if your plugin is supposed to drive
113 114 //! an UART it will correspond to the address of it's first register. This address have at least to
114 115 //! be set by SocExplorer and it can be user accessible if you want.
115 116 virtual int baseAddress();
116 117 //! Sets the base address of the current instance, for example if your plugin is supposed to drive
117 118 //! an UART it will correspond to the address of it's first register. This address have at least to
118 119 //! be set by SocExplorer and it can be user accessible if you want.
119 120 virtual void setBaseAddress(unsigned int baseAddress);
120 121
121 122 QList<socexplorerplugin*> childs;
122 123 socexplorerplugin* parent;
123 124 QAction* closeAction;
124 125 QString instanceName();
125 126 QString instance(){return instanceName();}
126 127 QMenu* menu;
127 128 QMenu* ChildsMenu;
128 129
129 130 signals:
130 131 //! Signal emited each time the plugin is about to be closed.
131 132 void closePlugin(socexplorerplugin* driver);
132 133 void activateSig(bool flag);
133 134 void registerObject(QObject* object,const QString& instanceName);
134 135
135 136 public slots:
136 137 virtual int registermenu(QMenu* menu);
137 138 virtual void postInstantiationTrigger();
138 139 //! Write slot this is the way your children plugins ask you for writing data.
139 140 //! If your plugin is supposed to have childern drivers you should implement this methode.
140 141 //! By default this methode forward the write request to the parent plugin.
141 142 //! \param Value Pointer the data buffer.
142 143 //! \param count Number of 32 bits words you should to write.
143 144 //! \param address Address from where you should to start to write.
144 145 //! \return Quantity of 32 bits words writtens.
145 146 virtual unsigned int Write(unsigned int* Value, unsigned int count,unsigned int address);
146 147 //! Read slot this is the way your children plugins ask you for reading data.
147 148 //! If your plugin is supposed to have childern drivers you should implement this methode.
148 149 //! By default this methode forward the write request to the parent plugin.
149 150 //! \param Value Pointer the data buffer.
150 151 //! \param count Number of 32 bits words you should to read.
151 152 //! \param address Address from where you should to start to read.
152 153 //! \return Quantity of 32 bits words read.
153 154 virtual unsigned int Read(unsigned int* Value, unsigned int count,unsigned int address);
154 155 virtual void closeMe();
155 156 virtual void activate(bool flag);
156 157 virtual void setInstanceName(const QString& newName);
157 158
158 159 virtual bool dumpMemory(unsigned int address,unsigned int count,QString file);
160 virtual bool dumpMemory(unsigned int address,unsigned int count,QString file,const QString& format);
159 161 virtual bool memSet(unsigned int address,int value, unsigned int count);
160 162 virtual bool loadbin(unsigned int address,QString file);
161 163 virtual bool loadfile(abstractBinFile* file);
162 virtual bool dumpMemory(unsigned int address,unsigned int count,QString file,const QString& format);
163 164 QVariantList Read(unsigned int address, unsigned int count);
164 165 void Write(unsigned int address, QList<QVariant> dataList);
165 166 socexplorerplugin* parentPlugin(){return this->parent;}
166 167 socexplorerplugin* toPlugin(){return (socexplorerplugin*)this;}
167 168 protected:
168 169 int BaseAddress;
169 170 bool Connected;
170 171 QString* _Name;
171 172 QString* _Author;
172 173 QString* _Version;
173 174 QString* _Description;
174 175 QString _instanceName;
175 176 int _canBeChild;
176 177 int _canBeRoot;
177 178 int _VID;
178 179 int _PID;
179 180 };
180 181
181 182 #endif // SOCEXPLORERPLUGIN_H
@@ -1,371 +1,434
1 1 /*------------------------------------------------------------------------------
2 2 -- This file is a part of the SocExplorer Software
3 3 -- Copyright (C) 2011, Plasma Physics Laboratory - CNRS
4 4 --
5 5 -- This program is free software; you can redistribute it and/or modify
6 6 -- it under the terms of the GNU General Public License as published by
7 7 -- the Free Software Foundation; either version 2 of the License, or
8 8 -- (at your option) any later version.
9 9 --
10 10 -- This program is distributed in the hope that it will be useful,
11 11 -- but WITHOUT ANY WARRANTY; without even the implied warranty of
12 12 -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 13 -- GNU General Public License for more details.
14 14 --
15 15 -- You should have received a copy of the GNU General Public License
16 16 -- along with this program; if not, write to the Free Software
17 17 -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 18 -------------------------------------------------------------------------------*/
19 19 /*-- Author : Alexis Jeandet
20 20 -- Mail : alexis.jeandet@lpp.polytechnique.fr
21 21 ----------------------------------------------------------------------------*/
22 22 #include "socexplorerproxy.h"
23 23 #include <pluginmanagerWDGT.h>
24 24 #include <socexplorerengine.h>
25 25 #include <pluginloader.h>
26 26 #include <socexplorerplugin.h>
27 27
28 28 socexplorerproxy* socexplorerproxy::_self=NULL;
29 29 QMainWindow* socexplorerproxy::mainWindow=NULL;
30 30 QList<socexplorerplugin*>* socexplorerproxy::drivers=NULL;
31 31 QList<socexplorerplugin*>* socexplorerproxy::linearDriverList=NULL;
32 32 socexplorerplugin* socexplorerproxy::root=NULL;
33 33 socexplorerplugin* socexplorerproxy::parent=NULL;
34 34 PluginsCache* socexplorerproxy::cache=NULL;
35 QStringList* socexplorerproxy::linearDriverPathList=NULL;
35 36
36 37 socexplorerproxy::socexplorerproxy(QObject *parent) :
37 38 QObject(parent)
38 39 {
39 40 cache = new PluginsCache;
40 41 drivers = new QList<socexplorerplugin*>;
41 42 linearDriverList=new QList<socexplorerplugin*>;
43 linearDriverPathList=new QStringList;
42 44 root = NULL;
43 45 }
44 46
45 47
46 48 socexplorerproxy::socexplorerproxy(QMainWindow *Mainwindow, QObject *parent):
47 49 QObject(parent)
48 50 {
49 51 mainWindow = Mainwindow;
50 52 cache = new PluginsCache;
51 53 drivers = new QList<socexplorerplugin*>;
52 54 linearDriverList=new QList<socexplorerplugin*>;
55 linearDriverPathList=new QStringList;
53 56 root = NULL;
54 57 }
55 58
56 59
57 60 void socexplorerproxy::init()
58 61 {
59 62 if(!_self)
60 63 {
61 64 _self = new socexplorerproxy();
62 65 mainWindow = NULL;
63 66 }
64 67
65 68 }
66 69
67 70 void socexplorerproxy::setMainWindow(QMainWindow *Mainwindow)
68 71 {
69 72 if(!_self)init();
70 73 mainWindow=Mainwindow;
71 74 }
72 75
73 76 void socexplorerproxy::loadSysDriver(const QString name)
74 77 {
75 78 if(!_self)init();
76 79 if(pluginloader::libcanberoot(name))
77 80 {
78 81 socexplorerplugin* driver = pluginloader::newsocexplorerplugin(name);
79 82 QString driverName = _self->getinstanceName(driver->baseName());
80 loadSysDriver(driver,driverName);
83 loadSysDriver(driver,driverName,name);
81 84 }
82 85 }
83 86
84 87 void socexplorerproxy::loadSysDriver(const QString name, const QString instanceName)
85 88 {
86 89 if(!_self)init();
87 90 if(pluginloader::libcanberoot(name) && !_self->instanceExists(instanceName))
88 91 {
89 92 socexplorerplugin* driver = pluginloader::newsocexplorerplugin(name);
90 loadSysDriver(driver,instanceName);
93 loadSysDriver(driver,instanceName,name);
91 94 }
92 95 }
93 96
94 97
95 void socexplorerproxy::loadSysDriver(socexplorerplugin *driver, const QString instanceName)
98 void socexplorerproxy::loadSysDriver(socexplorerplugin *driver, const QString instanceName, const QString path)
96 99 {
97 100 if(!_self)init();
98 101 driver->setInstanceName(instanceName);
99 102 driver->parent = NULL;
100 103 drivers->append(driver);
101 104 linearDriverList->append(driver);
105 if(path.isEmpty())
106 linearDriverPathList->append(driver->baseName());
107 else
108 linearDriverPathList->append(path);
102 109 connectChildToProxy(driver);
103 110 emit _self->addPluginGUI(driver);
104 111 emit _self->clearMenu();
105 112 emit _self->treeChanged(QList<socexplorerplugin*>(*drivers));
106 113 SocExplorerEngine::addSOC(driver);
107 114 driver->postInstantiationTrigger();
108 115 }
109 116
110 117 void socexplorerproxy::loadChildSysDriver(socexplorerplugin *parent, const QString child)
111 118 {
112 119 if(!_self)init();
113 120 if(pluginloader::libcanbechild(child))
114 121 {
115 122 socexplorerplugin* driver = pluginloader::newsocexplorerplugin(child);
116 123 QString driverName = _self->getinstanceName(driver->baseName());
117 124 bool ok=true;
118 125 if(ok)
119 126 {
120 if(parent!=NULL)_self->loadSysDriverToParent(driver,parent,driverName);
127 if(parent!=NULL)_self->loadSysDriverToParent(driver,parent,driverName,child);
121 128 }
122 129 }
123 130 }
124 131
125 132 void socexplorerproxy::loadSysDriverToParent(const QString name,const QString ParentInst)
126 133 {
127 134 if(!_self)init();
128 135 if(pluginloader::libcanbechild(name))
129 136 {
130 137 socexplorerplugin* driver = pluginloader::newsocexplorerplugin(name);
131 138 QString driverName = _self->getinstanceName(driver->baseName());
132 139 bool ok=true;
133 140 if(ok)
134 141 {
135 142 socexplorerplugin* parent=_self->getSysDriver(ParentInst);
136 if(parent!=NULL)loadSysDriverToParent(driver,parent,driverName);
143 if(parent!=NULL)loadSysDriverToParent(driver,parent,driverName,name);
137 144 }
138 145 }
139 146 }
140 147
141 148
142 149 void socexplorerproxy::loadSysDriverToParent(const QString name,const QString instanceName,const QString ParentInst)
143 150 {
144 151 if(!_self)init();
145 152 if(pluginloader::libcanbechild(name) && !_self->instanceExists(instanceName))
146 153 {
147 154 socexplorerplugin* driver = pluginloader::newsocexplorerplugin(name);
148 155 bool ok=true;
149 156 if(ok)
150 157 {
151 158 socexplorerplugin* parent=_self->getSysDriver(ParentInst);
152 if(parent!=NULL)loadSysDriverToParent(driver,parent,instanceName);
159 if(parent!=NULL)loadSysDriverToParent(driver,parent,instanceName,name);
153 160 }
154 161 }
155 162 }
156 163
157 void socexplorerproxy::loadSysDriverToParent(socexplorerplugin *driver,socexplorerplugin *parent, const QString instanceName)
164 void socexplorerproxy::loadSysDriverToParent(socexplorerplugin *driver,socexplorerplugin *parent, const QString instanceName,const QString path)
158 165 {
159 166 if(!_self)init();
160 167 linearDriverList->append(driver);
168 if(path.isEmpty())
169 linearDriverPathList->append(driver->baseName());
170 else
171 linearDriverPathList->append(path);
161 172 driver->parent = parent;
162 173 driver->setInstanceName(instanceName);
163 174 parent->childs.append(driver);
164 175 connectChildToProxy(driver);
165 176 connectChildToParent(parent,driver);
166 177 emit _self->clearMenu();
167 178 emit _self->addPluginGUI(driver);
168 179 emit _self->treeChanged(QList<socexplorerplugin*>(*drivers));
169 180 driver->postInstantiationTrigger();
170 181 }
171 182
172 183
173 184 void socexplorerproxy::changeSysDriverInstName(const QString instanceName)
174 185 {
175 186 Q_UNUSED(instanceName)
176 187 }
177 188
178 189 void socexplorerproxy::changeSysDriverInstName(const QString newinstanceName, const QString previnstanceName)
179 190 {
180 191 if(!_self)init();
181 192 socexplorerplugin*temp=_self->getSysDriver(previnstanceName);
182 193 if(temp!=NULL)
183 194 {
184 195 if(NULL!=_self->getSysDriver(newinstanceName))
185 196 {
186 197 emit _self->treeChanged(QList<socexplorerplugin*>(*drivers));
187 198 return;
188 199 }
189 200 temp->setInstanceName(newinstanceName);
190 201 }
191 202 emit _self->treeChanged(QList<socexplorerplugin*>(*drivers));
192 203 }
193 204
194 205
195 206 void socexplorerproxy::connectChildToParent(socexplorerplugin *parent, socexplorerplugin *child)
196 207 {
197 208 if(!_self)init();
198 209 connect(parent,SIGNAL(activateSig(bool)),child,SLOT(activate(bool)));
199 210 child->activate(parent->isConnected());
200 211 }
201 212
202 213 void socexplorerproxy::disconnectChildToParent(socexplorerplugin *child)
203 214 {
204 215 if(!_self)init();
205 216 disconnect(child->parent,SIGNAL(activateSig(bool)),child,SLOT(activate(bool)));
206 217 }
207 218
208 219
209 220 void socexplorerproxy::connectChildToProxy(socexplorerplugin *child)
210 221 {
211 222 if(!_self)init();
212 223 connect(child,SIGNAL(registerObject(QObject*,QString)),_self,SIGNAL(registerObject(QObject*,QString)));
213 224 connect(child,SIGNAL(closePlugin(socexplorerplugin*)),_self,SLOT(closeSysDriver(socexplorerplugin*)));
214 225 }
215 226
216 227 void socexplorerproxy::disconnectChildToProxy(socexplorerplugin *child)
217 228 {
218 229 if(!_self)init();
219 230 disconnect(child,SIGNAL(registerObject(QObject*,QString)),_self,SIGNAL(registerObject(QObject*,QString)));
220 231 disconnect(child,SIGNAL(closePlugin(socexplorerplugin*)),_self,SLOT(closeSysDriverFromDriver(socexplorerplugin*)));
221 232 }
222 233
223 234 QString socexplorerproxy::getinstanceName(const QString& baseName)
224 235 {
225 236 if(!_self)init();
226 237 int i=0;
227 238 QString name;
228 239 bool validName = false;
229 240 while(!validName)
230 241 {
231 242 name.clear();
232 243 name.append(baseName+QString::number(i));
233 244 validName = instanceNameIsValid(name);
234 245 i++;
235 246 }
236 247 return name;
237 248 }
238 249
239 250 void socexplorerproxy::changeSysDriverInstName(socexplorerplugin* driver)
240 251 {
241 252 if(!_self)init();
242 253 QString prevName(driver->instanceName());
243 254 }
244 255
245 256 bool socexplorerproxy::instanceNameIsValid(const QString& instanceName)
246 257 {
247 258 if(!_self)init();
248 259 for(int k=0;k<linearDriverList->count();k++)
249 260 {
250 261 if(!linearDriverList->at(k)->instanceName().compare(instanceName))
251 262 return false;
252 263 }
253 264 return true;
254 265 }
255 266
256 267 socexplorerplugin *socexplorerproxy::findPlugin(const QString &instanceName)
257 268 {
258 269 if(!_self)init();
259 270 for(int k=0;k<linearDriverList->count();k++)
260 271 {
261 272 if(!linearDriverList->at(k)->instanceName().compare(instanceName))
262 273 return linearDriverList->at(k);
263 274 }
264 275 return NULL;
265 276 }
266 277
278 QStringList socexplorerproxy::getPluginsList()
279 {
280 if(!_self)init();
281 QStringList result;
282 socexplorerplugin* plugin;
283 for(int i=0; i<linearDriverList->count();i++)
284 {
285 QString parent="";
286 plugin=linearDriverList->at(i);
287 if(plugin->parent)parent=plugin->parent->instanceName();
288 result.append(linearDriverList->at(i)->instanceName()+":"+parent+":"+linearDriverPathList->at(i));
289 }
290 return result;
291 }
292
293 bool socexplorerproxy::loadPluginsList(QStringList plugins)
294 {
295 if(!_self)init();
296 QString plugin;
297 int lastLoadedPlugins=-1;
298 QStringList loadedPlugins;
299 while(plugins.count() && lastLoadedPlugins!=loadedPlugins.count())
300 {
301 lastLoadedPlugins=loadedPlugins.count();
302 for (int i = 0; i < plugins.count(); i++)
303 {
304 plugin=plugins[i];
305 QStringList args=plugin.split(':',QString::KeepEmptyParts);
306 if(args.count()==3)
307 {
308 if(args[1].isEmpty())
309 {
310 _self->loadSysDriver(args[2],args[0]);
311 loadedPlugins.append(args[0]);
312 plugins.removeAt(i);
313 }
314 else if(loadedPlugins.contains(args[1]))
315 {
316 _self->loadSysDriverToParent(args[2],args[0],args[1]);
317 loadedPlugins.append(args[0]);
318 plugins.removeAt(i);
319 }
320 }
321 else
322 {
323 plugins.removeAt(i);
324 }
325 }
326 }
327 }
328
267 329 bool socexplorerproxy::instanceExists(const QString &instanceName)
268 330 {
269 331 return !socexplorerproxy::instanceNameIsValid(instanceName);
270 332 }
271 333
272 334 void socexplorerproxy::close()
273 335 {
274 336 if(!_self)init();
275 337 socexplorerplugin* tmpPtr;
276 338 while(drivers->count()>0)
277 339 {
278 340 tmpPtr = drivers->last();
279 341 drivers->removeLast();
280 342 _self->closeSysDriver(tmpPtr);
281 343 }
282 344 if(root!=NULL)
283 345 {
284 346 _self->closeSysDriver(root);
285 347 }
286 348
287 349 }
288 350
289 351 socexplorerplugin* socexplorerproxy::getSysDriver(const QString instanceName)
290 352 {
291 353 if(!_self)init();
292 354 for(int i=0;i<linearDriverList->count();i++)
293 355 {
294 356 if(!linearDriverList->at(i)->instanceName().compare(instanceName))
295 357 return linearDriverList->at(i);
296 358 }
297 359 return NULL;
298 360 }
299 361
300 362
301 363 void socexplorerproxy::closeSysDriver(const QString instanceName)
302 364 {
303 365 if(!_self)init();
304 366 closeSysDriver(getSysDriver(instanceName),false);
305 367 }
306 368
307 369 void socexplorerproxy::closeSysDriver(socexplorerplugin *driver, bool recursive)
308 370 {
309 371 if(!_self)init();
310 372 if(driver!=NULL)
311 373 {
312 374 emit _self->removePluginGUI(driver);
313 375 if(driver->parent==NULL)SocExplorerEngine::removeSOC(driver);
314 376 while(driver->childs.count()!=0)closeSysDriver(driver->childs.first());
377 linearDriverPathList->removeAt(linearDriverList->indexOf(driver));
315 378 linearDriverList->removeOne(driver);
316 379 if(driver->parent!= NULL)
317 380 {
318 381 driver->parent->childs.removeOne(driver); //Have parent so it's a child
319 382 disconnectChildToParent(driver);
320 383 disconnectChildToProxy(driver);
321 384 delete driver;
322 385 }
323 386 else
324 387 {
325 388 drivers->removeOne(driver);
326 389 disconnectChildToProxy(driver);
327 390 delete driver;
328 391 }
329 392 if(!recursive)
330 393 {
331 394 emit _self->clearMenu();
332 395 emit _self->registermenu(mainWindow);
333 396 emit _self->treeChanged(QList<socexplorerplugin*>(*drivers));
334 397 }
335 398 }
336 399
337 400 }
338 401
339 402 void socexplorerproxy::geteplugintree()
340 403 {
341 404 if(!_self)init();
342 405 emit _self->treeChanged(QList<socexplorerplugin*>(*drivers));
343 406 }
344 407
345 408 void socexplorerproxy::closeSysDriverFromDriver(socexplorerplugin *driver)
346 409 {
347 410 if(!_self)init();
348 411 emit _self->closeSysDriverSig(driver);
349 412 }
350 413
351 414 void socexplorerproxy::updateText()
352 415 {
353 416 if(!_self)init();
354 417 emit _self->clearMenu();
355 418 emit _self->registermenu(mainWindow);
356 419 }
357 420
358 421
359 422
360 423
361 424
362 425 void socexplorerproxy::makeMenu(QMenu* menu)
363 426 {
364 427 if(!_self)init();
365 428 for(int i=0;i<drivers->count();i++)
366 429 {
367 430 drivers->at(i)->registermenu(menu);
368 431 }
369 432 }
370 433
371 434
@@ -1,103 +1,106
1 1 /*------------------------------------------------------------------------------
2 2 -- This file is a part of the SocExplorer Software
3 3 -- Copyright (C) 2011, Plasma Physics Laboratory - CNRS
4 4 --
5 5 -- This program is free software; you can redistribute it and/or modify
6 6 -- it under the terms of the GNU General Public License as published by
7 7 -- the Free Software Foundation; either version 2 of the License, or
8 8 -- (at your option) any later version.
9 9 --
10 10 -- This program is distributed in the hope that it will be useful,
11 11 -- but WITHOUT ANY WARRANTY; without even the implied warranty of
12 12 -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 13 -- GNU General Public License for more details.
14 14 --
15 15 -- You should have received a copy of the GNU General Public License
16 16 -- along with this program; if not, write to the Free Software
17 17 -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 18 -------------------------------------------------------------------------------*/
19 19 /*-- Author : Alexis Jeandet
20 20 -- Mail : alexis.jeandet@lpp.polytechnique.fr
21 21 ----------------------------------------------------------------------------*/
22 22 #ifndef SOCEXPLORERPROXY_H
23 23 #define SOCEXPLORERPROXY_H
24 24
25 25 #include <QObject>
26 26 #include <QString>
27 27 #include <QList>
28 28 #include "pluginscache.h"
29 29 #include <socexplorerplugin.h>
30 30 #include <socexplorerplugininterface.h>
31 31 #include <QInputDialog>
32 32 #include <QtGlobal>
33 33
34 34 #if defined(SOCEXPLORER_SDK_BUILD)
35 35 # define SOCEXPLORER_SDK_EXPORT Q_DECL_EXPORT
36 36 #else
37 37 # define SOCEXPLORER_SDK_EXPORT Q_DECL_IMPORT
38 38 #endif
39 39
40 40 class SOCEXPLORER_SDK_EXPORT socexplorerproxy : public QObject
41 41 {
42 42 Q_OBJECT
43 43 private:
44 44 socexplorerproxy(QObject *parent = 0);
45 45 socexplorerproxy(QMainWindow* Mainwindow,QObject *parent = 0);
46 46 static socexplorerproxy* _self;
47 47 public:
48 48 static socexplorerproxy* self(){if(!_self)init(); return _self;}
49 49 static void init();
50 50 static void setMainWindow(QMainWindow* Mainwindow);
51 51 static void connectChildToParent(socexplorerplugin* parent, socexplorerplugin* child);
52 52 static void connectChildToProxy(socexplorerplugin* child);
53 53 static void disconnectChildToParent(socexplorerplugin* child);
54 54 static void disconnectChildToProxy(socexplorerplugin* child);
55 55 static bool instanceNameIsValid(const QString& instanceName);
56 56 static socexplorerplugin* findPlugin(const QString &instanceName);
57 static QStringList getPluginsList();
58 static bool loadPluginsList( QStringList plugins);
57 59
58 60 QT_ENSURE_STACK_ALIGNED_FOR_SSE static void loadChildSysDriver(socexplorerplugin* parent,const QString child);
59 61
60 62 signals:
61 63 void addPluginGUI(QDockWidget* plugin);
62 64 void removePluginGUI(QDockWidget* plugin);
63 65 int registermenu(QMainWindow* menuHolder);
64 66 void clearMenu();
65 67 QStringList findDrivers(int VID,int PID);
66 68 void rootDriverAdded(socexplorerplugin* driver);
67 69 void rootDriverRemoved();
68 70 void closeSysDriverSig(socexplorerplugin* driver);
69 71 void registerObject(QObject* object,const QString& instanceName);
70 72 void treeChanged(const QList<socexplorerplugin*>& drivers);
71 73
72 74 public slots:
73 75 QT_ENSURE_STACK_ALIGNED_FOR_SSE void loadSysDriver(const QString name);
74 76 QT_ENSURE_STACK_ALIGNED_FOR_SSE void loadSysDriver(const QString name,const QString instanceName);
75 QT_ENSURE_STACK_ALIGNED_FOR_SSE void loadSysDriver(socexplorerplugin* driver,const QString instanceName);
77 QT_ENSURE_STACK_ALIGNED_FOR_SSE void loadSysDriver(socexplorerplugin* driver,const QString instanceName,const QString path="");
76 78 QT_ENSURE_STACK_ALIGNED_FOR_SSE void loadSysDriverToParent(const QString name,const QString ParentInst);
77 79 QT_ENSURE_STACK_ALIGNED_FOR_SSE void loadSysDriverToParent(const QString name,const QString instanceName,const QString ParentInst);
78 QT_ENSURE_STACK_ALIGNED_FOR_SSE void loadSysDriverToParent(socexplorerplugin *driver,socexplorerplugin *parent, const QString instanceName);
80 QT_ENSURE_STACK_ALIGNED_FOR_SSE void loadSysDriverToParent(socexplorerplugin *driver,socexplorerplugin *parent, const QString instanceName,const QString path="");
79 81 QT_ENSURE_STACK_ALIGNED_FOR_SSE void changeSysDriverInstName(const QString instanceName);
80 82 QT_ENSURE_STACK_ALIGNED_FOR_SSE void changeSysDriverInstName(const QString newinstanceName,const QString previnstanceName);
81 83 // QT_ENSURE_STACK_ALIGNED_FOR_SSE void loadChild(socexplorerplugin* parent);
82 84 void updateText();
83 85 QT_ENSURE_STACK_ALIGNED_FOR_SSE void closeSysDriverFromDriver(socexplorerplugin* driver);
84 86 QT_ENSURE_STACK_ALIGNED_FOR_SSE void closeSysDriver(socexplorerplugin* driver,bool recursive=false);
85 87 QT_ENSURE_STACK_ALIGNED_FOR_SSE void closeSysDriver(const QString instanceName);
86 88 void makeMenu(QMenu* menu);
87 89 void close();
88 90 QString getinstanceName(const QString& baseName);
89 91 void geteplugintree();
90 92 QT_ENSURE_STACK_ALIGNED_FOR_SSE socexplorerplugin* getSysDriver(const QString instanceName);
91 93 bool instanceExists(const QString& instanceName);
92 94 private:
93 95
94 96 static void changeSysDriverInstName(socexplorerplugin* driver);
95 97 static QMainWindow* mainWindow;
96 98 static QList<socexplorerplugin*>* drivers;
97 99 static QList<socexplorerplugin*>* linearDriverList;
100 static QStringList* linearDriverPathList;
98 101 static socexplorerplugin* root;
99 102 static socexplorerplugin* parent;
100 103 static PluginsCache* cache;
101 104 };
102 105
103 106 #endif // SOCEXPLORERPROXY_H
@@ -1,9498 +1,9503
1 1 #include "PySocExplorer0.h"
2 2 #include <PythonQtConversion.h>
3 3 #include <PythonQtMethodInfo.h>
4 4 #include <PythonQtSignalReceiver.h>
5 5 #include <QVariant>
6 6 #include <abstractbinfile.h>
7 7 #include <elfparser.h>
8 8 #include <qaction.h>
9 9 #include <qbackingstore.h>
10 10 #include <qbitmap.h>
11 11 #include <qbytearray.h>
12 12 #include <qcolor.h>
13 13 #include <qcoreevent.h>
14 14 #include <qcursor.h>
15 15 #include <qevent.h>
16 16 #include <qfile.h>
17 17 #include <qfont.h>
18 18 #include <qgraphicseffect.h>
19 19 #include <qgraphicsproxywidget.h>
20 20 #include <qicon.h>
21 21 #include <qkeysequence.h>
22 22 #include <qlayout.h>
23 23 #include <qlineedit.h>
24 24 #include <qlist.h>
25 25 #include <qlocale.h>
26 26 #include <qmargins.h>
27 27 #include <qmetaobject.h>
28 28 #include <qobject.h>
29 29 #include <qpaintdevice.h>
30 30 #include <qpaintengine.h>
31 31 #include <qpainter.h>
32 32 #include <qpalette.h>
33 33 #include <qpen.h>
34 34 #include <qpixmap.h>
35 35 #include <qpoint.h>
36 36 #include <qrect.h>
37 37 #include <qregion.h>
38 38 #include <qscrollarea.h>
39 39 #include <qscrollbar.h>
40 40 #include <qsize.h>
41 41 #include <qsizepolicy.h>
42 42 #include <qspinbox.h>
43 43 #include <qstringlist.h>
44 44 #include <qstyle.h>
45 45 #include <qstyleoption.h>
46 46 #include <qwidget.h>
47 47 #include <qwindow.h>
48 48
49 49 PythonQtShell_ElfFile::~PythonQtShell_ElfFile() {
50 50 PythonQtPrivate* priv = PythonQt::priv();
51 51 if (priv) { priv->shellClassDeleted(this); }
52 52 }
53 53 int PythonQtShell_ElfFile::closeFile()
54 54 {
55 55 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
56 56 static PyObject* name = PyString_FromString("closeFile");
57 57 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
58 58 if (obj) {
59 59 static const char* argumentList[] ={"int"};
60 60 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
61 61 int returnValue;
62 62 void* args[1] = {NULL};
63 63 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
64 64 if (result) {
65 65 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
66 66 if (args[0]!=&returnValue) {
67 67 if (args[0]==NULL) {
68 68 PythonQt::priv()->handleVirtualOverloadReturnError("closeFile", methodInfo, result);
69 69 } else {
70 70 returnValue = *((int*)args[0]);
71 71 }
72 72 }
73 73 }
74 74 if (result) { Py_DECREF(result); }
75 75 Py_DECREF(obj);
76 76 return returnValue;
77 77 } else {
78 78 PyErr_Clear();
79 79 }
80 80 }
81 81 return ElfFile::closeFile();
82 82 }
83 83 QList<codeFragment* > PythonQtShell_ElfFile::getFragments()
84 84 {
85 85 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
86 86 static PyObject* name = PyString_FromString("getFragments");
87 87 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
88 88 if (obj) {
89 89 static const char* argumentList[] ={"QList<codeFragment* >"};
90 90 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
91 91 QList<codeFragment* > returnValue;
92 92 void* args[1] = {NULL};
93 93 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
94 94 if (result) {
95 95 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
96 96 if (args[0]!=&returnValue) {
97 97 if (args[0]==NULL) {
98 98 PythonQt::priv()->handleVirtualOverloadReturnError("getFragments", methodInfo, result);
99 99 } else {
100 100 returnValue = *((QList<codeFragment* >*)args[0]);
101 101 }
102 102 }
103 103 }
104 104 if (result) { Py_DECREF(result); }
105 105 Py_DECREF(obj);
106 106 return returnValue;
107 107 } else {
108 108 PyErr_Clear();
109 109 }
110 110 }
111 111 return ElfFile::getFragments();
112 112 }
113 113 bool PythonQtShell_ElfFile::isopened()
114 114 {
115 115 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
116 116 static PyObject* name = PyString_FromString("isopened");
117 117 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
118 118 if (obj) {
119 119 static const char* argumentList[] ={"bool"};
120 120 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
121 121 bool returnValue;
122 122 void* args[1] = {NULL};
123 123 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
124 124 if (result) {
125 125 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
126 126 if (args[0]!=&returnValue) {
127 127 if (args[0]==NULL) {
128 128 PythonQt::priv()->handleVirtualOverloadReturnError("isopened", methodInfo, result);
129 129 } else {
130 130 returnValue = *((bool*)args[0]);
131 131 }
132 132 }
133 133 }
134 134 if (result) { Py_DECREF(result); }
135 135 Py_DECREF(obj);
136 136 return returnValue;
137 137 } else {
138 138 PyErr_Clear();
139 139 }
140 140 }
141 141 return ElfFile::isopened();
142 142 }
143 143 bool PythonQtShell_ElfFile::openFile(const QString& File0)
144 144 {
145 145 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
146 146 static PyObject* name = PyString_FromString("openFile");
147 147 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
148 148 if (obj) {
149 149 static const char* argumentList[] ={"bool" , "const QString&"};
150 150 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
151 151 bool returnValue;
152 152 void* args[2] = {NULL, (void*)&File0};
153 153 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
154 154 if (result) {
155 155 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
156 156 if (args[0]!=&returnValue) {
157 157 if (args[0]==NULL) {
158 158 PythonQt::priv()->handleVirtualOverloadReturnError("openFile", methodInfo, result);
159 159 } else {
160 160 returnValue = *((bool*)args[0]);
161 161 }
162 162 }
163 163 }
164 164 if (result) { Py_DECREF(result); }
165 165 Py_DECREF(obj);
166 166 return returnValue;
167 167 } else {
168 168 PyErr_Clear();
169 169 }
170 170 }
171 171 return ElfFile::openFile(File0);
172 172 }
173 173 bool PythonQtShell_ElfFile::toBinary(const QString& File0)
174 174 {
175 175 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
176 176 static PyObject* name = PyString_FromString("toBinary");
177 177 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
178 178 if (obj) {
179 179 static const char* argumentList[] ={"bool" , "const QString&"};
180 180 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
181 181 bool returnValue;
182 182 void* args[2] = {NULL, (void*)&File0};
183 183 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
184 184 if (result) {
185 185 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
186 186 if (args[0]!=&returnValue) {
187 187 if (args[0]==NULL) {
188 188 PythonQt::priv()->handleVirtualOverloadReturnError("toBinary", methodInfo, result);
189 189 } else {
190 190 returnValue = *((bool*)args[0]);
191 191 }
192 192 }
193 193 }
194 194 if (result) { Py_DECREF(result); }
195 195 Py_DECREF(obj);
196 196 return returnValue;
197 197 } else {
198 198 PyErr_Clear();
199 199 }
200 200 }
201 201 return ElfFile::toBinary(File0);
202 202 }
203 203 bool PythonQtShell_ElfFile::toSrec(const QString& File0)
204 204 {
205 205 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
206 206 static PyObject* name = PyString_FromString("toSrec");
207 207 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
208 208 if (obj) {
209 209 static const char* argumentList[] ={"bool" , "const QString&"};
210 210 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
211 211 bool returnValue;
212 212 void* args[2] = {NULL, (void*)&File0};
213 213 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
214 214 if (result) {
215 215 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
216 216 if (args[0]!=&returnValue) {
217 217 if (args[0]==NULL) {
218 218 PythonQt::priv()->handleVirtualOverloadReturnError("toSrec", methodInfo, result);
219 219 } else {
220 220 returnValue = *((bool*)args[0]);
221 221 }
222 222 }
223 223 }
224 224 if (result) { Py_DECREF(result); }
225 225 Py_DECREF(obj);
226 226 return returnValue;
227 227 } else {
228 228 PyErr_Clear();
229 229 }
230 230 }
231 231 return ElfFile::toSrec(File0);
232 232 }
233 233 ElfFile* PythonQtWrapper_ElfFile::new_ElfFile()
234 234 {
235 235 return new PythonQtShell_ElfFile(); }
236 236
237 237 ElfFile* PythonQtWrapper_ElfFile::new_ElfFile(const QString& File)
238 238 {
239 239 return new PythonQtShell_ElfFile(File); }
240 240
241 241 int PythonQtWrapper_ElfFile::closeFile(ElfFile* theWrappedObject)
242 242 {
243 243 return ( ((PythonQtPublicPromoter_ElfFile*)theWrappedObject)->promoted_closeFile());
244 244 }
245 245
246 246 QString PythonQtWrapper_ElfFile::getABI(ElfFile* theWrappedObject)
247 247 {
248 248 return ( theWrappedObject->getABI());
249 249 }
250 250
251 251 QString PythonQtWrapper_ElfFile::getArchitecture(ElfFile* theWrappedObject)
252 252 {
253 253 return ( theWrappedObject->getArchitecture());
254 254 }
255 255
256 256 QString PythonQtWrapper_ElfFile::getClass(ElfFile* theWrappedObject)
257 257 {
258 258 return ( theWrappedObject->getClass());
259 259 }
260 260
261 261 QString PythonQtWrapper_ElfFile::getEndianness(ElfFile* theWrappedObject)
262 262 {
263 263 return ( theWrappedObject->getEndianness());
264 264 }
265 265
266 266 qint64 PythonQtWrapper_ElfFile::getEntryPointAddress(ElfFile* theWrappedObject)
267 267 {
268 268 return ( theWrappedObject->getEntryPointAddress());
269 269 }
270 270
271 271 QList<codeFragment* > PythonQtWrapper_ElfFile::getFragments(ElfFile* theWrappedObject)
272 272 {
273 273 return ( ((PythonQtPublicPromoter_ElfFile*)theWrappedObject)->promoted_getFragments());
274 274 }
275 275
276 276 QList<codeFragment* > PythonQtWrapper_ElfFile::getFragments(ElfFile* theWrappedObject, QStringList fragmentList)
277 277 {
278 278 return ( theWrappedObject->getFragments(fragmentList));
279 279 }
280 280
281 281 int PythonQtWrapper_ElfFile::getSectionCount(ElfFile* theWrappedObject)
282 282 {
283 283 return ( theWrappedObject->getSectionCount());
284 284 }
285 285
286 286 bool PythonQtWrapper_ElfFile::getSectionData(ElfFile* theWrappedObject, int index, char** buffer)
287 287 {
288 288 return ( theWrappedObject->getSectionData(index, buffer));
289 289 }
290 290
291 291 qint64 PythonQtWrapper_ElfFile::getSectionDatasz(ElfFile* theWrappedObject, int index)
292 292 {
293 293 return ( theWrappedObject->getSectionDatasz(index));
294 294 }
295 295
296 296 int PythonQtWrapper_ElfFile::getSectionIndex(ElfFile* theWrappedObject, QString name)
297 297 {
298 298 return ( theWrappedObject->getSectionIndex(name));
299 299 }
300 300
301 301 qint64 PythonQtWrapper_ElfFile::getSectionMemsz(ElfFile* theWrappedObject, int index)
302 302 {
303 303 return ( theWrappedObject->getSectionMemsz(index));
304 304 }
305 305
306 306 QString PythonQtWrapper_ElfFile::getSectionName(ElfFile* theWrappedObject, int index)
307 307 {
308 308 return ( theWrappedObject->getSectionName(index));
309 309 }
310 310
311 311 qint64 PythonQtWrapper_ElfFile::getSectionPaddr(ElfFile* theWrappedObject, int index)
312 312 {
313 313 return ( theWrappedObject->getSectionPaddr(index));
314 314 }
315 315
316 316 QString PythonQtWrapper_ElfFile::getSectionType(ElfFile* theWrappedObject, int index)
317 317 {
318 318 return ( theWrappedObject->getSectionType(index));
319 319 }
320 320
321 321 int PythonQtWrapper_ElfFile::getSegmentCount(ElfFile* theWrappedObject)
322 322 {
323 323 return ( theWrappedObject->getSegmentCount());
324 324 }
325 325
326 326 qint64 PythonQtWrapper_ElfFile::getSegmentFilesz(ElfFile* theWrappedObject, int index)
327 327 {
328 328 return ( theWrappedObject->getSegmentFilesz(index));
329 329 }
330 330
331 331 QString PythonQtWrapper_ElfFile::getSegmentFlags(ElfFile* theWrappedObject, int index)
332 332 {
333 333 return ( theWrappedObject->getSegmentFlags(index));
334 334 }
335 335
336 336 qint64 PythonQtWrapper_ElfFile::getSegmentMemsz(ElfFile* theWrappedObject, int index)
337 337 {
338 338 return ( theWrappedObject->getSegmentMemsz(index));
339 339 }
340 340
341 341 qint64 PythonQtWrapper_ElfFile::getSegmentOffset(ElfFile* theWrappedObject, int index)
342 342 {
343 343 return ( theWrappedObject->getSegmentOffset(index));
344 344 }
345 345
346 346 qint64 PythonQtWrapper_ElfFile::getSegmentPaddr(ElfFile* theWrappedObject, int index)
347 347 {
348 348 return ( theWrappedObject->getSegmentPaddr(index));
349 349 }
350 350
351 351 QString PythonQtWrapper_ElfFile::getSegmentType(ElfFile* theWrappedObject, int index)
352 352 {
353 353 return ( theWrappedObject->getSegmentType(index));
354 354 }
355 355
356 356 qint64 PythonQtWrapper_ElfFile::getSegmentVaddr(ElfFile* theWrappedObject, int index)
357 357 {
358 358 return ( theWrappedObject->getSegmentVaddr(index));
359 359 }
360 360
361 361 quint64 PythonQtWrapper_ElfFile::getSymbolAddress(ElfFile* theWrappedObject, int index)
362 362 {
363 363 return ( theWrappedObject->getSymbolAddress(index));
364 364 }
365 365
366 366 int PythonQtWrapper_ElfFile::getSymbolCount(ElfFile* theWrappedObject)
367 367 {
368 368 return ( theWrappedObject->getSymbolCount());
369 369 }
370 370
371 int PythonQtWrapper_ElfFile::getSymbolIndex(ElfFile* theWrappedObject, const QString& name)
372 {
373 return ( theWrappedObject->getSymbolIndex(name));
374 }
375
371 376 QString PythonQtWrapper_ElfFile::getSymbolLinkType(ElfFile* theWrappedObject, int index)
372 377 {
373 378 return ( theWrappedObject->getSymbolLinkType(index));
374 379 }
375 380
376 381 QString PythonQtWrapper_ElfFile::getSymbolName(ElfFile* theWrappedObject, int index)
377 382 {
378 383 return ( theWrappedObject->getSymbolName(index));
379 384 }
380 385
381 386 int PythonQtWrapper_ElfFile::getSymbolSectionIndex(ElfFile* theWrappedObject, int index)
382 387 {
383 388 return ( theWrappedObject->getSymbolSectionIndex(index));
384 389 }
385 390
386 391 QString PythonQtWrapper_ElfFile::getSymbolSectionName(ElfFile* theWrappedObject, int index)
387 392 {
388 393 return ( theWrappedObject->getSymbolSectionName(index));
389 394 }
390 395
391 396 quint64 PythonQtWrapper_ElfFile::getSymbolSize(ElfFile* theWrappedObject, int index)
392 397 {
393 398 return ( theWrappedObject->getSymbolSize(index));
394 399 }
395 400
396 401 QString PythonQtWrapper_ElfFile::getSymbolType(ElfFile* theWrappedObject, int index)
397 402 {
398 403 return ( theWrappedObject->getSymbolType(index));
399 404 }
400 405
401 406 QString PythonQtWrapper_ElfFile::getType(ElfFile* theWrappedObject)
402 407 {
403 408 return ( theWrappedObject->getType());
404 409 }
405 410
406 411 qint64 PythonQtWrapper_ElfFile::getVersion(ElfFile* theWrappedObject)
407 412 {
408 413 return ( theWrappedObject->getVersion());
409 414 }
410 415
411 416 bool PythonQtWrapper_ElfFile::isBigEndian(ElfFile* theWrappedObject)
412 417 {
413 418 return ( theWrappedObject->isBigEndian());
414 419 }
415 420
416 421 bool PythonQtWrapper_ElfFile::static_ElfFile_isElf(const QString& File)
417 422 {
418 423 return (ElfFile::isElf(File));
419 424 }
420 425
421 426 bool PythonQtWrapper_ElfFile::isLitleEndian(ElfFile* theWrappedObject)
422 427 {
423 428 return ( theWrappedObject->isLitleEndian());
424 429 }
425 430
426 431 bool PythonQtWrapper_ElfFile::iself(ElfFile* theWrappedObject)
427 432 {
428 433 return ( theWrappedObject->iself());
429 434 }
430 435
431 436 bool PythonQtWrapper_ElfFile::isopened(ElfFile* theWrappedObject)
432 437 {
433 438 return ( ((PythonQtPublicPromoter_ElfFile*)theWrappedObject)->promoted_isopened());
434 439 }
435 440
436 441 bool PythonQtWrapper_ElfFile::openFile(ElfFile* theWrappedObject, const QString& File)
437 442 {
438 443 return ( ((PythonQtPublicPromoter_ElfFile*)theWrappedObject)->promoted_openFile(File));
439 444 }
440 445
441 446 bool PythonQtWrapper_ElfFile::sectionIsNobits(ElfFile* theWrappedObject, int index)
442 447 {
443 448 return ( theWrappedObject->sectionIsNobits(index));
444 449 }
445 450
446 451 bool PythonQtWrapper_ElfFile::toBinary(ElfFile* theWrappedObject, const QString& File)
447 452 {
448 453 return ( ((PythonQtPublicPromoter_ElfFile*)theWrappedObject)->promoted_toBinary(File));
449 454 }
450 455
451 456 bool PythonQtWrapper_ElfFile::toSrec(ElfFile* theWrappedObject, const QString& File)
452 457 {
453 458 return ( ((PythonQtPublicPromoter_ElfFile*)theWrappedObject)->promoted_toSrec(File));
454 459 }
455 460
456 461
457 462
458 463 PythonQtShell_MemSizeWdgt::~PythonQtShell_MemSizeWdgt() {
459 464 PythonQtPrivate* priv = PythonQt::priv();
460 465 if (priv) { priv->shellClassDeleted(this); }
461 466 }
462 467 void PythonQtShell_MemSizeWdgt::actionEvent(QActionEvent* arg__1)
463 468 {
464 469 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
465 470 static PyObject* name = PyString_FromString("actionEvent");
466 471 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
467 472 if (obj) {
468 473 static const char* argumentList[] ={"" , "QActionEvent*"};
469 474 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
470 475 void* args[2] = {NULL, (void*)&arg__1};
471 476 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
472 477 if (result) { Py_DECREF(result); }
473 478 Py_DECREF(obj);
474 479 return;
475 480 } else {
476 481 PyErr_Clear();
477 482 }
478 483 }
479 484 MemSizeWdgt::actionEvent(arg__1);
480 485 }
481 486 void PythonQtShell_MemSizeWdgt::changeEvent(QEvent* arg__1)
482 487 {
483 488 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
484 489 static PyObject* name = PyString_FromString("changeEvent");
485 490 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
486 491 if (obj) {
487 492 static const char* argumentList[] ={"" , "QEvent*"};
488 493 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
489 494 void* args[2] = {NULL, (void*)&arg__1};
490 495 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
491 496 if (result) { Py_DECREF(result); }
492 497 Py_DECREF(obj);
493 498 return;
494 499 } else {
495 500 PyErr_Clear();
496 501 }
497 502 }
498 503 MemSizeWdgt::changeEvent(arg__1);
499 504 }
500 505 void PythonQtShell_MemSizeWdgt::childEvent(QChildEvent* arg__1)
501 506 {
502 507 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
503 508 static PyObject* name = PyString_FromString("childEvent");
504 509 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
505 510 if (obj) {
506 511 static const char* argumentList[] ={"" , "QChildEvent*"};
507 512 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
508 513 void* args[2] = {NULL, (void*)&arg__1};
509 514 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
510 515 if (result) { Py_DECREF(result); }
511 516 Py_DECREF(obj);
512 517 return;
513 518 } else {
514 519 PyErr_Clear();
515 520 }
516 521 }
517 522 MemSizeWdgt::childEvent(arg__1);
518 523 }
519 524 void PythonQtShell_MemSizeWdgt::closeEvent(QCloseEvent* arg__1)
520 525 {
521 526 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
522 527 static PyObject* name = PyString_FromString("closeEvent");
523 528 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
524 529 if (obj) {
525 530 static const char* argumentList[] ={"" , "QCloseEvent*"};
526 531 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
527 532 void* args[2] = {NULL, (void*)&arg__1};
528 533 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
529 534 if (result) { Py_DECREF(result); }
530 535 Py_DECREF(obj);
531 536 return;
532 537 } else {
533 538 PyErr_Clear();
534 539 }
535 540 }
536 541 MemSizeWdgt::closeEvent(arg__1);
537 542 }
538 543 void PythonQtShell_MemSizeWdgt::contextMenuEvent(QContextMenuEvent* arg__1)
539 544 {
540 545 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
541 546 static PyObject* name = PyString_FromString("contextMenuEvent");
542 547 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
543 548 if (obj) {
544 549 static const char* argumentList[] ={"" , "QContextMenuEvent*"};
545 550 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
546 551 void* args[2] = {NULL, (void*)&arg__1};
547 552 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
548 553 if (result) { Py_DECREF(result); }
549 554 Py_DECREF(obj);
550 555 return;
551 556 } else {
552 557 PyErr_Clear();
553 558 }
554 559 }
555 560 MemSizeWdgt::contextMenuEvent(arg__1);
556 561 }
557 562 void PythonQtShell_MemSizeWdgt::customEvent(QEvent* arg__1)
558 563 {
559 564 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
560 565 static PyObject* name = PyString_FromString("customEvent");
561 566 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
562 567 if (obj) {
563 568 static const char* argumentList[] ={"" , "QEvent*"};
564 569 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
565 570 void* args[2] = {NULL, (void*)&arg__1};
566 571 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
567 572 if (result) { Py_DECREF(result); }
568 573 Py_DECREF(obj);
569 574 return;
570 575 } else {
571 576 PyErr_Clear();
572 577 }
573 578 }
574 579 MemSizeWdgt::customEvent(arg__1);
575 580 }
576 581 int PythonQtShell_MemSizeWdgt::devType() const
577 582 {
578 583 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
579 584 static PyObject* name = PyString_FromString("devType");
580 585 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
581 586 if (obj) {
582 587 static const char* argumentList[] ={"int"};
583 588 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
584 589 int returnValue;
585 590 void* args[1] = {NULL};
586 591 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
587 592 if (result) {
588 593 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
589 594 if (args[0]!=&returnValue) {
590 595 if (args[0]==NULL) {
591 596 PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result);
592 597 } else {
593 598 returnValue = *((int*)args[0]);
594 599 }
595 600 }
596 601 }
597 602 if (result) { Py_DECREF(result); }
598 603 Py_DECREF(obj);
599 604 return returnValue;
600 605 } else {
601 606 PyErr_Clear();
602 607 }
603 608 }
604 609 return MemSizeWdgt::devType();
605 610 }
606 611 void PythonQtShell_MemSizeWdgt::dragEnterEvent(QDragEnterEvent* arg__1)
607 612 {
608 613 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
609 614 static PyObject* name = PyString_FromString("dragEnterEvent");
610 615 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
611 616 if (obj) {
612 617 static const char* argumentList[] ={"" , "QDragEnterEvent*"};
613 618 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
614 619 void* args[2] = {NULL, (void*)&arg__1};
615 620 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
616 621 if (result) { Py_DECREF(result); }
617 622 Py_DECREF(obj);
618 623 return;
619 624 } else {
620 625 PyErr_Clear();
621 626 }
622 627 }
623 628 MemSizeWdgt::dragEnterEvent(arg__1);
624 629 }
625 630 void PythonQtShell_MemSizeWdgt::dragLeaveEvent(QDragLeaveEvent* arg__1)
626 631 {
627 632 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
628 633 static PyObject* name = PyString_FromString("dragLeaveEvent");
629 634 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
630 635 if (obj) {
631 636 static const char* argumentList[] ={"" , "QDragLeaveEvent*"};
632 637 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
633 638 void* args[2] = {NULL, (void*)&arg__1};
634 639 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
635 640 if (result) { Py_DECREF(result); }
636 641 Py_DECREF(obj);
637 642 return;
638 643 } else {
639 644 PyErr_Clear();
640 645 }
641 646 }
642 647 MemSizeWdgt::dragLeaveEvent(arg__1);
643 648 }
644 649 void PythonQtShell_MemSizeWdgt::dragMoveEvent(QDragMoveEvent* arg__1)
645 650 {
646 651 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
647 652 static PyObject* name = PyString_FromString("dragMoveEvent");
648 653 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
649 654 if (obj) {
650 655 static const char* argumentList[] ={"" , "QDragMoveEvent*"};
651 656 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
652 657 void* args[2] = {NULL, (void*)&arg__1};
653 658 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
654 659 if (result) { Py_DECREF(result); }
655 660 Py_DECREF(obj);
656 661 return;
657 662 } else {
658 663 PyErr_Clear();
659 664 }
660 665 }
661 666 MemSizeWdgt::dragMoveEvent(arg__1);
662 667 }
663 668 void PythonQtShell_MemSizeWdgt::dropEvent(QDropEvent* arg__1)
664 669 {
665 670 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
666 671 static PyObject* name = PyString_FromString("dropEvent");
667 672 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
668 673 if (obj) {
669 674 static const char* argumentList[] ={"" , "QDropEvent*"};
670 675 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
671 676 void* args[2] = {NULL, (void*)&arg__1};
672 677 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
673 678 if (result) { Py_DECREF(result); }
674 679 Py_DECREF(obj);
675 680 return;
676 681 } else {
677 682 PyErr_Clear();
678 683 }
679 684 }
680 685 MemSizeWdgt::dropEvent(arg__1);
681 686 }
682 687 void PythonQtShell_MemSizeWdgt::enterEvent(QEvent* arg__1)
683 688 {
684 689 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
685 690 static PyObject* name = PyString_FromString("enterEvent");
686 691 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
687 692 if (obj) {
688 693 static const char* argumentList[] ={"" , "QEvent*"};
689 694 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
690 695 void* args[2] = {NULL, (void*)&arg__1};
691 696 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
692 697 if (result) { Py_DECREF(result); }
693 698 Py_DECREF(obj);
694 699 return;
695 700 } else {
696 701 PyErr_Clear();
697 702 }
698 703 }
699 704 MemSizeWdgt::enterEvent(arg__1);
700 705 }
701 706 bool PythonQtShell_MemSizeWdgt::event(QEvent* arg__1)
702 707 {
703 708 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
704 709 static PyObject* name = PyString_FromString("event");
705 710 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
706 711 if (obj) {
707 712 static const char* argumentList[] ={"bool" , "QEvent*"};
708 713 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
709 714 bool returnValue;
710 715 void* args[2] = {NULL, (void*)&arg__1};
711 716 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
712 717 if (result) {
713 718 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
714 719 if (args[0]!=&returnValue) {
715 720 if (args[0]==NULL) {
716 721 PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result);
717 722 } else {
718 723 returnValue = *((bool*)args[0]);
719 724 }
720 725 }
721 726 }
722 727 if (result) { Py_DECREF(result); }
723 728 Py_DECREF(obj);
724 729 return returnValue;
725 730 } else {
726 731 PyErr_Clear();
727 732 }
728 733 }
729 734 return MemSizeWdgt::event(arg__1);
730 735 }
731 736 bool PythonQtShell_MemSizeWdgt::eventFilter(QObject* arg__1, QEvent* arg__2)
732 737 {
733 738 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
734 739 static PyObject* name = PyString_FromString("eventFilter");
735 740 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
736 741 if (obj) {
737 742 static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"};
738 743 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList);
739 744 bool returnValue;
740 745 void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2};
741 746 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
742 747 if (result) {
743 748 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
744 749 if (args[0]!=&returnValue) {
745 750 if (args[0]==NULL) {
746 751 PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result);
747 752 } else {
748 753 returnValue = *((bool*)args[0]);
749 754 }
750 755 }
751 756 }
752 757 if (result) { Py_DECREF(result); }
753 758 Py_DECREF(obj);
754 759 return returnValue;
755 760 } else {
756 761 PyErr_Clear();
757 762 }
758 763 }
759 764 return MemSizeWdgt::eventFilter(arg__1, arg__2);
760 765 }
761 766 void PythonQtShell_MemSizeWdgt::focusInEvent(QFocusEvent* arg__1)
762 767 {
763 768 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
764 769 static PyObject* name = PyString_FromString("focusInEvent");
765 770 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
766 771 if (obj) {
767 772 static const char* argumentList[] ={"" , "QFocusEvent*"};
768 773 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
769 774 void* args[2] = {NULL, (void*)&arg__1};
770 775 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
771 776 if (result) { Py_DECREF(result); }
772 777 Py_DECREF(obj);
773 778 return;
774 779 } else {
775 780 PyErr_Clear();
776 781 }
777 782 }
778 783 MemSizeWdgt::focusInEvent(arg__1);
779 784 }
780 785 bool PythonQtShell_MemSizeWdgt::focusNextPrevChild(bool next0)
781 786 {
782 787 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
783 788 static PyObject* name = PyString_FromString("focusNextPrevChild");
784 789 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
785 790 if (obj) {
786 791 static const char* argumentList[] ={"bool" , "bool"};
787 792 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
788 793 bool returnValue;
789 794 void* args[2] = {NULL, (void*)&next0};
790 795 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
791 796 if (result) {
792 797 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
793 798 if (args[0]!=&returnValue) {
794 799 if (args[0]==NULL) {
795 800 PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result);
796 801 } else {
797 802 returnValue = *((bool*)args[0]);
798 803 }
799 804 }
800 805 }
801 806 if (result) { Py_DECREF(result); }
802 807 Py_DECREF(obj);
803 808 return returnValue;
804 809 } else {
805 810 PyErr_Clear();
806 811 }
807 812 }
808 813 return MemSizeWdgt::focusNextPrevChild(next0);
809 814 }
810 815 void PythonQtShell_MemSizeWdgt::focusOutEvent(QFocusEvent* arg__1)
811 816 {
812 817 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
813 818 static PyObject* name = PyString_FromString("focusOutEvent");
814 819 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
815 820 if (obj) {
816 821 static const char* argumentList[] ={"" , "QFocusEvent*"};
817 822 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
818 823 void* args[2] = {NULL, (void*)&arg__1};
819 824 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
820 825 if (result) { Py_DECREF(result); }
821 826 Py_DECREF(obj);
822 827 return;
823 828 } else {
824 829 PyErr_Clear();
825 830 }
826 831 }
827 832 MemSizeWdgt::focusOutEvent(arg__1);
828 833 }
829 834 bool PythonQtShell_MemSizeWdgt::hasHeightForWidth() const
830 835 {
831 836 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
832 837 static PyObject* name = PyString_FromString("hasHeightForWidth");
833 838 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
834 839 if (obj) {
835 840 static const char* argumentList[] ={"bool"};
836 841 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
837 842 bool returnValue;
838 843 void* args[1] = {NULL};
839 844 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
840 845 if (result) {
841 846 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
842 847 if (args[0]!=&returnValue) {
843 848 if (args[0]==NULL) {
844 849 PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result);
845 850 } else {
846 851 returnValue = *((bool*)args[0]);
847 852 }
848 853 }
849 854 }
850 855 if (result) { Py_DECREF(result); }
851 856 Py_DECREF(obj);
852 857 return returnValue;
853 858 } else {
854 859 PyErr_Clear();
855 860 }
856 861 }
857 862 return MemSizeWdgt::hasHeightForWidth();
858 863 }
859 864 int PythonQtShell_MemSizeWdgt::heightForWidth(int arg__1) const
860 865 {
861 866 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
862 867 static PyObject* name = PyString_FromString("heightForWidth");
863 868 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
864 869 if (obj) {
865 870 static const char* argumentList[] ={"int" , "int"};
866 871 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
867 872 int returnValue;
868 873 void* args[2] = {NULL, (void*)&arg__1};
869 874 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
870 875 if (result) {
871 876 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
872 877 if (args[0]!=&returnValue) {
873 878 if (args[0]==NULL) {
874 879 PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result);
875 880 } else {
876 881 returnValue = *((int*)args[0]);
877 882 }
878 883 }
879 884 }
880 885 if (result) { Py_DECREF(result); }
881 886 Py_DECREF(obj);
882 887 return returnValue;
883 888 } else {
884 889 PyErr_Clear();
885 890 }
886 891 }
887 892 return MemSizeWdgt::heightForWidth(arg__1);
888 893 }
889 894 void PythonQtShell_MemSizeWdgt::hideEvent(QHideEvent* arg__1)
890 895 {
891 896 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
892 897 static PyObject* name = PyString_FromString("hideEvent");
893 898 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
894 899 if (obj) {
895 900 static const char* argumentList[] ={"" , "QHideEvent*"};
896 901 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
897 902 void* args[2] = {NULL, (void*)&arg__1};
898 903 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
899 904 if (result) { Py_DECREF(result); }
900 905 Py_DECREF(obj);
901 906 return;
902 907 } else {
903 908 PyErr_Clear();
904 909 }
905 910 }
906 911 MemSizeWdgt::hideEvent(arg__1);
907 912 }
908 913 void PythonQtShell_MemSizeWdgt::initPainter(QPainter* painter0) const
909 914 {
910 915 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
911 916 static PyObject* name = PyString_FromString("initPainter");
912 917 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
913 918 if (obj) {
914 919 static const char* argumentList[] ={"" , "QPainter*"};
915 920 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
916 921 void* args[2] = {NULL, (void*)&painter0};
917 922 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
918 923 if (result) { Py_DECREF(result); }
919 924 Py_DECREF(obj);
920 925 return;
921 926 } else {
922 927 PyErr_Clear();
923 928 }
924 929 }
925 930 MemSizeWdgt::initPainter(painter0);
926 931 }
927 932 void PythonQtShell_MemSizeWdgt::inputMethodEvent(QInputMethodEvent* arg__1)
928 933 {
929 934 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
930 935 static PyObject* name = PyString_FromString("inputMethodEvent");
931 936 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
932 937 if (obj) {
933 938 static const char* argumentList[] ={"" , "QInputMethodEvent*"};
934 939 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
935 940 void* args[2] = {NULL, (void*)&arg__1};
936 941 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
937 942 if (result) { Py_DECREF(result); }
938 943 Py_DECREF(obj);
939 944 return;
940 945 } else {
941 946 PyErr_Clear();
942 947 }
943 948 }
944 949 MemSizeWdgt::inputMethodEvent(arg__1);
945 950 }
946 951 QVariant PythonQtShell_MemSizeWdgt::inputMethodQuery(Qt::InputMethodQuery arg__1) const
947 952 {
948 953 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
949 954 static PyObject* name = PyString_FromString("inputMethodQuery");
950 955 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
951 956 if (obj) {
952 957 static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"};
953 958 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
954 959 QVariant returnValue;
955 960 void* args[2] = {NULL, (void*)&arg__1};
956 961 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
957 962 if (result) {
958 963 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
959 964 if (args[0]!=&returnValue) {
960 965 if (args[0]==NULL) {
961 966 PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result);
962 967 } else {
963 968 returnValue = *((QVariant*)args[0]);
964 969 }
965 970 }
966 971 }
967 972 if (result) { Py_DECREF(result); }
968 973 Py_DECREF(obj);
969 974 return returnValue;
970 975 } else {
971 976 PyErr_Clear();
972 977 }
973 978 }
974 979 return MemSizeWdgt::inputMethodQuery(arg__1);
975 980 }
976 981 void PythonQtShell_MemSizeWdgt::keyPressEvent(QKeyEvent* arg__1)
977 982 {
978 983 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
979 984 static PyObject* name = PyString_FromString("keyPressEvent");
980 985 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
981 986 if (obj) {
982 987 static const char* argumentList[] ={"" , "QKeyEvent*"};
983 988 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
984 989 void* args[2] = {NULL, (void*)&arg__1};
985 990 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
986 991 if (result) { Py_DECREF(result); }
987 992 Py_DECREF(obj);
988 993 return;
989 994 } else {
990 995 PyErr_Clear();
991 996 }
992 997 }
993 998 MemSizeWdgt::keyPressEvent(arg__1);
994 999 }
995 1000 void PythonQtShell_MemSizeWdgt::keyReleaseEvent(QKeyEvent* arg__1)
996 1001 {
997 1002 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
998 1003 static PyObject* name = PyString_FromString("keyReleaseEvent");
999 1004 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1000 1005 if (obj) {
1001 1006 static const char* argumentList[] ={"" , "QKeyEvent*"};
1002 1007 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1003 1008 void* args[2] = {NULL, (void*)&arg__1};
1004 1009 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1005 1010 if (result) { Py_DECREF(result); }
1006 1011 Py_DECREF(obj);
1007 1012 return;
1008 1013 } else {
1009 1014 PyErr_Clear();
1010 1015 }
1011 1016 }
1012 1017 MemSizeWdgt::keyReleaseEvent(arg__1);
1013 1018 }
1014 1019 void PythonQtShell_MemSizeWdgt::leaveEvent(QEvent* arg__1)
1015 1020 {
1016 1021 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1017 1022 static PyObject* name = PyString_FromString("leaveEvent");
1018 1023 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1019 1024 if (obj) {
1020 1025 static const char* argumentList[] ={"" , "QEvent*"};
1021 1026 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1022 1027 void* args[2] = {NULL, (void*)&arg__1};
1023 1028 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1024 1029 if (result) { Py_DECREF(result); }
1025 1030 Py_DECREF(obj);
1026 1031 return;
1027 1032 } else {
1028 1033 PyErr_Clear();
1029 1034 }
1030 1035 }
1031 1036 MemSizeWdgt::leaveEvent(arg__1);
1032 1037 }
1033 1038 int PythonQtShell_MemSizeWdgt::metric(QPaintDevice::PaintDeviceMetric arg__1) const
1034 1039 {
1035 1040 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1036 1041 static PyObject* name = PyString_FromString("metric");
1037 1042 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1038 1043 if (obj) {
1039 1044 static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"};
1040 1045 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1041 1046 int returnValue;
1042 1047 void* args[2] = {NULL, (void*)&arg__1};
1043 1048 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1044 1049 if (result) {
1045 1050 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
1046 1051 if (args[0]!=&returnValue) {
1047 1052 if (args[0]==NULL) {
1048 1053 PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result);
1049 1054 } else {
1050 1055 returnValue = *((int*)args[0]);
1051 1056 }
1052 1057 }
1053 1058 }
1054 1059 if (result) { Py_DECREF(result); }
1055 1060 Py_DECREF(obj);
1056 1061 return returnValue;
1057 1062 } else {
1058 1063 PyErr_Clear();
1059 1064 }
1060 1065 }
1061 1066 return MemSizeWdgt::metric(arg__1);
1062 1067 }
1063 1068 QSize PythonQtShell_MemSizeWdgt::minimumSizeHint() const
1064 1069 {
1065 1070 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1066 1071 static PyObject* name = PyString_FromString("getMinimumSizeHint");
1067 1072 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1068 1073 if (obj) {
1069 1074 static const char* argumentList[] ={"QSize"};
1070 1075 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
1071 1076 QSize returnValue;
1072 1077 void* args[1] = {NULL};
1073 1078 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1074 1079 if (result) {
1075 1080 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
1076 1081 if (args[0]!=&returnValue) {
1077 1082 if (args[0]==NULL) {
1078 1083 PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result);
1079 1084 } else {
1080 1085 returnValue = *((QSize*)args[0]);
1081 1086 }
1082 1087 }
1083 1088 }
1084 1089 if (result) { Py_DECREF(result); }
1085 1090 Py_DECREF(obj);
1086 1091 return returnValue;
1087 1092 } else {
1088 1093 PyErr_Clear();
1089 1094 }
1090 1095 }
1091 1096 return MemSizeWdgt::minimumSizeHint();
1092 1097 }
1093 1098 void PythonQtShell_MemSizeWdgt::mouseDoubleClickEvent(QMouseEvent* arg__1)
1094 1099 {
1095 1100 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1096 1101 static PyObject* name = PyString_FromString("mouseDoubleClickEvent");
1097 1102 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1098 1103 if (obj) {
1099 1104 static const char* argumentList[] ={"" , "QMouseEvent*"};
1100 1105 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1101 1106 void* args[2] = {NULL, (void*)&arg__1};
1102 1107 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1103 1108 if (result) { Py_DECREF(result); }
1104 1109 Py_DECREF(obj);
1105 1110 return;
1106 1111 } else {
1107 1112 PyErr_Clear();
1108 1113 }
1109 1114 }
1110 1115 MemSizeWdgt::mouseDoubleClickEvent(arg__1);
1111 1116 }
1112 1117 void PythonQtShell_MemSizeWdgt::mouseMoveEvent(QMouseEvent* arg__1)
1113 1118 {
1114 1119 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1115 1120 static PyObject* name = PyString_FromString("mouseMoveEvent");
1116 1121 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1117 1122 if (obj) {
1118 1123 static const char* argumentList[] ={"" , "QMouseEvent*"};
1119 1124 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1120 1125 void* args[2] = {NULL, (void*)&arg__1};
1121 1126 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1122 1127 if (result) { Py_DECREF(result); }
1123 1128 Py_DECREF(obj);
1124 1129 return;
1125 1130 } else {
1126 1131 PyErr_Clear();
1127 1132 }
1128 1133 }
1129 1134 MemSizeWdgt::mouseMoveEvent(arg__1);
1130 1135 }
1131 1136 void PythonQtShell_MemSizeWdgt::mousePressEvent(QMouseEvent* arg__1)
1132 1137 {
1133 1138 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1134 1139 static PyObject* name = PyString_FromString("mousePressEvent");
1135 1140 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1136 1141 if (obj) {
1137 1142 static const char* argumentList[] ={"" , "QMouseEvent*"};
1138 1143 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1139 1144 void* args[2] = {NULL, (void*)&arg__1};
1140 1145 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1141 1146 if (result) { Py_DECREF(result); }
1142 1147 Py_DECREF(obj);
1143 1148 return;
1144 1149 } else {
1145 1150 PyErr_Clear();
1146 1151 }
1147 1152 }
1148 1153 MemSizeWdgt::mousePressEvent(arg__1);
1149 1154 }
1150 1155 void PythonQtShell_MemSizeWdgt::mouseReleaseEvent(QMouseEvent* arg__1)
1151 1156 {
1152 1157 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1153 1158 static PyObject* name = PyString_FromString("mouseReleaseEvent");
1154 1159 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1155 1160 if (obj) {
1156 1161 static const char* argumentList[] ={"" , "QMouseEvent*"};
1157 1162 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1158 1163 void* args[2] = {NULL, (void*)&arg__1};
1159 1164 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1160 1165 if (result) { Py_DECREF(result); }
1161 1166 Py_DECREF(obj);
1162 1167 return;
1163 1168 } else {
1164 1169 PyErr_Clear();
1165 1170 }
1166 1171 }
1167 1172 MemSizeWdgt::mouseReleaseEvent(arg__1);
1168 1173 }
1169 1174 void PythonQtShell_MemSizeWdgt::moveEvent(QMoveEvent* arg__1)
1170 1175 {
1171 1176 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1172 1177 static PyObject* name = PyString_FromString("moveEvent");
1173 1178 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1174 1179 if (obj) {
1175 1180 static const char* argumentList[] ={"" , "QMoveEvent*"};
1176 1181 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1177 1182 void* args[2] = {NULL, (void*)&arg__1};
1178 1183 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1179 1184 if (result) { Py_DECREF(result); }
1180 1185 Py_DECREF(obj);
1181 1186 return;
1182 1187 } else {
1183 1188 PyErr_Clear();
1184 1189 }
1185 1190 }
1186 1191 MemSizeWdgt::moveEvent(arg__1);
1187 1192 }
1188 1193 bool PythonQtShell_MemSizeWdgt::nativeEvent(const QByteArray& eventType0, void* message1, long* result2)
1189 1194 {
1190 1195 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1191 1196 static PyObject* name = PyString_FromString("nativeEvent");
1192 1197 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1193 1198 if (obj) {
1194 1199 static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"};
1195 1200 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList);
1196 1201 bool returnValue;
1197 1202 void* args[4] = {NULL, (void*)&eventType0, (void*)&message1, (void*)&result2};
1198 1203 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1199 1204 if (result) {
1200 1205 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
1201 1206 if (args[0]!=&returnValue) {
1202 1207 if (args[0]==NULL) {
1203 1208 PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result);
1204 1209 } else {
1205 1210 returnValue = *((bool*)args[0]);
1206 1211 }
1207 1212 }
1208 1213 }
1209 1214 if (result) { Py_DECREF(result); }
1210 1215 Py_DECREF(obj);
1211 1216 return returnValue;
1212 1217 } else {
1213 1218 PyErr_Clear();
1214 1219 }
1215 1220 }
1216 1221 return MemSizeWdgt::nativeEvent(eventType0, message1, result2);
1217 1222 }
1218 1223 QPaintEngine* PythonQtShell_MemSizeWdgt::paintEngine() const
1219 1224 {
1220 1225 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1221 1226 static PyObject* name = PyString_FromString("paintEngine");
1222 1227 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1223 1228 if (obj) {
1224 1229 static const char* argumentList[] ={"QPaintEngine*"};
1225 1230 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
1226 1231 QPaintEngine* returnValue;
1227 1232 void* args[1] = {NULL};
1228 1233 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1229 1234 if (result) {
1230 1235 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
1231 1236 if (args[0]!=&returnValue) {
1232 1237 if (args[0]==NULL) {
1233 1238 PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result);
1234 1239 } else {
1235 1240 returnValue = *((QPaintEngine**)args[0]);
1236 1241 }
1237 1242 }
1238 1243 }
1239 1244 if (result) { Py_DECREF(result); }
1240 1245 Py_DECREF(obj);
1241 1246 return returnValue;
1242 1247 } else {
1243 1248 PyErr_Clear();
1244 1249 }
1245 1250 }
1246 1251 return MemSizeWdgt::paintEngine();
1247 1252 }
1248 1253 void PythonQtShell_MemSizeWdgt::paintEvent(QPaintEvent* arg__1)
1249 1254 {
1250 1255 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1251 1256 static PyObject* name = PyString_FromString("paintEvent");
1252 1257 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1253 1258 if (obj) {
1254 1259 static const char* argumentList[] ={"" , "QPaintEvent*"};
1255 1260 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1256 1261 void* args[2] = {NULL, (void*)&arg__1};
1257 1262 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1258 1263 if (result) { Py_DECREF(result); }
1259 1264 Py_DECREF(obj);
1260 1265 return;
1261 1266 } else {
1262 1267 PyErr_Clear();
1263 1268 }
1264 1269 }
1265 1270 MemSizeWdgt::paintEvent(arg__1);
1266 1271 }
1267 1272 QPaintDevice* PythonQtShell_MemSizeWdgt::redirected(QPoint* offset0) const
1268 1273 {
1269 1274 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1270 1275 static PyObject* name = PyString_FromString("redirected");
1271 1276 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1272 1277 if (obj) {
1273 1278 static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"};
1274 1279 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1275 1280 QPaintDevice* returnValue;
1276 1281 void* args[2] = {NULL, (void*)&offset0};
1277 1282 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1278 1283 if (result) {
1279 1284 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
1280 1285 if (args[0]!=&returnValue) {
1281 1286 if (args[0]==NULL) {
1282 1287 PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result);
1283 1288 } else {
1284 1289 returnValue = *((QPaintDevice**)args[0]);
1285 1290 }
1286 1291 }
1287 1292 }
1288 1293 if (result) { Py_DECREF(result); }
1289 1294 Py_DECREF(obj);
1290 1295 return returnValue;
1291 1296 } else {
1292 1297 PyErr_Clear();
1293 1298 }
1294 1299 }
1295 1300 return MemSizeWdgt::redirected(offset0);
1296 1301 }
1297 1302 void PythonQtShell_MemSizeWdgt::resizeEvent(QResizeEvent* arg__1)
1298 1303 {
1299 1304 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1300 1305 static PyObject* name = PyString_FromString("resizeEvent");
1301 1306 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1302 1307 if (obj) {
1303 1308 static const char* argumentList[] ={"" , "QResizeEvent*"};
1304 1309 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1305 1310 void* args[2] = {NULL, (void*)&arg__1};
1306 1311 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1307 1312 if (result) { Py_DECREF(result); }
1308 1313 Py_DECREF(obj);
1309 1314 return;
1310 1315 } else {
1311 1316 PyErr_Clear();
1312 1317 }
1313 1318 }
1314 1319 MemSizeWdgt::resizeEvent(arg__1);
1315 1320 }
1316 1321 QPainter* PythonQtShell_MemSizeWdgt::sharedPainter() const
1317 1322 {
1318 1323 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1319 1324 static PyObject* name = PyString_FromString("sharedPainter");
1320 1325 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1321 1326 if (obj) {
1322 1327 static const char* argumentList[] ={"QPainter*"};
1323 1328 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
1324 1329 QPainter* returnValue;
1325 1330 void* args[1] = {NULL};
1326 1331 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1327 1332 if (result) {
1328 1333 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
1329 1334 if (args[0]!=&returnValue) {
1330 1335 if (args[0]==NULL) {
1331 1336 PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result);
1332 1337 } else {
1333 1338 returnValue = *((QPainter**)args[0]);
1334 1339 }
1335 1340 }
1336 1341 }
1337 1342 if (result) { Py_DECREF(result); }
1338 1343 Py_DECREF(obj);
1339 1344 return returnValue;
1340 1345 } else {
1341 1346 PyErr_Clear();
1342 1347 }
1343 1348 }
1344 1349 return MemSizeWdgt::sharedPainter();
1345 1350 }
1346 1351 void PythonQtShell_MemSizeWdgt::showEvent(QShowEvent* arg__1)
1347 1352 {
1348 1353 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1349 1354 static PyObject* name = PyString_FromString("showEvent");
1350 1355 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1351 1356 if (obj) {
1352 1357 static const char* argumentList[] ={"" , "QShowEvent*"};
1353 1358 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1354 1359 void* args[2] = {NULL, (void*)&arg__1};
1355 1360 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1356 1361 if (result) { Py_DECREF(result); }
1357 1362 Py_DECREF(obj);
1358 1363 return;
1359 1364 } else {
1360 1365 PyErr_Clear();
1361 1366 }
1362 1367 }
1363 1368 MemSizeWdgt::showEvent(arg__1);
1364 1369 }
1365 1370 QSize PythonQtShell_MemSizeWdgt::sizeHint() const
1366 1371 {
1367 1372 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1368 1373 static PyObject* name = PyString_FromString("getSizeHint");
1369 1374 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1370 1375 if (obj) {
1371 1376 static const char* argumentList[] ={"QSize"};
1372 1377 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
1373 1378 QSize returnValue;
1374 1379 void* args[1] = {NULL};
1375 1380 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1376 1381 if (result) {
1377 1382 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
1378 1383 if (args[0]!=&returnValue) {
1379 1384 if (args[0]==NULL) {
1380 1385 PythonQt::priv()->handleVirtualOverloadReturnError("getSizeHint", methodInfo, result);
1381 1386 } else {
1382 1387 returnValue = *((QSize*)args[0]);
1383 1388 }
1384 1389 }
1385 1390 }
1386 1391 if (result) { Py_DECREF(result); }
1387 1392 Py_DECREF(obj);
1388 1393 return returnValue;
1389 1394 } else {
1390 1395 PyErr_Clear();
1391 1396 }
1392 1397 }
1393 1398 return MemSizeWdgt::sizeHint();
1394 1399 }
1395 1400 void PythonQtShell_MemSizeWdgt::tabletEvent(QTabletEvent* arg__1)
1396 1401 {
1397 1402 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1398 1403 static PyObject* name = PyString_FromString("tabletEvent");
1399 1404 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1400 1405 if (obj) {
1401 1406 static const char* argumentList[] ={"" , "QTabletEvent*"};
1402 1407 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1403 1408 void* args[2] = {NULL, (void*)&arg__1};
1404 1409 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1405 1410 if (result) { Py_DECREF(result); }
1406 1411 Py_DECREF(obj);
1407 1412 return;
1408 1413 } else {
1409 1414 PyErr_Clear();
1410 1415 }
1411 1416 }
1412 1417 MemSizeWdgt::tabletEvent(arg__1);
1413 1418 }
1414 1419 void PythonQtShell_MemSizeWdgt::timerEvent(QTimerEvent* arg__1)
1415 1420 {
1416 1421 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1417 1422 static PyObject* name = PyString_FromString("timerEvent");
1418 1423 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1419 1424 if (obj) {
1420 1425 static const char* argumentList[] ={"" , "QTimerEvent*"};
1421 1426 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1422 1427 void* args[2] = {NULL, (void*)&arg__1};
1423 1428 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1424 1429 if (result) { Py_DECREF(result); }
1425 1430 Py_DECREF(obj);
1426 1431 return;
1427 1432 } else {
1428 1433 PyErr_Clear();
1429 1434 }
1430 1435 }
1431 1436 MemSizeWdgt::timerEvent(arg__1);
1432 1437 }
1433 1438 void PythonQtShell_MemSizeWdgt::wheelEvent(QWheelEvent* arg__1)
1434 1439 {
1435 1440 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1436 1441 static PyObject* name = PyString_FromString("wheelEvent");
1437 1442 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1438 1443 if (obj) {
1439 1444 static const char* argumentList[] ={"" , "QWheelEvent*"};
1440 1445 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1441 1446 void* args[2] = {NULL, (void*)&arg__1};
1442 1447 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1443 1448 if (result) { Py_DECREF(result); }
1444 1449 Py_DECREF(obj);
1445 1450 return;
1446 1451 } else {
1447 1452 PyErr_Clear();
1448 1453 }
1449 1454 }
1450 1455 MemSizeWdgt::wheelEvent(arg__1);
1451 1456 }
1452 1457 MemSizeWdgt* PythonQtWrapper_MemSizeWdgt::new_MemSizeWdgt(QWidget* parent)
1453 1458 {
1454 1459 return new PythonQtShell_MemSizeWdgt(parent); }
1455 1460
1456 1461 MemSizeWdgt* PythonQtWrapper_MemSizeWdgt::new_MemSizeWdgt(int defaultSize, QWidget* parent)
1457 1462 {
1458 1463 return new PythonQtShell_MemSizeWdgt(defaultSize, parent); }
1459 1464
1460 1465 int PythonQtWrapper_MemSizeWdgt::getsize(MemSizeWdgt* theWrappedObject)
1461 1466 {
1462 1467 return ( theWrappedObject->getsize());
1463 1468 }
1464 1469
1465 1470 void PythonQtWrapper_MemSizeWdgt::setMaximum(MemSizeWdgt* theWrappedObject, unsigned int max)
1466 1471 {
1467 1472 ( theWrappedObject->setMaximum(max));
1468 1473 }
1469 1474
1470 1475 void PythonQtWrapper_MemSizeWdgt::show(MemSizeWdgt* theWrappedObject)
1471 1476 {
1472 1477 ( theWrappedObject->show());
1473 1478 }
1474 1479
1475 1480 void PythonQtWrapper_MemSizeWdgt::updateSizeValue(MemSizeWdgt* theWrappedObject)
1476 1481 {
1477 1482 ( theWrappedObject->updateSizeValue());
1478 1483 }
1479 1484
1480 1485
1481 1486
1482 1487 PythonQtShell_QHexEdit::~PythonQtShell_QHexEdit() {
1483 1488 PythonQtPrivate* priv = PythonQt::priv();
1484 1489 if (priv) { priv->shellClassDeleted(this); }
1485 1490 }
1486 1491 void PythonQtShell_QHexEdit::actionEvent(QActionEvent* arg__1)
1487 1492 {
1488 1493 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1489 1494 static PyObject* name = PyString_FromString("actionEvent");
1490 1495 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1491 1496 if (obj) {
1492 1497 static const char* argumentList[] ={"" , "QActionEvent*"};
1493 1498 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1494 1499 void* args[2] = {NULL, (void*)&arg__1};
1495 1500 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1496 1501 if (result) { Py_DECREF(result); }
1497 1502 Py_DECREF(obj);
1498 1503 return;
1499 1504 } else {
1500 1505 PyErr_Clear();
1501 1506 }
1502 1507 }
1503 1508 QHexEdit::actionEvent(arg__1);
1504 1509 }
1505 1510 void PythonQtShell_QHexEdit::changeEvent(QEvent* arg__1)
1506 1511 {
1507 1512 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1508 1513 static PyObject* name = PyString_FromString("changeEvent");
1509 1514 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1510 1515 if (obj) {
1511 1516 static const char* argumentList[] ={"" , "QEvent*"};
1512 1517 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1513 1518 void* args[2] = {NULL, (void*)&arg__1};
1514 1519 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1515 1520 if (result) { Py_DECREF(result); }
1516 1521 Py_DECREF(obj);
1517 1522 return;
1518 1523 } else {
1519 1524 PyErr_Clear();
1520 1525 }
1521 1526 }
1522 1527 QHexEdit::changeEvent(arg__1);
1523 1528 }
1524 1529 void PythonQtShell_QHexEdit::childEvent(QChildEvent* arg__1)
1525 1530 {
1526 1531 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1527 1532 static PyObject* name = PyString_FromString("childEvent");
1528 1533 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1529 1534 if (obj) {
1530 1535 static const char* argumentList[] ={"" , "QChildEvent*"};
1531 1536 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1532 1537 void* args[2] = {NULL, (void*)&arg__1};
1533 1538 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1534 1539 if (result) { Py_DECREF(result); }
1535 1540 Py_DECREF(obj);
1536 1541 return;
1537 1542 } else {
1538 1543 PyErr_Clear();
1539 1544 }
1540 1545 }
1541 1546 QHexEdit::childEvent(arg__1);
1542 1547 }
1543 1548 void PythonQtShell_QHexEdit::closeEvent(QCloseEvent* arg__1)
1544 1549 {
1545 1550 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1546 1551 static PyObject* name = PyString_FromString("closeEvent");
1547 1552 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1548 1553 if (obj) {
1549 1554 static const char* argumentList[] ={"" , "QCloseEvent*"};
1550 1555 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1551 1556 void* args[2] = {NULL, (void*)&arg__1};
1552 1557 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1553 1558 if (result) { Py_DECREF(result); }
1554 1559 Py_DECREF(obj);
1555 1560 return;
1556 1561 } else {
1557 1562 PyErr_Clear();
1558 1563 }
1559 1564 }
1560 1565 QHexEdit::closeEvent(arg__1);
1561 1566 }
1562 1567 void PythonQtShell_QHexEdit::contextMenuEvent(QContextMenuEvent* arg__1)
1563 1568 {
1564 1569 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1565 1570 static PyObject* name = PyString_FromString("contextMenuEvent");
1566 1571 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1567 1572 if (obj) {
1568 1573 static const char* argumentList[] ={"" , "QContextMenuEvent*"};
1569 1574 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1570 1575 void* args[2] = {NULL, (void*)&arg__1};
1571 1576 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1572 1577 if (result) { Py_DECREF(result); }
1573 1578 Py_DECREF(obj);
1574 1579 return;
1575 1580 } else {
1576 1581 PyErr_Clear();
1577 1582 }
1578 1583 }
1579 1584 QHexEdit::contextMenuEvent(arg__1);
1580 1585 }
1581 1586 void PythonQtShell_QHexEdit::customEvent(QEvent* arg__1)
1582 1587 {
1583 1588 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1584 1589 static PyObject* name = PyString_FromString("customEvent");
1585 1590 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1586 1591 if (obj) {
1587 1592 static const char* argumentList[] ={"" , "QEvent*"};
1588 1593 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1589 1594 void* args[2] = {NULL, (void*)&arg__1};
1590 1595 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1591 1596 if (result) { Py_DECREF(result); }
1592 1597 Py_DECREF(obj);
1593 1598 return;
1594 1599 } else {
1595 1600 PyErr_Clear();
1596 1601 }
1597 1602 }
1598 1603 QHexEdit::customEvent(arg__1);
1599 1604 }
1600 1605 int PythonQtShell_QHexEdit::devType() const
1601 1606 {
1602 1607 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1603 1608 static PyObject* name = PyString_FromString("devType");
1604 1609 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1605 1610 if (obj) {
1606 1611 static const char* argumentList[] ={"int"};
1607 1612 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
1608 1613 int returnValue;
1609 1614 void* args[1] = {NULL};
1610 1615 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1611 1616 if (result) {
1612 1617 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
1613 1618 if (args[0]!=&returnValue) {
1614 1619 if (args[0]==NULL) {
1615 1620 PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result);
1616 1621 } else {
1617 1622 returnValue = *((int*)args[0]);
1618 1623 }
1619 1624 }
1620 1625 }
1621 1626 if (result) { Py_DECREF(result); }
1622 1627 Py_DECREF(obj);
1623 1628 return returnValue;
1624 1629 } else {
1625 1630 PyErr_Clear();
1626 1631 }
1627 1632 }
1628 1633 return QHexEdit::devType();
1629 1634 }
1630 1635 void PythonQtShell_QHexEdit::dragEnterEvent(QDragEnterEvent* arg__1)
1631 1636 {
1632 1637 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1633 1638 static PyObject* name = PyString_FromString("dragEnterEvent");
1634 1639 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1635 1640 if (obj) {
1636 1641 static const char* argumentList[] ={"" , "QDragEnterEvent*"};
1637 1642 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1638 1643 void* args[2] = {NULL, (void*)&arg__1};
1639 1644 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1640 1645 if (result) { Py_DECREF(result); }
1641 1646 Py_DECREF(obj);
1642 1647 return;
1643 1648 } else {
1644 1649 PyErr_Clear();
1645 1650 }
1646 1651 }
1647 1652 QHexEdit::dragEnterEvent(arg__1);
1648 1653 }
1649 1654 void PythonQtShell_QHexEdit::dragLeaveEvent(QDragLeaveEvent* arg__1)
1650 1655 {
1651 1656 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1652 1657 static PyObject* name = PyString_FromString("dragLeaveEvent");
1653 1658 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1654 1659 if (obj) {
1655 1660 static const char* argumentList[] ={"" , "QDragLeaveEvent*"};
1656 1661 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1657 1662 void* args[2] = {NULL, (void*)&arg__1};
1658 1663 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1659 1664 if (result) { Py_DECREF(result); }
1660 1665 Py_DECREF(obj);
1661 1666 return;
1662 1667 } else {
1663 1668 PyErr_Clear();
1664 1669 }
1665 1670 }
1666 1671 QHexEdit::dragLeaveEvent(arg__1);
1667 1672 }
1668 1673 void PythonQtShell_QHexEdit::dragMoveEvent(QDragMoveEvent* arg__1)
1669 1674 {
1670 1675 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1671 1676 static PyObject* name = PyString_FromString("dragMoveEvent");
1672 1677 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1673 1678 if (obj) {
1674 1679 static const char* argumentList[] ={"" , "QDragMoveEvent*"};
1675 1680 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1676 1681 void* args[2] = {NULL, (void*)&arg__1};
1677 1682 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1678 1683 if (result) { Py_DECREF(result); }
1679 1684 Py_DECREF(obj);
1680 1685 return;
1681 1686 } else {
1682 1687 PyErr_Clear();
1683 1688 }
1684 1689 }
1685 1690 QHexEdit::dragMoveEvent(arg__1);
1686 1691 }
1687 1692 void PythonQtShell_QHexEdit::dropEvent(QDropEvent* arg__1)
1688 1693 {
1689 1694 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1690 1695 static PyObject* name = PyString_FromString("dropEvent");
1691 1696 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1692 1697 if (obj) {
1693 1698 static const char* argumentList[] ={"" , "QDropEvent*"};
1694 1699 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1695 1700 void* args[2] = {NULL, (void*)&arg__1};
1696 1701 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1697 1702 if (result) { Py_DECREF(result); }
1698 1703 Py_DECREF(obj);
1699 1704 return;
1700 1705 } else {
1701 1706 PyErr_Clear();
1702 1707 }
1703 1708 }
1704 1709 QHexEdit::dropEvent(arg__1);
1705 1710 }
1706 1711 void PythonQtShell_QHexEdit::enterEvent(QEvent* arg__1)
1707 1712 {
1708 1713 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1709 1714 static PyObject* name = PyString_FromString("enterEvent");
1710 1715 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1711 1716 if (obj) {
1712 1717 static const char* argumentList[] ={"" , "QEvent*"};
1713 1718 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1714 1719 void* args[2] = {NULL, (void*)&arg__1};
1715 1720 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1716 1721 if (result) { Py_DECREF(result); }
1717 1722 Py_DECREF(obj);
1718 1723 return;
1719 1724 } else {
1720 1725 PyErr_Clear();
1721 1726 }
1722 1727 }
1723 1728 QHexEdit::enterEvent(arg__1);
1724 1729 }
1725 1730 bool PythonQtShell_QHexEdit::event(QEvent* arg__1)
1726 1731 {
1727 1732 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1728 1733 static PyObject* name = PyString_FromString("event");
1729 1734 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1730 1735 if (obj) {
1731 1736 static const char* argumentList[] ={"bool" , "QEvent*"};
1732 1737 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1733 1738 bool returnValue;
1734 1739 void* args[2] = {NULL, (void*)&arg__1};
1735 1740 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1736 1741 if (result) {
1737 1742 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
1738 1743 if (args[0]!=&returnValue) {
1739 1744 if (args[0]==NULL) {
1740 1745 PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result);
1741 1746 } else {
1742 1747 returnValue = *((bool*)args[0]);
1743 1748 }
1744 1749 }
1745 1750 }
1746 1751 if (result) { Py_DECREF(result); }
1747 1752 Py_DECREF(obj);
1748 1753 return returnValue;
1749 1754 } else {
1750 1755 PyErr_Clear();
1751 1756 }
1752 1757 }
1753 1758 return QHexEdit::event(arg__1);
1754 1759 }
1755 1760 bool PythonQtShell_QHexEdit::eventFilter(QObject* arg__1, QEvent* arg__2)
1756 1761 {
1757 1762 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1758 1763 static PyObject* name = PyString_FromString("eventFilter");
1759 1764 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1760 1765 if (obj) {
1761 1766 static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"};
1762 1767 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList);
1763 1768 bool returnValue;
1764 1769 void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2};
1765 1770 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1766 1771 if (result) {
1767 1772 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
1768 1773 if (args[0]!=&returnValue) {
1769 1774 if (args[0]==NULL) {
1770 1775 PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result);
1771 1776 } else {
1772 1777 returnValue = *((bool*)args[0]);
1773 1778 }
1774 1779 }
1775 1780 }
1776 1781 if (result) { Py_DECREF(result); }
1777 1782 Py_DECREF(obj);
1778 1783 return returnValue;
1779 1784 } else {
1780 1785 PyErr_Clear();
1781 1786 }
1782 1787 }
1783 1788 return QHexEdit::eventFilter(arg__1, arg__2);
1784 1789 }
1785 1790 void PythonQtShell_QHexEdit::focusInEvent(QFocusEvent* arg__1)
1786 1791 {
1787 1792 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1788 1793 static PyObject* name = PyString_FromString("focusInEvent");
1789 1794 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1790 1795 if (obj) {
1791 1796 static const char* argumentList[] ={"" , "QFocusEvent*"};
1792 1797 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1793 1798 void* args[2] = {NULL, (void*)&arg__1};
1794 1799 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1795 1800 if (result) { Py_DECREF(result); }
1796 1801 Py_DECREF(obj);
1797 1802 return;
1798 1803 } else {
1799 1804 PyErr_Clear();
1800 1805 }
1801 1806 }
1802 1807 QHexEdit::focusInEvent(arg__1);
1803 1808 }
1804 1809 bool PythonQtShell_QHexEdit::focusNextPrevChild(bool next0)
1805 1810 {
1806 1811 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1807 1812 static PyObject* name = PyString_FromString("focusNextPrevChild");
1808 1813 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1809 1814 if (obj) {
1810 1815 static const char* argumentList[] ={"bool" , "bool"};
1811 1816 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1812 1817 bool returnValue;
1813 1818 void* args[2] = {NULL, (void*)&next0};
1814 1819 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1815 1820 if (result) {
1816 1821 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
1817 1822 if (args[0]!=&returnValue) {
1818 1823 if (args[0]==NULL) {
1819 1824 PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result);
1820 1825 } else {
1821 1826 returnValue = *((bool*)args[0]);
1822 1827 }
1823 1828 }
1824 1829 }
1825 1830 if (result) { Py_DECREF(result); }
1826 1831 Py_DECREF(obj);
1827 1832 return returnValue;
1828 1833 } else {
1829 1834 PyErr_Clear();
1830 1835 }
1831 1836 }
1832 1837 return QHexEdit::focusNextPrevChild(next0);
1833 1838 }
1834 1839 void PythonQtShell_QHexEdit::focusOutEvent(QFocusEvent* arg__1)
1835 1840 {
1836 1841 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1837 1842 static PyObject* name = PyString_FromString("focusOutEvent");
1838 1843 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1839 1844 if (obj) {
1840 1845 static const char* argumentList[] ={"" , "QFocusEvent*"};
1841 1846 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1842 1847 void* args[2] = {NULL, (void*)&arg__1};
1843 1848 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1844 1849 if (result) { Py_DECREF(result); }
1845 1850 Py_DECREF(obj);
1846 1851 return;
1847 1852 } else {
1848 1853 PyErr_Clear();
1849 1854 }
1850 1855 }
1851 1856 QHexEdit::focusOutEvent(arg__1);
1852 1857 }
1853 1858 bool PythonQtShell_QHexEdit::hasHeightForWidth() const
1854 1859 {
1855 1860 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1856 1861 static PyObject* name = PyString_FromString("hasHeightForWidth");
1857 1862 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1858 1863 if (obj) {
1859 1864 static const char* argumentList[] ={"bool"};
1860 1865 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
1861 1866 bool returnValue;
1862 1867 void* args[1] = {NULL};
1863 1868 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1864 1869 if (result) {
1865 1870 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
1866 1871 if (args[0]!=&returnValue) {
1867 1872 if (args[0]==NULL) {
1868 1873 PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result);
1869 1874 } else {
1870 1875 returnValue = *((bool*)args[0]);
1871 1876 }
1872 1877 }
1873 1878 }
1874 1879 if (result) { Py_DECREF(result); }
1875 1880 Py_DECREF(obj);
1876 1881 return returnValue;
1877 1882 } else {
1878 1883 PyErr_Clear();
1879 1884 }
1880 1885 }
1881 1886 return QHexEdit::hasHeightForWidth();
1882 1887 }
1883 1888 int PythonQtShell_QHexEdit::heightForWidth(int arg__1) const
1884 1889 {
1885 1890 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1886 1891 static PyObject* name = PyString_FromString("heightForWidth");
1887 1892 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1888 1893 if (obj) {
1889 1894 static const char* argumentList[] ={"int" , "int"};
1890 1895 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1891 1896 int returnValue;
1892 1897 void* args[2] = {NULL, (void*)&arg__1};
1893 1898 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1894 1899 if (result) {
1895 1900 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
1896 1901 if (args[0]!=&returnValue) {
1897 1902 if (args[0]==NULL) {
1898 1903 PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result);
1899 1904 } else {
1900 1905 returnValue = *((int*)args[0]);
1901 1906 }
1902 1907 }
1903 1908 }
1904 1909 if (result) { Py_DECREF(result); }
1905 1910 Py_DECREF(obj);
1906 1911 return returnValue;
1907 1912 } else {
1908 1913 PyErr_Clear();
1909 1914 }
1910 1915 }
1911 1916 return QHexEdit::heightForWidth(arg__1);
1912 1917 }
1913 1918 void PythonQtShell_QHexEdit::hideEvent(QHideEvent* arg__1)
1914 1919 {
1915 1920 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1916 1921 static PyObject* name = PyString_FromString("hideEvent");
1917 1922 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1918 1923 if (obj) {
1919 1924 static const char* argumentList[] ={"" , "QHideEvent*"};
1920 1925 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1921 1926 void* args[2] = {NULL, (void*)&arg__1};
1922 1927 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1923 1928 if (result) { Py_DECREF(result); }
1924 1929 Py_DECREF(obj);
1925 1930 return;
1926 1931 } else {
1927 1932 PyErr_Clear();
1928 1933 }
1929 1934 }
1930 1935 QHexEdit::hideEvent(arg__1);
1931 1936 }
1932 1937 void PythonQtShell_QHexEdit::initPainter(QPainter* painter0) const
1933 1938 {
1934 1939 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1935 1940 static PyObject* name = PyString_FromString("initPainter");
1936 1941 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1937 1942 if (obj) {
1938 1943 static const char* argumentList[] ={"" , "QPainter*"};
1939 1944 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1940 1945 void* args[2] = {NULL, (void*)&painter0};
1941 1946 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1942 1947 if (result) { Py_DECREF(result); }
1943 1948 Py_DECREF(obj);
1944 1949 return;
1945 1950 } else {
1946 1951 PyErr_Clear();
1947 1952 }
1948 1953 }
1949 1954 QHexEdit::initPainter(painter0);
1950 1955 }
1951 1956 void PythonQtShell_QHexEdit::inputMethodEvent(QInputMethodEvent* arg__1)
1952 1957 {
1953 1958 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1954 1959 static PyObject* name = PyString_FromString("inputMethodEvent");
1955 1960 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1956 1961 if (obj) {
1957 1962 static const char* argumentList[] ={"" , "QInputMethodEvent*"};
1958 1963 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1959 1964 void* args[2] = {NULL, (void*)&arg__1};
1960 1965 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1961 1966 if (result) { Py_DECREF(result); }
1962 1967 Py_DECREF(obj);
1963 1968 return;
1964 1969 } else {
1965 1970 PyErr_Clear();
1966 1971 }
1967 1972 }
1968 1973 QHexEdit::inputMethodEvent(arg__1);
1969 1974 }
1970 1975 QVariant PythonQtShell_QHexEdit::inputMethodQuery(Qt::InputMethodQuery arg__1) const
1971 1976 {
1972 1977 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1973 1978 static PyObject* name = PyString_FromString("inputMethodQuery");
1974 1979 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1975 1980 if (obj) {
1976 1981 static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"};
1977 1982 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1978 1983 QVariant returnValue;
1979 1984 void* args[2] = {NULL, (void*)&arg__1};
1980 1985 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1981 1986 if (result) {
1982 1987 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
1983 1988 if (args[0]!=&returnValue) {
1984 1989 if (args[0]==NULL) {
1985 1990 PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result);
1986 1991 } else {
1987 1992 returnValue = *((QVariant*)args[0]);
1988 1993 }
1989 1994 }
1990 1995 }
1991 1996 if (result) { Py_DECREF(result); }
1992 1997 Py_DECREF(obj);
1993 1998 return returnValue;
1994 1999 } else {
1995 2000 PyErr_Clear();
1996 2001 }
1997 2002 }
1998 2003 return QHexEdit::inputMethodQuery(arg__1);
1999 2004 }
2000 2005 void PythonQtShell_QHexEdit::keyPressEvent(QKeyEvent* arg__1)
2001 2006 {
2002 2007 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
2003 2008 static PyObject* name = PyString_FromString("keyPressEvent");
2004 2009 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
2005 2010 if (obj) {
2006 2011 static const char* argumentList[] ={"" , "QKeyEvent*"};
2007 2012 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2008 2013 void* args[2] = {NULL, (void*)&arg__1};
2009 2014 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2010 2015 if (result) { Py_DECREF(result); }
2011 2016 Py_DECREF(obj);
2012 2017 return;
2013 2018 } else {
2014 2019 PyErr_Clear();
2015 2020 }
2016 2021 }
2017 2022 QHexEdit::keyPressEvent(arg__1);
2018 2023 }
2019 2024 void PythonQtShell_QHexEdit::keyReleaseEvent(QKeyEvent* arg__1)
2020 2025 {
2021 2026 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
2022 2027 static PyObject* name = PyString_FromString("keyReleaseEvent");
2023 2028 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
2024 2029 if (obj) {
2025 2030 static const char* argumentList[] ={"" , "QKeyEvent*"};
2026 2031 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2027 2032 void* args[2] = {NULL, (void*)&arg__1};
2028 2033 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2029 2034 if (result) { Py_DECREF(result); }
2030 2035 Py_DECREF(obj);
2031 2036 return;
2032 2037 } else {
2033 2038 PyErr_Clear();
2034 2039 }
2035 2040 }
2036 2041 QHexEdit::keyReleaseEvent(arg__1);
2037 2042 }
2038 2043 void PythonQtShell_QHexEdit::leaveEvent(QEvent* arg__1)
2039 2044 {
2040 2045 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
2041 2046 static PyObject* name = PyString_FromString("leaveEvent");
2042 2047 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
2043 2048 if (obj) {
2044 2049 static const char* argumentList[] ={"" , "QEvent*"};
2045 2050 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2046 2051 void* args[2] = {NULL, (void*)&arg__1};
2047 2052 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2048 2053 if (result) { Py_DECREF(result); }
2049 2054 Py_DECREF(obj);
2050 2055 return;
2051 2056 } else {
2052 2057 PyErr_Clear();
2053 2058 }
2054 2059 }
2055 2060 QHexEdit::leaveEvent(arg__1);
2056 2061 }
2057 2062 int PythonQtShell_QHexEdit::metric(QPaintDevice::PaintDeviceMetric arg__1) const
2058 2063 {
2059 2064 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
2060 2065 static PyObject* name = PyString_FromString("metric");
2061 2066 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
2062 2067 if (obj) {
2063 2068 static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"};
2064 2069 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2065 2070 int returnValue;
2066 2071 void* args[2] = {NULL, (void*)&arg__1};
2067 2072 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2068 2073 if (result) {
2069 2074 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
2070 2075 if (args[0]!=&returnValue) {
2071 2076 if (args[0]==NULL) {
2072 2077 PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result);
2073 2078 } else {
2074 2079 returnValue = *((int*)args[0]);
2075 2080 }
2076 2081 }
2077 2082 }
2078 2083 if (result) { Py_DECREF(result); }
2079 2084 Py_DECREF(obj);
2080 2085 return returnValue;
2081 2086 } else {
2082 2087 PyErr_Clear();
2083 2088 }
2084 2089 }
2085 2090 return QHexEdit::metric(arg__1);
2086 2091 }
2087 2092 void PythonQtShell_QHexEdit::mouseDoubleClickEvent(QMouseEvent* arg__1)
2088 2093 {
2089 2094 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
2090 2095 static PyObject* name = PyString_FromString("mouseDoubleClickEvent");
2091 2096 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
2092 2097 if (obj) {
2093 2098 static const char* argumentList[] ={"" , "QMouseEvent*"};
2094 2099 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2095 2100 void* args[2] = {NULL, (void*)&arg__1};
2096 2101 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2097 2102 if (result) { Py_DECREF(result); }
2098 2103 Py_DECREF(obj);
2099 2104 return;
2100 2105 } else {
2101 2106 PyErr_Clear();
2102 2107 }
2103 2108 }
2104 2109 QHexEdit::mouseDoubleClickEvent(arg__1);
2105 2110 }
2106 2111 void PythonQtShell_QHexEdit::mouseMoveEvent(QMouseEvent* arg__1)
2107 2112 {
2108 2113 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
2109 2114 static PyObject* name = PyString_FromString("mouseMoveEvent");
2110 2115 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
2111 2116 if (obj) {
2112 2117 static const char* argumentList[] ={"" , "QMouseEvent*"};
2113 2118 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2114 2119 void* args[2] = {NULL, (void*)&arg__1};
2115 2120 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2116 2121 if (result) { Py_DECREF(result); }
2117 2122 Py_DECREF(obj);
2118 2123 return;
2119 2124 } else {
2120 2125 PyErr_Clear();
2121 2126 }
2122 2127 }
2123 2128 QHexEdit::mouseMoveEvent(arg__1);
2124 2129 }
2125 2130 void PythonQtShell_QHexEdit::mousePressEvent(QMouseEvent* arg__1)
2126 2131 {
2127 2132 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
2128 2133 static PyObject* name = PyString_FromString("mousePressEvent");
2129 2134 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
2130 2135 if (obj) {
2131 2136 static const char* argumentList[] ={"" , "QMouseEvent*"};
2132 2137 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2133 2138 void* args[2] = {NULL, (void*)&arg__1};
2134 2139 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2135 2140 if (result) { Py_DECREF(result); }
2136 2141 Py_DECREF(obj);
2137 2142 return;
2138 2143 } else {
2139 2144 PyErr_Clear();
2140 2145 }
2141 2146 }
2142 2147 QHexEdit::mousePressEvent(arg__1);
2143 2148 }
2144 2149 void PythonQtShell_QHexEdit::mouseReleaseEvent(QMouseEvent* arg__1)
2145 2150 {
2146 2151 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
2147 2152 static PyObject* name = PyString_FromString("mouseReleaseEvent");
2148 2153 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
2149 2154 if (obj) {
2150 2155 static const char* argumentList[] ={"" , "QMouseEvent*"};
2151 2156 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2152 2157 void* args[2] = {NULL, (void*)&arg__1};
2153 2158 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2154 2159 if (result) { Py_DECREF(result); }
2155 2160 Py_DECREF(obj);
2156 2161 return;
2157 2162 } else {
2158 2163 PyErr_Clear();
2159 2164 }
2160 2165 }
2161 2166 QHexEdit::mouseReleaseEvent(arg__1);
2162 2167 }
2163 2168 void PythonQtShell_QHexEdit::moveEvent(QMoveEvent* arg__1)
2164 2169 {
2165 2170 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
2166 2171 static PyObject* name = PyString_FromString("moveEvent");
2167 2172 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
2168 2173 if (obj) {
2169 2174 static const char* argumentList[] ={"" , "QMoveEvent*"};
2170 2175 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2171 2176 void* args[2] = {NULL, (void*)&arg__1};
2172 2177 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2173 2178 if (result) { Py_DECREF(result); }
2174 2179 Py_DECREF(obj);
2175 2180 return;
2176 2181 } else {
2177 2182 PyErr_Clear();
2178 2183 }
2179 2184 }
2180 2185 QHexEdit::moveEvent(arg__1);
2181 2186 }
2182 2187 bool PythonQtShell_QHexEdit::nativeEvent(const QByteArray& eventType0, void* message1, long* result2)
2183 2188 {
2184 2189 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
2185 2190 static PyObject* name = PyString_FromString("nativeEvent");
2186 2191 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
2187 2192 if (obj) {
2188 2193 static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"};
2189 2194 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList);
2190 2195 bool returnValue;
2191 2196 void* args[4] = {NULL, (void*)&eventType0, (void*)&message1, (void*)&result2};
2192 2197 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2193 2198 if (result) {
2194 2199 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
2195 2200 if (args[0]!=&returnValue) {
2196 2201 if (args[0]==NULL) {
2197 2202 PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result);
2198 2203 } else {
2199 2204 returnValue = *((bool*)args[0]);
2200 2205 }
2201 2206 }
2202 2207 }
2203 2208 if (result) { Py_DECREF(result); }
2204 2209 Py_DECREF(obj);
2205 2210 return returnValue;
2206 2211 } else {
2207 2212 PyErr_Clear();
2208 2213 }
2209 2214 }
2210 2215 return QHexEdit::nativeEvent(eventType0, message1, result2);
2211 2216 }
2212 2217 QPaintEngine* PythonQtShell_QHexEdit::paintEngine() const
2213 2218 {
2214 2219 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
2215 2220 static PyObject* name = PyString_FromString("paintEngine");
2216 2221 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
2217 2222 if (obj) {
2218 2223 static const char* argumentList[] ={"QPaintEngine*"};
2219 2224 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
2220 2225 QPaintEngine* returnValue;
2221 2226 void* args[1] = {NULL};
2222 2227 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2223 2228 if (result) {
2224 2229 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
2225 2230 if (args[0]!=&returnValue) {
2226 2231 if (args[0]==NULL) {
2227 2232 PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result);
2228 2233 } else {
2229 2234 returnValue = *((QPaintEngine**)args[0]);
2230 2235 }
2231 2236 }
2232 2237 }
2233 2238 if (result) { Py_DECREF(result); }
2234 2239 Py_DECREF(obj);
2235 2240 return returnValue;
2236 2241 } else {
2237 2242 PyErr_Clear();
2238 2243 }
2239 2244 }
2240 2245 return QHexEdit::paintEngine();
2241 2246 }
2242 2247 void PythonQtShell_QHexEdit::paintEvent(QPaintEvent* arg__1)
2243 2248 {
2244 2249 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
2245 2250 static PyObject* name = PyString_FromString("paintEvent");
2246 2251 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
2247 2252 if (obj) {
2248 2253 static const char* argumentList[] ={"" , "QPaintEvent*"};
2249 2254 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2250 2255 void* args[2] = {NULL, (void*)&arg__1};
2251 2256 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2252 2257 if (result) { Py_DECREF(result); }
2253 2258 Py_DECREF(obj);
2254 2259 return;
2255 2260 } else {
2256 2261 PyErr_Clear();
2257 2262 }
2258 2263 }
2259 2264 QHexEdit::paintEvent(arg__1);
2260 2265 }
2261 2266 QPaintDevice* PythonQtShell_QHexEdit::redirected(QPoint* offset0) const
2262 2267 {
2263 2268 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
2264 2269 static PyObject* name = PyString_FromString("redirected");
2265 2270 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
2266 2271 if (obj) {
2267 2272 static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"};
2268 2273 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2269 2274 QPaintDevice* returnValue;
2270 2275 void* args[2] = {NULL, (void*)&offset0};
2271 2276 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2272 2277 if (result) {
2273 2278 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
2274 2279 if (args[0]!=&returnValue) {
2275 2280 if (args[0]==NULL) {
2276 2281 PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result);
2277 2282 } else {
2278 2283 returnValue = *((QPaintDevice**)args[0]);
2279 2284 }
2280 2285 }
2281 2286 }
2282 2287 if (result) { Py_DECREF(result); }
2283 2288 Py_DECREF(obj);
2284 2289 return returnValue;
2285 2290 } else {
2286 2291 PyErr_Clear();
2287 2292 }
2288 2293 }
2289 2294 return QHexEdit::redirected(offset0);
2290 2295 }
2291 2296 void PythonQtShell_QHexEdit::resizeEvent(QResizeEvent* arg__1)
2292 2297 {
2293 2298 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
2294 2299 static PyObject* name = PyString_FromString("resizeEvent");
2295 2300 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
2296 2301 if (obj) {
2297 2302 static const char* argumentList[] ={"" , "QResizeEvent*"};
2298 2303 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2299 2304 void* args[2] = {NULL, (void*)&arg__1};
2300 2305 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2301 2306 if (result) { Py_DECREF(result); }
2302 2307 Py_DECREF(obj);
2303 2308 return;
2304 2309 } else {
2305 2310 PyErr_Clear();
2306 2311 }
2307 2312 }
2308 2313 QHexEdit::resizeEvent(arg__1);
2309 2314 }
2310 2315 void PythonQtShell_QHexEdit::scrollContentsBy(int dx0, int dy1)
2311 2316 {
2312 2317 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
2313 2318 static PyObject* name = PyString_FromString("scrollContentsBy");
2314 2319 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
2315 2320 if (obj) {
2316 2321 static const char* argumentList[] ={"" , "int" , "int"};
2317 2322 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList);
2318 2323 void* args[3] = {NULL, (void*)&dx0, (void*)&dy1};
2319 2324 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2320 2325 if (result) { Py_DECREF(result); }
2321 2326 Py_DECREF(obj);
2322 2327 return;
2323 2328 } else {
2324 2329 PyErr_Clear();
2325 2330 }
2326 2331 }
2327 2332 QHexEdit::scrollContentsBy(dx0, dy1);
2328 2333 }
2329 2334 void PythonQtShell_QHexEdit::setupViewport(QWidget* viewport0)
2330 2335 {
2331 2336 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
2332 2337 static PyObject* name = PyString_FromString("setupViewport");
2333 2338 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
2334 2339 if (obj) {
2335 2340 static const char* argumentList[] ={"" , "QWidget*"};
2336 2341 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2337 2342 void* args[2] = {NULL, (void*)&viewport0};
2338 2343 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2339 2344 if (result) { Py_DECREF(result); }
2340 2345 Py_DECREF(obj);
2341 2346 return;
2342 2347 } else {
2343 2348 PyErr_Clear();
2344 2349 }
2345 2350 }
2346 2351 QHexEdit::setupViewport(viewport0);
2347 2352 }
2348 2353 QPainter* PythonQtShell_QHexEdit::sharedPainter() const
2349 2354 {
2350 2355 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
2351 2356 static PyObject* name = PyString_FromString("sharedPainter");
2352 2357 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
2353 2358 if (obj) {
2354 2359 static const char* argumentList[] ={"QPainter*"};
2355 2360 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
2356 2361 QPainter* returnValue;
2357 2362 void* args[1] = {NULL};
2358 2363 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2359 2364 if (result) {
2360 2365 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
2361 2366 if (args[0]!=&returnValue) {
2362 2367 if (args[0]==NULL) {
2363 2368 PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result);
2364 2369 } else {
2365 2370 returnValue = *((QPainter**)args[0]);
2366 2371 }
2367 2372 }
2368 2373 }
2369 2374 if (result) { Py_DECREF(result); }
2370 2375 Py_DECREF(obj);
2371 2376 return returnValue;
2372 2377 } else {
2373 2378 PyErr_Clear();
2374 2379 }
2375 2380 }
2376 2381 return QHexEdit::sharedPainter();
2377 2382 }
2378 2383 void PythonQtShell_QHexEdit::showEvent(QShowEvent* arg__1)
2379 2384 {
2380 2385 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
2381 2386 static PyObject* name = PyString_FromString("showEvent");
2382 2387 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
2383 2388 if (obj) {
2384 2389 static const char* argumentList[] ={"" , "QShowEvent*"};
2385 2390 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2386 2391 void* args[2] = {NULL, (void*)&arg__1};
2387 2392 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2388 2393 if (result) { Py_DECREF(result); }
2389 2394 Py_DECREF(obj);
2390 2395 return;
2391 2396 } else {
2392 2397 PyErr_Clear();
2393 2398 }
2394 2399 }
2395 2400 QHexEdit::showEvent(arg__1);
2396 2401 }
2397 2402 void PythonQtShell_QHexEdit::tabletEvent(QTabletEvent* arg__1)
2398 2403 {
2399 2404 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
2400 2405 static PyObject* name = PyString_FromString("tabletEvent");
2401 2406 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
2402 2407 if (obj) {
2403 2408 static const char* argumentList[] ={"" , "QTabletEvent*"};
2404 2409 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2405 2410 void* args[2] = {NULL, (void*)&arg__1};
2406 2411 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2407 2412 if (result) { Py_DECREF(result); }
2408 2413 Py_DECREF(obj);
2409 2414 return;
2410 2415 } else {
2411 2416 PyErr_Clear();
2412 2417 }
2413 2418 }
2414 2419 QHexEdit::tabletEvent(arg__1);
2415 2420 }
2416 2421 void PythonQtShell_QHexEdit::timerEvent(QTimerEvent* arg__1)
2417 2422 {
2418 2423 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
2419 2424 static PyObject* name = PyString_FromString("timerEvent");
2420 2425 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
2421 2426 if (obj) {
2422 2427 static const char* argumentList[] ={"" , "QTimerEvent*"};
2423 2428 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2424 2429 void* args[2] = {NULL, (void*)&arg__1};
2425 2430 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2426 2431 if (result) { Py_DECREF(result); }
2427 2432 Py_DECREF(obj);
2428 2433 return;
2429 2434 } else {
2430 2435 PyErr_Clear();
2431 2436 }
2432 2437 }
2433 2438 QHexEdit::timerEvent(arg__1);
2434 2439 }
2435 2440 bool PythonQtShell_QHexEdit::viewportEvent(QEvent* arg__1)
2436 2441 {
2437 2442 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
2438 2443 static PyObject* name = PyString_FromString("viewportEvent");
2439 2444 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
2440 2445 if (obj) {
2441 2446 static const char* argumentList[] ={"bool" , "QEvent*"};
2442 2447 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2443 2448 bool returnValue;
2444 2449 void* args[2] = {NULL, (void*)&arg__1};
2445 2450 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2446 2451 if (result) {
2447 2452 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
2448 2453 if (args[0]!=&returnValue) {
2449 2454 if (args[0]==NULL) {
2450 2455 PythonQt::priv()->handleVirtualOverloadReturnError("viewportEvent", methodInfo, result);
2451 2456 } else {
2452 2457 returnValue = *((bool*)args[0]);
2453 2458 }
2454 2459 }
2455 2460 }
2456 2461 if (result) { Py_DECREF(result); }
2457 2462 Py_DECREF(obj);
2458 2463 return returnValue;
2459 2464 } else {
2460 2465 PyErr_Clear();
2461 2466 }
2462 2467 }
2463 2468 return QHexEdit::viewportEvent(arg__1);
2464 2469 }
2465 2470 QSize PythonQtShell_QHexEdit::viewportSizeHint() const
2466 2471 {
2467 2472 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
2468 2473 static PyObject* name = PyString_FromString("viewportSizeHint");
2469 2474 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
2470 2475 if (obj) {
2471 2476 static const char* argumentList[] ={"QSize"};
2472 2477 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
2473 2478 QSize returnValue;
2474 2479 void* args[1] = {NULL};
2475 2480 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2476 2481 if (result) {
2477 2482 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
2478 2483 if (args[0]!=&returnValue) {
2479 2484 if (args[0]==NULL) {
2480 2485 PythonQt::priv()->handleVirtualOverloadReturnError("viewportSizeHint", methodInfo, result);
2481 2486 } else {
2482 2487 returnValue = *((QSize*)args[0]);
2483 2488 }
2484 2489 }
2485 2490 }
2486 2491 if (result) { Py_DECREF(result); }
2487 2492 Py_DECREF(obj);
2488 2493 return returnValue;
2489 2494 } else {
2490 2495 PyErr_Clear();
2491 2496 }
2492 2497 }
2493 2498 return QHexEdit::viewportSizeHint();
2494 2499 }
2495 2500 void PythonQtShell_QHexEdit::wheelEvent(QWheelEvent* arg__1)
2496 2501 {
2497 2502 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
2498 2503 static PyObject* name = PyString_FromString("wheelEvent");
2499 2504 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
2500 2505 if (obj) {
2501 2506 static const char* argumentList[] ={"" , "QWheelEvent*"};
2502 2507 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2503 2508 void* args[2] = {NULL, (void*)&arg__1};
2504 2509 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2505 2510 if (result) { Py_DECREF(result); }
2506 2511 Py_DECREF(obj);
2507 2512 return;
2508 2513 } else {
2509 2514 PyErr_Clear();
2510 2515 }
2511 2516 }
2512 2517 QHexEdit::wheelEvent(arg__1);
2513 2518 }
2514 2519 QHexEdit* PythonQtWrapper_QHexEdit::new_QHexEdit(QWidget* parent)
2515 2520 {
2516 2521 return new PythonQtShell_QHexEdit(parent); }
2517 2522
2518 2523 QColor PythonQtWrapper_QHexEdit::addressAreaColor(QHexEdit* theWrappedObject)
2519 2524 {
2520 2525 return ( theWrappedObject->addressAreaColor());
2521 2526 }
2522 2527
2523 2528 int PythonQtWrapper_QHexEdit::addressOffset(QHexEdit* theWrappedObject)
2524 2529 {
2525 2530 return ( theWrappedObject->addressOffset());
2526 2531 }
2527 2532
2528 2533 int PythonQtWrapper_QHexEdit::cursorPosition(QHexEdit* theWrappedObject)
2529 2534 {
2530 2535 return ( theWrappedObject->cursorPosition());
2531 2536 }
2532 2537
2533 2538 QByteArray PythonQtWrapper_QHexEdit::data(QHexEdit* theWrappedObject)
2534 2539 {
2535 2540 return ( theWrappedObject->data());
2536 2541 }
2537 2542
2538 2543 const QFont* PythonQtWrapper_QHexEdit::font(QHexEdit* theWrappedObject) const
2539 2544 {
2540 2545 return &( theWrappedObject->font());
2541 2546 }
2542 2547
2543 2548 int PythonQtWrapper_QHexEdit::getSelectionBegin(QHexEdit* theWrappedObject)
2544 2549 {
2545 2550 return ( theWrappedObject->getSelectionBegin());
2546 2551 }
2547 2552
2548 2553 int PythonQtWrapper_QHexEdit::getSelectionEnd(QHexEdit* theWrappedObject)
2549 2554 {
2550 2555 return ( theWrappedObject->getSelectionEnd());
2551 2556 }
2552 2557
2553 2558 QColor PythonQtWrapper_QHexEdit::highlightingColor(QHexEdit* theWrappedObject)
2554 2559 {
2555 2560 return ( theWrappedObject->highlightingColor());
2556 2561 }
2557 2562
2558 2563 int PythonQtWrapper_QHexEdit::indexOf(QHexEdit* theWrappedObject, const QByteArray& ba, int from) const
2559 2564 {
2560 2565 return ( theWrappedObject->indexOf(ba, from));
2561 2566 }
2562 2567
2563 2568 void PythonQtWrapper_QHexEdit::insert(QHexEdit* theWrappedObject, int i, char ch)
2564 2569 {
2565 2570 ( theWrappedObject->insert(i, ch));
2566 2571 }
2567 2572
2568 2573 void PythonQtWrapper_QHexEdit::insert(QHexEdit* theWrappedObject, int i, const QByteArray& ba)
2569 2574 {
2570 2575 ( theWrappedObject->insert(i, ba));
2571 2576 }
2572 2577
2573 2578 bool PythonQtWrapper_QHexEdit::isReadOnly(QHexEdit* theWrappedObject)
2574 2579 {
2575 2580 return ( theWrappedObject->isReadOnly());
2576 2581 }
2577 2582
2578 2583 int PythonQtWrapper_QHexEdit::lastIndexOf(QHexEdit* theWrappedObject, const QByteArray& ba, int from) const
2579 2584 {
2580 2585 return ( theWrappedObject->lastIndexOf(ba, from));
2581 2586 }
2582 2587
2583 2588 bool PythonQtWrapper_QHexEdit::overwriteMode(QHexEdit* theWrappedObject)
2584 2589 {
2585 2590 return ( theWrappedObject->overwriteMode());
2586 2591 }
2587 2592
2588 2593 void PythonQtWrapper_QHexEdit::remove(QHexEdit* theWrappedObject, int pos, int len)
2589 2594 {
2590 2595 ( theWrappedObject->remove(pos, len));
2591 2596 }
2592 2597
2593 2598 void PythonQtWrapper_QHexEdit::replace(QHexEdit* theWrappedObject, int pos, int len, const QByteArray& after)
2594 2599 {
2595 2600 ( theWrappedObject->replace(pos, len, after));
2596 2601 }
2597 2602
2598 2603 void PythonQtWrapper_QHexEdit::resetSelection(QHexEdit* theWrappedObject)
2599 2604 {
2600 2605 ( theWrappedObject->resetSelection());
2601 2606 }
2602 2607
2603 2608 void PythonQtWrapper_QHexEdit::resetSelection(QHexEdit* theWrappedObject, int pos)
2604 2609 {
2605 2610 ( theWrappedObject->resetSelection(pos));
2606 2611 }
2607 2612
2608 2613 QColor PythonQtWrapper_QHexEdit::selectionColor(QHexEdit* theWrappedObject)
2609 2614 {
2610 2615 return ( theWrappedObject->selectionColor());
2611 2616 }
2612 2617
2613 2618 QString PythonQtWrapper_QHexEdit::selectionToReadableString(QHexEdit* theWrappedObject)
2614 2619 {
2615 2620 return ( theWrappedObject->selectionToReadableString());
2616 2621 }
2617 2622
2618 2623 void PythonQtWrapper_QHexEdit::setAddressAreaColor(QHexEdit* theWrappedObject, const QColor& color)
2619 2624 {
2620 2625 ( theWrappedObject->setAddressAreaColor(color));
2621 2626 }
2622 2627
2623 2628 void PythonQtWrapper_QHexEdit::setAddressOffset(QHexEdit* theWrappedObject, int offset)
2624 2629 {
2625 2630 ( theWrappedObject->setAddressOffset(offset));
2626 2631 }
2627 2632
2628 2633 void PythonQtWrapper_QHexEdit::setCursorPosition(QHexEdit* theWrappedObject, int cusorPos)
2629 2634 {
2630 2635 ( theWrappedObject->setCursorPosition(cusorPos));
2631 2636 }
2632 2637
2633 2638 void PythonQtWrapper_QHexEdit::setData(QHexEdit* theWrappedObject, const QByteArray& data)
2634 2639 {
2635 2640 ( theWrappedObject->setData(data));
2636 2641 }
2637 2642
2638 2643 void PythonQtWrapper_QHexEdit::setFont(QHexEdit* theWrappedObject, const QFont& arg__1)
2639 2644 {
2640 2645 ( theWrappedObject->setFont(arg__1));
2641 2646 }
2642 2647
2643 2648 void PythonQtWrapper_QHexEdit::setHighlightingColor(QHexEdit* theWrappedObject, const QColor& color)
2644 2649 {
2645 2650 ( theWrappedObject->setHighlightingColor(color));
2646 2651 }
2647 2652
2648 2653 void PythonQtWrapper_QHexEdit::setOverwriteMode(QHexEdit* theWrappedObject, bool arg__1)
2649 2654 {
2650 2655 ( theWrappedObject->setOverwriteMode(arg__1));
2651 2656 }
2652 2657
2653 2658 void PythonQtWrapper_QHexEdit::setReadOnly(QHexEdit* theWrappedObject, bool arg__1)
2654 2659 {
2655 2660 ( theWrappedObject->setReadOnly(arg__1));
2656 2661 }
2657 2662
2658 2663 void PythonQtWrapper_QHexEdit::setSelection(QHexEdit* theWrappedObject, int pos)
2659 2664 {
2660 2665 ( theWrappedObject->setSelection(pos));
2661 2666 }
2662 2667
2663 2668 void PythonQtWrapper_QHexEdit::setSelectionColor(QHexEdit* theWrappedObject, const QColor& color)
2664 2669 {
2665 2670 ( theWrappedObject->setSelectionColor(color));
2666 2671 }
2667 2672
2668 2673 QString PythonQtWrapper_QHexEdit::toReadableString(QHexEdit* theWrappedObject)
2669 2674 {
2670 2675 return ( theWrappedObject->toReadableString());
2671 2676 }
2672 2677
2673 2678
2674 2679
2675 2680 PythonQtShell_QHexSpinBox::~PythonQtShell_QHexSpinBox() {
2676 2681 PythonQtPrivate* priv = PythonQt::priv();
2677 2682 if (priv) { priv->shellClassDeleted(this); }
2678 2683 }
2679 2684 void PythonQtShell_QHexSpinBox::actionEvent(QActionEvent* arg__1)
2680 2685 {
2681 2686 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
2682 2687 static PyObject* name = PyString_FromString("actionEvent");
2683 2688 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
2684 2689 if (obj) {
2685 2690 static const char* argumentList[] ={"" , "QActionEvent*"};
2686 2691 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2687 2692 void* args[2] = {NULL, (void*)&arg__1};
2688 2693 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2689 2694 if (result) { Py_DECREF(result); }
2690 2695 Py_DECREF(obj);
2691 2696 return;
2692 2697 } else {
2693 2698 PyErr_Clear();
2694 2699 }
2695 2700 }
2696 2701 QHexSpinBox::actionEvent(arg__1);
2697 2702 }
2698 2703 void PythonQtShell_QHexSpinBox::changeEvent(QEvent* event0)
2699 2704 {
2700 2705 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
2701 2706 static PyObject* name = PyString_FromString("changeEvent");
2702 2707 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
2703 2708 if (obj) {
2704 2709 static const char* argumentList[] ={"" , "QEvent*"};
2705 2710 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2706 2711 void* args[2] = {NULL, (void*)&event0};
2707 2712 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2708 2713 if (result) { Py_DECREF(result); }
2709 2714 Py_DECREF(obj);
2710 2715 return;
2711 2716 } else {
2712 2717 PyErr_Clear();
2713 2718 }
2714 2719 }
2715 2720 QHexSpinBox::changeEvent(event0);
2716 2721 }
2717 2722 void PythonQtShell_QHexSpinBox::childEvent(QChildEvent* arg__1)
2718 2723 {
2719 2724 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
2720 2725 static PyObject* name = PyString_FromString("childEvent");
2721 2726 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
2722 2727 if (obj) {
2723 2728 static const char* argumentList[] ={"" , "QChildEvent*"};
2724 2729 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2725 2730 void* args[2] = {NULL, (void*)&arg__1};
2726 2731 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2727 2732 if (result) { Py_DECREF(result); }
2728 2733 Py_DECREF(obj);
2729 2734 return;
2730 2735 } else {
2731 2736 PyErr_Clear();
2732 2737 }
2733 2738 }
2734 2739 QHexSpinBox::childEvent(arg__1);
2735 2740 }
2736 2741 void PythonQtShell_QHexSpinBox::clear()
2737 2742 {
2738 2743 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
2739 2744 static PyObject* name = PyString_FromString("clear");
2740 2745 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
2741 2746 if (obj) {
2742 2747 static const char* argumentList[] ={""};
2743 2748 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
2744 2749 void* args[1] = {NULL};
2745 2750 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2746 2751 if (result) { Py_DECREF(result); }
2747 2752 Py_DECREF(obj);
2748 2753 return;
2749 2754 } else {
2750 2755 PyErr_Clear();
2751 2756 }
2752 2757 }
2753 2758 QHexSpinBox::clear();
2754 2759 }
2755 2760 void PythonQtShell_QHexSpinBox::closeEvent(QCloseEvent* event0)
2756 2761 {
2757 2762 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
2758 2763 static PyObject* name = PyString_FromString("closeEvent");
2759 2764 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
2760 2765 if (obj) {
2761 2766 static const char* argumentList[] ={"" , "QCloseEvent*"};
2762 2767 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2763 2768 void* args[2] = {NULL, (void*)&event0};
2764 2769 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2765 2770 if (result) { Py_DECREF(result); }
2766 2771 Py_DECREF(obj);
2767 2772 return;
2768 2773 } else {
2769 2774 PyErr_Clear();
2770 2775 }
2771 2776 }
2772 2777 QHexSpinBox::closeEvent(event0);
2773 2778 }
2774 2779 void PythonQtShell_QHexSpinBox::contextMenuEvent(QContextMenuEvent* event0)
2775 2780 {
2776 2781 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
2777 2782 static PyObject* name = PyString_FromString("contextMenuEvent");
2778 2783 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
2779 2784 if (obj) {
2780 2785 static const char* argumentList[] ={"" , "QContextMenuEvent*"};
2781 2786 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2782 2787 void* args[2] = {NULL, (void*)&event0};
2783 2788 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2784 2789 if (result) { Py_DECREF(result); }
2785 2790 Py_DECREF(obj);
2786 2791 return;
2787 2792 } else {
2788 2793 PyErr_Clear();
2789 2794 }
2790 2795 }
2791 2796 QHexSpinBox::contextMenuEvent(event0);
2792 2797 }
2793 2798 void PythonQtShell_QHexSpinBox::customEvent(QEvent* arg__1)
2794 2799 {
2795 2800 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
2796 2801 static PyObject* name = PyString_FromString("customEvent");
2797 2802 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
2798 2803 if (obj) {
2799 2804 static const char* argumentList[] ={"" , "QEvent*"};
2800 2805 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2801 2806 void* args[2] = {NULL, (void*)&arg__1};
2802 2807 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2803 2808 if (result) { Py_DECREF(result); }
2804 2809 Py_DECREF(obj);
2805 2810 return;
2806 2811 } else {
2807 2812 PyErr_Clear();
2808 2813 }
2809 2814 }
2810 2815 QHexSpinBox::customEvent(arg__1);
2811 2816 }
2812 2817 int PythonQtShell_QHexSpinBox::devType() const
2813 2818 {
2814 2819 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
2815 2820 static PyObject* name = PyString_FromString("devType");
2816 2821 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
2817 2822 if (obj) {
2818 2823 static const char* argumentList[] ={"int"};
2819 2824 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
2820 2825 int returnValue;
2821 2826 void* args[1] = {NULL};
2822 2827 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2823 2828 if (result) {
2824 2829 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
2825 2830 if (args[0]!=&returnValue) {
2826 2831 if (args[0]==NULL) {
2827 2832 PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result);
2828 2833 } else {
2829 2834 returnValue = *((int*)args[0]);
2830 2835 }
2831 2836 }
2832 2837 }
2833 2838 if (result) { Py_DECREF(result); }
2834 2839 Py_DECREF(obj);
2835 2840 return returnValue;
2836 2841 } else {
2837 2842 PyErr_Clear();
2838 2843 }
2839 2844 }
2840 2845 return QHexSpinBox::devType();
2841 2846 }
2842 2847 void PythonQtShell_QHexSpinBox::dragEnterEvent(QDragEnterEvent* arg__1)
2843 2848 {
2844 2849 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
2845 2850 static PyObject* name = PyString_FromString("dragEnterEvent");
2846 2851 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
2847 2852 if (obj) {
2848 2853 static const char* argumentList[] ={"" , "QDragEnterEvent*"};
2849 2854 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2850 2855 void* args[2] = {NULL, (void*)&arg__1};
2851 2856 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2852 2857 if (result) { Py_DECREF(result); }
2853 2858 Py_DECREF(obj);
2854 2859 return;
2855 2860 } else {
2856 2861 PyErr_Clear();
2857 2862 }
2858 2863 }
2859 2864 QHexSpinBox::dragEnterEvent(arg__1);
2860 2865 }
2861 2866 void PythonQtShell_QHexSpinBox::dragLeaveEvent(QDragLeaveEvent* arg__1)
2862 2867 {
2863 2868 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
2864 2869 static PyObject* name = PyString_FromString("dragLeaveEvent");
2865 2870 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
2866 2871 if (obj) {
2867 2872 static const char* argumentList[] ={"" , "QDragLeaveEvent*"};
2868 2873 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2869 2874 void* args[2] = {NULL, (void*)&arg__1};
2870 2875 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2871 2876 if (result) { Py_DECREF(result); }
2872 2877 Py_DECREF(obj);
2873 2878 return;
2874 2879 } else {
2875 2880 PyErr_Clear();
2876 2881 }
2877 2882 }
2878 2883 QHexSpinBox::dragLeaveEvent(arg__1);
2879 2884 }
2880 2885 void PythonQtShell_QHexSpinBox::dragMoveEvent(QDragMoveEvent* arg__1)
2881 2886 {
2882 2887 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
2883 2888 static PyObject* name = PyString_FromString("dragMoveEvent");
2884 2889 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
2885 2890 if (obj) {
2886 2891 static const char* argumentList[] ={"" , "QDragMoveEvent*"};
2887 2892 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2888 2893 void* args[2] = {NULL, (void*)&arg__1};
2889 2894 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2890 2895 if (result) { Py_DECREF(result); }
2891 2896 Py_DECREF(obj);
2892 2897 return;
2893 2898 } else {
2894 2899 PyErr_Clear();
2895 2900 }
2896 2901 }
2897 2902 QHexSpinBox::dragMoveEvent(arg__1);
2898 2903 }
2899 2904 void PythonQtShell_QHexSpinBox::dropEvent(QDropEvent* arg__1)
2900 2905 {
2901 2906 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
2902 2907 static PyObject* name = PyString_FromString("dropEvent");
2903 2908 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
2904 2909 if (obj) {
2905 2910 static const char* argumentList[] ={"" , "QDropEvent*"};
2906 2911 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2907 2912 void* args[2] = {NULL, (void*)&arg__1};
2908 2913 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2909 2914 if (result) { Py_DECREF(result); }
2910 2915 Py_DECREF(obj);
2911 2916 return;
2912 2917 } else {
2913 2918 PyErr_Clear();
2914 2919 }
2915 2920 }
2916 2921 QHexSpinBox::dropEvent(arg__1);
2917 2922 }
2918 2923 void PythonQtShell_QHexSpinBox::enterEvent(QEvent* arg__1)
2919 2924 {
2920 2925 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
2921 2926 static PyObject* name = PyString_FromString("enterEvent");
2922 2927 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
2923 2928 if (obj) {
2924 2929 static const char* argumentList[] ={"" , "QEvent*"};
2925 2930 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2926 2931 void* args[2] = {NULL, (void*)&arg__1};
2927 2932 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2928 2933 if (result) { Py_DECREF(result); }
2929 2934 Py_DECREF(obj);
2930 2935 return;
2931 2936 } else {
2932 2937 PyErr_Clear();
2933 2938 }
2934 2939 }
2935 2940 QHexSpinBox::enterEvent(arg__1);
2936 2941 }
2937 2942 bool PythonQtShell_QHexSpinBox::event(QEvent* event0)
2938 2943 {
2939 2944 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
2940 2945 static PyObject* name = PyString_FromString("event");
2941 2946 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
2942 2947 if (obj) {
2943 2948 static const char* argumentList[] ={"bool" , "QEvent*"};
2944 2949 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2945 2950 bool returnValue;
2946 2951 void* args[2] = {NULL, (void*)&event0};
2947 2952 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2948 2953 if (result) {
2949 2954 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
2950 2955 if (args[0]!=&returnValue) {
2951 2956 if (args[0]==NULL) {
2952 2957 PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result);
2953 2958 } else {
2954 2959 returnValue = *((bool*)args[0]);
2955 2960 }
2956 2961 }
2957 2962 }
2958 2963 if (result) { Py_DECREF(result); }
2959 2964 Py_DECREF(obj);
2960 2965 return returnValue;
2961 2966 } else {
2962 2967 PyErr_Clear();
2963 2968 }
2964 2969 }
2965 2970 return QHexSpinBox::event(event0);
2966 2971 }
2967 2972 bool PythonQtShell_QHexSpinBox::eventFilter(QObject* arg__1, QEvent* arg__2)
2968 2973 {
2969 2974 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
2970 2975 static PyObject* name = PyString_FromString("eventFilter");
2971 2976 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
2972 2977 if (obj) {
2973 2978 static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"};
2974 2979 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList);
2975 2980 bool returnValue;
2976 2981 void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2};
2977 2982 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2978 2983 if (result) {
2979 2984 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
2980 2985 if (args[0]!=&returnValue) {
2981 2986 if (args[0]==NULL) {
2982 2987 PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result);
2983 2988 } else {
2984 2989 returnValue = *((bool*)args[0]);
2985 2990 }
2986 2991 }
2987 2992 }
2988 2993 if (result) { Py_DECREF(result); }
2989 2994 Py_DECREF(obj);
2990 2995 return returnValue;
2991 2996 } else {
2992 2997 PyErr_Clear();
2993 2998 }
2994 2999 }
2995 3000 return QHexSpinBox::eventFilter(arg__1, arg__2);
2996 3001 }
2997 3002 void PythonQtShell_QHexSpinBox::fixup(QString& str0) const
2998 3003 {
2999 3004 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
3000 3005 static PyObject* name = PyString_FromString("fixup");
3001 3006 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
3002 3007 if (obj) {
3003 3008 static const char* argumentList[] ={"" , "QString&"};
3004 3009 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3005 3010 void* args[2] = {NULL, (void*)&str0};
3006 3011 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3007 3012 if (result) { Py_DECREF(result); }
3008 3013 Py_DECREF(obj);
3009 3014 return;
3010 3015 } else {
3011 3016 PyErr_Clear();
3012 3017 }
3013 3018 }
3014 3019 QHexSpinBox::fixup(str0);
3015 3020 }
3016 3021 void PythonQtShell_QHexSpinBox::focusInEvent(QFocusEvent* event0)
3017 3022 {
3018 3023 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
3019 3024 static PyObject* name = PyString_FromString("focusInEvent");
3020 3025 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
3021 3026 if (obj) {
3022 3027 static const char* argumentList[] ={"" , "QFocusEvent*"};
3023 3028 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3024 3029 void* args[2] = {NULL, (void*)&event0};
3025 3030 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3026 3031 if (result) { Py_DECREF(result); }
3027 3032 Py_DECREF(obj);
3028 3033 return;
3029 3034 } else {
3030 3035 PyErr_Clear();
3031 3036 }
3032 3037 }
3033 3038 QHexSpinBox::focusInEvent(event0);
3034 3039 }
3035 3040 bool PythonQtShell_QHexSpinBox::focusNextPrevChild(bool next0)
3036 3041 {
3037 3042 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
3038 3043 static PyObject* name = PyString_FromString("focusNextPrevChild");
3039 3044 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
3040 3045 if (obj) {
3041 3046 static const char* argumentList[] ={"bool" , "bool"};
3042 3047 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3043 3048 bool returnValue;
3044 3049 void* args[2] = {NULL, (void*)&next0};
3045 3050 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3046 3051 if (result) {
3047 3052 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
3048 3053 if (args[0]!=&returnValue) {
3049 3054 if (args[0]==NULL) {
3050 3055 PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result);
3051 3056 } else {
3052 3057 returnValue = *((bool*)args[0]);
3053 3058 }
3054 3059 }
3055 3060 }
3056 3061 if (result) { Py_DECREF(result); }
3057 3062 Py_DECREF(obj);
3058 3063 return returnValue;
3059 3064 } else {
3060 3065 PyErr_Clear();
3061 3066 }
3062 3067 }
3063 3068 return QHexSpinBox::focusNextPrevChild(next0);
3064 3069 }
3065 3070 void PythonQtShell_QHexSpinBox::focusOutEvent(QFocusEvent* event0)
3066 3071 {
3067 3072 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
3068 3073 static PyObject* name = PyString_FromString("focusOutEvent");
3069 3074 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
3070 3075 if (obj) {
3071 3076 static const char* argumentList[] ={"" , "QFocusEvent*"};
3072 3077 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3073 3078 void* args[2] = {NULL, (void*)&event0};
3074 3079 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3075 3080 if (result) { Py_DECREF(result); }
3076 3081 Py_DECREF(obj);
3077 3082 return;
3078 3083 } else {
3079 3084 PyErr_Clear();
3080 3085 }
3081 3086 }
3082 3087 QHexSpinBox::focusOutEvent(event0);
3083 3088 }
3084 3089 bool PythonQtShell_QHexSpinBox::hasHeightForWidth() const
3085 3090 {
3086 3091 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
3087 3092 static PyObject* name = PyString_FromString("hasHeightForWidth");
3088 3093 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
3089 3094 if (obj) {
3090 3095 static const char* argumentList[] ={"bool"};
3091 3096 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
3092 3097 bool returnValue;
3093 3098 void* args[1] = {NULL};
3094 3099 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3095 3100 if (result) {
3096 3101 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
3097 3102 if (args[0]!=&returnValue) {
3098 3103 if (args[0]==NULL) {
3099 3104 PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result);
3100 3105 } else {
3101 3106 returnValue = *((bool*)args[0]);
3102 3107 }
3103 3108 }
3104 3109 }
3105 3110 if (result) { Py_DECREF(result); }
3106 3111 Py_DECREF(obj);
3107 3112 return returnValue;
3108 3113 } else {
3109 3114 PyErr_Clear();
3110 3115 }
3111 3116 }
3112 3117 return QHexSpinBox::hasHeightForWidth();
3113 3118 }
3114 3119 int PythonQtShell_QHexSpinBox::heightForWidth(int arg__1) const
3115 3120 {
3116 3121 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
3117 3122 static PyObject* name = PyString_FromString("heightForWidth");
3118 3123 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
3119 3124 if (obj) {
3120 3125 static const char* argumentList[] ={"int" , "int"};
3121 3126 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3122 3127 int returnValue;
3123 3128 void* args[2] = {NULL, (void*)&arg__1};
3124 3129 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3125 3130 if (result) {
3126 3131 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
3127 3132 if (args[0]!=&returnValue) {
3128 3133 if (args[0]==NULL) {
3129 3134 PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result);
3130 3135 } else {
3131 3136 returnValue = *((int*)args[0]);
3132 3137 }
3133 3138 }
3134 3139 }
3135 3140 if (result) { Py_DECREF(result); }
3136 3141 Py_DECREF(obj);
3137 3142 return returnValue;
3138 3143 } else {
3139 3144 PyErr_Clear();
3140 3145 }
3141 3146 }
3142 3147 return QHexSpinBox::heightForWidth(arg__1);
3143 3148 }
3144 3149 void PythonQtShell_QHexSpinBox::hideEvent(QHideEvent* event0)
3145 3150 {
3146 3151 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
3147 3152 static PyObject* name = PyString_FromString("hideEvent");
3148 3153 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
3149 3154 if (obj) {
3150 3155 static const char* argumentList[] ={"" , "QHideEvent*"};
3151 3156 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3152 3157 void* args[2] = {NULL, (void*)&event0};
3153 3158 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3154 3159 if (result) { Py_DECREF(result); }
3155 3160 Py_DECREF(obj);
3156 3161 return;
3157 3162 } else {
3158 3163 PyErr_Clear();
3159 3164 }
3160 3165 }
3161 3166 QHexSpinBox::hideEvent(event0);
3162 3167 }
3163 3168 void PythonQtShell_QHexSpinBox::initPainter(QPainter* painter0) const
3164 3169 {
3165 3170 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
3166 3171 static PyObject* name = PyString_FromString("initPainter");
3167 3172 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
3168 3173 if (obj) {
3169 3174 static const char* argumentList[] ={"" , "QPainter*"};
3170 3175 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3171 3176 void* args[2] = {NULL, (void*)&painter0};
3172 3177 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3173 3178 if (result) { Py_DECREF(result); }
3174 3179 Py_DECREF(obj);
3175 3180 return;
3176 3181 } else {
3177 3182 PyErr_Clear();
3178 3183 }
3179 3184 }
3180 3185 QHexSpinBox::initPainter(painter0);
3181 3186 }
3182 3187 void PythonQtShell_QHexSpinBox::inputMethodEvent(QInputMethodEvent* arg__1)
3183 3188 {
3184 3189 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
3185 3190 static PyObject* name = PyString_FromString("inputMethodEvent");
3186 3191 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
3187 3192 if (obj) {
3188 3193 static const char* argumentList[] ={"" , "QInputMethodEvent*"};
3189 3194 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3190 3195 void* args[2] = {NULL, (void*)&arg__1};
3191 3196 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3192 3197 if (result) { Py_DECREF(result); }
3193 3198 Py_DECREF(obj);
3194 3199 return;
3195 3200 } else {
3196 3201 PyErr_Clear();
3197 3202 }
3198 3203 }
3199 3204 QHexSpinBox::inputMethodEvent(arg__1);
3200 3205 }
3201 3206 QVariant PythonQtShell_QHexSpinBox::inputMethodQuery(Qt::InputMethodQuery arg__1) const
3202 3207 {
3203 3208 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
3204 3209 static PyObject* name = PyString_FromString("inputMethodQuery");
3205 3210 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
3206 3211 if (obj) {
3207 3212 static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"};
3208 3213 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3209 3214 QVariant returnValue;
3210 3215 void* args[2] = {NULL, (void*)&arg__1};
3211 3216 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3212 3217 if (result) {
3213 3218 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
3214 3219 if (args[0]!=&returnValue) {
3215 3220 if (args[0]==NULL) {
3216 3221 PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result);
3217 3222 } else {
3218 3223 returnValue = *((QVariant*)args[0]);
3219 3224 }
3220 3225 }
3221 3226 }
3222 3227 if (result) { Py_DECREF(result); }
3223 3228 Py_DECREF(obj);
3224 3229 return returnValue;
3225 3230 } else {
3226 3231 PyErr_Clear();
3227 3232 }
3228 3233 }
3229 3234 return QHexSpinBox::inputMethodQuery(arg__1);
3230 3235 }
3231 3236 void PythonQtShell_QHexSpinBox::keyPressEvent(QKeyEvent* event0)
3232 3237 {
3233 3238 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
3234 3239 static PyObject* name = PyString_FromString("keyPressEvent");
3235 3240 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
3236 3241 if (obj) {
3237 3242 static const char* argumentList[] ={"" , "QKeyEvent*"};
3238 3243 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3239 3244 void* args[2] = {NULL, (void*)&event0};
3240 3245 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3241 3246 if (result) { Py_DECREF(result); }
3242 3247 Py_DECREF(obj);
3243 3248 return;
3244 3249 } else {
3245 3250 PyErr_Clear();
3246 3251 }
3247 3252 }
3248 3253 QHexSpinBox::keyPressEvent(event0);
3249 3254 }
3250 3255 void PythonQtShell_QHexSpinBox::keyReleaseEvent(QKeyEvent* event0)
3251 3256 {
3252 3257 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
3253 3258 static PyObject* name = PyString_FromString("keyReleaseEvent");
3254 3259 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
3255 3260 if (obj) {
3256 3261 static const char* argumentList[] ={"" , "QKeyEvent*"};
3257 3262 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3258 3263 void* args[2] = {NULL, (void*)&event0};
3259 3264 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3260 3265 if (result) { Py_DECREF(result); }
3261 3266 Py_DECREF(obj);
3262 3267 return;
3263 3268 } else {
3264 3269 PyErr_Clear();
3265 3270 }
3266 3271 }
3267 3272 QHexSpinBox::keyReleaseEvent(event0);
3268 3273 }
3269 3274 void PythonQtShell_QHexSpinBox::leaveEvent(QEvent* arg__1)
3270 3275 {
3271 3276 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
3272 3277 static PyObject* name = PyString_FromString("leaveEvent");
3273 3278 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
3274 3279 if (obj) {
3275 3280 static const char* argumentList[] ={"" , "QEvent*"};
3276 3281 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3277 3282 void* args[2] = {NULL, (void*)&arg__1};
3278 3283 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3279 3284 if (result) { Py_DECREF(result); }
3280 3285 Py_DECREF(obj);
3281 3286 return;
3282 3287 } else {
3283 3288 PyErr_Clear();
3284 3289 }
3285 3290 }
3286 3291 QHexSpinBox::leaveEvent(arg__1);
3287 3292 }
3288 3293 int PythonQtShell_QHexSpinBox::metric(QPaintDevice::PaintDeviceMetric arg__1) const
3289 3294 {
3290 3295 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
3291 3296 static PyObject* name = PyString_FromString("metric");
3292 3297 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
3293 3298 if (obj) {
3294 3299 static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"};
3295 3300 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3296 3301 int returnValue;
3297 3302 void* args[2] = {NULL, (void*)&arg__1};
3298 3303 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3299 3304 if (result) {
3300 3305 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
3301 3306 if (args[0]!=&returnValue) {
3302 3307 if (args[0]==NULL) {
3303 3308 PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result);
3304 3309 } else {
3305 3310 returnValue = *((int*)args[0]);
3306 3311 }
3307 3312 }
3308 3313 }
3309 3314 if (result) { Py_DECREF(result); }
3310 3315 Py_DECREF(obj);
3311 3316 return returnValue;
3312 3317 } else {
3313 3318 PyErr_Clear();
3314 3319 }
3315 3320 }
3316 3321 return QHexSpinBox::metric(arg__1);
3317 3322 }
3318 3323 void PythonQtShell_QHexSpinBox::mouseDoubleClickEvent(QMouseEvent* arg__1)
3319 3324 {
3320 3325 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
3321 3326 static PyObject* name = PyString_FromString("mouseDoubleClickEvent");
3322 3327 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
3323 3328 if (obj) {
3324 3329 static const char* argumentList[] ={"" , "QMouseEvent*"};
3325 3330 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3326 3331 void* args[2] = {NULL, (void*)&arg__1};
3327 3332 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3328 3333 if (result) { Py_DECREF(result); }
3329 3334 Py_DECREF(obj);
3330 3335 return;
3331 3336 } else {
3332 3337 PyErr_Clear();
3333 3338 }
3334 3339 }
3335 3340 QHexSpinBox::mouseDoubleClickEvent(arg__1);
3336 3341 }
3337 3342 void PythonQtShell_QHexSpinBox::mouseMoveEvent(QMouseEvent* event0)
3338 3343 {
3339 3344 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
3340 3345 static PyObject* name = PyString_FromString("mouseMoveEvent");
3341 3346 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
3342 3347 if (obj) {
3343 3348 static const char* argumentList[] ={"" , "QMouseEvent*"};
3344 3349 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3345 3350 void* args[2] = {NULL, (void*)&event0};
3346 3351 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3347 3352 if (result) { Py_DECREF(result); }
3348 3353 Py_DECREF(obj);
3349 3354 return;
3350 3355 } else {
3351 3356 PyErr_Clear();
3352 3357 }
3353 3358 }
3354 3359 QHexSpinBox::mouseMoveEvent(event0);
3355 3360 }
3356 3361 void PythonQtShell_QHexSpinBox::mousePressEvent(QMouseEvent* event0)
3357 3362 {
3358 3363 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
3359 3364 static PyObject* name = PyString_FromString("mousePressEvent");
3360 3365 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
3361 3366 if (obj) {
3362 3367 static const char* argumentList[] ={"" , "QMouseEvent*"};
3363 3368 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3364 3369 void* args[2] = {NULL, (void*)&event0};
3365 3370 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3366 3371 if (result) { Py_DECREF(result); }
3367 3372 Py_DECREF(obj);
3368 3373 return;
3369 3374 } else {
3370 3375 PyErr_Clear();
3371 3376 }
3372 3377 }
3373 3378 QHexSpinBox::mousePressEvent(event0);
3374 3379 }
3375 3380 void PythonQtShell_QHexSpinBox::mouseReleaseEvent(QMouseEvent* event0)
3376 3381 {
3377 3382 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
3378 3383 static PyObject* name = PyString_FromString("mouseReleaseEvent");
3379 3384 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
3380 3385 if (obj) {
3381 3386 static const char* argumentList[] ={"" , "QMouseEvent*"};
3382 3387 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3383 3388 void* args[2] = {NULL, (void*)&event0};
3384 3389 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3385 3390 if (result) { Py_DECREF(result); }
3386 3391 Py_DECREF(obj);
3387 3392 return;
3388 3393 } else {
3389 3394 PyErr_Clear();
3390 3395 }
3391 3396 }
3392 3397 QHexSpinBox::mouseReleaseEvent(event0);
3393 3398 }
3394 3399 void PythonQtShell_QHexSpinBox::moveEvent(QMoveEvent* arg__1)
3395 3400 {
3396 3401 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
3397 3402 static PyObject* name = PyString_FromString("moveEvent");
3398 3403 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
3399 3404 if (obj) {
3400 3405 static const char* argumentList[] ={"" , "QMoveEvent*"};
3401 3406 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3402 3407 void* args[2] = {NULL, (void*)&arg__1};
3403 3408 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3404 3409 if (result) { Py_DECREF(result); }
3405 3410 Py_DECREF(obj);
3406 3411 return;
3407 3412 } else {
3408 3413 PyErr_Clear();
3409 3414 }
3410 3415 }
3411 3416 QHexSpinBox::moveEvent(arg__1);
3412 3417 }
3413 3418 bool PythonQtShell_QHexSpinBox::nativeEvent(const QByteArray& eventType0, void* message1, long* result2)
3414 3419 {
3415 3420 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
3416 3421 static PyObject* name = PyString_FromString("nativeEvent");
3417 3422 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
3418 3423 if (obj) {
3419 3424 static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"};
3420 3425 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList);
3421 3426 bool returnValue;
3422 3427 void* args[4] = {NULL, (void*)&eventType0, (void*)&message1, (void*)&result2};
3423 3428 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3424 3429 if (result) {
3425 3430 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
3426 3431 if (args[0]!=&returnValue) {
3427 3432 if (args[0]==NULL) {
3428 3433 PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result);
3429 3434 } else {
3430 3435 returnValue = *((bool*)args[0]);
3431 3436 }
3432 3437 }
3433 3438 }
3434 3439 if (result) { Py_DECREF(result); }
3435 3440 Py_DECREF(obj);
3436 3441 return returnValue;
3437 3442 } else {
3438 3443 PyErr_Clear();
3439 3444 }
3440 3445 }
3441 3446 return QHexSpinBox::nativeEvent(eventType0, message1, result2);
3442 3447 }
3443 3448 QPaintEngine* PythonQtShell_QHexSpinBox::paintEngine() const
3444 3449 {
3445 3450 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
3446 3451 static PyObject* name = PyString_FromString("paintEngine");
3447 3452 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
3448 3453 if (obj) {
3449 3454 static const char* argumentList[] ={"QPaintEngine*"};
3450 3455 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
3451 3456 QPaintEngine* returnValue;
3452 3457 void* args[1] = {NULL};
3453 3458 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3454 3459 if (result) {
3455 3460 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
3456 3461 if (args[0]!=&returnValue) {
3457 3462 if (args[0]==NULL) {
3458 3463 PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result);
3459 3464 } else {
3460 3465 returnValue = *((QPaintEngine**)args[0]);
3461 3466 }
3462 3467 }
3463 3468 }
3464 3469 if (result) { Py_DECREF(result); }
3465 3470 Py_DECREF(obj);
3466 3471 return returnValue;
3467 3472 } else {
3468 3473 PyErr_Clear();
3469 3474 }
3470 3475 }
3471 3476 return QHexSpinBox::paintEngine();
3472 3477 }
3473 3478 void PythonQtShell_QHexSpinBox::paintEvent(QPaintEvent* event0)
3474 3479 {
3475 3480 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
3476 3481 static PyObject* name = PyString_FromString("paintEvent");
3477 3482 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
3478 3483 if (obj) {
3479 3484 static const char* argumentList[] ={"" , "QPaintEvent*"};
3480 3485 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3481 3486 void* args[2] = {NULL, (void*)&event0};
3482 3487 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3483 3488 if (result) { Py_DECREF(result); }
3484 3489 Py_DECREF(obj);
3485 3490 return;
3486 3491 } else {
3487 3492 PyErr_Clear();
3488 3493 }
3489 3494 }
3490 3495 QHexSpinBox::paintEvent(event0);
3491 3496 }
3492 3497 QPaintDevice* PythonQtShell_QHexSpinBox::redirected(QPoint* offset0) const
3493 3498 {
3494 3499 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
3495 3500 static PyObject* name = PyString_FromString("redirected");
3496 3501 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
3497 3502 if (obj) {
3498 3503 static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"};
3499 3504 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3500 3505 QPaintDevice* returnValue;
3501 3506 void* args[2] = {NULL, (void*)&offset0};
3502 3507 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3503 3508 if (result) {
3504 3509 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
3505 3510 if (args[0]!=&returnValue) {
3506 3511 if (args[0]==NULL) {
3507 3512 PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result);
3508 3513 } else {
3509 3514 returnValue = *((QPaintDevice**)args[0]);
3510 3515 }
3511 3516 }
3512 3517 }
3513 3518 if (result) { Py_DECREF(result); }
3514 3519 Py_DECREF(obj);
3515 3520 return returnValue;
3516 3521 } else {
3517 3522 PyErr_Clear();
3518 3523 }
3519 3524 }
3520 3525 return QHexSpinBox::redirected(offset0);
3521 3526 }
3522 3527 void PythonQtShell_QHexSpinBox::resizeEvent(QResizeEvent* event0)
3523 3528 {
3524 3529 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
3525 3530 static PyObject* name = PyString_FromString("resizeEvent");
3526 3531 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
3527 3532 if (obj) {
3528 3533 static const char* argumentList[] ={"" , "QResizeEvent*"};
3529 3534 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3530 3535 void* args[2] = {NULL, (void*)&event0};
3531 3536 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3532 3537 if (result) { Py_DECREF(result); }
3533 3538 Py_DECREF(obj);
3534 3539 return;
3535 3540 } else {
3536 3541 PyErr_Clear();
3537 3542 }
3538 3543 }
3539 3544 QHexSpinBox::resizeEvent(event0);
3540 3545 }
3541 3546 QPainter* PythonQtShell_QHexSpinBox::sharedPainter() const
3542 3547 {
3543 3548 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
3544 3549 static PyObject* name = PyString_FromString("sharedPainter");
3545 3550 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
3546 3551 if (obj) {
3547 3552 static const char* argumentList[] ={"QPainter*"};
3548 3553 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
3549 3554 QPainter* returnValue;
3550 3555 void* args[1] = {NULL};
3551 3556 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3552 3557 if (result) {
3553 3558 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
3554 3559 if (args[0]!=&returnValue) {
3555 3560 if (args[0]==NULL) {
3556 3561 PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result);
3557 3562 } else {
3558 3563 returnValue = *((QPainter**)args[0]);
3559 3564 }
3560 3565 }
3561 3566 }
3562 3567 if (result) { Py_DECREF(result); }
3563 3568 Py_DECREF(obj);
3564 3569 return returnValue;
3565 3570 } else {
3566 3571 PyErr_Clear();
3567 3572 }
3568 3573 }
3569 3574 return QHexSpinBox::sharedPainter();
3570 3575 }
3571 3576 void PythonQtShell_QHexSpinBox::showEvent(QShowEvent* event0)
3572 3577 {
3573 3578 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
3574 3579 static PyObject* name = PyString_FromString("showEvent");
3575 3580 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
3576 3581 if (obj) {
3577 3582 static const char* argumentList[] ={"" , "QShowEvent*"};
3578 3583 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3579 3584 void* args[2] = {NULL, (void*)&event0};
3580 3585 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3581 3586 if (result) { Py_DECREF(result); }
3582 3587 Py_DECREF(obj);
3583 3588 return;
3584 3589 } else {
3585 3590 PyErr_Clear();
3586 3591 }
3587 3592 }
3588 3593 QHexSpinBox::showEvent(event0);
3589 3594 }
3590 3595 void PythonQtShell_QHexSpinBox::stepBy(int steps0)
3591 3596 {
3592 3597 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
3593 3598 static PyObject* name = PyString_FromString("stepBy");
3594 3599 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
3595 3600 if (obj) {
3596 3601 static const char* argumentList[] ={"" , "int"};
3597 3602 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3598 3603 void* args[2] = {NULL, (void*)&steps0};
3599 3604 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3600 3605 if (result) { Py_DECREF(result); }
3601 3606 Py_DECREF(obj);
3602 3607 return;
3603 3608 } else {
3604 3609 PyErr_Clear();
3605 3610 }
3606 3611 }
3607 3612 QHexSpinBox::stepBy(steps0);
3608 3613 }
3609 3614 QAbstractSpinBox::StepEnabled PythonQtShell_QHexSpinBox::stepEnabled() const
3610 3615 {
3611 3616 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
3612 3617 static PyObject* name = PyString_FromString("stepEnabled");
3613 3618 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
3614 3619 if (obj) {
3615 3620 static const char* argumentList[] ={"QAbstractSpinBox::StepEnabled"};
3616 3621 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
3617 3622 QAbstractSpinBox::StepEnabled returnValue;
3618 3623 void* args[1] = {NULL};
3619 3624 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3620 3625 if (result) {
3621 3626 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
3622 3627 if (args[0]!=&returnValue) {
3623 3628 if (args[0]==NULL) {
3624 3629 PythonQt::priv()->handleVirtualOverloadReturnError("stepEnabled", methodInfo, result);
3625 3630 } else {
3626 3631 returnValue = *((QAbstractSpinBox::StepEnabled*)args[0]);
3627 3632 }
3628 3633 }
3629 3634 }
3630 3635 if (result) { Py_DECREF(result); }
3631 3636 Py_DECREF(obj);
3632 3637 return returnValue;
3633 3638 } else {
3634 3639 PyErr_Clear();
3635 3640 }
3636 3641 }
3637 3642 return QHexSpinBox::stepEnabled();
3638 3643 }
3639 3644 void PythonQtShell_QHexSpinBox::tabletEvent(QTabletEvent* arg__1)
3640 3645 {
3641 3646 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
3642 3647 static PyObject* name = PyString_FromString("tabletEvent");
3643 3648 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
3644 3649 if (obj) {
3645 3650 static const char* argumentList[] ={"" , "QTabletEvent*"};
3646 3651 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3647 3652 void* args[2] = {NULL, (void*)&arg__1};
3648 3653 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3649 3654 if (result) { Py_DECREF(result); }
3650 3655 Py_DECREF(obj);
3651 3656 return;
3652 3657 } else {
3653 3658 PyErr_Clear();
3654 3659 }
3655 3660 }
3656 3661 QHexSpinBox::tabletEvent(arg__1);
3657 3662 }
3658 3663 QString PythonQtShell_QHexSpinBox::textFromValue(int value0) const
3659 3664 {
3660 3665 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
3661 3666 static PyObject* name = PyString_FromString("textFromValue");
3662 3667 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
3663 3668 if (obj) {
3664 3669 static const char* argumentList[] ={"QString" , "int"};
3665 3670 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3666 3671 QString returnValue;
3667 3672 void* args[2] = {NULL, (void*)&value0};
3668 3673 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3669 3674 if (result) {
3670 3675 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
3671 3676 if (args[0]!=&returnValue) {
3672 3677 if (args[0]==NULL) {
3673 3678 PythonQt::priv()->handleVirtualOverloadReturnError("textFromValue", methodInfo, result);
3674 3679 } else {
3675 3680 returnValue = *((QString*)args[0]);
3676 3681 }
3677 3682 }
3678 3683 }
3679 3684 if (result) { Py_DECREF(result); }
3680 3685 Py_DECREF(obj);
3681 3686 return returnValue;
3682 3687 } else {
3683 3688 PyErr_Clear();
3684 3689 }
3685 3690 }
3686 3691 return QHexSpinBox::textFromValue(value0);
3687 3692 }
3688 3693 void PythonQtShell_QHexSpinBox::timerEvent(QTimerEvent* event0)
3689 3694 {
3690 3695 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
3691 3696 static PyObject* name = PyString_FromString("timerEvent");
3692 3697 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
3693 3698 if (obj) {
3694 3699 static const char* argumentList[] ={"" , "QTimerEvent*"};
3695 3700 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3696 3701 void* args[2] = {NULL, (void*)&event0};
3697 3702 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3698 3703 if (result) { Py_DECREF(result); }
3699 3704 Py_DECREF(obj);
3700 3705 return;
3701 3706 } else {
3702 3707 PyErr_Clear();
3703 3708 }
3704 3709 }
3705 3710 QHexSpinBox::timerEvent(event0);
3706 3711 }
3707 3712 QValidator::State PythonQtShell_QHexSpinBox::validate(QString& input0, int& pos1) const
3708 3713 {
3709 3714 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
3710 3715 static PyObject* name = PyString_FromString("validate");
3711 3716 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
3712 3717 if (obj) {
3713 3718 static const char* argumentList[] ={"QValidator::State" , "QString&" , "int&"};
3714 3719 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList);
3715 3720 QValidator::State returnValue;
3716 3721 void* args[3] = {NULL, (void*)&input0, (void*)&pos1};
3717 3722 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3718 3723 if (result) {
3719 3724 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
3720 3725 if (args[0]!=&returnValue) {
3721 3726 if (args[0]==NULL) {
3722 3727 PythonQt::priv()->handleVirtualOverloadReturnError("validate", methodInfo, result);
3723 3728 } else {
3724 3729 returnValue = *((QValidator::State*)args[0]);
3725 3730 }
3726 3731 }
3727 3732 }
3728 3733 if (result) { Py_DECREF(result); }
3729 3734 Py_DECREF(obj);
3730 3735 return returnValue;
3731 3736 } else {
3732 3737 PyErr_Clear();
3733 3738 }
3734 3739 }
3735 3740 return QHexSpinBox::validate(input0, pos1);
3736 3741 }
3737 3742 int PythonQtShell_QHexSpinBox::valueFromText(const QString& text0) const
3738 3743 {
3739 3744 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
3740 3745 static PyObject* name = PyString_FromString("valueFromText");
3741 3746 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
3742 3747 if (obj) {
3743 3748 static const char* argumentList[] ={"int" , "const QString&"};
3744 3749 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3745 3750 int returnValue;
3746 3751 void* args[2] = {NULL, (void*)&text0};
3747 3752 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3748 3753 if (result) {
3749 3754 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
3750 3755 if (args[0]!=&returnValue) {
3751 3756 if (args[0]==NULL) {
3752 3757 PythonQt::priv()->handleVirtualOverloadReturnError("valueFromText", methodInfo, result);
3753 3758 } else {
3754 3759 returnValue = *((int*)args[0]);
3755 3760 }
3756 3761 }
3757 3762 }
3758 3763 if (result) { Py_DECREF(result); }
3759 3764 Py_DECREF(obj);
3760 3765 return returnValue;
3761 3766 } else {
3762 3767 PyErr_Clear();
3763 3768 }
3764 3769 }
3765 3770 return QHexSpinBox::valueFromText(text0);
3766 3771 }
3767 3772 void PythonQtShell_QHexSpinBox::wheelEvent(QWheelEvent* event0)
3768 3773 {
3769 3774 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
3770 3775 static PyObject* name = PyString_FromString("wheelEvent");
3771 3776 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
3772 3777 if (obj) {
3773 3778 static const char* argumentList[] ={"" , "QWheelEvent*"};
3774 3779 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3775 3780 void* args[2] = {NULL, (void*)&event0};
3776 3781 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3777 3782 if (result) { Py_DECREF(result); }
3778 3783 Py_DECREF(obj);
3779 3784 return;
3780 3785 } else {
3781 3786 PyErr_Clear();
3782 3787 }
3783 3788 }
3784 3789 QHexSpinBox::wheelEvent(event0);
3785 3790 }
3786 3791 QHexSpinBox* PythonQtWrapper_QHexSpinBox::new_QHexSpinBox(QWidget* parent)
3787 3792 {
3788 3793 return new PythonQtShell_QHexSpinBox(parent); }
3789 3794
3790 3795 void PythonQtWrapper_QHexSpinBox::show(QHexSpinBox* theWrappedObject)
3791 3796 {
3792 3797 ( theWrappedObject->show());
3793 3798 }
3794 3799
3795 3800 QString PythonQtWrapper_QHexSpinBox::textFromValue(QHexSpinBox* theWrappedObject, int value) const
3796 3801 {
3797 3802 return ( ((PythonQtPublicPromoter_QHexSpinBox*)theWrappedObject)->promoted_textFromValue(value));
3798 3803 }
3799 3804
3800 3805 QValidator::State PythonQtWrapper_QHexSpinBox::validate(QHexSpinBox* theWrappedObject, QString& input, int& pos) const
3801 3806 {
3802 3807 return ( ((PythonQtPublicPromoter_QHexSpinBox*)theWrappedObject)->promoted_validate(input, pos));
3803 3808 }
3804 3809
3805 3810 int PythonQtWrapper_QHexSpinBox::valueFromText(QHexSpinBox* theWrappedObject, const QString& text) const
3806 3811 {
3807 3812 return ( ((PythonQtPublicPromoter_QHexSpinBox*)theWrappedObject)->promoted_valueFromText(text));
3808 3813 }
3809 3814
3810 3815
3811 3816
3812 3817 PythonQtShell_SocExplorerPlot::~PythonQtShell_SocExplorerPlot() {
3813 3818 PythonQtPrivate* priv = PythonQt::priv();
3814 3819 if (priv) { priv->shellClassDeleted(this); }
3815 3820 }
3816 3821 void PythonQtShell_SocExplorerPlot::actionEvent(QActionEvent* arg__1)
3817 3822 {
3818 3823 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
3819 3824 static PyObject* name = PyString_FromString("actionEvent");
3820 3825 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
3821 3826 if (obj) {
3822 3827 static const char* argumentList[] ={"" , "QActionEvent*"};
3823 3828 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3824 3829 void* args[2] = {NULL, (void*)&arg__1};
3825 3830 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3826 3831 if (result) { Py_DECREF(result); }
3827 3832 Py_DECREF(obj);
3828 3833 return;
3829 3834 } else {
3830 3835 PyErr_Clear();
3831 3836 }
3832 3837 }
3833 3838 SocExplorerPlot::actionEvent(arg__1);
3834 3839 }
3835 3840 void PythonQtShell_SocExplorerPlot::changeEvent(QEvent* arg__1)
3836 3841 {
3837 3842 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
3838 3843 static PyObject* name = PyString_FromString("changeEvent");
3839 3844 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
3840 3845 if (obj) {
3841 3846 static const char* argumentList[] ={"" , "QEvent*"};
3842 3847 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3843 3848 void* args[2] = {NULL, (void*)&arg__1};
3844 3849 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3845 3850 if (result) { Py_DECREF(result); }
3846 3851 Py_DECREF(obj);
3847 3852 return;
3848 3853 } else {
3849 3854 PyErr_Clear();
3850 3855 }
3851 3856 }
3852 3857 SocExplorerPlot::changeEvent(arg__1);
3853 3858 }
3854 3859 void PythonQtShell_SocExplorerPlot::childEvent(QChildEvent* arg__1)
3855 3860 {
3856 3861 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
3857 3862 static PyObject* name = PyString_FromString("childEvent");
3858 3863 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
3859 3864 if (obj) {
3860 3865 static const char* argumentList[] ={"" , "QChildEvent*"};
3861 3866 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3862 3867 void* args[2] = {NULL, (void*)&arg__1};
3863 3868 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3864 3869 if (result) { Py_DECREF(result); }
3865 3870 Py_DECREF(obj);
3866 3871 return;
3867 3872 } else {
3868 3873 PyErr_Clear();
3869 3874 }
3870 3875 }
3871 3876 SocExplorerPlot::childEvent(arg__1);
3872 3877 }
3873 3878 void PythonQtShell_SocExplorerPlot::closeEvent(QCloseEvent* arg__1)
3874 3879 {
3875 3880 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
3876 3881 static PyObject* name = PyString_FromString("closeEvent");
3877 3882 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
3878 3883 if (obj) {
3879 3884 static const char* argumentList[] ={"" , "QCloseEvent*"};
3880 3885 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3881 3886 void* args[2] = {NULL, (void*)&arg__1};
3882 3887 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3883 3888 if (result) { Py_DECREF(result); }
3884 3889 Py_DECREF(obj);
3885 3890 return;
3886 3891 } else {
3887 3892 PyErr_Clear();
3888 3893 }
3889 3894 }
3890 3895 SocExplorerPlot::closeEvent(arg__1);
3891 3896 }
3892 3897 void PythonQtShell_SocExplorerPlot::contextMenuEvent(QContextMenuEvent* arg__1)
3893 3898 {
3894 3899 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
3895 3900 static PyObject* name = PyString_FromString("contextMenuEvent");
3896 3901 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
3897 3902 if (obj) {
3898 3903 static const char* argumentList[] ={"" , "QContextMenuEvent*"};
3899 3904 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3900 3905 void* args[2] = {NULL, (void*)&arg__1};
3901 3906 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3902 3907 if (result) { Py_DECREF(result); }
3903 3908 Py_DECREF(obj);
3904 3909 return;
3905 3910 } else {
3906 3911 PyErr_Clear();
3907 3912 }
3908 3913 }
3909 3914 SocExplorerPlot::contextMenuEvent(arg__1);
3910 3915 }
3911 3916 void PythonQtShell_SocExplorerPlot::customEvent(QEvent* arg__1)
3912 3917 {
3913 3918 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
3914 3919 static PyObject* name = PyString_FromString("customEvent");
3915 3920 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
3916 3921 if (obj) {
3917 3922 static const char* argumentList[] ={"" , "QEvent*"};
3918 3923 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3919 3924 void* args[2] = {NULL, (void*)&arg__1};
3920 3925 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3921 3926 if (result) { Py_DECREF(result); }
3922 3927 Py_DECREF(obj);
3923 3928 return;
3924 3929 } else {
3925 3930 PyErr_Clear();
3926 3931 }
3927 3932 }
3928 3933 SocExplorerPlot::customEvent(arg__1);
3929 3934 }
3930 3935 int PythonQtShell_SocExplorerPlot::devType() const
3931 3936 {
3932 3937 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
3933 3938 static PyObject* name = PyString_FromString("devType");
3934 3939 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
3935 3940 if (obj) {
3936 3941 static const char* argumentList[] ={"int"};
3937 3942 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
3938 3943 int returnValue;
3939 3944 void* args[1] = {NULL};
3940 3945 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3941 3946 if (result) {
3942 3947 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
3943 3948 if (args[0]!=&returnValue) {
3944 3949 if (args[0]==NULL) {
3945 3950 PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result);
3946 3951 } else {
3947 3952 returnValue = *((int*)args[0]);
3948 3953 }
3949 3954 }
3950 3955 }
3951 3956 if (result) { Py_DECREF(result); }
3952 3957 Py_DECREF(obj);
3953 3958 return returnValue;
3954 3959 } else {
3955 3960 PyErr_Clear();
3956 3961 }
3957 3962 }
3958 3963 return SocExplorerPlot::devType();
3959 3964 }
3960 3965 void PythonQtShell_SocExplorerPlot::dragEnterEvent(QDragEnterEvent* arg__1)
3961 3966 {
3962 3967 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
3963 3968 static PyObject* name = PyString_FromString("dragEnterEvent");
3964 3969 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
3965 3970 if (obj) {
3966 3971 static const char* argumentList[] ={"" , "QDragEnterEvent*"};
3967 3972 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3968 3973 void* args[2] = {NULL, (void*)&arg__1};
3969 3974 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3970 3975 if (result) { Py_DECREF(result); }
3971 3976 Py_DECREF(obj);
3972 3977 return;
3973 3978 } else {
3974 3979 PyErr_Clear();
3975 3980 }
3976 3981 }
3977 3982 SocExplorerPlot::dragEnterEvent(arg__1);
3978 3983 }
3979 3984 void PythonQtShell_SocExplorerPlot::dragLeaveEvent(QDragLeaveEvent* arg__1)
3980 3985 {
3981 3986 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
3982 3987 static PyObject* name = PyString_FromString("dragLeaveEvent");
3983 3988 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
3984 3989 if (obj) {
3985 3990 static const char* argumentList[] ={"" , "QDragLeaveEvent*"};
3986 3991 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3987 3992 void* args[2] = {NULL, (void*)&arg__1};
3988 3993 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3989 3994 if (result) { Py_DECREF(result); }
3990 3995 Py_DECREF(obj);
3991 3996 return;
3992 3997 } else {
3993 3998 PyErr_Clear();
3994 3999 }
3995 4000 }
3996 4001 SocExplorerPlot::dragLeaveEvent(arg__1);
3997 4002 }
3998 4003 void PythonQtShell_SocExplorerPlot::dragMoveEvent(QDragMoveEvent* arg__1)
3999 4004 {
4000 4005 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
4001 4006 static PyObject* name = PyString_FromString("dragMoveEvent");
4002 4007 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
4003 4008 if (obj) {
4004 4009 static const char* argumentList[] ={"" , "QDragMoveEvent*"};
4005 4010 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4006 4011 void* args[2] = {NULL, (void*)&arg__1};
4007 4012 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4008 4013 if (result) { Py_DECREF(result); }
4009 4014 Py_DECREF(obj);
4010 4015 return;
4011 4016 } else {
4012 4017 PyErr_Clear();
4013 4018 }
4014 4019 }
4015 4020 SocExplorerPlot::dragMoveEvent(arg__1);
4016 4021 }
4017 4022 void PythonQtShell_SocExplorerPlot::dropEvent(QDropEvent* arg__1)
4018 4023 {
4019 4024 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
4020 4025 static PyObject* name = PyString_FromString("dropEvent");
4021 4026 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
4022 4027 if (obj) {
4023 4028 static const char* argumentList[] ={"" , "QDropEvent*"};
4024 4029 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4025 4030 void* args[2] = {NULL, (void*)&arg__1};
4026 4031 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4027 4032 if (result) { Py_DECREF(result); }
4028 4033 Py_DECREF(obj);
4029 4034 return;
4030 4035 } else {
4031 4036 PyErr_Clear();
4032 4037 }
4033 4038 }
4034 4039 SocExplorerPlot::dropEvent(arg__1);
4035 4040 }
4036 4041 void PythonQtShell_SocExplorerPlot::enterEvent(QEvent* arg__1)
4037 4042 {
4038 4043 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
4039 4044 static PyObject* name = PyString_FromString("enterEvent");
4040 4045 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
4041 4046 if (obj) {
4042 4047 static const char* argumentList[] ={"" , "QEvent*"};
4043 4048 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4044 4049 void* args[2] = {NULL, (void*)&arg__1};
4045 4050 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4046 4051 if (result) { Py_DECREF(result); }
4047 4052 Py_DECREF(obj);
4048 4053 return;
4049 4054 } else {
4050 4055 PyErr_Clear();
4051 4056 }
4052 4057 }
4053 4058 SocExplorerPlot::enterEvent(arg__1);
4054 4059 }
4055 4060 bool PythonQtShell_SocExplorerPlot::event(QEvent* arg__1)
4056 4061 {
4057 4062 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
4058 4063 static PyObject* name = PyString_FromString("event");
4059 4064 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
4060 4065 if (obj) {
4061 4066 static const char* argumentList[] ={"bool" , "QEvent*"};
4062 4067 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4063 4068 bool returnValue;
4064 4069 void* args[2] = {NULL, (void*)&arg__1};
4065 4070 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4066 4071 if (result) {
4067 4072 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
4068 4073 if (args[0]!=&returnValue) {
4069 4074 if (args[0]==NULL) {
4070 4075 PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result);
4071 4076 } else {
4072 4077 returnValue = *((bool*)args[0]);
4073 4078 }
4074 4079 }
4075 4080 }
4076 4081 if (result) { Py_DECREF(result); }
4077 4082 Py_DECREF(obj);
4078 4083 return returnValue;
4079 4084 } else {
4080 4085 PyErr_Clear();
4081 4086 }
4082 4087 }
4083 4088 return SocExplorerPlot::event(arg__1);
4084 4089 }
4085 4090 bool PythonQtShell_SocExplorerPlot::eventFilter(QObject* arg__1, QEvent* arg__2)
4086 4091 {
4087 4092 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
4088 4093 static PyObject* name = PyString_FromString("eventFilter");
4089 4094 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
4090 4095 if (obj) {
4091 4096 static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"};
4092 4097 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList);
4093 4098 bool returnValue;
4094 4099 void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2};
4095 4100 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4096 4101 if (result) {
4097 4102 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
4098 4103 if (args[0]!=&returnValue) {
4099 4104 if (args[0]==NULL) {
4100 4105 PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result);
4101 4106 } else {
4102 4107 returnValue = *((bool*)args[0]);
4103 4108 }
4104 4109 }
4105 4110 }
4106 4111 if (result) { Py_DECREF(result); }
4107 4112 Py_DECREF(obj);
4108 4113 return returnValue;
4109 4114 } else {
4110 4115 PyErr_Clear();
4111 4116 }
4112 4117 }
4113 4118 return SocExplorerPlot::eventFilter(arg__1, arg__2);
4114 4119 }
4115 4120 void PythonQtShell_SocExplorerPlot::focusInEvent(QFocusEvent* arg__1)
4116 4121 {
4117 4122 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
4118 4123 static PyObject* name = PyString_FromString("focusInEvent");
4119 4124 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
4120 4125 if (obj) {
4121 4126 static const char* argumentList[] ={"" , "QFocusEvent*"};
4122 4127 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4123 4128 void* args[2] = {NULL, (void*)&arg__1};
4124 4129 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4125 4130 if (result) { Py_DECREF(result); }
4126 4131 Py_DECREF(obj);
4127 4132 return;
4128 4133 } else {
4129 4134 PyErr_Clear();
4130 4135 }
4131 4136 }
4132 4137 SocExplorerPlot::focusInEvent(arg__1);
4133 4138 }
4134 4139 bool PythonQtShell_SocExplorerPlot::focusNextPrevChild(bool next0)
4135 4140 {
4136 4141 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
4137 4142 static PyObject* name = PyString_FromString("focusNextPrevChild");
4138 4143 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
4139 4144 if (obj) {
4140 4145 static const char* argumentList[] ={"bool" , "bool"};
4141 4146 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4142 4147 bool returnValue;
4143 4148 void* args[2] = {NULL, (void*)&next0};
4144 4149 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4145 4150 if (result) {
4146 4151 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
4147 4152 if (args[0]!=&returnValue) {
4148 4153 if (args[0]==NULL) {
4149 4154 PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result);
4150 4155 } else {
4151 4156 returnValue = *((bool*)args[0]);
4152 4157 }
4153 4158 }
4154 4159 }
4155 4160 if (result) { Py_DECREF(result); }
4156 4161 Py_DECREF(obj);
4157 4162 return returnValue;
4158 4163 } else {
4159 4164 PyErr_Clear();
4160 4165 }
4161 4166 }
4162 4167 return SocExplorerPlot::focusNextPrevChild(next0);
4163 4168 }
4164 4169 void PythonQtShell_SocExplorerPlot::focusOutEvent(QFocusEvent* arg__1)
4165 4170 {
4166 4171 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
4167 4172 static PyObject* name = PyString_FromString("focusOutEvent");
4168 4173 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
4169 4174 if (obj) {
4170 4175 static const char* argumentList[] ={"" , "QFocusEvent*"};
4171 4176 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4172 4177 void* args[2] = {NULL, (void*)&arg__1};
4173 4178 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4174 4179 if (result) { Py_DECREF(result); }
4175 4180 Py_DECREF(obj);
4176 4181 return;
4177 4182 } else {
4178 4183 PyErr_Clear();
4179 4184 }
4180 4185 }
4181 4186 SocExplorerPlot::focusOutEvent(arg__1);
4182 4187 }
4183 4188 bool PythonQtShell_SocExplorerPlot::hasHeightForWidth() const
4184 4189 {
4185 4190 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
4186 4191 static PyObject* name = PyString_FromString("hasHeightForWidth");
4187 4192 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
4188 4193 if (obj) {
4189 4194 static const char* argumentList[] ={"bool"};
4190 4195 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
4191 4196 bool returnValue;
4192 4197 void* args[1] = {NULL};
4193 4198 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4194 4199 if (result) {
4195 4200 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
4196 4201 if (args[0]!=&returnValue) {
4197 4202 if (args[0]==NULL) {
4198 4203 PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result);
4199 4204 } else {
4200 4205 returnValue = *((bool*)args[0]);
4201 4206 }
4202 4207 }
4203 4208 }
4204 4209 if (result) { Py_DECREF(result); }
4205 4210 Py_DECREF(obj);
4206 4211 return returnValue;
4207 4212 } else {
4208 4213 PyErr_Clear();
4209 4214 }
4210 4215 }
4211 4216 return SocExplorerPlot::hasHeightForWidth();
4212 4217 }
4213 4218 int PythonQtShell_SocExplorerPlot::heightForWidth(int arg__1) const
4214 4219 {
4215 4220 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
4216 4221 static PyObject* name = PyString_FromString("heightForWidth");
4217 4222 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
4218 4223 if (obj) {
4219 4224 static const char* argumentList[] ={"int" , "int"};
4220 4225 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4221 4226 int returnValue;
4222 4227 void* args[2] = {NULL, (void*)&arg__1};
4223 4228 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4224 4229 if (result) {
4225 4230 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
4226 4231 if (args[0]!=&returnValue) {
4227 4232 if (args[0]==NULL) {
4228 4233 PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result);
4229 4234 } else {
4230 4235 returnValue = *((int*)args[0]);
4231 4236 }
4232 4237 }
4233 4238 }
4234 4239 if (result) { Py_DECREF(result); }
4235 4240 Py_DECREF(obj);
4236 4241 return returnValue;
4237 4242 } else {
4238 4243 PyErr_Clear();
4239 4244 }
4240 4245 }
4241 4246 return SocExplorerPlot::heightForWidth(arg__1);
4242 4247 }
4243 4248 void PythonQtShell_SocExplorerPlot::hideEvent(QHideEvent* arg__1)
4244 4249 {
4245 4250 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
4246 4251 static PyObject* name = PyString_FromString("hideEvent");
4247 4252 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
4248 4253 if (obj) {
4249 4254 static const char* argumentList[] ={"" , "QHideEvent*"};
4250 4255 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4251 4256 void* args[2] = {NULL, (void*)&arg__1};
4252 4257 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4253 4258 if (result) { Py_DECREF(result); }
4254 4259 Py_DECREF(obj);
4255 4260 return;
4256 4261 } else {
4257 4262 PyErr_Clear();
4258 4263 }
4259 4264 }
4260 4265 SocExplorerPlot::hideEvent(arg__1);
4261 4266 }
4262 4267 void PythonQtShell_SocExplorerPlot::initPainter(QPainter* painter0) const
4263 4268 {
4264 4269 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
4265 4270 static PyObject* name = PyString_FromString("initPainter");
4266 4271 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
4267 4272 if (obj) {
4268 4273 static const char* argumentList[] ={"" , "QPainter*"};
4269 4274 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4270 4275 void* args[2] = {NULL, (void*)&painter0};
4271 4276 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4272 4277 if (result) { Py_DECREF(result); }
4273 4278 Py_DECREF(obj);
4274 4279 return;
4275 4280 } else {
4276 4281 PyErr_Clear();
4277 4282 }
4278 4283 }
4279 4284 SocExplorerPlot::initPainter(painter0);
4280 4285 }
4281 4286 void PythonQtShell_SocExplorerPlot::inputMethodEvent(QInputMethodEvent* arg__1)
4282 4287 {
4283 4288 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
4284 4289 static PyObject* name = PyString_FromString("inputMethodEvent");
4285 4290 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
4286 4291 if (obj) {
4287 4292 static const char* argumentList[] ={"" , "QInputMethodEvent*"};
4288 4293 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4289 4294 void* args[2] = {NULL, (void*)&arg__1};
4290 4295 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4291 4296 if (result) { Py_DECREF(result); }
4292 4297 Py_DECREF(obj);
4293 4298 return;
4294 4299 } else {
4295 4300 PyErr_Clear();
4296 4301 }
4297 4302 }
4298 4303 SocExplorerPlot::inputMethodEvent(arg__1);
4299 4304 }
4300 4305 QVariant PythonQtShell_SocExplorerPlot::inputMethodQuery(Qt::InputMethodQuery arg__1) const
4301 4306 {
4302 4307 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
4303 4308 static PyObject* name = PyString_FromString("inputMethodQuery");
4304 4309 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
4305 4310 if (obj) {
4306 4311 static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"};
4307 4312 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4308 4313 QVariant returnValue;
4309 4314 void* args[2] = {NULL, (void*)&arg__1};
4310 4315 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4311 4316 if (result) {
4312 4317 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
4313 4318 if (args[0]!=&returnValue) {
4314 4319 if (args[0]==NULL) {
4315 4320 PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result);
4316 4321 } else {
4317 4322 returnValue = *((QVariant*)args[0]);
4318 4323 }
4319 4324 }
4320 4325 }
4321 4326 if (result) { Py_DECREF(result); }
4322 4327 Py_DECREF(obj);
4323 4328 return returnValue;
4324 4329 } else {
4325 4330 PyErr_Clear();
4326 4331 }
4327 4332 }
4328 4333 return SocExplorerPlot::inputMethodQuery(arg__1);
4329 4334 }
4330 4335 void PythonQtShell_SocExplorerPlot::keyPressEvent(QKeyEvent* arg__1)
4331 4336 {
4332 4337 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
4333 4338 static PyObject* name = PyString_FromString("keyPressEvent");
4334 4339 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
4335 4340 if (obj) {
4336 4341 static const char* argumentList[] ={"" , "QKeyEvent*"};
4337 4342 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4338 4343 void* args[2] = {NULL, (void*)&arg__1};
4339 4344 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4340 4345 if (result) { Py_DECREF(result); }
4341 4346 Py_DECREF(obj);
4342 4347 return;
4343 4348 } else {
4344 4349 PyErr_Clear();
4345 4350 }
4346 4351 }
4347 4352 SocExplorerPlot::keyPressEvent(arg__1);
4348 4353 }
4349 4354 void PythonQtShell_SocExplorerPlot::keyReleaseEvent(QKeyEvent* arg__1)
4350 4355 {
4351 4356 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
4352 4357 static PyObject* name = PyString_FromString("keyReleaseEvent");
4353 4358 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
4354 4359 if (obj) {
4355 4360 static const char* argumentList[] ={"" , "QKeyEvent*"};
4356 4361 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4357 4362 void* args[2] = {NULL, (void*)&arg__1};
4358 4363 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4359 4364 if (result) { Py_DECREF(result); }
4360 4365 Py_DECREF(obj);
4361 4366 return;
4362 4367 } else {
4363 4368 PyErr_Clear();
4364 4369 }
4365 4370 }
4366 4371 SocExplorerPlot::keyReleaseEvent(arg__1);
4367 4372 }
4368 4373 void PythonQtShell_SocExplorerPlot::leaveEvent(QEvent* arg__1)
4369 4374 {
4370 4375 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
4371 4376 static PyObject* name = PyString_FromString("leaveEvent");
4372 4377 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
4373 4378 if (obj) {
4374 4379 static const char* argumentList[] ={"" , "QEvent*"};
4375 4380 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4376 4381 void* args[2] = {NULL, (void*)&arg__1};
4377 4382 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4378 4383 if (result) { Py_DECREF(result); }
4379 4384 Py_DECREF(obj);
4380 4385 return;
4381 4386 } else {
4382 4387 PyErr_Clear();
4383 4388 }
4384 4389 }
4385 4390 SocExplorerPlot::leaveEvent(arg__1);
4386 4391 }
4387 4392 int PythonQtShell_SocExplorerPlot::metric(QPaintDevice::PaintDeviceMetric arg__1) const
4388 4393 {
4389 4394 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
4390 4395 static PyObject* name = PyString_FromString("metric");
4391 4396 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
4392 4397 if (obj) {
4393 4398 static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"};
4394 4399 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4395 4400 int returnValue;
4396 4401 void* args[2] = {NULL, (void*)&arg__1};
4397 4402 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4398 4403 if (result) {
4399 4404 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
4400 4405 if (args[0]!=&returnValue) {
4401 4406 if (args[0]==NULL) {
4402 4407 PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result);
4403 4408 } else {
4404 4409 returnValue = *((int*)args[0]);
4405 4410 }
4406 4411 }
4407 4412 }
4408 4413 if (result) { Py_DECREF(result); }
4409 4414 Py_DECREF(obj);
4410 4415 return returnValue;
4411 4416 } else {
4412 4417 PyErr_Clear();
4413 4418 }
4414 4419 }
4415 4420 return SocExplorerPlot::metric(arg__1);
4416 4421 }
4417 4422 QSize PythonQtShell_SocExplorerPlot::minimumSizeHint() const
4418 4423 {
4419 4424 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
4420 4425 static PyObject* name = PyString_FromString("getMinimumSizeHint");
4421 4426 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
4422 4427 if (obj) {
4423 4428 static const char* argumentList[] ={"QSize"};
4424 4429 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
4425 4430 QSize returnValue;
4426 4431 void* args[1] = {NULL};
4427 4432 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4428 4433 if (result) {
4429 4434 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
4430 4435 if (args[0]!=&returnValue) {
4431 4436 if (args[0]==NULL) {
4432 4437 PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result);
4433 4438 } else {
4434 4439 returnValue = *((QSize*)args[0]);
4435 4440 }
4436 4441 }
4437 4442 }
4438 4443 if (result) { Py_DECREF(result); }
4439 4444 Py_DECREF(obj);
4440 4445 return returnValue;
4441 4446 } else {
4442 4447 PyErr_Clear();
4443 4448 }
4444 4449 }
4445 4450 return SocExplorerPlot::minimumSizeHint();
4446 4451 }
4447 4452 void PythonQtShell_SocExplorerPlot::mouseDoubleClickEvent(QMouseEvent* arg__1)
4448 4453 {
4449 4454 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
4450 4455 static PyObject* name = PyString_FromString("mouseDoubleClickEvent");
4451 4456 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
4452 4457 if (obj) {
4453 4458 static const char* argumentList[] ={"" , "QMouseEvent*"};
4454 4459 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4455 4460 void* args[2] = {NULL, (void*)&arg__1};
4456 4461 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4457 4462 if (result) { Py_DECREF(result); }
4458 4463 Py_DECREF(obj);
4459 4464 return;
4460 4465 } else {
4461 4466 PyErr_Clear();
4462 4467 }
4463 4468 }
4464 4469 SocExplorerPlot::mouseDoubleClickEvent(arg__1);
4465 4470 }
4466 4471 void PythonQtShell_SocExplorerPlot::mouseMoveEvent(QMouseEvent* arg__1)
4467 4472 {
4468 4473 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
4469 4474 static PyObject* name = PyString_FromString("mouseMoveEvent");
4470 4475 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
4471 4476 if (obj) {
4472 4477 static const char* argumentList[] ={"" , "QMouseEvent*"};
4473 4478 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4474 4479 void* args[2] = {NULL, (void*)&arg__1};
4475 4480 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4476 4481 if (result) { Py_DECREF(result); }
4477 4482 Py_DECREF(obj);
4478 4483 return;
4479 4484 } else {
4480 4485 PyErr_Clear();
4481 4486 }
4482 4487 }
4483 4488 SocExplorerPlot::mouseMoveEvent(arg__1);
4484 4489 }
4485 4490 void PythonQtShell_SocExplorerPlot::mousePressEvent(QMouseEvent* arg__1)
4486 4491 {
4487 4492 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
4488 4493 static PyObject* name = PyString_FromString("mousePressEvent");
4489 4494 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
4490 4495 if (obj) {
4491 4496 static const char* argumentList[] ={"" , "QMouseEvent*"};
4492 4497 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4493 4498 void* args[2] = {NULL, (void*)&arg__1};
4494 4499 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4495 4500 if (result) { Py_DECREF(result); }
4496 4501 Py_DECREF(obj);
4497 4502 return;
4498 4503 } else {
4499 4504 PyErr_Clear();
4500 4505 }
4501 4506 }
4502 4507 SocExplorerPlot::mousePressEvent(arg__1);
4503 4508 }
4504 4509 void PythonQtShell_SocExplorerPlot::mouseReleaseEvent(QMouseEvent* arg__1)
4505 4510 {
4506 4511 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
4507 4512 static PyObject* name = PyString_FromString("mouseReleaseEvent");
4508 4513 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
4509 4514 if (obj) {
4510 4515 static const char* argumentList[] ={"" , "QMouseEvent*"};
4511 4516 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4512 4517 void* args[2] = {NULL, (void*)&arg__1};
4513 4518 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4514 4519 if (result) { Py_DECREF(result); }
4515 4520 Py_DECREF(obj);
4516 4521 return;
4517 4522 } else {
4518 4523 PyErr_Clear();
4519 4524 }
4520 4525 }
4521 4526 SocExplorerPlot::mouseReleaseEvent(arg__1);
4522 4527 }
4523 4528 void PythonQtShell_SocExplorerPlot::moveEvent(QMoveEvent* arg__1)
4524 4529 {
4525 4530 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
4526 4531 static PyObject* name = PyString_FromString("moveEvent");
4527 4532 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
4528 4533 if (obj) {
4529 4534 static const char* argumentList[] ={"" , "QMoveEvent*"};
4530 4535 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4531 4536 void* args[2] = {NULL, (void*)&arg__1};
4532 4537 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4533 4538 if (result) { Py_DECREF(result); }
4534 4539 Py_DECREF(obj);
4535 4540 return;
4536 4541 } else {
4537 4542 PyErr_Clear();
4538 4543 }
4539 4544 }
4540 4545 SocExplorerPlot::moveEvent(arg__1);
4541 4546 }
4542 4547 bool PythonQtShell_SocExplorerPlot::nativeEvent(const QByteArray& eventType0, void* message1, long* result2)
4543 4548 {
4544 4549 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
4545 4550 static PyObject* name = PyString_FromString("nativeEvent");
4546 4551 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
4547 4552 if (obj) {
4548 4553 static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"};
4549 4554 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList);
4550 4555 bool returnValue;
4551 4556 void* args[4] = {NULL, (void*)&eventType0, (void*)&message1, (void*)&result2};
4552 4557 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4553 4558 if (result) {
4554 4559 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
4555 4560 if (args[0]!=&returnValue) {
4556 4561 if (args[0]==NULL) {
4557 4562 PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result);
4558 4563 } else {
4559 4564 returnValue = *((bool*)args[0]);
4560 4565 }
4561 4566 }
4562 4567 }
4563 4568 if (result) { Py_DECREF(result); }
4564 4569 Py_DECREF(obj);
4565 4570 return returnValue;
4566 4571 } else {
4567 4572 PyErr_Clear();
4568 4573 }
4569 4574 }
4570 4575 return SocExplorerPlot::nativeEvent(eventType0, message1, result2);
4571 4576 }
4572 4577 QPaintEngine* PythonQtShell_SocExplorerPlot::paintEngine() const
4573 4578 {
4574 4579 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
4575 4580 static PyObject* name = PyString_FromString("paintEngine");
4576 4581 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
4577 4582 if (obj) {
4578 4583 static const char* argumentList[] ={"QPaintEngine*"};
4579 4584 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
4580 4585 QPaintEngine* returnValue;
4581 4586 void* args[1] = {NULL};
4582 4587 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4583 4588 if (result) {
4584 4589 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
4585 4590 if (args[0]!=&returnValue) {
4586 4591 if (args[0]==NULL) {
4587 4592 PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result);
4588 4593 } else {
4589 4594 returnValue = *((QPaintEngine**)args[0]);
4590 4595 }
4591 4596 }
4592 4597 }
4593 4598 if (result) { Py_DECREF(result); }
4594 4599 Py_DECREF(obj);
4595 4600 return returnValue;
4596 4601 } else {
4597 4602 PyErr_Clear();
4598 4603 }
4599 4604 }
4600 4605 return SocExplorerPlot::paintEngine();
4601 4606 }
4602 4607 void PythonQtShell_SocExplorerPlot::paintEvent(QPaintEvent* arg__1)
4603 4608 {
4604 4609 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
4605 4610 static PyObject* name = PyString_FromString("paintEvent");
4606 4611 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
4607 4612 if (obj) {
4608 4613 static const char* argumentList[] ={"" , "QPaintEvent*"};
4609 4614 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4610 4615 void* args[2] = {NULL, (void*)&arg__1};
4611 4616 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4612 4617 if (result) { Py_DECREF(result); }
4613 4618 Py_DECREF(obj);
4614 4619 return;
4615 4620 } else {
4616 4621 PyErr_Clear();
4617 4622 }
4618 4623 }
4619 4624 SocExplorerPlot::paintEvent(arg__1);
4620 4625 }
4621 4626 QPaintDevice* PythonQtShell_SocExplorerPlot::redirected(QPoint* offset0) const
4622 4627 {
4623 4628 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
4624 4629 static PyObject* name = PyString_FromString("redirected");
4625 4630 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
4626 4631 if (obj) {
4627 4632 static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"};
4628 4633 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4629 4634 QPaintDevice* returnValue;
4630 4635 void* args[2] = {NULL, (void*)&offset0};
4631 4636 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4632 4637 if (result) {
4633 4638 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
4634 4639 if (args[0]!=&returnValue) {
4635 4640 if (args[0]==NULL) {
4636 4641 PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result);
4637 4642 } else {
4638 4643 returnValue = *((QPaintDevice**)args[0]);
4639 4644 }
4640 4645 }
4641 4646 }
4642 4647 if (result) { Py_DECREF(result); }
4643 4648 Py_DECREF(obj);
4644 4649 return returnValue;
4645 4650 } else {
4646 4651 PyErr_Clear();
4647 4652 }
4648 4653 }
4649 4654 return SocExplorerPlot::redirected(offset0);
4650 4655 }
4651 4656 void PythonQtShell_SocExplorerPlot::resizeEvent(QResizeEvent* arg__1)
4652 4657 {
4653 4658 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
4654 4659 static PyObject* name = PyString_FromString("resizeEvent");
4655 4660 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
4656 4661 if (obj) {
4657 4662 static const char* argumentList[] ={"" , "QResizeEvent*"};
4658 4663 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4659 4664 void* args[2] = {NULL, (void*)&arg__1};
4660 4665 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4661 4666 if (result) { Py_DECREF(result); }
4662 4667 Py_DECREF(obj);
4663 4668 return;
4664 4669 } else {
4665 4670 PyErr_Clear();
4666 4671 }
4667 4672 }
4668 4673 SocExplorerPlot::resizeEvent(arg__1);
4669 4674 }
4670 4675 QPainter* PythonQtShell_SocExplorerPlot::sharedPainter() const
4671 4676 {
4672 4677 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
4673 4678 static PyObject* name = PyString_FromString("sharedPainter");
4674 4679 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
4675 4680 if (obj) {
4676 4681 static const char* argumentList[] ={"QPainter*"};
4677 4682 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
4678 4683 QPainter* returnValue;
4679 4684 void* args[1] = {NULL};
4680 4685 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4681 4686 if (result) {
4682 4687 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
4683 4688 if (args[0]!=&returnValue) {
4684 4689 if (args[0]==NULL) {
4685 4690 PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result);
4686 4691 } else {
4687 4692 returnValue = *((QPainter**)args[0]);
4688 4693 }
4689 4694 }
4690 4695 }
4691 4696 if (result) { Py_DECREF(result); }
4692 4697 Py_DECREF(obj);
4693 4698 return returnValue;
4694 4699 } else {
4695 4700 PyErr_Clear();
4696 4701 }
4697 4702 }
4698 4703 return SocExplorerPlot::sharedPainter();
4699 4704 }
4700 4705 void PythonQtShell_SocExplorerPlot::showEvent(QShowEvent* arg__1)
4701 4706 {
4702 4707 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
4703 4708 static PyObject* name = PyString_FromString("showEvent");
4704 4709 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
4705 4710 if (obj) {
4706 4711 static const char* argumentList[] ={"" , "QShowEvent*"};
4707 4712 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4708 4713 void* args[2] = {NULL, (void*)&arg__1};
4709 4714 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4710 4715 if (result) { Py_DECREF(result); }
4711 4716 Py_DECREF(obj);
4712 4717 return;
4713 4718 } else {
4714 4719 PyErr_Clear();
4715 4720 }
4716 4721 }
4717 4722 SocExplorerPlot::showEvent(arg__1);
4718 4723 }
4719 4724 QSize PythonQtShell_SocExplorerPlot::sizeHint() const
4720 4725 {
4721 4726 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
4722 4727 static PyObject* name = PyString_FromString("getSizeHint");
4723 4728 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
4724 4729 if (obj) {
4725 4730 static const char* argumentList[] ={"QSize"};
4726 4731 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
4727 4732 QSize returnValue;
4728 4733 void* args[1] = {NULL};
4729 4734 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4730 4735 if (result) {
4731 4736 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
4732 4737 if (args[0]!=&returnValue) {
4733 4738 if (args[0]==NULL) {
4734 4739 PythonQt::priv()->handleVirtualOverloadReturnError("getSizeHint", methodInfo, result);
4735 4740 } else {
4736 4741 returnValue = *((QSize*)args[0]);
4737 4742 }
4738 4743 }
4739 4744 }
4740 4745 if (result) { Py_DECREF(result); }
4741 4746 Py_DECREF(obj);
4742 4747 return returnValue;
4743 4748 } else {
4744 4749 PyErr_Clear();
4745 4750 }
4746 4751 }
4747 4752 return SocExplorerPlot::sizeHint();
4748 4753 }
4749 4754 void PythonQtShell_SocExplorerPlot::tabletEvent(QTabletEvent* arg__1)
4750 4755 {
4751 4756 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
4752 4757 static PyObject* name = PyString_FromString("tabletEvent");
4753 4758 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
4754 4759 if (obj) {
4755 4760 static const char* argumentList[] ={"" , "QTabletEvent*"};
4756 4761 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4757 4762 void* args[2] = {NULL, (void*)&arg__1};
4758 4763 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4759 4764 if (result) { Py_DECREF(result); }
4760 4765 Py_DECREF(obj);
4761 4766 return;
4762 4767 } else {
4763 4768 PyErr_Clear();
4764 4769 }
4765 4770 }
4766 4771 SocExplorerPlot::tabletEvent(arg__1);
4767 4772 }
4768 4773 void PythonQtShell_SocExplorerPlot::timerEvent(QTimerEvent* arg__1)
4769 4774 {
4770 4775 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
4771 4776 static PyObject* name = PyString_FromString("timerEvent");
4772 4777 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
4773 4778 if (obj) {
4774 4779 static const char* argumentList[] ={"" , "QTimerEvent*"};
4775 4780 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4776 4781 void* args[2] = {NULL, (void*)&arg__1};
4777 4782 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4778 4783 if (result) { Py_DECREF(result); }
4779 4784 Py_DECREF(obj);
4780 4785 return;
4781 4786 } else {
4782 4787 PyErr_Clear();
4783 4788 }
4784 4789 }
4785 4790 SocExplorerPlot::timerEvent(arg__1);
4786 4791 }
4787 4792 void PythonQtShell_SocExplorerPlot::wheelEvent(QWheelEvent* arg__1)
4788 4793 {
4789 4794 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
4790 4795 static PyObject* name = PyString_FromString("wheelEvent");
4791 4796 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
4792 4797 if (obj) {
4793 4798 static const char* argumentList[] ={"" , "QWheelEvent*"};
4794 4799 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4795 4800 void* args[2] = {NULL, (void*)&arg__1};
4796 4801 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4797 4802 if (result) { Py_DECREF(result); }
4798 4803 Py_DECREF(obj);
4799 4804 return;
4800 4805 } else {
4801 4806 PyErr_Clear();
4802 4807 }
4803 4808 }
4804 4809 SocExplorerPlot::wheelEvent(arg__1);
4805 4810 }
4806 4811 SocExplorerPlot* PythonQtWrapper_SocExplorerPlot::new_SocExplorerPlot(QWidget* parent)
4807 4812 {
4808 4813 return new PythonQtShell_SocExplorerPlot(parent); }
4809 4814
4810 4815 int PythonQtWrapper_SocExplorerPlot::addGraph(SocExplorerPlot* theWrappedObject)
4811 4816 {
4812 4817 return ( theWrappedObject->addGraph());
4813 4818 }
4814 4819
4815 4820 void PythonQtWrapper_SocExplorerPlot::addGraphData(SocExplorerPlot* theWrappedObject, int graphIndex, QList<QVariant > x, QList<QVariant > y)
4816 4821 {
4817 4822 ( theWrappedObject->addGraphData(graphIndex, x, y));
4818 4823 }
4819 4824
4820 4825 void PythonQtWrapper_SocExplorerPlot::addGraphData(SocExplorerPlot* theWrappedObject, int graphIndex, QVariant x, QVariant y)
4821 4826 {
4822 4827 ( theWrappedObject->addGraphData(graphIndex, x, y));
4823 4828 }
4824 4829
4825 4830 QPen PythonQtWrapper_SocExplorerPlot::getGraphPen(SocExplorerPlot* theWrappedObject, int graphIndex)
4826 4831 {
4827 4832 return ( theWrappedObject->getGraphPen(graphIndex));
4828 4833 }
4829 4834
4830 4835 void PythonQtWrapper_SocExplorerPlot::keyPressEvent(SocExplorerPlot* theWrappedObject, QKeyEvent* arg__1)
4831 4836 {
4832 4837 ( ((PythonQtPublicPromoter_SocExplorerPlot*)theWrappedObject)->promoted_keyPressEvent(arg__1));
4833 4838 }
4834 4839
4835 4840 void PythonQtWrapper_SocExplorerPlot::keyReleaseEvent(SocExplorerPlot* theWrappedObject, QKeyEvent* arg__1)
4836 4841 {
4837 4842 ( ((PythonQtPublicPromoter_SocExplorerPlot*)theWrappedObject)->promoted_keyReleaseEvent(arg__1));
4838 4843 }
4839 4844
4840 4845 void PythonQtWrapper_SocExplorerPlot::mouseMoveEvent(SocExplorerPlot* theWrappedObject, QMouseEvent* arg__1)
4841 4846 {
4842 4847 ( ((PythonQtPublicPromoter_SocExplorerPlot*)theWrappedObject)->promoted_mouseMoveEvent(arg__1));
4843 4848 }
4844 4849
4845 4850 void PythonQtWrapper_SocExplorerPlot::mousePressEvent(SocExplorerPlot* theWrappedObject, QMouseEvent* arg__1)
4846 4851 {
4847 4852 ( ((PythonQtPublicPromoter_SocExplorerPlot*)theWrappedObject)->promoted_mousePressEvent(arg__1));
4848 4853 }
4849 4854
4850 4855 void PythonQtWrapper_SocExplorerPlot::mouseReleaseEvent(SocExplorerPlot* theWrappedObject, QMouseEvent* arg__1)
4851 4856 {
4852 4857 ( ((PythonQtPublicPromoter_SocExplorerPlot*)theWrappedObject)->promoted_mouseReleaseEvent(arg__1));
4853 4858 }
4854 4859
4855 4860 void PythonQtWrapper_SocExplorerPlot::removeAllGraphs(SocExplorerPlot* theWrappedObject)
4856 4861 {
4857 4862 ( theWrappedObject->removeAllGraphs());
4858 4863 }
4859 4864
4860 4865 bool PythonQtWrapper_SocExplorerPlot::removeGraph(SocExplorerPlot* theWrappedObject, int graphIndex)
4861 4866 {
4862 4867 return ( theWrappedObject->removeGraph(graphIndex));
4863 4868 }
4864 4869
4865 4870 void PythonQtWrapper_SocExplorerPlot::replot(SocExplorerPlot* theWrappedObject)
4866 4871 {
4867 4872 ( theWrappedObject->replot());
4868 4873 }
4869 4874
4870 4875 void PythonQtWrapper_SocExplorerPlot::rescaleAxis(SocExplorerPlot* theWrappedObject)
4871 4876 {
4872 4877 ( theWrappedObject->rescaleAxis());
4873 4878 }
4874 4879
4875 4880 void PythonQtWrapper_SocExplorerPlot::setAdaptativeSampling(SocExplorerPlot* theWrappedObject, int graphIndex, bool enable)
4876 4881 {
4877 4882 ( theWrappedObject->setAdaptativeSampling(graphIndex, enable));
4878 4883 }
4879 4884
4880 4885 void PythonQtWrapper_SocExplorerPlot::setGraphData(SocExplorerPlot* theWrappedObject, int graphIndex, QList<QVariant > x, QList<QVariant > y)
4881 4886 {
4882 4887 ( theWrappedObject->setGraphData(graphIndex, x, y));
4883 4888 }
4884 4889
4885 4890 void PythonQtWrapper_SocExplorerPlot::setGraphLineStyle(SocExplorerPlot* theWrappedObject, int graphIndex, QString lineStyle)
4886 4891 {
4887 4892 ( theWrappedObject->setGraphLineStyle(graphIndex, lineStyle));
4888 4893 }
4889 4894
4890 4895 void PythonQtWrapper_SocExplorerPlot::setGraphName(SocExplorerPlot* theWrappedObject, int graphIndex, QString name)
4891 4896 {
4892 4897 ( theWrappedObject->setGraphName(graphIndex, name));
4893 4898 }
4894 4899
4895 4900 void PythonQtWrapper_SocExplorerPlot::setGraphPen(SocExplorerPlot* theWrappedObject, int graphIndex, QPen pen)
4896 4901 {
4897 4902 ( theWrappedObject->setGraphPen(graphIndex, pen));
4898 4903 }
4899 4904
4900 4905 void PythonQtWrapper_SocExplorerPlot::setGraphScatterStyle(SocExplorerPlot* theWrappedObject, int graphIndex, QString scatterStyle)
4901 4906 {
4902 4907 ( theWrappedObject->setGraphScatterStyle(graphIndex, scatterStyle));
4903 4908 }
4904 4909
4905 4910 void PythonQtWrapper_SocExplorerPlot::setLegendFont(SocExplorerPlot* theWrappedObject, QFont font)
4906 4911 {
4907 4912 ( theWrappedObject->setLegendFont(font));
4908 4913 }
4909 4914
4910 4915 void PythonQtWrapper_SocExplorerPlot::setLegendSelectedFont(SocExplorerPlot* theWrappedObject, QFont font)
4911 4916 {
4912 4917 ( theWrappedObject->setLegendSelectedFont(font));
4913 4918 }
4914 4919
4915 4920 void PythonQtWrapper_SocExplorerPlot::setTitle(SocExplorerPlot* theWrappedObject, QString title)
4916 4921 {
4917 4922 ( theWrappedObject->setTitle(title));
4918 4923 }
4919 4924
4920 4925 void PythonQtWrapper_SocExplorerPlot::setXaxisDateTimeFormat(SocExplorerPlot* theWrappedObject, const QString& format)
4921 4926 {
4922 4927 ( theWrappedObject->setXaxisDateTimeFormat(format));
4923 4928 }
4924 4929
4925 4930 void PythonQtWrapper_SocExplorerPlot::setXaxisLabel(SocExplorerPlot* theWrappedObject, QString label)
4926 4931 {
4927 4932 ( theWrappedObject->setXaxisLabel(label));
4928 4933 }
4929 4934
4930 4935 void PythonQtWrapper_SocExplorerPlot::setXaxisRange(SocExplorerPlot* theWrappedObject, double lower, double upper)
4931 4936 {
4932 4937 ( theWrappedObject->setXaxisRange(lower, upper));
4933 4938 }
4934 4939
4935 4940 void PythonQtWrapper_SocExplorerPlot::setYaxisLabel(SocExplorerPlot* theWrappedObject, QString label)
4936 4941 {
4937 4942 ( theWrappedObject->setYaxisLabel(label));
4938 4943 }
4939 4944
4940 4945 void PythonQtWrapper_SocExplorerPlot::setYaxisRange(SocExplorerPlot* theWrappedObject, double lower, double upper)
4941 4946 {
4942 4947 ( theWrappedObject->setYaxisRange(lower, upper));
4943 4948 }
4944 4949
4945 4950 void PythonQtWrapper_SocExplorerPlot::show(SocExplorerPlot* theWrappedObject)
4946 4951 {
4947 4952 ( theWrappedObject->show());
4948 4953 }
4949 4954
4950 4955 void PythonQtWrapper_SocExplorerPlot::wheelEvent(SocExplorerPlot* theWrappedObject, QWheelEvent* arg__1)
4951 4956 {
4952 4957 ( ((PythonQtPublicPromoter_SocExplorerPlot*)theWrappedObject)->promoted_wheelEvent(arg__1));
4953 4958 }
4954 4959
4955 4960
4956 4961
4957 4962 PythonQtShell_TCP_Terminal_Client::~PythonQtShell_TCP_Terminal_Client() {
4958 4963 PythonQtPrivate* priv = PythonQt::priv();
4959 4964 if (priv) { priv->shellClassDeleted(this); }
4960 4965 }
4961 4966 void PythonQtShell_TCP_Terminal_Client::childEvent(QChildEvent* arg__1)
4962 4967 {
4963 4968 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
4964 4969 static PyObject* name = PyString_FromString("childEvent");
4965 4970 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
4966 4971 if (obj) {
4967 4972 static const char* argumentList[] ={"" , "QChildEvent*"};
4968 4973 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4969 4974 void* args[2] = {NULL, (void*)&arg__1};
4970 4975 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4971 4976 if (result) { Py_DECREF(result); }
4972 4977 Py_DECREF(obj);
4973 4978 return;
4974 4979 } else {
4975 4980 PyErr_Clear();
4976 4981 }
4977 4982 }
4978 4983 TCP_Terminal_Client::childEvent(arg__1);
4979 4984 }
4980 4985 void PythonQtShell_TCP_Terminal_Client::customEvent(QEvent* arg__1)
4981 4986 {
4982 4987 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
4983 4988 static PyObject* name = PyString_FromString("customEvent");
4984 4989 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
4985 4990 if (obj) {
4986 4991 static const char* argumentList[] ={"" , "QEvent*"};
4987 4992 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4988 4993 void* args[2] = {NULL, (void*)&arg__1};
4989 4994 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4990 4995 if (result) { Py_DECREF(result); }
4991 4996 Py_DECREF(obj);
4992 4997 return;
4993 4998 } else {
4994 4999 PyErr_Clear();
4995 5000 }
4996 5001 }
4997 5002 TCP_Terminal_Client::customEvent(arg__1);
4998 5003 }
4999 5004 bool PythonQtShell_TCP_Terminal_Client::event(QEvent* arg__1)
5000 5005 {
5001 5006 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
5002 5007 static PyObject* name = PyString_FromString("event");
5003 5008 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
5004 5009 if (obj) {
5005 5010 static const char* argumentList[] ={"bool" , "QEvent*"};
5006 5011 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5007 5012 bool returnValue;
5008 5013 void* args[2] = {NULL, (void*)&arg__1};
5009 5014 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5010 5015 if (result) {
5011 5016 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
5012 5017 if (args[0]!=&returnValue) {
5013 5018 if (args[0]==NULL) {
5014 5019 PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result);
5015 5020 } else {
5016 5021 returnValue = *((bool*)args[0]);
5017 5022 }
5018 5023 }
5019 5024 }
5020 5025 if (result) { Py_DECREF(result); }
5021 5026 Py_DECREF(obj);
5022 5027 return returnValue;
5023 5028 } else {
5024 5029 PyErr_Clear();
5025 5030 }
5026 5031 }
5027 5032 return TCP_Terminal_Client::event(arg__1);
5028 5033 }
5029 5034 bool PythonQtShell_TCP_Terminal_Client::eventFilter(QObject* arg__1, QEvent* arg__2)
5030 5035 {
5031 5036 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
5032 5037 static PyObject* name = PyString_FromString("eventFilter");
5033 5038 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
5034 5039 if (obj) {
5035 5040 static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"};
5036 5041 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList);
5037 5042 bool returnValue;
5038 5043 void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2};
5039 5044 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5040 5045 if (result) {
5041 5046 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
5042 5047 if (args[0]!=&returnValue) {
5043 5048 if (args[0]==NULL) {
5044 5049 PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result);
5045 5050 } else {
5046 5051 returnValue = *((bool*)args[0]);
5047 5052 }
5048 5053 }
5049 5054 }
5050 5055 if (result) { Py_DECREF(result); }
5051 5056 Py_DECREF(obj);
5052 5057 return returnValue;
5053 5058 } else {
5054 5059 PyErr_Clear();
5055 5060 }
5056 5061 }
5057 5062 return TCP_Terminal_Client::eventFilter(arg__1, arg__2);
5058 5063 }
5059 5064 void PythonQtShell_TCP_Terminal_Client::timerEvent(QTimerEvent* arg__1)
5060 5065 {
5061 5066 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
5062 5067 static PyObject* name = PyString_FromString("timerEvent");
5063 5068 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
5064 5069 if (obj) {
5065 5070 static const char* argumentList[] ={"" , "QTimerEvent*"};
5066 5071 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5067 5072 void* args[2] = {NULL, (void*)&arg__1};
5068 5073 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5069 5074 if (result) { Py_DECREF(result); }
5070 5075 Py_DECREF(obj);
5071 5076 return;
5072 5077 } else {
5073 5078 PyErr_Clear();
5074 5079 }
5075 5080 }
5076 5081 TCP_Terminal_Client::timerEvent(arg__1);
5077 5082 }
5078 5083 TCP_Terminal_Client* PythonQtWrapper_TCP_Terminal_Client::new_TCP_Terminal_Client(QObject* parent)
5079 5084 {
5080 5085 return new PythonQtShell_TCP_Terminal_Client(parent); }
5081 5086
5082 5087 void PythonQtWrapper_TCP_Terminal_Client::connectToServer(TCP_Terminal_Client* theWrappedObject)
5083 5088 {
5084 5089 ( theWrappedObject->connectToServer());
5085 5090 }
5086 5091
5087 5092 void PythonQtWrapper_TCP_Terminal_Client::connectToServer(TCP_Terminal_Client* theWrappedObject, const QString& IP, int port)
5088 5093 {
5089 5094 ( theWrappedObject->connectToServer(IP, port));
5090 5095 }
5091 5096
5092 5097 bool PythonQtWrapper_TCP_Terminal_Client::isConnected(TCP_Terminal_Client* theWrappedObject)
5093 5098 {
5094 5099 return ( theWrappedObject->isConnected());
5095 5100 }
5096 5101
5097 5102 void PythonQtWrapper_TCP_Terminal_Client::sendText(TCP_Terminal_Client* theWrappedObject, const QString& text)
5098 5103 {
5099 5104 ( theWrappedObject->sendText(text));
5100 5105 }
5101 5106
5102 5107 void PythonQtWrapper_TCP_Terminal_Client::startServer(TCP_Terminal_Client* theWrappedObject)
5103 5108 {
5104 5109 ( theWrappedObject->startServer());
5105 5110 }
5106 5111
5107 5112 void PythonQtWrapper_TCP_Terminal_Client::startServer(TCP_Terminal_Client* theWrappedObject, int port)
5108 5113 {
5109 5114 ( theWrappedObject->startServer(port));
5110 5115 }
5111 5116
5112 5117
5113 5118
5114 5119 XByteArray* PythonQtWrapper_XByteArray::new_XByteArray()
5115 5120 {
5116 5121 return new XByteArray(); }
5117 5122
5118 5123 int PythonQtWrapper_XByteArray::addressOffset(XByteArray* theWrappedObject)
5119 5124 {
5120 5125 return ( theWrappedObject->addressOffset());
5121 5126 }
5122 5127
5123 5128 int PythonQtWrapper_XByteArray::addressWidth(XByteArray* theWrappedObject)
5124 5129 {
5125 5130 return ( theWrappedObject->addressWidth());
5126 5131 }
5127 5132
5128 5133 QChar PythonQtWrapper_XByteArray::asciiChar(XByteArray* theWrappedObject, int index)
5129 5134 {
5130 5135 return ( theWrappedObject->asciiChar(index));
5131 5136 }
5132 5137
5133 5138 QByteArray* PythonQtWrapper_XByteArray::data(XByteArray* theWrappedObject)
5134 5139 {
5135 5140 return &( theWrappedObject->data());
5136 5141 }
5137 5142
5138 5143 bool PythonQtWrapper_XByteArray::dataChanged(XByteArray* theWrappedObject, int i)
5139 5144 {
5140 5145 return ( theWrappedObject->dataChanged(i));
5141 5146 }
5142 5147
5143 5148 QByteArray PythonQtWrapper_XByteArray::dataChanged(XByteArray* theWrappedObject, int i, int len)
5144 5149 {
5145 5150 return ( theWrappedObject->dataChanged(i, len));
5146 5151 }
5147 5152
5148 5153 QByteArray* PythonQtWrapper_XByteArray::insert(XByteArray* theWrappedObject, int i, char ch)
5149 5154 {
5150 5155 return &( theWrappedObject->insert(i, ch));
5151 5156 }
5152 5157
5153 5158 QByteArray* PythonQtWrapper_XByteArray::insert(XByteArray* theWrappedObject, int i, const QByteArray& ba)
5154 5159 {
5155 5160 return &( theWrappedObject->insert(i, ba));
5156 5161 }
5157 5162
5158 5163 int PythonQtWrapper_XByteArray::realAddressNumbers(XByteArray* theWrappedObject)
5159 5164 {
5160 5165 return ( theWrappedObject->realAddressNumbers());
5161 5166 }
5162 5167
5163 5168 QByteArray* PythonQtWrapper_XByteArray::remove(XByteArray* theWrappedObject, int pos, int len)
5164 5169 {
5165 5170 return &( theWrappedObject->remove(pos, len));
5166 5171 }
5167 5172
5168 5173 QByteArray* PythonQtWrapper_XByteArray::replace(XByteArray* theWrappedObject, int index, char ch)
5169 5174 {
5170 5175 return &( theWrappedObject->replace(index, ch));
5171 5176 }
5172 5177
5173 5178 QByteArray* PythonQtWrapper_XByteArray::replace(XByteArray* theWrappedObject, int index, const QByteArray& ba)
5174 5179 {
5175 5180 return &( theWrappedObject->replace(index, ba));
5176 5181 }
5177 5182
5178 5183 QByteArray* PythonQtWrapper_XByteArray::replace(XByteArray* theWrappedObject, int index, int length, const QByteArray& ba)
5179 5184 {
5180 5185 return &( theWrappedObject->replace(index, length, ba));
5181 5186 }
5182 5187
5183 5188 void PythonQtWrapper_XByteArray::setAddressOffset(XByteArray* theWrappedObject, int offset)
5184 5189 {
5185 5190 ( theWrappedObject->setAddressOffset(offset));
5186 5191 }
5187 5192
5188 5193 void PythonQtWrapper_XByteArray::setAddressWidth(XByteArray* theWrappedObject, int width)
5189 5194 {
5190 5195 ( theWrappedObject->setAddressWidth(width));
5191 5196 }
5192 5197
5193 5198 void PythonQtWrapper_XByteArray::setData(XByteArray* theWrappedObject, QByteArray data)
5194 5199 {
5195 5200 ( theWrappedObject->setData(data));
5196 5201 }
5197 5202
5198 5203 void PythonQtWrapper_XByteArray::setDataChanged(XByteArray* theWrappedObject, int i, bool state)
5199 5204 {
5200 5205 ( theWrappedObject->setDataChanged(i, state));
5201 5206 }
5202 5207
5203 5208 void PythonQtWrapper_XByteArray::setDataChanged(XByteArray* theWrappedObject, int i, const QByteArray& state)
5204 5209 {
5205 5210 ( theWrappedObject->setDataChanged(i, state));
5206 5211 }
5207 5212
5208 5213 int PythonQtWrapper_XByteArray::size(XByteArray* theWrappedObject)
5209 5214 {
5210 5215 return ( theWrappedObject->size());
5211 5216 }
5212 5217
5213 5218 QString PythonQtWrapper_XByteArray::toRedableString(XByteArray* theWrappedObject, int start, int end)
5214 5219 {
5215 5220 return ( theWrappedObject->toRedableString(start, end));
5216 5221 }
5217 5222
5218 5223
5219 5224
5220 5225 PythonQtShell_abstractBinFile::~PythonQtShell_abstractBinFile() {
5221 5226 PythonQtPrivate* priv = PythonQt::priv();
5222 5227 if (priv) { priv->shellClassDeleted(this); }
5223 5228 }
5224 5229 void PythonQtShell_abstractBinFile::childEvent(QChildEvent* arg__1)
5225 5230 {
5226 5231 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
5227 5232 static PyObject* name = PyString_FromString("childEvent");
5228 5233 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
5229 5234 if (obj) {
5230 5235 static const char* argumentList[] ={"" , "QChildEvent*"};
5231 5236 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5232 5237 void* args[2] = {NULL, (void*)&arg__1};
5233 5238 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5234 5239 if (result) { Py_DECREF(result); }
5235 5240 Py_DECREF(obj);
5236 5241 return;
5237 5242 } else {
5238 5243 PyErr_Clear();
5239 5244 }
5240 5245 }
5241 5246 abstractBinFile::childEvent(arg__1);
5242 5247 }
5243 5248 int PythonQtShell_abstractBinFile::closeFile()
5244 5249 {
5245 5250 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
5246 5251 static PyObject* name = PyString_FromString("closeFile");
5247 5252 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
5248 5253 if (obj) {
5249 5254 static const char* argumentList[] ={"int"};
5250 5255 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
5251 5256 int returnValue;
5252 5257 void* args[1] = {NULL};
5253 5258 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5254 5259 if (result) {
5255 5260 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
5256 5261 if (args[0]!=&returnValue) {
5257 5262 if (args[0]==NULL) {
5258 5263 PythonQt::priv()->handleVirtualOverloadReturnError("closeFile", methodInfo, result);
5259 5264 } else {
5260 5265 returnValue = *((int*)args[0]);
5261 5266 }
5262 5267 }
5263 5268 }
5264 5269 if (result) { Py_DECREF(result); }
5265 5270 Py_DECREF(obj);
5266 5271 return returnValue;
5267 5272 } else {
5268 5273 PyErr_Clear();
5269 5274 }
5270 5275 }
5271 5276 return int();
5272 5277 }
5273 5278 void PythonQtShell_abstractBinFile::customEvent(QEvent* arg__1)
5274 5279 {
5275 5280 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
5276 5281 static PyObject* name = PyString_FromString("customEvent");
5277 5282 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
5278 5283 if (obj) {
5279 5284 static const char* argumentList[] ={"" , "QEvent*"};
5280 5285 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5281 5286 void* args[2] = {NULL, (void*)&arg__1};
5282 5287 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5283 5288 if (result) { Py_DECREF(result); }
5284 5289 Py_DECREF(obj);
5285 5290 return;
5286 5291 } else {
5287 5292 PyErr_Clear();
5288 5293 }
5289 5294 }
5290 5295 abstractBinFile::customEvent(arg__1);
5291 5296 }
5292 5297 bool PythonQtShell_abstractBinFile::event(QEvent* arg__1)
5293 5298 {
5294 5299 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
5295 5300 static PyObject* name = PyString_FromString("event");
5296 5301 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
5297 5302 if (obj) {
5298 5303 static const char* argumentList[] ={"bool" , "QEvent*"};
5299 5304 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5300 5305 bool returnValue;
5301 5306 void* args[2] = {NULL, (void*)&arg__1};
5302 5307 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5303 5308 if (result) {
5304 5309 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
5305 5310 if (args[0]!=&returnValue) {
5306 5311 if (args[0]==NULL) {
5307 5312 PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result);
5308 5313 } else {
5309 5314 returnValue = *((bool*)args[0]);
5310 5315 }
5311 5316 }
5312 5317 }
5313 5318 if (result) { Py_DECREF(result); }
5314 5319 Py_DECREF(obj);
5315 5320 return returnValue;
5316 5321 } else {
5317 5322 PyErr_Clear();
5318 5323 }
5319 5324 }
5320 5325 return abstractBinFile::event(arg__1);
5321 5326 }
5322 5327 bool PythonQtShell_abstractBinFile::eventFilter(QObject* arg__1, QEvent* arg__2)
5323 5328 {
5324 5329 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
5325 5330 static PyObject* name = PyString_FromString("eventFilter");
5326 5331 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
5327 5332 if (obj) {
5328 5333 static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"};
5329 5334 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList);
5330 5335 bool returnValue;
5331 5336 void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2};
5332 5337 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5333 5338 if (result) {
5334 5339 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
5335 5340 if (args[0]!=&returnValue) {
5336 5341 if (args[0]==NULL) {
5337 5342 PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result);
5338 5343 } else {
5339 5344 returnValue = *((bool*)args[0]);
5340 5345 }
5341 5346 }
5342 5347 }
5343 5348 if (result) { Py_DECREF(result); }
5344 5349 Py_DECREF(obj);
5345 5350 return returnValue;
5346 5351 } else {
5347 5352 PyErr_Clear();
5348 5353 }
5349 5354 }
5350 5355 return abstractBinFile::eventFilter(arg__1, arg__2);
5351 5356 }
5352 5357 QList<codeFragment* > PythonQtShell_abstractBinFile::getFragments()
5353 5358 {
5354 5359 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
5355 5360 static PyObject* name = PyString_FromString("getFragments");
5356 5361 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
5357 5362 if (obj) {
5358 5363 static const char* argumentList[] ={"QList<codeFragment* >"};
5359 5364 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
5360 5365 QList<codeFragment* > returnValue;
5361 5366 void* args[1] = {NULL};
5362 5367 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5363 5368 if (result) {
5364 5369 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
5365 5370 if (args[0]!=&returnValue) {
5366 5371 if (args[0]==NULL) {
5367 5372 PythonQt::priv()->handleVirtualOverloadReturnError("getFragments", methodInfo, result);
5368 5373 } else {
5369 5374 returnValue = *((QList<codeFragment* >*)args[0]);
5370 5375 }
5371 5376 }
5372 5377 }
5373 5378 if (result) { Py_DECREF(result); }
5374 5379 Py_DECREF(obj);
5375 5380 return returnValue;
5376 5381 } else {
5377 5382 PyErr_Clear();
5378 5383 }
5379 5384 }
5380 5385 return QList<codeFragment* >();
5381 5386 }
5382 5387 bool PythonQtShell_abstractBinFile::isopened()
5383 5388 {
5384 5389 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
5385 5390 static PyObject* name = PyString_FromString("isopened");
5386 5391 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
5387 5392 if (obj) {
5388 5393 static const char* argumentList[] ={"bool"};
5389 5394 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
5390 5395 bool returnValue;
5391 5396 void* args[1] = {NULL};
5392 5397 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5393 5398 if (result) {
5394 5399 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
5395 5400 if (args[0]!=&returnValue) {
5396 5401 if (args[0]==NULL) {
5397 5402 PythonQt::priv()->handleVirtualOverloadReturnError("isopened", methodInfo, result);
5398 5403 } else {
5399 5404 returnValue = *((bool*)args[0]);
5400 5405 }
5401 5406 }
5402 5407 }
5403 5408 if (result) { Py_DECREF(result); }
5404 5409 Py_DECREF(obj);
5405 5410 return returnValue;
5406 5411 } else {
5407 5412 PyErr_Clear();
5408 5413 }
5409 5414 }
5410 5415 return bool();
5411 5416 }
5412 5417 bool PythonQtShell_abstractBinFile::openFile(const QString& File0)
5413 5418 {
5414 5419 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
5415 5420 static PyObject* name = PyString_FromString("openFile");
5416 5421 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
5417 5422 if (obj) {
5418 5423 static const char* argumentList[] ={"bool" , "const QString&"};
5419 5424 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5420 5425 bool returnValue;
5421 5426 void* args[2] = {NULL, (void*)&File0};
5422 5427 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5423 5428 if (result) {
5424 5429 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
5425 5430 if (args[0]!=&returnValue) {
5426 5431 if (args[0]==NULL) {
5427 5432 PythonQt::priv()->handleVirtualOverloadReturnError("openFile", methodInfo, result);
5428 5433 } else {
5429 5434 returnValue = *((bool*)args[0]);
5430 5435 }
5431 5436 }
5432 5437 }
5433 5438 if (result) { Py_DECREF(result); }
5434 5439 Py_DECREF(obj);
5435 5440 return returnValue;
5436 5441 } else {
5437 5442 PyErr_Clear();
5438 5443 }
5439 5444 }
5440 5445 return bool();
5441 5446 }
5442 5447 void PythonQtShell_abstractBinFile::timerEvent(QTimerEvent* arg__1)
5443 5448 {
5444 5449 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
5445 5450 static PyObject* name = PyString_FromString("timerEvent");
5446 5451 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
5447 5452 if (obj) {
5448 5453 static const char* argumentList[] ={"" , "QTimerEvent*"};
5449 5454 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5450 5455 void* args[2] = {NULL, (void*)&arg__1};
5451 5456 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5452 5457 if (result) { Py_DECREF(result); }
5453 5458 Py_DECREF(obj);
5454 5459 return;
5455 5460 } else {
5456 5461 PyErr_Clear();
5457 5462 }
5458 5463 }
5459 5464 abstractBinFile::timerEvent(arg__1);
5460 5465 }
5461 5466 bool PythonQtShell_abstractBinFile::toBinary(const QString& File0)
5462 5467 {
5463 5468 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
5464 5469 static PyObject* name = PyString_FromString("toBinary");
5465 5470 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
5466 5471 if (obj) {
5467 5472 static const char* argumentList[] ={"bool" , "const QString&"};
5468 5473 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5469 5474 bool returnValue;
5470 5475 void* args[2] = {NULL, (void*)&File0};
5471 5476 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5472 5477 if (result) {
5473 5478 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
5474 5479 if (args[0]!=&returnValue) {
5475 5480 if (args[0]==NULL) {
5476 5481 PythonQt::priv()->handleVirtualOverloadReturnError("toBinary", methodInfo, result);
5477 5482 } else {
5478 5483 returnValue = *((bool*)args[0]);
5479 5484 }
5480 5485 }
5481 5486 }
5482 5487 if (result) { Py_DECREF(result); }
5483 5488 Py_DECREF(obj);
5484 5489 return returnValue;
5485 5490 } else {
5486 5491 PyErr_Clear();
5487 5492 }
5488 5493 }
5489 5494 return bool();
5490 5495 }
5491 5496 bool PythonQtShell_abstractBinFile::toSrec(const QString& File0)
5492 5497 {
5493 5498 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
5494 5499 static PyObject* name = PyString_FromString("toSrec");
5495 5500 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
5496 5501 if (obj) {
5497 5502 static const char* argumentList[] ={"bool" , "const QString&"};
5498 5503 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5499 5504 bool returnValue;
5500 5505 void* args[2] = {NULL, (void*)&File0};
5501 5506 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5502 5507 if (result) {
5503 5508 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
5504 5509 if (args[0]!=&returnValue) {
5505 5510 if (args[0]==NULL) {
5506 5511 PythonQt::priv()->handleVirtualOverloadReturnError("toSrec", methodInfo, result);
5507 5512 } else {
5508 5513 returnValue = *((bool*)args[0]);
5509 5514 }
5510 5515 }
5511 5516 }
5512 5517 if (result) { Py_DECREF(result); }
5513 5518 Py_DECREF(obj);
5514 5519 return returnValue;
5515 5520 } else {
5516 5521 PyErr_Clear();
5517 5522 }
5518 5523 }
5519 5524 return bool();
5520 5525 }
5521 5526 abstractBinFile* PythonQtWrapper_abstractBinFile::new_abstractBinFile()
5522 5527 {
5523 5528 return new PythonQtShell_abstractBinFile(); }
5524 5529
5525 5530 int PythonQtWrapper_abstractBinFile::closeFile(abstractBinFile* theWrappedObject)
5526 5531 {
5527 5532 return ( ((PythonQtPublicPromoter_abstractBinFile*)theWrappedObject)->promoted_closeFile());
5528 5533 }
5529 5534
5530 5535 QList<codeFragment* > PythonQtWrapper_abstractBinFile::getFragments(abstractBinFile* theWrappedObject)
5531 5536 {
5532 5537 return ( ((PythonQtPublicPromoter_abstractBinFile*)theWrappedObject)->promoted_getFragments());
5533 5538 }
5534 5539
5535 5540 bool PythonQtWrapper_abstractBinFile::isopened(abstractBinFile* theWrappedObject)
5536 5541 {
5537 5542 return ( ((PythonQtPublicPromoter_abstractBinFile*)theWrappedObject)->promoted_isopened());
5538 5543 }
5539 5544
5540 5545 bool PythonQtWrapper_abstractBinFile::openFile(abstractBinFile* theWrappedObject, const QString& File)
5541 5546 {
5542 5547 return ( ((PythonQtPublicPromoter_abstractBinFile*)theWrappedObject)->promoted_openFile(File));
5543 5548 }
5544 5549
5545 5550 bool PythonQtWrapper_abstractBinFile::toBinary(abstractBinFile* theWrappedObject, const QString& File)
5546 5551 {
5547 5552 return ( ((PythonQtPublicPromoter_abstractBinFile*)theWrappedObject)->promoted_toBinary(File));
5548 5553 }
5549 5554
5550 5555 bool PythonQtWrapper_abstractBinFile::toSrec(abstractBinFile* theWrappedObject, const QString& File)
5551 5556 {
5552 5557 return ( ((PythonQtPublicPromoter_abstractBinFile*)theWrappedObject)->promoted_toSrec(File));
5553 5558 }
5554 5559
5555 5560
5556 5561
5557 5562 PythonQtShell_abstractBinFileWidget::~PythonQtShell_abstractBinFileWidget() {
5558 5563 PythonQtPrivate* priv = PythonQt::priv();
5559 5564 if (priv) { priv->shellClassDeleted(this); }
5560 5565 }
5561 5566 void PythonQtShell_abstractBinFileWidget::actionEvent(QActionEvent* arg__1)
5562 5567 {
5563 5568 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
5564 5569 static PyObject* name = PyString_FromString("actionEvent");
5565 5570 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
5566 5571 if (obj) {
5567 5572 static const char* argumentList[] ={"" , "QActionEvent*"};
5568 5573 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5569 5574 void* args[2] = {NULL, (void*)&arg__1};
5570 5575 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5571 5576 if (result) { Py_DECREF(result); }
5572 5577 Py_DECREF(obj);
5573 5578 return;
5574 5579 } else {
5575 5580 PyErr_Clear();
5576 5581 }
5577 5582 }
5578 5583 abstractBinFileWidget::actionEvent(arg__1);
5579 5584 }
5580 5585 void PythonQtShell_abstractBinFileWidget::changeEvent(QEvent* arg__1)
5581 5586 {
5582 5587 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
5583 5588 static PyObject* name = PyString_FromString("changeEvent");
5584 5589 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
5585 5590 if (obj) {
5586 5591 static const char* argumentList[] ={"" , "QEvent*"};
5587 5592 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5588 5593 void* args[2] = {NULL, (void*)&arg__1};
5589 5594 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5590 5595 if (result) { Py_DECREF(result); }
5591 5596 Py_DECREF(obj);
5592 5597 return;
5593 5598 } else {
5594 5599 PyErr_Clear();
5595 5600 }
5596 5601 }
5597 5602 abstractBinFileWidget::changeEvent(arg__1);
5598 5603 }
5599 5604 void PythonQtShell_abstractBinFileWidget::childEvent(QChildEvent* arg__1)
5600 5605 {
5601 5606 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
5602 5607 static PyObject* name = PyString_FromString("childEvent");
5603 5608 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
5604 5609 if (obj) {
5605 5610 static const char* argumentList[] ={"" , "QChildEvent*"};
5606 5611 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5607 5612 void* args[2] = {NULL, (void*)&arg__1};
5608 5613 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5609 5614 if (result) { Py_DECREF(result); }
5610 5615 Py_DECREF(obj);
5611 5616 return;
5612 5617 } else {
5613 5618 PyErr_Clear();
5614 5619 }
5615 5620 }
5616 5621 abstractBinFileWidget::childEvent(arg__1);
5617 5622 }
5618 5623 void PythonQtShell_abstractBinFileWidget::closeEvent(QCloseEvent* arg__1)
5619 5624 {
5620 5625 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
5621 5626 static PyObject* name = PyString_FromString("closeEvent");
5622 5627 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
5623 5628 if (obj) {
5624 5629 static const char* argumentList[] ={"" , "QCloseEvent*"};
5625 5630 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5626 5631 void* args[2] = {NULL, (void*)&arg__1};
5627 5632 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5628 5633 if (result) { Py_DECREF(result); }
5629 5634 Py_DECREF(obj);
5630 5635 return;
5631 5636 } else {
5632 5637 PyErr_Clear();
5633 5638 }
5634 5639 }
5635 5640 abstractBinFileWidget::closeEvent(arg__1);
5636 5641 }
5637 5642 void PythonQtShell_abstractBinFileWidget::contextMenuEvent(QContextMenuEvent* arg__1)
5638 5643 {
5639 5644 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
5640 5645 static PyObject* name = PyString_FromString("contextMenuEvent");
5641 5646 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
5642 5647 if (obj) {
5643 5648 static const char* argumentList[] ={"" , "QContextMenuEvent*"};
5644 5649 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5645 5650 void* args[2] = {NULL, (void*)&arg__1};
5646 5651 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5647 5652 if (result) { Py_DECREF(result); }
5648 5653 Py_DECREF(obj);
5649 5654 return;
5650 5655 } else {
5651 5656 PyErr_Clear();
5652 5657 }
5653 5658 }
5654 5659 abstractBinFileWidget::contextMenuEvent(arg__1);
5655 5660 }
5656 5661 void PythonQtShell_abstractBinFileWidget::customEvent(QEvent* arg__1)
5657 5662 {
5658 5663 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
5659 5664 static PyObject* name = PyString_FromString("customEvent");
5660 5665 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
5661 5666 if (obj) {
5662 5667 static const char* argumentList[] ={"" , "QEvent*"};
5663 5668 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5664 5669 void* args[2] = {NULL, (void*)&arg__1};
5665 5670 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5666 5671 if (result) { Py_DECREF(result); }
5667 5672 Py_DECREF(obj);
5668 5673 return;
5669 5674 } else {
5670 5675 PyErr_Clear();
5671 5676 }
5672 5677 }
5673 5678 abstractBinFileWidget::customEvent(arg__1);
5674 5679 }
5675 5680 int PythonQtShell_abstractBinFileWidget::devType() const
5676 5681 {
5677 5682 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
5678 5683 static PyObject* name = PyString_FromString("devType");
5679 5684 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
5680 5685 if (obj) {
5681 5686 static const char* argumentList[] ={"int"};
5682 5687 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
5683 5688 int returnValue;
5684 5689 void* args[1] = {NULL};
5685 5690 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5686 5691 if (result) {
5687 5692 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
5688 5693 if (args[0]!=&returnValue) {
5689 5694 if (args[0]==NULL) {
5690 5695 PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result);
5691 5696 } else {
5692 5697 returnValue = *((int*)args[0]);
5693 5698 }
5694 5699 }
5695 5700 }
5696 5701 if (result) { Py_DECREF(result); }
5697 5702 Py_DECREF(obj);
5698 5703 return returnValue;
5699 5704 } else {
5700 5705 PyErr_Clear();
5701 5706 }
5702 5707 }
5703 5708 return abstractBinFileWidget::devType();
5704 5709 }
5705 5710 void PythonQtShell_abstractBinFileWidget::dragEnterEvent(QDragEnterEvent* arg__1)
5706 5711 {
5707 5712 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
5708 5713 static PyObject* name = PyString_FromString("dragEnterEvent");
5709 5714 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
5710 5715 if (obj) {
5711 5716 static const char* argumentList[] ={"" , "QDragEnterEvent*"};
5712 5717 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5713 5718 void* args[2] = {NULL, (void*)&arg__1};
5714 5719 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5715 5720 if (result) { Py_DECREF(result); }
5716 5721 Py_DECREF(obj);
5717 5722 return;
5718 5723 } else {
5719 5724 PyErr_Clear();
5720 5725 }
5721 5726 }
5722 5727 abstractBinFileWidget::dragEnterEvent(arg__1);
5723 5728 }
5724 5729 void PythonQtShell_abstractBinFileWidget::dragLeaveEvent(QDragLeaveEvent* arg__1)
5725 5730 {
5726 5731 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
5727 5732 static PyObject* name = PyString_FromString("dragLeaveEvent");
5728 5733 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
5729 5734 if (obj) {
5730 5735 static const char* argumentList[] ={"" , "QDragLeaveEvent*"};
5731 5736 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5732 5737 void* args[2] = {NULL, (void*)&arg__1};
5733 5738 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5734 5739 if (result) { Py_DECREF(result); }
5735 5740 Py_DECREF(obj);
5736 5741 return;
5737 5742 } else {
5738 5743 PyErr_Clear();
5739 5744 }
5740 5745 }
5741 5746 abstractBinFileWidget::dragLeaveEvent(arg__1);
5742 5747 }
5743 5748 void PythonQtShell_abstractBinFileWidget::dragMoveEvent(QDragMoveEvent* arg__1)
5744 5749 {
5745 5750 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
5746 5751 static PyObject* name = PyString_FromString("dragMoveEvent");
5747 5752 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
5748 5753 if (obj) {
5749 5754 static const char* argumentList[] ={"" , "QDragMoveEvent*"};
5750 5755 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5751 5756 void* args[2] = {NULL, (void*)&arg__1};
5752 5757 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5753 5758 if (result) { Py_DECREF(result); }
5754 5759 Py_DECREF(obj);
5755 5760 return;
5756 5761 } else {
5757 5762 PyErr_Clear();
5758 5763 }
5759 5764 }
5760 5765 abstractBinFileWidget::dragMoveEvent(arg__1);
5761 5766 }
5762 5767 void PythonQtShell_abstractBinFileWidget::dropEvent(QDropEvent* arg__1)
5763 5768 {
5764 5769 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
5765 5770 static PyObject* name = PyString_FromString("dropEvent");
5766 5771 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
5767 5772 if (obj) {
5768 5773 static const char* argumentList[] ={"" , "QDropEvent*"};
5769 5774 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5770 5775 void* args[2] = {NULL, (void*)&arg__1};
5771 5776 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5772 5777 if (result) { Py_DECREF(result); }
5773 5778 Py_DECREF(obj);
5774 5779 return;
5775 5780 } else {
5776 5781 PyErr_Clear();
5777 5782 }
5778 5783 }
5779 5784 abstractBinFileWidget::dropEvent(arg__1);
5780 5785 }
5781 5786 void PythonQtShell_abstractBinFileWidget::enterEvent(QEvent* arg__1)
5782 5787 {
5783 5788 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
5784 5789 static PyObject* name = PyString_FromString("enterEvent");
5785 5790 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
5786 5791 if (obj) {
5787 5792 static const char* argumentList[] ={"" , "QEvent*"};
5788 5793 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5789 5794 void* args[2] = {NULL, (void*)&arg__1};
5790 5795 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5791 5796 if (result) { Py_DECREF(result); }
5792 5797 Py_DECREF(obj);
5793 5798 return;
5794 5799 } else {
5795 5800 PyErr_Clear();
5796 5801 }
5797 5802 }
5798 5803 abstractBinFileWidget::enterEvent(arg__1);
5799 5804 }
5800 5805 bool PythonQtShell_abstractBinFileWidget::event(QEvent* arg__1)
5801 5806 {
5802 5807 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
5803 5808 static PyObject* name = PyString_FromString("event");
5804 5809 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
5805 5810 if (obj) {
5806 5811 static const char* argumentList[] ={"bool" , "QEvent*"};
5807 5812 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5808 5813 bool returnValue;
5809 5814 void* args[2] = {NULL, (void*)&arg__1};
5810 5815 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5811 5816 if (result) {
5812 5817 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
5813 5818 if (args[0]!=&returnValue) {
5814 5819 if (args[0]==NULL) {
5815 5820 PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result);
5816 5821 } else {
5817 5822 returnValue = *((bool*)args[0]);
5818 5823 }
5819 5824 }
5820 5825 }
5821 5826 if (result) { Py_DECREF(result); }
5822 5827 Py_DECREF(obj);
5823 5828 return returnValue;
5824 5829 } else {
5825 5830 PyErr_Clear();
5826 5831 }
5827 5832 }
5828 5833 return abstractBinFileWidget::event(arg__1);
5829 5834 }
5830 5835 bool PythonQtShell_abstractBinFileWidget::eventFilter(QObject* arg__1, QEvent* arg__2)
5831 5836 {
5832 5837 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
5833 5838 static PyObject* name = PyString_FromString("eventFilter");
5834 5839 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
5835 5840 if (obj) {
5836 5841 static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"};
5837 5842 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList);
5838 5843 bool returnValue;
5839 5844 void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2};
5840 5845 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5841 5846 if (result) {
5842 5847 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
5843 5848 if (args[0]!=&returnValue) {
5844 5849 if (args[0]==NULL) {
5845 5850 PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result);
5846 5851 } else {
5847 5852 returnValue = *((bool*)args[0]);
5848 5853 }
5849 5854 }
5850 5855 }
5851 5856 if (result) { Py_DECREF(result); }
5852 5857 Py_DECREF(obj);
5853 5858 return returnValue;
5854 5859 } else {
5855 5860 PyErr_Clear();
5856 5861 }
5857 5862 }
5858 5863 return abstractBinFileWidget::eventFilter(arg__1, arg__2);
5859 5864 }
5860 5865 void PythonQtShell_abstractBinFileWidget::focusInEvent(QFocusEvent* arg__1)
5861 5866 {
5862 5867 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
5863 5868 static PyObject* name = PyString_FromString("focusInEvent");
5864 5869 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
5865 5870 if (obj) {
5866 5871 static const char* argumentList[] ={"" , "QFocusEvent*"};
5867 5872 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5868 5873 void* args[2] = {NULL, (void*)&arg__1};
5869 5874 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5870 5875 if (result) { Py_DECREF(result); }
5871 5876 Py_DECREF(obj);
5872 5877 return;
5873 5878 } else {
5874 5879 PyErr_Clear();
5875 5880 }
5876 5881 }
5877 5882 abstractBinFileWidget::focusInEvent(arg__1);
5878 5883 }
5879 5884 bool PythonQtShell_abstractBinFileWidget::focusNextPrevChild(bool next0)
5880 5885 {
5881 5886 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
5882 5887 static PyObject* name = PyString_FromString("focusNextPrevChild");
5883 5888 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
5884 5889 if (obj) {
5885 5890 static const char* argumentList[] ={"bool" , "bool"};
5886 5891 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5887 5892 bool returnValue;
5888 5893 void* args[2] = {NULL, (void*)&next0};
5889 5894 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5890 5895 if (result) {
5891 5896 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
5892 5897 if (args[0]!=&returnValue) {
5893 5898 if (args[0]==NULL) {
5894 5899 PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result);
5895 5900 } else {
5896 5901 returnValue = *((bool*)args[0]);
5897 5902 }
5898 5903 }
5899 5904 }
5900 5905 if (result) { Py_DECREF(result); }
5901 5906 Py_DECREF(obj);
5902 5907 return returnValue;
5903 5908 } else {
5904 5909 PyErr_Clear();
5905 5910 }
5906 5911 }
5907 5912 return abstractBinFileWidget::focusNextPrevChild(next0);
5908 5913 }
5909 5914 void PythonQtShell_abstractBinFileWidget::focusOutEvent(QFocusEvent* arg__1)
5910 5915 {
5911 5916 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
5912 5917 static PyObject* name = PyString_FromString("focusOutEvent");
5913 5918 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
5914 5919 if (obj) {
5915 5920 static const char* argumentList[] ={"" , "QFocusEvent*"};
5916 5921 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5917 5922 void* args[2] = {NULL, (void*)&arg__1};
5918 5923 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5919 5924 if (result) { Py_DECREF(result); }
5920 5925 Py_DECREF(obj);
5921 5926 return;
5922 5927 } else {
5923 5928 PyErr_Clear();
5924 5929 }
5925 5930 }
5926 5931 abstractBinFileWidget::focusOutEvent(arg__1);
5927 5932 }
5928 5933 bool PythonQtShell_abstractBinFileWidget::hasHeightForWidth() const
5929 5934 {
5930 5935 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
5931 5936 static PyObject* name = PyString_FromString("hasHeightForWidth");
5932 5937 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
5933 5938 if (obj) {
5934 5939 static const char* argumentList[] ={"bool"};
5935 5940 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
5936 5941 bool returnValue;
5937 5942 void* args[1] = {NULL};
5938 5943 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5939 5944 if (result) {
5940 5945 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
5941 5946 if (args[0]!=&returnValue) {
5942 5947 if (args[0]==NULL) {
5943 5948 PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result);
5944 5949 } else {
5945 5950 returnValue = *((bool*)args[0]);
5946 5951 }
5947 5952 }
5948 5953 }
5949 5954 if (result) { Py_DECREF(result); }
5950 5955 Py_DECREF(obj);
5951 5956 return returnValue;
5952 5957 } else {
5953 5958 PyErr_Clear();
5954 5959 }
5955 5960 }
5956 5961 return abstractBinFileWidget::hasHeightForWidth();
5957 5962 }
5958 5963 int PythonQtShell_abstractBinFileWidget::heightForWidth(int arg__1) const
5959 5964 {
5960 5965 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
5961 5966 static PyObject* name = PyString_FromString("heightForWidth");
5962 5967 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
5963 5968 if (obj) {
5964 5969 static const char* argumentList[] ={"int" , "int"};
5965 5970 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5966 5971 int returnValue;
5967 5972 void* args[2] = {NULL, (void*)&arg__1};
5968 5973 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5969 5974 if (result) {
5970 5975 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
5971 5976 if (args[0]!=&returnValue) {
5972 5977 if (args[0]==NULL) {
5973 5978 PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result);
5974 5979 } else {
5975 5980 returnValue = *((int*)args[0]);
5976 5981 }
5977 5982 }
5978 5983 }
5979 5984 if (result) { Py_DECREF(result); }
5980 5985 Py_DECREF(obj);
5981 5986 return returnValue;
5982 5987 } else {
5983 5988 PyErr_Clear();
5984 5989 }
5985 5990 }
5986 5991 return abstractBinFileWidget::heightForWidth(arg__1);
5987 5992 }
5988 5993 void PythonQtShell_abstractBinFileWidget::hideEvent(QHideEvent* arg__1)
5989 5994 {
5990 5995 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
5991 5996 static PyObject* name = PyString_FromString("hideEvent");
5992 5997 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
5993 5998 if (obj) {
5994 5999 static const char* argumentList[] ={"" , "QHideEvent*"};
5995 6000 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5996 6001 void* args[2] = {NULL, (void*)&arg__1};
5997 6002 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5998 6003 if (result) { Py_DECREF(result); }
5999 6004 Py_DECREF(obj);
6000 6005 return;
6001 6006 } else {
6002 6007 PyErr_Clear();
6003 6008 }
6004 6009 }
6005 6010 abstractBinFileWidget::hideEvent(arg__1);
6006 6011 }
6007 6012 void PythonQtShell_abstractBinFileWidget::initPainter(QPainter* painter0) const
6008 6013 {
6009 6014 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
6010 6015 static PyObject* name = PyString_FromString("initPainter");
6011 6016 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
6012 6017 if (obj) {
6013 6018 static const char* argumentList[] ={"" , "QPainter*"};
6014 6019 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6015 6020 void* args[2] = {NULL, (void*)&painter0};
6016 6021 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6017 6022 if (result) { Py_DECREF(result); }
6018 6023 Py_DECREF(obj);
6019 6024 return;
6020 6025 } else {
6021 6026 PyErr_Clear();
6022 6027 }
6023 6028 }
6024 6029 abstractBinFileWidget::initPainter(painter0);
6025 6030 }
6026 6031 void PythonQtShell_abstractBinFileWidget::inputMethodEvent(QInputMethodEvent* arg__1)
6027 6032 {
6028 6033 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
6029 6034 static PyObject* name = PyString_FromString("inputMethodEvent");
6030 6035 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
6031 6036 if (obj) {
6032 6037 static const char* argumentList[] ={"" , "QInputMethodEvent*"};
6033 6038 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6034 6039 void* args[2] = {NULL, (void*)&arg__1};
6035 6040 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6036 6041 if (result) { Py_DECREF(result); }
6037 6042 Py_DECREF(obj);
6038 6043 return;
6039 6044 } else {
6040 6045 PyErr_Clear();
6041 6046 }
6042 6047 }
6043 6048 abstractBinFileWidget::inputMethodEvent(arg__1);
6044 6049 }
6045 6050 QVariant PythonQtShell_abstractBinFileWidget::inputMethodQuery(Qt::InputMethodQuery arg__1) const
6046 6051 {
6047 6052 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
6048 6053 static PyObject* name = PyString_FromString("inputMethodQuery");
6049 6054 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
6050 6055 if (obj) {
6051 6056 static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"};
6052 6057 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6053 6058 QVariant returnValue;
6054 6059 void* args[2] = {NULL, (void*)&arg__1};
6055 6060 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6056 6061 if (result) {
6057 6062 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
6058 6063 if (args[0]!=&returnValue) {
6059 6064 if (args[0]==NULL) {
6060 6065 PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result);
6061 6066 } else {
6062 6067 returnValue = *((QVariant*)args[0]);
6063 6068 }
6064 6069 }
6065 6070 }
6066 6071 if (result) { Py_DECREF(result); }
6067 6072 Py_DECREF(obj);
6068 6073 return returnValue;
6069 6074 } else {
6070 6075 PyErr_Clear();
6071 6076 }
6072 6077 }
6073 6078 return abstractBinFileWidget::inputMethodQuery(arg__1);
6074 6079 }
6075 6080 void PythonQtShell_abstractBinFileWidget::keyPressEvent(QKeyEvent* arg__1)
6076 6081 {
6077 6082 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
6078 6083 static PyObject* name = PyString_FromString("keyPressEvent");
6079 6084 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
6080 6085 if (obj) {
6081 6086 static const char* argumentList[] ={"" , "QKeyEvent*"};
6082 6087 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6083 6088 void* args[2] = {NULL, (void*)&arg__1};
6084 6089 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6085 6090 if (result) { Py_DECREF(result); }
6086 6091 Py_DECREF(obj);
6087 6092 return;
6088 6093 } else {
6089 6094 PyErr_Clear();
6090 6095 }
6091 6096 }
6092 6097 abstractBinFileWidget::keyPressEvent(arg__1);
6093 6098 }
6094 6099 void PythonQtShell_abstractBinFileWidget::keyReleaseEvent(QKeyEvent* arg__1)
6095 6100 {
6096 6101 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
6097 6102 static PyObject* name = PyString_FromString("keyReleaseEvent");
6098 6103 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
6099 6104 if (obj) {
6100 6105 static const char* argumentList[] ={"" , "QKeyEvent*"};
6101 6106 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6102 6107 void* args[2] = {NULL, (void*)&arg__1};
6103 6108 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6104 6109 if (result) { Py_DECREF(result); }
6105 6110 Py_DECREF(obj);
6106 6111 return;
6107 6112 } else {
6108 6113 PyErr_Clear();
6109 6114 }
6110 6115 }
6111 6116 abstractBinFileWidget::keyReleaseEvent(arg__1);
6112 6117 }
6113 6118 void PythonQtShell_abstractBinFileWidget::leaveEvent(QEvent* arg__1)
6114 6119 {
6115 6120 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
6116 6121 static PyObject* name = PyString_FromString("leaveEvent");
6117 6122 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
6118 6123 if (obj) {
6119 6124 static const char* argumentList[] ={"" , "QEvent*"};
6120 6125 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6121 6126 void* args[2] = {NULL, (void*)&arg__1};
6122 6127 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6123 6128 if (result) { Py_DECREF(result); }
6124 6129 Py_DECREF(obj);
6125 6130 return;
6126 6131 } else {
6127 6132 PyErr_Clear();
6128 6133 }
6129 6134 }
6130 6135 abstractBinFileWidget::leaveEvent(arg__1);
6131 6136 }
6132 6137 int PythonQtShell_abstractBinFileWidget::metric(QPaintDevice::PaintDeviceMetric arg__1) const
6133 6138 {
6134 6139 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
6135 6140 static PyObject* name = PyString_FromString("metric");
6136 6141 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
6137 6142 if (obj) {
6138 6143 static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"};
6139 6144 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6140 6145 int returnValue;
6141 6146 void* args[2] = {NULL, (void*)&arg__1};
6142 6147 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6143 6148 if (result) {
6144 6149 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
6145 6150 if (args[0]!=&returnValue) {
6146 6151 if (args[0]==NULL) {
6147 6152 PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result);
6148 6153 } else {
6149 6154 returnValue = *((int*)args[0]);
6150 6155 }
6151 6156 }
6152 6157 }
6153 6158 if (result) { Py_DECREF(result); }
6154 6159 Py_DECREF(obj);
6155 6160 return returnValue;
6156 6161 } else {
6157 6162 PyErr_Clear();
6158 6163 }
6159 6164 }
6160 6165 return abstractBinFileWidget::metric(arg__1);
6161 6166 }
6162 6167 QSize PythonQtShell_abstractBinFileWidget::minimumSizeHint() const
6163 6168 {
6164 6169 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
6165 6170 static PyObject* name = PyString_FromString("getMinimumSizeHint");
6166 6171 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
6167 6172 if (obj) {
6168 6173 static const char* argumentList[] ={"QSize"};
6169 6174 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
6170 6175 QSize returnValue;
6171 6176 void* args[1] = {NULL};
6172 6177 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6173 6178 if (result) {
6174 6179 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
6175 6180 if (args[0]!=&returnValue) {
6176 6181 if (args[0]==NULL) {
6177 6182 PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result);
6178 6183 } else {
6179 6184 returnValue = *((QSize*)args[0]);
6180 6185 }
6181 6186 }
6182 6187 }
6183 6188 if (result) { Py_DECREF(result); }
6184 6189 Py_DECREF(obj);
6185 6190 return returnValue;
6186 6191 } else {
6187 6192 PyErr_Clear();
6188 6193 }
6189 6194 }
6190 6195 return abstractBinFileWidget::minimumSizeHint();
6191 6196 }
6192 6197 void PythonQtShell_abstractBinFileWidget::mouseDoubleClickEvent(QMouseEvent* arg__1)
6193 6198 {
6194 6199 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
6195 6200 static PyObject* name = PyString_FromString("mouseDoubleClickEvent");
6196 6201 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
6197 6202 if (obj) {
6198 6203 static const char* argumentList[] ={"" , "QMouseEvent*"};
6199 6204 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6200 6205 void* args[2] = {NULL, (void*)&arg__1};
6201 6206 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6202 6207 if (result) { Py_DECREF(result); }
6203 6208 Py_DECREF(obj);
6204 6209 return;
6205 6210 } else {
6206 6211 PyErr_Clear();
6207 6212 }
6208 6213 }
6209 6214 abstractBinFileWidget::mouseDoubleClickEvent(arg__1);
6210 6215 }
6211 6216 void PythonQtShell_abstractBinFileWidget::mouseMoveEvent(QMouseEvent* arg__1)
6212 6217 {
6213 6218 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
6214 6219 static PyObject* name = PyString_FromString("mouseMoveEvent");
6215 6220 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
6216 6221 if (obj) {
6217 6222 static const char* argumentList[] ={"" , "QMouseEvent*"};
6218 6223 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6219 6224 void* args[2] = {NULL, (void*)&arg__1};
6220 6225 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6221 6226 if (result) { Py_DECREF(result); }
6222 6227 Py_DECREF(obj);
6223 6228 return;
6224 6229 } else {
6225 6230 PyErr_Clear();
6226 6231 }
6227 6232 }
6228 6233 abstractBinFileWidget::mouseMoveEvent(arg__1);
6229 6234 }
6230 6235 void PythonQtShell_abstractBinFileWidget::mousePressEvent(QMouseEvent* arg__1)
6231 6236 {
6232 6237 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
6233 6238 static PyObject* name = PyString_FromString("mousePressEvent");
6234 6239 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
6235 6240 if (obj) {
6236 6241 static const char* argumentList[] ={"" , "QMouseEvent*"};
6237 6242 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6238 6243 void* args[2] = {NULL, (void*)&arg__1};
6239 6244 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6240 6245 if (result) { Py_DECREF(result); }
6241 6246 Py_DECREF(obj);
6242 6247 return;
6243 6248 } else {
6244 6249 PyErr_Clear();
6245 6250 }
6246 6251 }
6247 6252 abstractBinFileWidget::mousePressEvent(arg__1);
6248 6253 }
6249 6254 void PythonQtShell_abstractBinFileWidget::mouseReleaseEvent(QMouseEvent* arg__1)
6250 6255 {
6251 6256 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
6252 6257 static PyObject* name = PyString_FromString("mouseReleaseEvent");
6253 6258 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
6254 6259 if (obj) {
6255 6260 static const char* argumentList[] ={"" , "QMouseEvent*"};
6256 6261 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6257 6262 void* args[2] = {NULL, (void*)&arg__1};
6258 6263 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6259 6264 if (result) { Py_DECREF(result); }
6260 6265 Py_DECREF(obj);
6261 6266 return;
6262 6267 } else {
6263 6268 PyErr_Clear();
6264 6269 }
6265 6270 }
6266 6271 abstractBinFileWidget::mouseReleaseEvent(arg__1);
6267 6272 }
6268 6273 void PythonQtShell_abstractBinFileWidget::moveEvent(QMoveEvent* arg__1)
6269 6274 {
6270 6275 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
6271 6276 static PyObject* name = PyString_FromString("moveEvent");
6272 6277 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
6273 6278 if (obj) {
6274 6279 static const char* argumentList[] ={"" , "QMoveEvent*"};
6275 6280 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6276 6281 void* args[2] = {NULL, (void*)&arg__1};
6277 6282 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6278 6283 if (result) { Py_DECREF(result); }
6279 6284 Py_DECREF(obj);
6280 6285 return;
6281 6286 } else {
6282 6287 PyErr_Clear();
6283 6288 }
6284 6289 }
6285 6290 abstractBinFileWidget::moveEvent(arg__1);
6286 6291 }
6287 6292 bool PythonQtShell_abstractBinFileWidget::nativeEvent(const QByteArray& eventType0, void* message1, long* result2)
6288 6293 {
6289 6294 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
6290 6295 static PyObject* name = PyString_FromString("nativeEvent");
6291 6296 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
6292 6297 if (obj) {
6293 6298 static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"};
6294 6299 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList);
6295 6300 bool returnValue;
6296 6301 void* args[4] = {NULL, (void*)&eventType0, (void*)&message1, (void*)&result2};
6297 6302 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6298 6303 if (result) {
6299 6304 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
6300 6305 if (args[0]!=&returnValue) {
6301 6306 if (args[0]==NULL) {
6302 6307 PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result);
6303 6308 } else {
6304 6309 returnValue = *((bool*)args[0]);
6305 6310 }
6306 6311 }
6307 6312 }
6308 6313 if (result) { Py_DECREF(result); }
6309 6314 Py_DECREF(obj);
6310 6315 return returnValue;
6311 6316 } else {
6312 6317 PyErr_Clear();
6313 6318 }
6314 6319 }
6315 6320 return abstractBinFileWidget::nativeEvent(eventType0, message1, result2);
6316 6321 }
6317 6322 QPaintEngine* PythonQtShell_abstractBinFileWidget::paintEngine() const
6318 6323 {
6319 6324 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
6320 6325 static PyObject* name = PyString_FromString("paintEngine");
6321 6326 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
6322 6327 if (obj) {
6323 6328 static const char* argumentList[] ={"QPaintEngine*"};
6324 6329 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
6325 6330 QPaintEngine* returnValue;
6326 6331 void* args[1] = {NULL};
6327 6332 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6328 6333 if (result) {
6329 6334 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
6330 6335 if (args[0]!=&returnValue) {
6331 6336 if (args[0]==NULL) {
6332 6337 PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result);
6333 6338 } else {
6334 6339 returnValue = *((QPaintEngine**)args[0]);
6335 6340 }
6336 6341 }
6337 6342 }
6338 6343 if (result) { Py_DECREF(result); }
6339 6344 Py_DECREF(obj);
6340 6345 return returnValue;
6341 6346 } else {
6342 6347 PyErr_Clear();
6343 6348 }
6344 6349 }
6345 6350 return abstractBinFileWidget::paintEngine();
6346 6351 }
6347 6352 void PythonQtShell_abstractBinFileWidget::paintEvent(QPaintEvent* arg__1)
6348 6353 {
6349 6354 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
6350 6355 static PyObject* name = PyString_FromString("paintEvent");
6351 6356 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
6352 6357 if (obj) {
6353 6358 static const char* argumentList[] ={"" , "QPaintEvent*"};
6354 6359 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6355 6360 void* args[2] = {NULL, (void*)&arg__1};
6356 6361 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6357 6362 if (result) { Py_DECREF(result); }
6358 6363 Py_DECREF(obj);
6359 6364 return;
6360 6365 } else {
6361 6366 PyErr_Clear();
6362 6367 }
6363 6368 }
6364 6369 abstractBinFileWidget::paintEvent(arg__1);
6365 6370 }
6366 6371 QPaintDevice* PythonQtShell_abstractBinFileWidget::redirected(QPoint* offset0) const
6367 6372 {
6368 6373 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
6369 6374 static PyObject* name = PyString_FromString("redirected");
6370 6375 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
6371 6376 if (obj) {
6372 6377 static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"};
6373 6378 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6374 6379 QPaintDevice* returnValue;
6375 6380 void* args[2] = {NULL, (void*)&offset0};
6376 6381 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6377 6382 if (result) {
6378 6383 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
6379 6384 if (args[0]!=&returnValue) {
6380 6385 if (args[0]==NULL) {
6381 6386 PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result);
6382 6387 } else {
6383 6388 returnValue = *((QPaintDevice**)args[0]);
6384 6389 }
6385 6390 }
6386 6391 }
6387 6392 if (result) { Py_DECREF(result); }
6388 6393 Py_DECREF(obj);
6389 6394 return returnValue;
6390 6395 } else {
6391 6396 PyErr_Clear();
6392 6397 }
6393 6398 }
6394 6399 return abstractBinFileWidget::redirected(offset0);
6395 6400 }
6396 6401 void PythonQtShell_abstractBinFileWidget::reloadFile()
6397 6402 {
6398 6403 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
6399 6404 static PyObject* name = PyString_FromString("reloadFile");
6400 6405 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
6401 6406 if (obj) {
6402 6407 static const char* argumentList[] ={""};
6403 6408 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
6404 6409 void* args[1] = {NULL};
6405 6410 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6406 6411 if (result) { Py_DECREF(result); }
6407 6412 Py_DECREF(obj);
6408 6413 return;
6409 6414 } else {
6410 6415 PyErr_Clear();
6411 6416 }
6412 6417 }
6413 6418
6414 6419 }
6415 6420 void PythonQtShell_abstractBinFileWidget::resizeEvent(QResizeEvent* arg__1)
6416 6421 {
6417 6422 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
6418 6423 static PyObject* name = PyString_FromString("resizeEvent");
6419 6424 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
6420 6425 if (obj) {
6421 6426 static const char* argumentList[] ={"" , "QResizeEvent*"};
6422 6427 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6423 6428 void* args[2] = {NULL, (void*)&arg__1};
6424 6429 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6425 6430 if (result) { Py_DECREF(result); }
6426 6431 Py_DECREF(obj);
6427 6432 return;
6428 6433 } else {
6429 6434 PyErr_Clear();
6430 6435 }
6431 6436 }
6432 6437 abstractBinFileWidget::resizeEvent(arg__1);
6433 6438 }
6434 6439 void PythonQtShell_abstractBinFileWidget::setFile(abstractBinFile* file0)
6435 6440 {
6436 6441 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
6437 6442 static PyObject* name = PyString_FromString("setFile");
6438 6443 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
6439 6444 if (obj) {
6440 6445 static const char* argumentList[] ={"" , "abstractBinFile*"};
6441 6446 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6442 6447 void* args[2] = {NULL, (void*)&file0};
6443 6448 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6444 6449 if (result) { Py_DECREF(result); }
6445 6450 Py_DECREF(obj);
6446 6451 return;
6447 6452 } else {
6448 6453 PyErr_Clear();
6449 6454 }
6450 6455 }
6451 6456
6452 6457 }
6453 6458 QPainter* PythonQtShell_abstractBinFileWidget::sharedPainter() const
6454 6459 {
6455 6460 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
6456 6461 static PyObject* name = PyString_FromString("sharedPainter");
6457 6462 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
6458 6463 if (obj) {
6459 6464 static const char* argumentList[] ={"QPainter*"};
6460 6465 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
6461 6466 QPainter* returnValue;
6462 6467 void* args[1] = {NULL};
6463 6468 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6464 6469 if (result) {
6465 6470 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
6466 6471 if (args[0]!=&returnValue) {
6467 6472 if (args[0]==NULL) {
6468 6473 PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result);
6469 6474 } else {
6470 6475 returnValue = *((QPainter**)args[0]);
6471 6476 }
6472 6477 }
6473 6478 }
6474 6479 if (result) { Py_DECREF(result); }
6475 6480 Py_DECREF(obj);
6476 6481 return returnValue;
6477 6482 } else {
6478 6483 PyErr_Clear();
6479 6484 }
6480 6485 }
6481 6486 return abstractBinFileWidget::sharedPainter();
6482 6487 }
6483 6488 void PythonQtShell_abstractBinFileWidget::showEvent(QShowEvent* arg__1)
6484 6489 {
6485 6490 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
6486 6491 static PyObject* name = PyString_FromString("showEvent");
6487 6492 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
6488 6493 if (obj) {
6489 6494 static const char* argumentList[] ={"" , "QShowEvent*"};
6490 6495 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6491 6496 void* args[2] = {NULL, (void*)&arg__1};
6492 6497 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6493 6498 if (result) { Py_DECREF(result); }
6494 6499 Py_DECREF(obj);
6495 6500 return;
6496 6501 } else {
6497 6502 PyErr_Clear();
6498 6503 }
6499 6504 }
6500 6505 abstractBinFileWidget::showEvent(arg__1);
6501 6506 }
6502 6507 QSize PythonQtShell_abstractBinFileWidget::sizeHint() const
6503 6508 {
6504 6509 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
6505 6510 static PyObject* name = PyString_FromString("getSizeHint");
6506 6511 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
6507 6512 if (obj) {
6508 6513 static const char* argumentList[] ={"QSize"};
6509 6514 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
6510 6515 QSize returnValue;
6511 6516 void* args[1] = {NULL};
6512 6517 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6513 6518 if (result) {
6514 6519 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
6515 6520 if (args[0]!=&returnValue) {
6516 6521 if (args[0]==NULL) {
6517 6522 PythonQt::priv()->handleVirtualOverloadReturnError("getSizeHint", methodInfo, result);
6518 6523 } else {
6519 6524 returnValue = *((QSize*)args[0]);
6520 6525 }
6521 6526 }
6522 6527 }
6523 6528 if (result) { Py_DECREF(result); }
6524 6529 Py_DECREF(obj);
6525 6530 return returnValue;
6526 6531 } else {
6527 6532 PyErr_Clear();
6528 6533 }
6529 6534 }
6530 6535 return abstractBinFileWidget::sizeHint();
6531 6536 }
6532 6537 void PythonQtShell_abstractBinFileWidget::tabletEvent(QTabletEvent* arg__1)
6533 6538 {
6534 6539 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
6535 6540 static PyObject* name = PyString_FromString("tabletEvent");
6536 6541 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
6537 6542 if (obj) {
6538 6543 static const char* argumentList[] ={"" , "QTabletEvent*"};
6539 6544 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6540 6545 void* args[2] = {NULL, (void*)&arg__1};
6541 6546 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6542 6547 if (result) { Py_DECREF(result); }
6543 6548 Py_DECREF(obj);
6544 6549 return;
6545 6550 } else {
6546 6551 PyErr_Clear();
6547 6552 }
6548 6553 }
6549 6554 abstractBinFileWidget::tabletEvent(arg__1);
6550 6555 }
6551 6556 void PythonQtShell_abstractBinFileWidget::timerEvent(QTimerEvent* arg__1)
6552 6557 {
6553 6558 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
6554 6559 static PyObject* name = PyString_FromString("timerEvent");
6555 6560 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
6556 6561 if (obj) {
6557 6562 static const char* argumentList[] ={"" , "QTimerEvent*"};
6558 6563 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6559 6564 void* args[2] = {NULL, (void*)&arg__1};
6560 6565 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6561 6566 if (result) { Py_DECREF(result); }
6562 6567 Py_DECREF(obj);
6563 6568 return;
6564 6569 } else {
6565 6570 PyErr_Clear();
6566 6571 }
6567 6572 }
6568 6573 abstractBinFileWidget::timerEvent(arg__1);
6569 6574 }
6570 6575 void PythonQtShell_abstractBinFileWidget::wheelEvent(QWheelEvent* arg__1)
6571 6576 {
6572 6577 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
6573 6578 static PyObject* name = PyString_FromString("wheelEvent");
6574 6579 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
6575 6580 if (obj) {
6576 6581 static const char* argumentList[] ={"" , "QWheelEvent*"};
6577 6582 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6578 6583 void* args[2] = {NULL, (void*)&arg__1};
6579 6584 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6580 6585 if (result) { Py_DECREF(result); }
6581 6586 Py_DECREF(obj);
6582 6587 return;
6583 6588 } else {
6584 6589 PyErr_Clear();
6585 6590 }
6586 6591 }
6587 6592 abstractBinFileWidget::wheelEvent(arg__1);
6588 6593 }
6589 6594 abstractBinFileWidget* PythonQtWrapper_abstractBinFileWidget::new_abstractBinFileWidget(QWidget* parent)
6590 6595 {
6591 6596 return new PythonQtShell_abstractBinFileWidget(parent); }
6592 6597
6593 6598 void PythonQtWrapper_abstractBinFileWidget::reloadFile(abstractBinFileWidget* theWrappedObject)
6594 6599 {
6595 6600 ( ((PythonQtPublicPromoter_abstractBinFileWidget*)theWrappedObject)->promoted_reloadFile());
6596 6601 }
6597 6602
6598 6603 void PythonQtWrapper_abstractBinFileWidget::setFile(abstractBinFileWidget* theWrappedObject, abstractBinFile* file)
6599 6604 {
6600 6605 ( ((PythonQtPublicPromoter_abstractBinFileWidget*)theWrappedObject)->promoted_setFile(file));
6601 6606 }
6602 6607
6603 6608
6604 6609
6605 6610 PythonQtShell_binaryFile::~PythonQtShell_binaryFile() {
6606 6611 PythonQtPrivate* priv = PythonQt::priv();
6607 6612 if (priv) { priv->shellClassDeleted(this); }
6608 6613 }
6609 6614 int PythonQtShell_binaryFile::closeFile()
6610 6615 {
6611 6616 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
6612 6617 static PyObject* name = PyString_FromString("closeFile");
6613 6618 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
6614 6619 if (obj) {
6615 6620 static const char* argumentList[] ={"int"};
6616 6621 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
6617 6622 int returnValue;
6618 6623 void* args[1] = {NULL};
6619 6624 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6620 6625 if (result) {
6621 6626 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
6622 6627 if (args[0]!=&returnValue) {
6623 6628 if (args[0]==NULL) {
6624 6629 PythonQt::priv()->handleVirtualOverloadReturnError("closeFile", methodInfo, result);
6625 6630 } else {
6626 6631 returnValue = *((int*)args[0]);
6627 6632 }
6628 6633 }
6629 6634 }
6630 6635 if (result) { Py_DECREF(result); }
6631 6636 Py_DECREF(obj);
6632 6637 return returnValue;
6633 6638 } else {
6634 6639 PyErr_Clear();
6635 6640 }
6636 6641 }
6637 6642 return binaryFile::closeFile();
6638 6643 }
6639 6644 QList<codeFragment* > PythonQtShell_binaryFile::getFragments()
6640 6645 {
6641 6646 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
6642 6647 static PyObject* name = PyString_FromString("getFragments");
6643 6648 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
6644 6649 if (obj) {
6645 6650 static const char* argumentList[] ={"QList<codeFragment* >"};
6646 6651 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
6647 6652 QList<codeFragment* > returnValue;
6648 6653 void* args[1] = {NULL};
6649 6654 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6650 6655 if (result) {
6651 6656 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
6652 6657 if (args[0]!=&returnValue) {
6653 6658 if (args[0]==NULL) {
6654 6659 PythonQt::priv()->handleVirtualOverloadReturnError("getFragments", methodInfo, result);
6655 6660 } else {
6656 6661 returnValue = *((QList<codeFragment* >*)args[0]);
6657 6662 }
6658 6663 }
6659 6664 }
6660 6665 if (result) { Py_DECREF(result); }
6661 6666 Py_DECREF(obj);
6662 6667 return returnValue;
6663 6668 } else {
6664 6669 PyErr_Clear();
6665 6670 }
6666 6671 }
6667 6672 return binaryFile::getFragments();
6668 6673 }
6669 6674 bool PythonQtShell_binaryFile::isopened()
6670 6675 {
6671 6676 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
6672 6677 static PyObject* name = PyString_FromString("isopened");
6673 6678 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
6674 6679 if (obj) {
6675 6680 static const char* argumentList[] ={"bool"};
6676 6681 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
6677 6682 bool returnValue;
6678 6683 void* args[1] = {NULL};
6679 6684 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6680 6685 if (result) {
6681 6686 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
6682 6687 if (args[0]!=&returnValue) {
6683 6688 if (args[0]==NULL) {
6684 6689 PythonQt::priv()->handleVirtualOverloadReturnError("isopened", methodInfo, result);
6685 6690 } else {
6686 6691 returnValue = *((bool*)args[0]);
6687 6692 }
6688 6693 }
6689 6694 }
6690 6695 if (result) { Py_DECREF(result); }
6691 6696 Py_DECREF(obj);
6692 6697 return returnValue;
6693 6698 } else {
6694 6699 PyErr_Clear();
6695 6700 }
6696 6701 }
6697 6702 return binaryFile::isopened();
6698 6703 }
6699 6704 bool PythonQtShell_binaryFile::openFile(const QString& File0)
6700 6705 {
6701 6706 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
6702 6707 static PyObject* name = PyString_FromString("openFile");
6703 6708 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
6704 6709 if (obj) {
6705 6710 static const char* argumentList[] ={"bool" , "const QString&"};
6706 6711 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6707 6712 bool returnValue;
6708 6713 void* args[2] = {NULL, (void*)&File0};
6709 6714 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6710 6715 if (result) {
6711 6716 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
6712 6717 if (args[0]!=&returnValue) {
6713 6718 if (args[0]==NULL) {
6714 6719 PythonQt::priv()->handleVirtualOverloadReturnError("openFile", methodInfo, result);
6715 6720 } else {
6716 6721 returnValue = *((bool*)args[0]);
6717 6722 }
6718 6723 }
6719 6724 }
6720 6725 if (result) { Py_DECREF(result); }
6721 6726 Py_DECREF(obj);
6722 6727 return returnValue;
6723 6728 } else {
6724 6729 PyErr_Clear();
6725 6730 }
6726 6731 }
6727 6732 return binaryFile::openFile(File0);
6728 6733 }
6729 6734 bool PythonQtShell_binaryFile::toBinary(const QString& fileName0)
6730 6735 {
6731 6736 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
6732 6737 static PyObject* name = PyString_FromString("toBinary");
6733 6738 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
6734 6739 if (obj) {
6735 6740 static const char* argumentList[] ={"bool" , "const QString&"};
6736 6741 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6737 6742 bool returnValue;
6738 6743 void* args[2] = {NULL, (void*)&fileName0};
6739 6744 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6740 6745 if (result) {
6741 6746 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
6742 6747 if (args[0]!=&returnValue) {
6743 6748 if (args[0]==NULL) {
6744 6749 PythonQt::priv()->handleVirtualOverloadReturnError("toBinary", methodInfo, result);
6745 6750 } else {
6746 6751 returnValue = *((bool*)args[0]);
6747 6752 }
6748 6753 }
6749 6754 }
6750 6755 if (result) { Py_DECREF(result); }
6751 6756 Py_DECREF(obj);
6752 6757 return returnValue;
6753 6758 } else {
6754 6759 PyErr_Clear();
6755 6760 }
6756 6761 }
6757 6762 return binaryFile::toBinary(fileName0);
6758 6763 }
6759 6764 bool PythonQtShell_binaryFile::toSrec(const QString& fileName0)
6760 6765 {
6761 6766 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
6762 6767 static PyObject* name = PyString_FromString("toSrec");
6763 6768 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
6764 6769 if (obj) {
6765 6770 static const char* argumentList[] ={"bool" , "const QString&"};
6766 6771 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6767 6772 bool returnValue;
6768 6773 void* args[2] = {NULL, (void*)&fileName0};
6769 6774 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6770 6775 if (result) {
6771 6776 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
6772 6777 if (args[0]!=&returnValue) {
6773 6778 if (args[0]==NULL) {
6774 6779 PythonQt::priv()->handleVirtualOverloadReturnError("toSrec", methodInfo, result);
6775 6780 } else {
6776 6781 returnValue = *((bool*)args[0]);
6777 6782 }
6778 6783 }
6779 6784 }
6780 6785 if (result) { Py_DECREF(result); }
6781 6786 Py_DECREF(obj);
6782 6787 return returnValue;
6783 6788 } else {
6784 6789 PyErr_Clear();
6785 6790 }
6786 6791 }
6787 6792 return binaryFile::toSrec(fileName0);
6788 6793 }
6789 6794 binaryFile* PythonQtWrapper_binaryFile::new_binaryFile()
6790 6795 {
6791 6796 return new PythonQtShell_binaryFile(); }
6792 6797
6793 6798 binaryFile* PythonQtWrapper_binaryFile::new_binaryFile(const QString& File)
6794 6799 {
6795 6800 return new PythonQtShell_binaryFile(File); }
6796 6801
6797 6802 binaryFile* PythonQtWrapper_binaryFile::new_binaryFile(const QStringList& Files)
6798 6803 {
6799 6804 return new PythonQtShell_binaryFile(Files); }
6800 6805
6801 6806 int PythonQtWrapper_binaryFile::closeFile(binaryFile* theWrappedObject)
6802 6807 {
6803 6808 return ( ((PythonQtPublicPromoter_binaryFile*)theWrappedObject)->promoted_closeFile());
6804 6809 }
6805 6810
6806 6811 codeFragment* PythonQtWrapper_binaryFile::getFragment(binaryFile* theWrappedObject, int index)
6807 6812 {
6808 6813 return ( theWrappedObject->getFragment(index));
6809 6814 }
6810 6815
6811 6816 int PythonQtWrapper_binaryFile::getFragmentAddress(binaryFile* theWrappedObject, int index)
6812 6817 {
6813 6818 return ( theWrappedObject->getFragmentAddress(index));
6814 6819 }
6815 6820
6816 6821 bool PythonQtWrapper_binaryFile::getFragmentData(binaryFile* theWrappedObject, int index, char** buffer)
6817 6822 {
6818 6823 return ( theWrappedObject->getFragmentData(index, buffer));
6819 6824 }
6820 6825
6821 6826 QString PythonQtWrapper_binaryFile::getFragmentHeader(binaryFile* theWrappedObject, int index)
6822 6827 {
6823 6828 return ( theWrappedObject->getFragmentHeader(index));
6824 6829 }
6825 6830
6826 6831 int PythonQtWrapper_binaryFile::getFragmentSize(binaryFile* theWrappedObject, int index)
6827 6832 {
6828 6833 return ( theWrappedObject->getFragmentSize(index));
6829 6834 }
6830 6835
6831 6836 QList<codeFragment* > PythonQtWrapper_binaryFile::getFragments(binaryFile* theWrappedObject)
6832 6837 {
6833 6838 return ( ((PythonQtPublicPromoter_binaryFile*)theWrappedObject)->promoted_getFragments());
6834 6839 }
6835 6840
6836 6841 int PythonQtWrapper_binaryFile::getFragmentsCount(binaryFile* theWrappedObject)
6837 6842 {
6838 6843 return ( theWrappedObject->getFragmentsCount());
6839 6844 }
6840 6845
6841 6846 bool PythonQtWrapper_binaryFile::isopened(binaryFile* theWrappedObject)
6842 6847 {
6843 6848 return ( ((PythonQtPublicPromoter_binaryFile*)theWrappedObject)->promoted_isopened());
6844 6849 }
6845 6850
6846 6851 bool PythonQtWrapper_binaryFile::openFile(binaryFile* theWrappedObject, const QString& File)
6847 6852 {
6848 6853 return ( ((PythonQtPublicPromoter_binaryFile*)theWrappedObject)->promoted_openFile(File));
6849 6854 }
6850 6855
6851 6856 bool PythonQtWrapper_binaryFile::openFiles(binaryFile* theWrappedObject, const QStringList& Files)
6852 6857 {
6853 6858 return ( theWrappedObject->openFiles(Files));
6854 6859 }
6855 6860
6856 6861 bool PythonQtWrapper_binaryFile::static_binaryFile_toBinary(QList<codeFragment* > fragments, const QString& File)
6857 6862 {
6858 6863 return (binaryFile::toBinary(fragments, File));
6859 6864 }
6860 6865
6861 6866 bool PythonQtWrapper_binaryFile::toBinary(binaryFile* theWrappedObject, const QString& fileName)
6862 6867 {
6863 6868 return ( ((PythonQtPublicPromoter_binaryFile*)theWrappedObject)->promoted_toBinary(fileName));
6864 6869 }
6865 6870
6866 6871 bool PythonQtWrapper_binaryFile::toSrec(binaryFile* theWrappedObject, const QString& fileName)
6867 6872 {
6868 6873 return ( ((PythonQtPublicPromoter_binaryFile*)theWrappedObject)->promoted_toSrec(fileName));
6869 6874 }
6870 6875
6871 6876
6872 6877
6873 6878 PythonQtShell_binaryFileWidget::~PythonQtShell_binaryFileWidget() {
6874 6879 PythonQtPrivate* priv = PythonQt::priv();
6875 6880 if (priv) { priv->shellClassDeleted(this); }
6876 6881 }
6877 6882 void PythonQtShell_binaryFileWidget::reloadFile()
6878 6883 {
6879 6884 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
6880 6885 static PyObject* name = PyString_FromString("reloadFile");
6881 6886 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
6882 6887 if (obj) {
6883 6888 static const char* argumentList[] ={""};
6884 6889 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
6885 6890 void* args[1] = {NULL};
6886 6891 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6887 6892 if (result) { Py_DECREF(result); }
6888 6893 Py_DECREF(obj);
6889 6894 return;
6890 6895 } else {
6891 6896 PyErr_Clear();
6892 6897 }
6893 6898 }
6894 6899 binaryFileWidget::reloadFile();
6895 6900 }
6896 6901 void PythonQtShell_binaryFileWidget::setFile(abstractBinFile* file0)
6897 6902 {
6898 6903 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
6899 6904 static PyObject* name = PyString_FromString("setFile");
6900 6905 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
6901 6906 if (obj) {
6902 6907 static const char* argumentList[] ={"" , "abstractBinFile*"};
6903 6908 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6904 6909 void* args[2] = {NULL, (void*)&file0};
6905 6910 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6906 6911 if (result) { Py_DECREF(result); }
6907 6912 Py_DECREF(obj);
6908 6913 return;
6909 6914 } else {
6910 6915 PyErr_Clear();
6911 6916 }
6912 6917 }
6913 6918 binaryFileWidget::setFile(file0);
6914 6919 }
6915 6920 binaryFileWidget* PythonQtWrapper_binaryFileWidget::new_binaryFileWidget(QWidget* parent)
6916 6921 {
6917 6922 return new PythonQtShell_binaryFileWidget(parent); }
6918 6923
6919 6924 void PythonQtWrapper_binaryFileWidget::reloadFile(binaryFileWidget* theWrappedObject)
6920 6925 {
6921 6926 ( ((PythonQtPublicPromoter_binaryFileWidget*)theWrappedObject)->promoted_reloadFile());
6922 6927 }
6923 6928
6924 6929 void PythonQtWrapper_binaryFileWidget::setFile(binaryFileWidget* theWrappedObject, abstractBinFile* file)
6925 6930 {
6926 6931 ( ((PythonQtPublicPromoter_binaryFileWidget*)theWrappedObject)->promoted_setFile(file));
6927 6932 }
6928 6933
6929 6934
6930 6935
6931 6936 PythonQtShell_codeFragment::~PythonQtShell_codeFragment() {
6932 6937 PythonQtPrivate* priv = PythonQt::priv();
6933 6938 if (priv) { priv->shellClassDeleted(this); }
6934 6939 }
6935 6940 codeFragment* PythonQtWrapper_codeFragment::new_codeFragment()
6936 6941 {
6937 6942 return new PythonQtShell_codeFragment(); }
6938 6943
6939 6944 codeFragment* PythonQtWrapper_codeFragment::new_codeFragment(char* data, quint64 size, quint64 address)
6940 6945 {
6941 6946 return new PythonQtShell_codeFragment(data, size, address); }
6942 6947
6943 6948
6944 6949
6945 6950 PythonQtShell_elfFileWidget::~PythonQtShell_elfFileWidget() {
6946 6951 PythonQtPrivate* priv = PythonQt::priv();
6947 6952 if (priv) { priv->shellClassDeleted(this); }
6948 6953 }
6949 6954 void PythonQtShell_elfFileWidget::reloadFile()
6950 6955 {
6951 6956 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
6952 6957 static PyObject* name = PyString_FromString("reloadFile");
6953 6958 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
6954 6959 if (obj) {
6955 6960 static const char* argumentList[] ={""};
6956 6961 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
6957 6962 void* args[1] = {NULL};
6958 6963 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6959 6964 if (result) { Py_DECREF(result); }
6960 6965 Py_DECREF(obj);
6961 6966 return;
6962 6967 } else {
6963 6968 PyErr_Clear();
6964 6969 }
6965 6970 }
6966 6971 elfFileWidget::reloadFile();
6967 6972 }
6968 6973 void PythonQtShell_elfFileWidget::setFile(abstractBinFile* file0)
6969 6974 {
6970 6975 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
6971 6976 static PyObject* name = PyString_FromString("setFile");
6972 6977 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
6973 6978 if (obj) {
6974 6979 static const char* argumentList[] ={"" , "abstractBinFile*"};
6975 6980 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6976 6981 void* args[2] = {NULL, (void*)&file0};
6977 6982 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6978 6983 if (result) { Py_DECREF(result); }
6979 6984 Py_DECREF(obj);
6980 6985 return;
6981 6986 } else {
6982 6987 PyErr_Clear();
6983 6988 }
6984 6989 }
6985 6990 elfFileWidget::setFile(file0);
6986 6991 }
6987 6992 elfFileWidget* PythonQtWrapper_elfFileWidget::new_elfFileWidget(QWidget* parent)
6988 6993 {
6989 6994 return new PythonQtShell_elfFileWidget(parent); }
6990 6995
6991 6996 void PythonQtWrapper_elfFileWidget::reloadFile(elfFileWidget* theWrappedObject)
6992 6997 {
6993 6998 ( ((PythonQtPublicPromoter_elfFileWidget*)theWrappedObject)->promoted_reloadFile());
6994 6999 }
6995 7000
6996 7001 void PythonQtWrapper_elfFileWidget::setFile(elfFileWidget* theWrappedObject, abstractBinFile* file)
6997 7002 {
6998 7003 ( ((PythonQtPublicPromoter_elfFileWidget*)theWrappedObject)->promoted_setFile(file));
6999 7004 }
7000 7005
7001 7006
7002 7007
7003 7008 PythonQtShell_elfInfoWdgt::~PythonQtShell_elfInfoWdgt() {
7004 7009 PythonQtPrivate* priv = PythonQt::priv();
7005 7010 if (priv) { priv->shellClassDeleted(this); }
7006 7011 }
7007 7012 void PythonQtShell_elfInfoWdgt::actionEvent(QActionEvent* arg__1)
7008 7013 {
7009 7014 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
7010 7015 static PyObject* name = PyString_FromString("actionEvent");
7011 7016 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
7012 7017 if (obj) {
7013 7018 static const char* argumentList[] ={"" , "QActionEvent*"};
7014 7019 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7015 7020 void* args[2] = {NULL, (void*)&arg__1};
7016 7021 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7017 7022 if (result) { Py_DECREF(result); }
7018 7023 Py_DECREF(obj);
7019 7024 return;
7020 7025 } else {
7021 7026 PyErr_Clear();
7022 7027 }
7023 7028 }
7024 7029 elfInfoWdgt::actionEvent(arg__1);
7025 7030 }
7026 7031 void PythonQtShell_elfInfoWdgt::changeEvent(QEvent* arg__1)
7027 7032 {
7028 7033 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
7029 7034 static PyObject* name = PyString_FromString("changeEvent");
7030 7035 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
7031 7036 if (obj) {
7032 7037 static const char* argumentList[] ={"" , "QEvent*"};
7033 7038 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7034 7039 void* args[2] = {NULL, (void*)&arg__1};
7035 7040 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7036 7041 if (result) { Py_DECREF(result); }
7037 7042 Py_DECREF(obj);
7038 7043 return;
7039 7044 } else {
7040 7045 PyErr_Clear();
7041 7046 }
7042 7047 }
7043 7048 elfInfoWdgt::changeEvent(arg__1);
7044 7049 }
7045 7050 void PythonQtShell_elfInfoWdgt::childEvent(QChildEvent* arg__1)
7046 7051 {
7047 7052 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
7048 7053 static PyObject* name = PyString_FromString("childEvent");
7049 7054 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
7050 7055 if (obj) {
7051 7056 static const char* argumentList[] ={"" , "QChildEvent*"};
7052 7057 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7053 7058 void* args[2] = {NULL, (void*)&arg__1};
7054 7059 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7055 7060 if (result) { Py_DECREF(result); }
7056 7061 Py_DECREF(obj);
7057 7062 return;
7058 7063 } else {
7059 7064 PyErr_Clear();
7060 7065 }
7061 7066 }
7062 7067 elfInfoWdgt::childEvent(arg__1);
7063 7068 }
7064 7069 void PythonQtShell_elfInfoWdgt::closeEvent(QCloseEvent* arg__1)
7065 7070 {
7066 7071 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
7067 7072 static PyObject* name = PyString_FromString("closeEvent");
7068 7073 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
7069 7074 if (obj) {
7070 7075 static const char* argumentList[] ={"" , "QCloseEvent*"};
7071 7076 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7072 7077 void* args[2] = {NULL, (void*)&arg__1};
7073 7078 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7074 7079 if (result) { Py_DECREF(result); }
7075 7080 Py_DECREF(obj);
7076 7081 return;
7077 7082 } else {
7078 7083 PyErr_Clear();
7079 7084 }
7080 7085 }
7081 7086 elfInfoWdgt::closeEvent(arg__1);
7082 7087 }
7083 7088 void PythonQtShell_elfInfoWdgt::contextMenuEvent(QContextMenuEvent* arg__1)
7084 7089 {
7085 7090 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
7086 7091 static PyObject* name = PyString_FromString("contextMenuEvent");
7087 7092 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
7088 7093 if (obj) {
7089 7094 static const char* argumentList[] ={"" , "QContextMenuEvent*"};
7090 7095 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7091 7096 void* args[2] = {NULL, (void*)&arg__1};
7092 7097 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7093 7098 if (result) { Py_DECREF(result); }
7094 7099 Py_DECREF(obj);
7095 7100 return;
7096 7101 } else {
7097 7102 PyErr_Clear();
7098 7103 }
7099 7104 }
7100 7105 elfInfoWdgt::contextMenuEvent(arg__1);
7101 7106 }
7102 7107 void PythonQtShell_elfInfoWdgt::customEvent(QEvent* arg__1)
7103 7108 {
7104 7109 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
7105 7110 static PyObject* name = PyString_FromString("customEvent");
7106 7111 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
7107 7112 if (obj) {
7108 7113 static const char* argumentList[] ={"" , "QEvent*"};
7109 7114 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7110 7115 void* args[2] = {NULL, (void*)&arg__1};
7111 7116 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7112 7117 if (result) { Py_DECREF(result); }
7113 7118 Py_DECREF(obj);
7114 7119 return;
7115 7120 } else {
7116 7121 PyErr_Clear();
7117 7122 }
7118 7123 }
7119 7124 elfInfoWdgt::customEvent(arg__1);
7120 7125 }
7121 7126 int PythonQtShell_elfInfoWdgt::devType() const
7122 7127 {
7123 7128 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
7124 7129 static PyObject* name = PyString_FromString("devType");
7125 7130 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
7126 7131 if (obj) {
7127 7132 static const char* argumentList[] ={"int"};
7128 7133 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
7129 7134 int returnValue;
7130 7135 void* args[1] = {NULL};
7131 7136 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7132 7137 if (result) {
7133 7138 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
7134 7139 if (args[0]!=&returnValue) {
7135 7140 if (args[0]==NULL) {
7136 7141 PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result);
7137 7142 } else {
7138 7143 returnValue = *((int*)args[0]);
7139 7144 }
7140 7145 }
7141 7146 }
7142 7147 if (result) { Py_DECREF(result); }
7143 7148 Py_DECREF(obj);
7144 7149 return returnValue;
7145 7150 } else {
7146 7151 PyErr_Clear();
7147 7152 }
7148 7153 }
7149 7154 return elfInfoWdgt::devType();
7150 7155 }
7151 7156 void PythonQtShell_elfInfoWdgt::dragEnterEvent(QDragEnterEvent* arg__1)
7152 7157 {
7153 7158 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
7154 7159 static PyObject* name = PyString_FromString("dragEnterEvent");
7155 7160 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
7156 7161 if (obj) {
7157 7162 static const char* argumentList[] ={"" , "QDragEnterEvent*"};
7158 7163 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7159 7164 void* args[2] = {NULL, (void*)&arg__1};
7160 7165 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7161 7166 if (result) { Py_DECREF(result); }
7162 7167 Py_DECREF(obj);
7163 7168 return;
7164 7169 } else {
7165 7170 PyErr_Clear();
7166 7171 }
7167 7172 }
7168 7173 elfInfoWdgt::dragEnterEvent(arg__1);
7169 7174 }
7170 7175 void PythonQtShell_elfInfoWdgt::dragLeaveEvent(QDragLeaveEvent* arg__1)
7171 7176 {
7172 7177 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
7173 7178 static PyObject* name = PyString_FromString("dragLeaveEvent");
7174 7179 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
7175 7180 if (obj) {
7176 7181 static const char* argumentList[] ={"" , "QDragLeaveEvent*"};
7177 7182 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7178 7183 void* args[2] = {NULL, (void*)&arg__1};
7179 7184 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7180 7185 if (result) { Py_DECREF(result); }
7181 7186 Py_DECREF(obj);
7182 7187 return;
7183 7188 } else {
7184 7189 PyErr_Clear();
7185 7190 }
7186 7191 }
7187 7192 elfInfoWdgt::dragLeaveEvent(arg__1);
7188 7193 }
7189 7194 void PythonQtShell_elfInfoWdgt::dragMoveEvent(QDragMoveEvent* arg__1)
7190 7195 {
7191 7196 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
7192 7197 static PyObject* name = PyString_FromString("dragMoveEvent");
7193 7198 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
7194 7199 if (obj) {
7195 7200 static const char* argumentList[] ={"" , "QDragMoveEvent*"};
7196 7201 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7197 7202 void* args[2] = {NULL, (void*)&arg__1};
7198 7203 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7199 7204 if (result) { Py_DECREF(result); }
7200 7205 Py_DECREF(obj);
7201 7206 return;
7202 7207 } else {
7203 7208 PyErr_Clear();
7204 7209 }
7205 7210 }
7206 7211 elfInfoWdgt::dragMoveEvent(arg__1);
7207 7212 }
7208 7213 void PythonQtShell_elfInfoWdgt::dropEvent(QDropEvent* arg__1)
7209 7214 {
7210 7215 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
7211 7216 static PyObject* name = PyString_FromString("dropEvent");
7212 7217 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
7213 7218 if (obj) {
7214 7219 static const char* argumentList[] ={"" , "QDropEvent*"};
7215 7220 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7216 7221 void* args[2] = {NULL, (void*)&arg__1};
7217 7222 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7218 7223 if (result) { Py_DECREF(result); }
7219 7224 Py_DECREF(obj);
7220 7225 return;
7221 7226 } else {
7222 7227 PyErr_Clear();
7223 7228 }
7224 7229 }
7225 7230 elfInfoWdgt::dropEvent(arg__1);
7226 7231 }
7227 7232 void PythonQtShell_elfInfoWdgt::enterEvent(QEvent* arg__1)
7228 7233 {
7229 7234 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
7230 7235 static PyObject* name = PyString_FromString("enterEvent");
7231 7236 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
7232 7237 if (obj) {
7233 7238 static const char* argumentList[] ={"" , "QEvent*"};
7234 7239 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7235 7240 void* args[2] = {NULL, (void*)&arg__1};
7236 7241 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7237 7242 if (result) { Py_DECREF(result); }
7238 7243 Py_DECREF(obj);
7239 7244 return;
7240 7245 } else {
7241 7246 PyErr_Clear();
7242 7247 }
7243 7248 }
7244 7249 elfInfoWdgt::enterEvent(arg__1);
7245 7250 }
7246 7251 bool PythonQtShell_elfInfoWdgt::event(QEvent* arg__1)
7247 7252 {
7248 7253 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
7249 7254 static PyObject* name = PyString_FromString("event");
7250 7255 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
7251 7256 if (obj) {
7252 7257 static const char* argumentList[] ={"bool" , "QEvent*"};
7253 7258 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7254 7259 bool returnValue;
7255 7260 void* args[2] = {NULL, (void*)&arg__1};
7256 7261 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7257 7262 if (result) {
7258 7263 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
7259 7264 if (args[0]!=&returnValue) {
7260 7265 if (args[0]==NULL) {
7261 7266 PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result);
7262 7267 } else {
7263 7268 returnValue = *((bool*)args[0]);
7264 7269 }
7265 7270 }
7266 7271 }
7267 7272 if (result) { Py_DECREF(result); }
7268 7273 Py_DECREF(obj);
7269 7274 return returnValue;
7270 7275 } else {
7271 7276 PyErr_Clear();
7272 7277 }
7273 7278 }
7274 7279 return elfInfoWdgt::event(arg__1);
7275 7280 }
7276 7281 bool PythonQtShell_elfInfoWdgt::eventFilter(QObject* arg__1, QEvent* arg__2)
7277 7282 {
7278 7283 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
7279 7284 static PyObject* name = PyString_FromString("eventFilter");
7280 7285 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
7281 7286 if (obj) {
7282 7287 static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"};
7283 7288 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList);
7284 7289 bool returnValue;
7285 7290 void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2};
7286 7291 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7287 7292 if (result) {
7288 7293 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
7289 7294 if (args[0]!=&returnValue) {
7290 7295 if (args[0]==NULL) {
7291 7296 PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result);
7292 7297 } else {
7293 7298 returnValue = *((bool*)args[0]);
7294 7299 }
7295 7300 }
7296 7301 }
7297 7302 if (result) { Py_DECREF(result); }
7298 7303 Py_DECREF(obj);
7299 7304 return returnValue;
7300 7305 } else {
7301 7306 PyErr_Clear();
7302 7307 }
7303 7308 }
7304 7309 return elfInfoWdgt::eventFilter(arg__1, arg__2);
7305 7310 }
7306 7311 void PythonQtShell_elfInfoWdgt::focusInEvent(QFocusEvent* arg__1)
7307 7312 {
7308 7313 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
7309 7314 static PyObject* name = PyString_FromString("focusInEvent");
7310 7315 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
7311 7316 if (obj) {
7312 7317 static const char* argumentList[] ={"" , "QFocusEvent*"};
7313 7318 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7314 7319 void* args[2] = {NULL, (void*)&arg__1};
7315 7320 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7316 7321 if (result) { Py_DECREF(result); }
7317 7322 Py_DECREF(obj);
7318 7323 return;
7319 7324 } else {
7320 7325 PyErr_Clear();
7321 7326 }
7322 7327 }
7323 7328 elfInfoWdgt::focusInEvent(arg__1);
7324 7329 }
7325 7330 bool PythonQtShell_elfInfoWdgt::focusNextPrevChild(bool next0)
7326 7331 {
7327 7332 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
7328 7333 static PyObject* name = PyString_FromString("focusNextPrevChild");
7329 7334 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
7330 7335 if (obj) {
7331 7336 static const char* argumentList[] ={"bool" , "bool"};
7332 7337 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7333 7338 bool returnValue;
7334 7339 void* args[2] = {NULL, (void*)&next0};
7335 7340 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7336 7341 if (result) {
7337 7342 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
7338 7343 if (args[0]!=&returnValue) {
7339 7344 if (args[0]==NULL) {
7340 7345 PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result);
7341 7346 } else {
7342 7347 returnValue = *((bool*)args[0]);
7343 7348 }
7344 7349 }
7345 7350 }
7346 7351 if (result) { Py_DECREF(result); }
7347 7352 Py_DECREF(obj);
7348 7353 return returnValue;
7349 7354 } else {
7350 7355 PyErr_Clear();
7351 7356 }
7352 7357 }
7353 7358 return elfInfoWdgt::focusNextPrevChild(next0);
7354 7359 }
7355 7360 void PythonQtShell_elfInfoWdgt::focusOutEvent(QFocusEvent* arg__1)
7356 7361 {
7357 7362 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
7358 7363 static PyObject* name = PyString_FromString("focusOutEvent");
7359 7364 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
7360 7365 if (obj) {
7361 7366 static const char* argumentList[] ={"" , "QFocusEvent*"};
7362 7367 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7363 7368 void* args[2] = {NULL, (void*)&arg__1};
7364 7369 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7365 7370 if (result) { Py_DECREF(result); }
7366 7371 Py_DECREF(obj);
7367 7372 return;
7368 7373 } else {
7369 7374 PyErr_Clear();
7370 7375 }
7371 7376 }
7372 7377 elfInfoWdgt::focusOutEvent(arg__1);
7373 7378 }
7374 7379 bool PythonQtShell_elfInfoWdgt::hasHeightForWidth() const
7375 7380 {
7376 7381 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
7377 7382 static PyObject* name = PyString_FromString("hasHeightForWidth");
7378 7383 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
7379 7384 if (obj) {
7380 7385 static const char* argumentList[] ={"bool"};
7381 7386 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
7382 7387 bool returnValue;
7383 7388 void* args[1] = {NULL};
7384 7389 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7385 7390 if (result) {
7386 7391 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
7387 7392 if (args[0]!=&returnValue) {
7388 7393 if (args[0]==NULL) {
7389 7394 PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result);
7390 7395 } else {
7391 7396 returnValue = *((bool*)args[0]);
7392 7397 }
7393 7398 }
7394 7399 }
7395 7400 if (result) { Py_DECREF(result); }
7396 7401 Py_DECREF(obj);
7397 7402 return returnValue;
7398 7403 } else {
7399 7404 PyErr_Clear();
7400 7405 }
7401 7406 }
7402 7407 return elfInfoWdgt::hasHeightForWidth();
7403 7408 }
7404 7409 int PythonQtShell_elfInfoWdgt::heightForWidth(int arg__1) const
7405 7410 {
7406 7411 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
7407 7412 static PyObject* name = PyString_FromString("heightForWidth");
7408 7413 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
7409 7414 if (obj) {
7410 7415 static const char* argumentList[] ={"int" , "int"};
7411 7416 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7412 7417 int returnValue;
7413 7418 void* args[2] = {NULL, (void*)&arg__1};
7414 7419 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7415 7420 if (result) {
7416 7421 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
7417 7422 if (args[0]!=&returnValue) {
7418 7423 if (args[0]==NULL) {
7419 7424 PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result);
7420 7425 } else {
7421 7426 returnValue = *((int*)args[0]);
7422 7427 }
7423 7428 }
7424 7429 }
7425 7430 if (result) { Py_DECREF(result); }
7426 7431 Py_DECREF(obj);
7427 7432 return returnValue;
7428 7433 } else {
7429 7434 PyErr_Clear();
7430 7435 }
7431 7436 }
7432 7437 return elfInfoWdgt::heightForWidth(arg__1);
7433 7438 }
7434 7439 void PythonQtShell_elfInfoWdgt::hideEvent(QHideEvent* arg__1)
7435 7440 {
7436 7441 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
7437 7442 static PyObject* name = PyString_FromString("hideEvent");
7438 7443 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
7439 7444 if (obj) {
7440 7445 static const char* argumentList[] ={"" , "QHideEvent*"};
7441 7446 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7442 7447 void* args[2] = {NULL, (void*)&arg__1};
7443 7448 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7444 7449 if (result) { Py_DECREF(result); }
7445 7450 Py_DECREF(obj);
7446 7451 return;
7447 7452 } else {
7448 7453 PyErr_Clear();
7449 7454 }
7450 7455 }
7451 7456 elfInfoWdgt::hideEvent(arg__1);
7452 7457 }
7453 7458 void PythonQtShell_elfInfoWdgt::initPainter(QPainter* painter0) const
7454 7459 {
7455 7460 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
7456 7461 static PyObject* name = PyString_FromString("initPainter");
7457 7462 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
7458 7463 if (obj) {
7459 7464 static const char* argumentList[] ={"" , "QPainter*"};
7460 7465 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7461 7466 void* args[2] = {NULL, (void*)&painter0};
7462 7467 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7463 7468 if (result) { Py_DECREF(result); }
7464 7469 Py_DECREF(obj);
7465 7470 return;
7466 7471 } else {
7467 7472 PyErr_Clear();
7468 7473 }
7469 7474 }
7470 7475 elfInfoWdgt::initPainter(painter0);
7471 7476 }
7472 7477 void PythonQtShell_elfInfoWdgt::inputMethodEvent(QInputMethodEvent* arg__1)
7473 7478 {
7474 7479 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
7475 7480 static PyObject* name = PyString_FromString("inputMethodEvent");
7476 7481 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
7477 7482 if (obj) {
7478 7483 static const char* argumentList[] ={"" , "QInputMethodEvent*"};
7479 7484 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7480 7485 void* args[2] = {NULL, (void*)&arg__1};
7481 7486 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7482 7487 if (result) { Py_DECREF(result); }
7483 7488 Py_DECREF(obj);
7484 7489 return;
7485 7490 } else {
7486 7491 PyErr_Clear();
7487 7492 }
7488 7493 }
7489 7494 elfInfoWdgt::inputMethodEvent(arg__1);
7490 7495 }
7491 7496 QVariant PythonQtShell_elfInfoWdgt::inputMethodQuery(Qt::InputMethodQuery arg__1) const
7492 7497 {
7493 7498 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
7494 7499 static PyObject* name = PyString_FromString("inputMethodQuery");
7495 7500 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
7496 7501 if (obj) {
7497 7502 static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"};
7498 7503 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7499 7504 QVariant returnValue;
7500 7505 void* args[2] = {NULL, (void*)&arg__1};
7501 7506 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7502 7507 if (result) {
7503 7508 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
7504 7509 if (args[0]!=&returnValue) {
7505 7510 if (args[0]==NULL) {
7506 7511 PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result);
7507 7512 } else {
7508 7513 returnValue = *((QVariant*)args[0]);
7509 7514 }
7510 7515 }
7511 7516 }
7512 7517 if (result) { Py_DECREF(result); }
7513 7518 Py_DECREF(obj);
7514 7519 return returnValue;
7515 7520 } else {
7516 7521 PyErr_Clear();
7517 7522 }
7518 7523 }
7519 7524 return elfInfoWdgt::inputMethodQuery(arg__1);
7520 7525 }
7521 7526 void PythonQtShell_elfInfoWdgt::keyPressEvent(QKeyEvent* arg__1)
7522 7527 {
7523 7528 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
7524 7529 static PyObject* name = PyString_FromString("keyPressEvent");
7525 7530 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
7526 7531 if (obj) {
7527 7532 static const char* argumentList[] ={"" , "QKeyEvent*"};
7528 7533 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7529 7534 void* args[2] = {NULL, (void*)&arg__1};
7530 7535 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7531 7536 if (result) { Py_DECREF(result); }
7532 7537 Py_DECREF(obj);
7533 7538 return;
7534 7539 } else {
7535 7540 PyErr_Clear();
7536 7541 }
7537 7542 }
7538 7543 elfInfoWdgt::keyPressEvent(arg__1);
7539 7544 }
7540 7545 void PythonQtShell_elfInfoWdgt::keyReleaseEvent(QKeyEvent* arg__1)
7541 7546 {
7542 7547 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
7543 7548 static PyObject* name = PyString_FromString("keyReleaseEvent");
7544 7549 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
7545 7550 if (obj) {
7546 7551 static const char* argumentList[] ={"" , "QKeyEvent*"};
7547 7552 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7548 7553 void* args[2] = {NULL, (void*)&arg__1};
7549 7554 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7550 7555 if (result) { Py_DECREF(result); }
7551 7556 Py_DECREF(obj);
7552 7557 return;
7553 7558 } else {
7554 7559 PyErr_Clear();
7555 7560 }
7556 7561 }
7557 7562 elfInfoWdgt::keyReleaseEvent(arg__1);
7558 7563 }
7559 7564 void PythonQtShell_elfInfoWdgt::leaveEvent(QEvent* arg__1)
7560 7565 {
7561 7566 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
7562 7567 static PyObject* name = PyString_FromString("leaveEvent");
7563 7568 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
7564 7569 if (obj) {
7565 7570 static const char* argumentList[] ={"" , "QEvent*"};
7566 7571 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7567 7572 void* args[2] = {NULL, (void*)&arg__1};
7568 7573 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7569 7574 if (result) { Py_DECREF(result); }
7570 7575 Py_DECREF(obj);
7571 7576 return;
7572 7577 } else {
7573 7578 PyErr_Clear();
7574 7579 }
7575 7580 }
7576 7581 elfInfoWdgt::leaveEvent(arg__1);
7577 7582 }
7578 7583 int PythonQtShell_elfInfoWdgt::metric(QPaintDevice::PaintDeviceMetric arg__1) const
7579 7584 {
7580 7585 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
7581 7586 static PyObject* name = PyString_FromString("metric");
7582 7587 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
7583 7588 if (obj) {
7584 7589 static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"};
7585 7590 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7586 7591 int returnValue;
7587 7592 void* args[2] = {NULL, (void*)&arg__1};
7588 7593 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7589 7594 if (result) {
7590 7595 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
7591 7596 if (args[0]!=&returnValue) {
7592 7597 if (args[0]==NULL) {
7593 7598 PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result);
7594 7599 } else {
7595 7600 returnValue = *((int*)args[0]);
7596 7601 }
7597 7602 }
7598 7603 }
7599 7604 if (result) { Py_DECREF(result); }
7600 7605 Py_DECREF(obj);
7601 7606 return returnValue;
7602 7607 } else {
7603 7608 PyErr_Clear();
7604 7609 }
7605 7610 }
7606 7611 return elfInfoWdgt::metric(arg__1);
7607 7612 }
7608 7613 QSize PythonQtShell_elfInfoWdgt::minimumSizeHint() const
7609 7614 {
7610 7615 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
7611 7616 static PyObject* name = PyString_FromString("getMinimumSizeHint");
7612 7617 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
7613 7618 if (obj) {
7614 7619 static const char* argumentList[] ={"QSize"};
7615 7620 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
7616 7621 QSize returnValue;
7617 7622 void* args[1] = {NULL};
7618 7623 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7619 7624 if (result) {
7620 7625 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
7621 7626 if (args[0]!=&returnValue) {
7622 7627 if (args[0]==NULL) {
7623 7628 PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result);
7624 7629 } else {
7625 7630 returnValue = *((QSize*)args[0]);
7626 7631 }
7627 7632 }
7628 7633 }
7629 7634 if (result) { Py_DECREF(result); }
7630 7635 Py_DECREF(obj);
7631 7636 return returnValue;
7632 7637 } else {
7633 7638 PyErr_Clear();
7634 7639 }
7635 7640 }
7636 7641 return elfInfoWdgt::minimumSizeHint();
7637 7642 }
7638 7643 void PythonQtShell_elfInfoWdgt::mouseDoubleClickEvent(QMouseEvent* arg__1)
7639 7644 {
7640 7645 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
7641 7646 static PyObject* name = PyString_FromString("mouseDoubleClickEvent");
7642 7647 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
7643 7648 if (obj) {
7644 7649 static const char* argumentList[] ={"" , "QMouseEvent*"};
7645 7650 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7646 7651 void* args[2] = {NULL, (void*)&arg__1};
7647 7652 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7648 7653 if (result) { Py_DECREF(result); }
7649 7654 Py_DECREF(obj);
7650 7655 return;
7651 7656 } else {
7652 7657 PyErr_Clear();
7653 7658 }
7654 7659 }
7655 7660 elfInfoWdgt::mouseDoubleClickEvent(arg__1);
7656 7661 }
7657 7662 void PythonQtShell_elfInfoWdgt::mouseMoveEvent(QMouseEvent* arg__1)
7658 7663 {
7659 7664 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
7660 7665 static PyObject* name = PyString_FromString("mouseMoveEvent");
7661 7666 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
7662 7667 if (obj) {
7663 7668 static const char* argumentList[] ={"" , "QMouseEvent*"};
7664 7669 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7665 7670 void* args[2] = {NULL, (void*)&arg__1};
7666 7671 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7667 7672 if (result) { Py_DECREF(result); }
7668 7673 Py_DECREF(obj);
7669 7674 return;
7670 7675 } else {
7671 7676 PyErr_Clear();
7672 7677 }
7673 7678 }
7674 7679 elfInfoWdgt::mouseMoveEvent(arg__1);
7675 7680 }
7676 7681 void PythonQtShell_elfInfoWdgt::mousePressEvent(QMouseEvent* arg__1)
7677 7682 {
7678 7683 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
7679 7684 static PyObject* name = PyString_FromString("mousePressEvent");
7680 7685 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
7681 7686 if (obj) {
7682 7687 static const char* argumentList[] ={"" , "QMouseEvent*"};
7683 7688 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7684 7689 void* args[2] = {NULL, (void*)&arg__1};
7685 7690 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7686 7691 if (result) { Py_DECREF(result); }
7687 7692 Py_DECREF(obj);
7688 7693 return;
7689 7694 } else {
7690 7695 PyErr_Clear();
7691 7696 }
7692 7697 }
7693 7698 elfInfoWdgt::mousePressEvent(arg__1);
7694 7699 }
7695 7700 void PythonQtShell_elfInfoWdgt::mouseReleaseEvent(QMouseEvent* arg__1)
7696 7701 {
7697 7702 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
7698 7703 static PyObject* name = PyString_FromString("mouseReleaseEvent");
7699 7704 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
7700 7705 if (obj) {
7701 7706 static const char* argumentList[] ={"" , "QMouseEvent*"};
7702 7707 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7703 7708 void* args[2] = {NULL, (void*)&arg__1};
7704 7709 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7705 7710 if (result) { Py_DECREF(result); }
7706 7711 Py_DECREF(obj);
7707 7712 return;
7708 7713 } else {
7709 7714 PyErr_Clear();
7710 7715 }
7711 7716 }
7712 7717 elfInfoWdgt::mouseReleaseEvent(arg__1);
7713 7718 }
7714 7719 void PythonQtShell_elfInfoWdgt::moveEvent(QMoveEvent* arg__1)
7715 7720 {
7716 7721 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
7717 7722 static PyObject* name = PyString_FromString("moveEvent");
7718 7723 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
7719 7724 if (obj) {
7720 7725 static const char* argumentList[] ={"" , "QMoveEvent*"};
7721 7726 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7722 7727 void* args[2] = {NULL, (void*)&arg__1};
7723 7728 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7724 7729 if (result) { Py_DECREF(result); }
7725 7730 Py_DECREF(obj);
7726 7731 return;
7727 7732 } else {
7728 7733 PyErr_Clear();
7729 7734 }
7730 7735 }
7731 7736 elfInfoWdgt::moveEvent(arg__1);
7732 7737 }
7733 7738 bool PythonQtShell_elfInfoWdgt::nativeEvent(const QByteArray& eventType0, void* message1, long* result2)
7734 7739 {
7735 7740 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
7736 7741 static PyObject* name = PyString_FromString("nativeEvent");
7737 7742 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
7738 7743 if (obj) {
7739 7744 static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"};
7740 7745 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList);
7741 7746 bool returnValue;
7742 7747 void* args[4] = {NULL, (void*)&eventType0, (void*)&message1, (void*)&result2};
7743 7748 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7744 7749 if (result) {
7745 7750 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
7746 7751 if (args[0]!=&returnValue) {
7747 7752 if (args[0]==NULL) {
7748 7753 PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result);
7749 7754 } else {
7750 7755 returnValue = *((bool*)args[0]);
7751 7756 }
7752 7757 }
7753 7758 }
7754 7759 if (result) { Py_DECREF(result); }
7755 7760 Py_DECREF(obj);
7756 7761 return returnValue;
7757 7762 } else {
7758 7763 PyErr_Clear();
7759 7764 }
7760 7765 }
7761 7766 return elfInfoWdgt::nativeEvent(eventType0, message1, result2);
7762 7767 }
7763 7768 QPaintEngine* PythonQtShell_elfInfoWdgt::paintEngine() const
7764 7769 {
7765 7770 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
7766 7771 static PyObject* name = PyString_FromString("paintEngine");
7767 7772 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
7768 7773 if (obj) {
7769 7774 static const char* argumentList[] ={"QPaintEngine*"};
7770 7775 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
7771 7776 QPaintEngine* returnValue;
7772 7777 void* args[1] = {NULL};
7773 7778 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7774 7779 if (result) {
7775 7780 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
7776 7781 if (args[0]!=&returnValue) {
7777 7782 if (args[0]==NULL) {
7778 7783 PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result);
7779 7784 } else {
7780 7785 returnValue = *((QPaintEngine**)args[0]);
7781 7786 }
7782 7787 }
7783 7788 }
7784 7789 if (result) { Py_DECREF(result); }
7785 7790 Py_DECREF(obj);
7786 7791 return returnValue;
7787 7792 } else {
7788 7793 PyErr_Clear();
7789 7794 }
7790 7795 }
7791 7796 return elfInfoWdgt::paintEngine();
7792 7797 }
7793 7798 void PythonQtShell_elfInfoWdgt::paintEvent(QPaintEvent* arg__1)
7794 7799 {
7795 7800 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
7796 7801 static PyObject* name = PyString_FromString("paintEvent");
7797 7802 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
7798 7803 if (obj) {
7799 7804 static const char* argumentList[] ={"" , "QPaintEvent*"};
7800 7805 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7801 7806 void* args[2] = {NULL, (void*)&arg__1};
7802 7807 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7803 7808 if (result) { Py_DECREF(result); }
7804 7809 Py_DECREF(obj);
7805 7810 return;
7806 7811 } else {
7807 7812 PyErr_Clear();
7808 7813 }
7809 7814 }
7810 7815 elfInfoWdgt::paintEvent(arg__1);
7811 7816 }
7812 7817 QPaintDevice* PythonQtShell_elfInfoWdgt::redirected(QPoint* offset0) const
7813 7818 {
7814 7819 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
7815 7820 static PyObject* name = PyString_FromString("redirected");
7816 7821 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
7817 7822 if (obj) {
7818 7823 static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"};
7819 7824 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7820 7825 QPaintDevice* returnValue;
7821 7826 void* args[2] = {NULL, (void*)&offset0};
7822 7827 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7823 7828 if (result) {
7824 7829 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
7825 7830 if (args[0]!=&returnValue) {
7826 7831 if (args[0]==NULL) {
7827 7832 PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result);
7828 7833 } else {
7829 7834 returnValue = *((QPaintDevice**)args[0]);
7830 7835 }
7831 7836 }
7832 7837 }
7833 7838 if (result) { Py_DECREF(result); }
7834 7839 Py_DECREF(obj);
7835 7840 return returnValue;
7836 7841 } else {
7837 7842 PyErr_Clear();
7838 7843 }
7839 7844 }
7840 7845 return elfInfoWdgt::redirected(offset0);
7841 7846 }
7842 7847 void PythonQtShell_elfInfoWdgt::resizeEvent(QResizeEvent* arg__1)
7843 7848 {
7844 7849 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
7845 7850 static PyObject* name = PyString_FromString("resizeEvent");
7846 7851 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
7847 7852 if (obj) {
7848 7853 static const char* argumentList[] ={"" , "QResizeEvent*"};
7849 7854 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7850 7855 void* args[2] = {NULL, (void*)&arg__1};
7851 7856 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7852 7857 if (result) { Py_DECREF(result); }
7853 7858 Py_DECREF(obj);
7854 7859 return;
7855 7860 } else {
7856 7861 PyErr_Clear();
7857 7862 }
7858 7863 }
7859 7864 elfInfoWdgt::resizeEvent(arg__1);
7860 7865 }
7861 7866 QPainter* PythonQtShell_elfInfoWdgt::sharedPainter() const
7862 7867 {
7863 7868 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
7864 7869 static PyObject* name = PyString_FromString("sharedPainter");
7865 7870 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
7866 7871 if (obj) {
7867 7872 static const char* argumentList[] ={"QPainter*"};
7868 7873 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
7869 7874 QPainter* returnValue;
7870 7875 void* args[1] = {NULL};
7871 7876 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7872 7877 if (result) {
7873 7878 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
7874 7879 if (args[0]!=&returnValue) {
7875 7880 if (args[0]==NULL) {
7876 7881 PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result);
7877 7882 } else {
7878 7883 returnValue = *((QPainter**)args[0]);
7879 7884 }
7880 7885 }
7881 7886 }
7882 7887 if (result) { Py_DECREF(result); }
7883 7888 Py_DECREF(obj);
7884 7889 return returnValue;
7885 7890 } else {
7886 7891 PyErr_Clear();
7887 7892 }
7888 7893 }
7889 7894 return elfInfoWdgt::sharedPainter();
7890 7895 }
7891 7896 void PythonQtShell_elfInfoWdgt::showEvent(QShowEvent* arg__1)
7892 7897 {
7893 7898 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
7894 7899 static PyObject* name = PyString_FromString("showEvent");
7895 7900 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
7896 7901 if (obj) {
7897 7902 static const char* argumentList[] ={"" , "QShowEvent*"};
7898 7903 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7899 7904 void* args[2] = {NULL, (void*)&arg__1};
7900 7905 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7901 7906 if (result) { Py_DECREF(result); }
7902 7907 Py_DECREF(obj);
7903 7908 return;
7904 7909 } else {
7905 7910 PyErr_Clear();
7906 7911 }
7907 7912 }
7908 7913 elfInfoWdgt::showEvent(arg__1);
7909 7914 }
7910 7915 QSize PythonQtShell_elfInfoWdgt::sizeHint() const
7911 7916 {
7912 7917 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
7913 7918 static PyObject* name = PyString_FromString("getSizeHint");
7914 7919 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
7915 7920 if (obj) {
7916 7921 static const char* argumentList[] ={"QSize"};
7917 7922 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
7918 7923 QSize returnValue;
7919 7924 void* args[1] = {NULL};
7920 7925 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7921 7926 if (result) {
7922 7927 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
7923 7928 if (args[0]!=&returnValue) {
7924 7929 if (args[0]==NULL) {
7925 7930 PythonQt::priv()->handleVirtualOverloadReturnError("getSizeHint", methodInfo, result);
7926 7931 } else {
7927 7932 returnValue = *((QSize*)args[0]);
7928 7933 }
7929 7934 }
7930 7935 }
7931 7936 if (result) { Py_DECREF(result); }
7932 7937 Py_DECREF(obj);
7933 7938 return returnValue;
7934 7939 } else {
7935 7940 PyErr_Clear();
7936 7941 }
7937 7942 }
7938 7943 return elfInfoWdgt::sizeHint();
7939 7944 }
7940 7945 void PythonQtShell_elfInfoWdgt::tabletEvent(QTabletEvent* arg__1)
7941 7946 {
7942 7947 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
7943 7948 static PyObject* name = PyString_FromString("tabletEvent");
7944 7949 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
7945 7950 if (obj) {
7946 7951 static const char* argumentList[] ={"" , "QTabletEvent*"};
7947 7952 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7948 7953 void* args[2] = {NULL, (void*)&arg__1};
7949 7954 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7950 7955 if (result) { Py_DECREF(result); }
7951 7956 Py_DECREF(obj);
7952 7957 return;
7953 7958 } else {
7954 7959 PyErr_Clear();
7955 7960 }
7956 7961 }
7957 7962 elfInfoWdgt::tabletEvent(arg__1);
7958 7963 }
7959 7964 void PythonQtShell_elfInfoWdgt::timerEvent(QTimerEvent* arg__1)
7960 7965 {
7961 7966 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
7962 7967 static PyObject* name = PyString_FromString("timerEvent");
7963 7968 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
7964 7969 if (obj) {
7965 7970 static const char* argumentList[] ={"" , "QTimerEvent*"};
7966 7971 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7967 7972 void* args[2] = {NULL, (void*)&arg__1};
7968 7973 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7969 7974 if (result) { Py_DECREF(result); }
7970 7975 Py_DECREF(obj);
7971 7976 return;
7972 7977 } else {
7973 7978 PyErr_Clear();
7974 7979 }
7975 7980 }
7976 7981 elfInfoWdgt::timerEvent(arg__1);
7977 7982 }
7978 7983 void PythonQtShell_elfInfoWdgt::wheelEvent(QWheelEvent* arg__1)
7979 7984 {
7980 7985 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
7981 7986 static PyObject* name = PyString_FromString("wheelEvent");
7982 7987 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
7983 7988 if (obj) {
7984 7989 static const char* argumentList[] ={"" , "QWheelEvent*"};
7985 7990 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7986 7991 void* args[2] = {NULL, (void*)&arg__1};
7987 7992 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7988 7993 if (result) { Py_DECREF(result); }
7989 7994 Py_DECREF(obj);
7990 7995 return;
7991 7996 } else {
7992 7997 PyErr_Clear();
7993 7998 }
7994 7999 }
7995 8000 elfInfoWdgt::wheelEvent(arg__1);
7996 8001 }
7997 8002 elfInfoWdgt* PythonQtWrapper_elfInfoWdgt::new_elfInfoWdgt(QWidget* parent)
7998 8003 {
7999 8004 return new PythonQtShell_elfInfoWdgt(parent); }
8000 8005
8001 8006
8002 8007
8003 8008 elfparser* PythonQtWrapper_elfparser::new_elfparser()
8004 8009 {
8005 8010 return new elfparser(); }
8006 8011
8007 8012 int PythonQtWrapper_elfparser::closeFile(elfparser* theWrappedObject)
8008 8013 {
8009 8014 return ( theWrappedObject->closeFile());
8010 8015 }
8011 8016
8012 8017 QString PythonQtWrapper_elfparser::getABI(elfparser* theWrappedObject)
8013 8018 {
8014 8019 return ( theWrappedObject->getABI());
8015 8020 }
8016 8021
8017 8022 QString PythonQtWrapper_elfparser::getArchitecture(elfparser* theWrappedObject)
8018 8023 {
8019 8024 return ( theWrappedObject->getArchitecture());
8020 8025 }
8021 8026
8022 8027 QString PythonQtWrapper_elfparser::getClass(elfparser* theWrappedObject)
8023 8028 {
8024 8029 return ( theWrappedObject->getClass());
8025 8030 }
8026 8031
8027 8032 QString PythonQtWrapper_elfparser::getEndianness(elfparser* theWrappedObject)
8028 8033 {
8029 8034 return ( theWrappedObject->getEndianness());
8030 8035 }
8031 8036
8032 8037 qint64 PythonQtWrapper_elfparser::getEntryPointAddress(elfparser* theWrappedObject)
8033 8038 {
8034 8039 return ( theWrappedObject->getEntryPointAddress());
8035 8040 }
8036 8041
8037 8042 bool PythonQtWrapper_elfparser::getSectionData(elfparser* theWrappedObject, int index, char** buffer)
8038 8043 {
8039 8044 return ( theWrappedObject->getSectionData(index, buffer));
8040 8045 }
8041 8046
8042 8047 qint64 PythonQtWrapper_elfparser::getSectionDatasz(elfparser* theWrappedObject, int index)
8043 8048 {
8044 8049 return ( theWrappedObject->getSectionDatasz(index));
8045 8050 }
8046 8051
8047 8052 qint64 PythonQtWrapper_elfparser::getSectionMemsz(elfparser* theWrappedObject, int index)
8048 8053 {
8049 8054 return ( theWrappedObject->getSectionMemsz(index));
8050 8055 }
8051 8056
8052 8057 QString PythonQtWrapper_elfparser::getSectionName(elfparser* theWrappedObject, int index)
8053 8058 {
8054 8059 return ( theWrappedObject->getSectionName(index));
8055 8060 }
8056 8061
8057 8062 qint64 PythonQtWrapper_elfparser::getSectionPaddr(elfparser* theWrappedObject, int index)
8058 8063 {
8059 8064 return ( theWrappedObject->getSectionPaddr(index));
8060 8065 }
8061 8066
8062 8067 QString PythonQtWrapper_elfparser::getSectionType(elfparser* theWrappedObject, int index)
8063 8068 {
8064 8069 return ( theWrappedObject->getSectionType(index));
8065 8070 }
8066 8071
8067 8072 int PythonQtWrapper_elfparser::getSectioncount(elfparser* theWrappedObject)
8068 8073 {
8069 8074 return ( theWrappedObject->getSectioncount());
8070 8075 }
8071 8076
8072 8077 qint64 PythonQtWrapper_elfparser::getSegmentFilesz(elfparser* theWrappedObject, int index)
8073 8078 {
8074 8079 return ( theWrappedObject->getSegmentFilesz(index));
8075 8080 }
8076 8081
8077 8082 QString PythonQtWrapper_elfparser::getSegmentFlags(elfparser* theWrappedObject, int index)
8078 8083 {
8079 8084 return ( theWrappedObject->getSegmentFlags(index));
8080 8085 }
8081 8086
8082 8087 qint64 PythonQtWrapper_elfparser::getSegmentMemsz(elfparser* theWrappedObject, int index)
8083 8088 {
8084 8089 return ( theWrappedObject->getSegmentMemsz(index));
8085 8090 }
8086 8091
8087 8092 qint64 PythonQtWrapper_elfparser::getSegmentOffset(elfparser* theWrappedObject, int index)
8088 8093 {
8089 8094 return ( theWrappedObject->getSegmentOffset(index));
8090 8095 }
8091 8096
8092 8097 qint64 PythonQtWrapper_elfparser::getSegmentPaddr(elfparser* theWrappedObject, int index)
8093 8098 {
8094 8099 return ( theWrappedObject->getSegmentPaddr(index));
8095 8100 }
8096 8101
8097 8102 QString PythonQtWrapper_elfparser::getSegmentType(elfparser* theWrappedObject, int index)
8098 8103 {
8099 8104 return ( theWrappedObject->getSegmentType(index));
8100 8105 }
8101 8106
8102 8107 qint64 PythonQtWrapper_elfparser::getSegmentVaddr(elfparser* theWrappedObject, int index)
8103 8108 {
8104 8109 return ( theWrappedObject->getSegmentVaddr(index));
8105 8110 }
8106 8111
8107 8112 int PythonQtWrapper_elfparser::getSegmentcount(elfparser* theWrappedObject)
8108 8113 {
8109 8114 return ( theWrappedObject->getSegmentcount());
8110 8115 }
8111 8116
8112 8117 QString PythonQtWrapper_elfparser::getType(elfparser* theWrappedObject)
8113 8118 {
8114 8119 return ( theWrappedObject->getType());
8115 8120 }
8116 8121
8117 8122 qint64 PythonQtWrapper_elfparser::getVersion(elfparser* theWrappedObject)
8118 8123 {
8119 8124 return ( theWrappedObject->getVersion());
8120 8125 }
8121 8126
8122 8127 bool PythonQtWrapper_elfparser::static_elfparser_isElf(const QString& File)
8123 8128 {
8124 8129 return (elfparser::isElf(File));
8125 8130 }
8126 8131
8127 8132 bool PythonQtWrapper_elfparser::iself(elfparser* theWrappedObject)
8128 8133 {
8129 8134 return ( theWrappedObject->iself());
8130 8135 }
8131 8136
8132 8137 bool PythonQtWrapper_elfparser::isopened(elfparser* theWrappedObject)
8133 8138 {
8134 8139 return ( theWrappedObject->isopened());
8135 8140 }
8136 8141
8137 8142 int PythonQtWrapper_elfparser::setFilename(elfparser* theWrappedObject, const QString& name)
8138 8143 {
8139 8144 return ( theWrappedObject->setFilename(name));
8140 8145 }
8141 8146
8142 8147
8143 8148
8144 8149 PythonQtShell_genericBinaryFileWidget::~PythonQtShell_genericBinaryFileWidget() {
8145 8150 PythonQtPrivate* priv = PythonQt::priv();
8146 8151 if (priv) { priv->shellClassDeleted(this); }
8147 8152 }
8148 8153 void PythonQtShell_genericBinaryFileWidget::actionEvent(QActionEvent* arg__1)
8149 8154 {
8150 8155 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
8151 8156 static PyObject* name = PyString_FromString("actionEvent");
8152 8157 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
8153 8158 if (obj) {
8154 8159 static const char* argumentList[] ={"" , "QActionEvent*"};
8155 8160 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8156 8161 void* args[2] = {NULL, (void*)&arg__1};
8157 8162 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8158 8163 if (result) { Py_DECREF(result); }
8159 8164 Py_DECREF(obj);
8160 8165 return;
8161 8166 } else {
8162 8167 PyErr_Clear();
8163 8168 }
8164 8169 }
8165 8170 genericBinaryFileWidget::actionEvent(arg__1);
8166 8171 }
8167 8172 void PythonQtShell_genericBinaryFileWidget::changeEvent(QEvent* arg__1)
8168 8173 {
8169 8174 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
8170 8175 static PyObject* name = PyString_FromString("changeEvent");
8171 8176 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
8172 8177 if (obj) {
8173 8178 static const char* argumentList[] ={"" , "QEvent*"};
8174 8179 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8175 8180 void* args[2] = {NULL, (void*)&arg__1};
8176 8181 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8177 8182 if (result) { Py_DECREF(result); }
8178 8183 Py_DECREF(obj);
8179 8184 return;
8180 8185 } else {
8181 8186 PyErr_Clear();
8182 8187 }
8183 8188 }
8184 8189 genericBinaryFileWidget::changeEvent(arg__1);
8185 8190 }
8186 8191 void PythonQtShell_genericBinaryFileWidget::childEvent(QChildEvent* arg__1)
8187 8192 {
8188 8193 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
8189 8194 static PyObject* name = PyString_FromString("childEvent");
8190 8195 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
8191 8196 if (obj) {
8192 8197 static const char* argumentList[] ={"" , "QChildEvent*"};
8193 8198 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8194 8199 void* args[2] = {NULL, (void*)&arg__1};
8195 8200 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8196 8201 if (result) { Py_DECREF(result); }
8197 8202 Py_DECREF(obj);
8198 8203 return;
8199 8204 } else {
8200 8205 PyErr_Clear();
8201 8206 }
8202 8207 }
8203 8208 genericBinaryFileWidget::childEvent(arg__1);
8204 8209 }
8205 8210 void PythonQtShell_genericBinaryFileWidget::closeEvent(QCloseEvent* arg__1)
8206 8211 {
8207 8212 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
8208 8213 static PyObject* name = PyString_FromString("closeEvent");
8209 8214 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
8210 8215 if (obj) {
8211 8216 static const char* argumentList[] ={"" , "QCloseEvent*"};
8212 8217 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8213 8218 void* args[2] = {NULL, (void*)&arg__1};
8214 8219 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8215 8220 if (result) { Py_DECREF(result); }
8216 8221 Py_DECREF(obj);
8217 8222 return;
8218 8223 } else {
8219 8224 PyErr_Clear();
8220 8225 }
8221 8226 }
8222 8227 genericBinaryFileWidget::closeEvent(arg__1);
8223 8228 }
8224 8229 void PythonQtShell_genericBinaryFileWidget::contextMenuEvent(QContextMenuEvent* arg__1)
8225 8230 {
8226 8231 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
8227 8232 static PyObject* name = PyString_FromString("contextMenuEvent");
8228 8233 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
8229 8234 if (obj) {
8230 8235 static const char* argumentList[] ={"" , "QContextMenuEvent*"};
8231 8236 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8232 8237 void* args[2] = {NULL, (void*)&arg__1};
8233 8238 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8234 8239 if (result) { Py_DECREF(result); }
8235 8240 Py_DECREF(obj);
8236 8241 return;
8237 8242 } else {
8238 8243 PyErr_Clear();
8239 8244 }
8240 8245 }
8241 8246 genericBinaryFileWidget::contextMenuEvent(arg__1);
8242 8247 }
8243 8248 void PythonQtShell_genericBinaryFileWidget::customEvent(QEvent* arg__1)
8244 8249 {
8245 8250 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
8246 8251 static PyObject* name = PyString_FromString("customEvent");
8247 8252 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
8248 8253 if (obj) {
8249 8254 static const char* argumentList[] ={"" , "QEvent*"};
8250 8255 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8251 8256 void* args[2] = {NULL, (void*)&arg__1};
8252 8257 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8253 8258 if (result) { Py_DECREF(result); }
8254 8259 Py_DECREF(obj);
8255 8260 return;
8256 8261 } else {
8257 8262 PyErr_Clear();
8258 8263 }
8259 8264 }
8260 8265 genericBinaryFileWidget::customEvent(arg__1);
8261 8266 }
8262 8267 int PythonQtShell_genericBinaryFileWidget::devType() const
8263 8268 {
8264 8269 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
8265 8270 static PyObject* name = PyString_FromString("devType");
8266 8271 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
8267 8272 if (obj) {
8268 8273 static const char* argumentList[] ={"int"};
8269 8274 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
8270 8275 int returnValue;
8271 8276 void* args[1] = {NULL};
8272 8277 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8273 8278 if (result) {
8274 8279 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
8275 8280 if (args[0]!=&returnValue) {
8276 8281 if (args[0]==NULL) {
8277 8282 PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result);
8278 8283 } else {
8279 8284 returnValue = *((int*)args[0]);
8280 8285 }
8281 8286 }
8282 8287 }
8283 8288 if (result) { Py_DECREF(result); }
8284 8289 Py_DECREF(obj);
8285 8290 return returnValue;
8286 8291 } else {
8287 8292 PyErr_Clear();
8288 8293 }
8289 8294 }
8290 8295 return genericBinaryFileWidget::devType();
8291 8296 }
8292 8297 void PythonQtShell_genericBinaryFileWidget::dragEnterEvent(QDragEnterEvent* arg__1)
8293 8298 {
8294 8299 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
8295 8300 static PyObject* name = PyString_FromString("dragEnterEvent");
8296 8301 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
8297 8302 if (obj) {
8298 8303 static const char* argumentList[] ={"" , "QDragEnterEvent*"};
8299 8304 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8300 8305 void* args[2] = {NULL, (void*)&arg__1};
8301 8306 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8302 8307 if (result) { Py_DECREF(result); }
8303 8308 Py_DECREF(obj);
8304 8309 return;
8305 8310 } else {
8306 8311 PyErr_Clear();
8307 8312 }
8308 8313 }
8309 8314 genericBinaryFileWidget::dragEnterEvent(arg__1);
8310 8315 }
8311 8316 void PythonQtShell_genericBinaryFileWidget::dragLeaveEvent(QDragLeaveEvent* arg__1)
8312 8317 {
8313 8318 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
8314 8319 static PyObject* name = PyString_FromString("dragLeaveEvent");
8315 8320 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
8316 8321 if (obj) {
8317 8322 static const char* argumentList[] ={"" , "QDragLeaveEvent*"};
8318 8323 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8319 8324 void* args[2] = {NULL, (void*)&arg__1};
8320 8325 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8321 8326 if (result) { Py_DECREF(result); }
8322 8327 Py_DECREF(obj);
8323 8328 return;
8324 8329 } else {
8325 8330 PyErr_Clear();
8326 8331 }
8327 8332 }
8328 8333 genericBinaryFileWidget::dragLeaveEvent(arg__1);
8329 8334 }
8330 8335 void PythonQtShell_genericBinaryFileWidget::dragMoveEvent(QDragMoveEvent* arg__1)
8331 8336 {
8332 8337 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
8333 8338 static PyObject* name = PyString_FromString("dragMoveEvent");
8334 8339 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
8335 8340 if (obj) {
8336 8341 static const char* argumentList[] ={"" , "QDragMoveEvent*"};
8337 8342 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8338 8343 void* args[2] = {NULL, (void*)&arg__1};
8339 8344 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8340 8345 if (result) { Py_DECREF(result); }
8341 8346 Py_DECREF(obj);
8342 8347 return;
8343 8348 } else {
8344 8349 PyErr_Clear();
8345 8350 }
8346 8351 }
8347 8352 genericBinaryFileWidget::dragMoveEvent(arg__1);
8348 8353 }
8349 8354 void PythonQtShell_genericBinaryFileWidget::dropEvent(QDropEvent* arg__1)
8350 8355 {
8351 8356 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
8352 8357 static PyObject* name = PyString_FromString("dropEvent");
8353 8358 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
8354 8359 if (obj) {
8355 8360 static const char* argumentList[] ={"" , "QDropEvent*"};
8356 8361 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8357 8362 void* args[2] = {NULL, (void*)&arg__1};
8358 8363 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8359 8364 if (result) { Py_DECREF(result); }
8360 8365 Py_DECREF(obj);
8361 8366 return;
8362 8367 } else {
8363 8368 PyErr_Clear();
8364 8369 }
8365 8370 }
8366 8371 genericBinaryFileWidget::dropEvent(arg__1);
8367 8372 }
8368 8373 void PythonQtShell_genericBinaryFileWidget::enterEvent(QEvent* arg__1)
8369 8374 {
8370 8375 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
8371 8376 static PyObject* name = PyString_FromString("enterEvent");
8372 8377 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
8373 8378 if (obj) {
8374 8379 static const char* argumentList[] ={"" , "QEvent*"};
8375 8380 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8376 8381 void* args[2] = {NULL, (void*)&arg__1};
8377 8382 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8378 8383 if (result) { Py_DECREF(result); }
8379 8384 Py_DECREF(obj);
8380 8385 return;
8381 8386 } else {
8382 8387 PyErr_Clear();
8383 8388 }
8384 8389 }
8385 8390 genericBinaryFileWidget::enterEvent(arg__1);
8386 8391 }
8387 8392 bool PythonQtShell_genericBinaryFileWidget::event(QEvent* arg__1)
8388 8393 {
8389 8394 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
8390 8395 static PyObject* name = PyString_FromString("event");
8391 8396 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
8392 8397 if (obj) {
8393 8398 static const char* argumentList[] ={"bool" , "QEvent*"};
8394 8399 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8395 8400 bool returnValue;
8396 8401 void* args[2] = {NULL, (void*)&arg__1};
8397 8402 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8398 8403 if (result) {
8399 8404 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
8400 8405 if (args[0]!=&returnValue) {
8401 8406 if (args[0]==NULL) {
8402 8407 PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result);
8403 8408 } else {
8404 8409 returnValue = *((bool*)args[0]);
8405 8410 }
8406 8411 }
8407 8412 }
8408 8413 if (result) { Py_DECREF(result); }
8409 8414 Py_DECREF(obj);
8410 8415 return returnValue;
8411 8416 } else {
8412 8417 PyErr_Clear();
8413 8418 }
8414 8419 }
8415 8420 return genericBinaryFileWidget::event(arg__1);
8416 8421 }
8417 8422 bool PythonQtShell_genericBinaryFileWidget::eventFilter(QObject* arg__1, QEvent* arg__2)
8418 8423 {
8419 8424 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
8420 8425 static PyObject* name = PyString_FromString("eventFilter");
8421 8426 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
8422 8427 if (obj) {
8423 8428 static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"};
8424 8429 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList);
8425 8430 bool returnValue;
8426 8431 void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2};
8427 8432 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8428 8433 if (result) {
8429 8434 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
8430 8435 if (args[0]!=&returnValue) {
8431 8436 if (args[0]==NULL) {
8432 8437 PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result);
8433 8438 } else {
8434 8439 returnValue = *((bool*)args[0]);
8435 8440 }
8436 8441 }
8437 8442 }
8438 8443 if (result) { Py_DECREF(result); }
8439 8444 Py_DECREF(obj);
8440 8445 return returnValue;
8441 8446 } else {
8442 8447 PyErr_Clear();
8443 8448 }
8444 8449 }
8445 8450 return genericBinaryFileWidget::eventFilter(arg__1, arg__2);
8446 8451 }
8447 8452 void PythonQtShell_genericBinaryFileWidget::focusInEvent(QFocusEvent* arg__1)
8448 8453 {
8449 8454 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
8450 8455 static PyObject* name = PyString_FromString("focusInEvent");
8451 8456 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
8452 8457 if (obj) {
8453 8458 static const char* argumentList[] ={"" , "QFocusEvent*"};
8454 8459 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8455 8460 void* args[2] = {NULL, (void*)&arg__1};
8456 8461 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8457 8462 if (result) { Py_DECREF(result); }
8458 8463 Py_DECREF(obj);
8459 8464 return;
8460 8465 } else {
8461 8466 PyErr_Clear();
8462 8467 }
8463 8468 }
8464 8469 genericBinaryFileWidget::focusInEvent(arg__1);
8465 8470 }
8466 8471 bool PythonQtShell_genericBinaryFileWidget::focusNextPrevChild(bool next0)
8467 8472 {
8468 8473 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
8469 8474 static PyObject* name = PyString_FromString("focusNextPrevChild");
8470 8475 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
8471 8476 if (obj) {
8472 8477 static const char* argumentList[] ={"bool" , "bool"};
8473 8478 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8474 8479 bool returnValue;
8475 8480 void* args[2] = {NULL, (void*)&next0};
8476 8481 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8477 8482 if (result) {
8478 8483 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
8479 8484 if (args[0]!=&returnValue) {
8480 8485 if (args[0]==NULL) {
8481 8486 PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result);
8482 8487 } else {
8483 8488 returnValue = *((bool*)args[0]);
8484 8489 }
8485 8490 }
8486 8491 }
8487 8492 if (result) { Py_DECREF(result); }
8488 8493 Py_DECREF(obj);
8489 8494 return returnValue;
8490 8495 } else {
8491 8496 PyErr_Clear();
8492 8497 }
8493 8498 }
8494 8499 return genericBinaryFileWidget::focusNextPrevChild(next0);
8495 8500 }
8496 8501 void PythonQtShell_genericBinaryFileWidget::focusOutEvent(QFocusEvent* arg__1)
8497 8502 {
8498 8503 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
8499 8504 static PyObject* name = PyString_FromString("focusOutEvent");
8500 8505 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
8501 8506 if (obj) {
8502 8507 static const char* argumentList[] ={"" , "QFocusEvent*"};
8503 8508 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8504 8509 void* args[2] = {NULL, (void*)&arg__1};
8505 8510 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8506 8511 if (result) { Py_DECREF(result); }
8507 8512 Py_DECREF(obj);
8508 8513 return;
8509 8514 } else {
8510 8515 PyErr_Clear();
8511 8516 }
8512 8517 }
8513 8518 genericBinaryFileWidget::focusOutEvent(arg__1);
8514 8519 }
8515 8520 bool PythonQtShell_genericBinaryFileWidget::hasHeightForWidth() const
8516 8521 {
8517 8522 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
8518 8523 static PyObject* name = PyString_FromString("hasHeightForWidth");
8519 8524 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
8520 8525 if (obj) {
8521 8526 static const char* argumentList[] ={"bool"};
8522 8527 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
8523 8528 bool returnValue;
8524 8529 void* args[1] = {NULL};
8525 8530 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8526 8531 if (result) {
8527 8532 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
8528 8533 if (args[0]!=&returnValue) {
8529 8534 if (args[0]==NULL) {
8530 8535 PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result);
8531 8536 } else {
8532 8537 returnValue = *((bool*)args[0]);
8533 8538 }
8534 8539 }
8535 8540 }
8536 8541 if (result) { Py_DECREF(result); }
8537 8542 Py_DECREF(obj);
8538 8543 return returnValue;
8539 8544 } else {
8540 8545 PyErr_Clear();
8541 8546 }
8542 8547 }
8543 8548 return genericBinaryFileWidget::hasHeightForWidth();
8544 8549 }
8545 8550 int PythonQtShell_genericBinaryFileWidget::heightForWidth(int arg__1) const
8546 8551 {
8547 8552 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
8548 8553 static PyObject* name = PyString_FromString("heightForWidth");
8549 8554 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
8550 8555 if (obj) {
8551 8556 static const char* argumentList[] ={"int" , "int"};
8552 8557 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8553 8558 int returnValue;
8554 8559 void* args[2] = {NULL, (void*)&arg__1};
8555 8560 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8556 8561 if (result) {
8557 8562 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
8558 8563 if (args[0]!=&returnValue) {
8559 8564 if (args[0]==NULL) {
8560 8565 PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result);
8561 8566 } else {
8562 8567 returnValue = *((int*)args[0]);
8563 8568 }
8564 8569 }
8565 8570 }
8566 8571 if (result) { Py_DECREF(result); }
8567 8572 Py_DECREF(obj);
8568 8573 return returnValue;
8569 8574 } else {
8570 8575 PyErr_Clear();
8571 8576 }
8572 8577 }
8573 8578 return genericBinaryFileWidget::heightForWidth(arg__1);
8574 8579 }
8575 8580 void PythonQtShell_genericBinaryFileWidget::hideEvent(QHideEvent* arg__1)
8576 8581 {
8577 8582 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
8578 8583 static PyObject* name = PyString_FromString("hideEvent");
8579 8584 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
8580 8585 if (obj) {
8581 8586 static const char* argumentList[] ={"" , "QHideEvent*"};
8582 8587 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8583 8588 void* args[2] = {NULL, (void*)&arg__1};
8584 8589 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8585 8590 if (result) { Py_DECREF(result); }
8586 8591 Py_DECREF(obj);
8587 8592 return;
8588 8593 } else {
8589 8594 PyErr_Clear();
8590 8595 }
8591 8596 }
8592 8597 genericBinaryFileWidget::hideEvent(arg__1);
8593 8598 }
8594 8599 void PythonQtShell_genericBinaryFileWidget::initPainter(QPainter* painter0) const
8595 8600 {
8596 8601 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
8597 8602 static PyObject* name = PyString_FromString("initPainter");
8598 8603 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
8599 8604 if (obj) {
8600 8605 static const char* argumentList[] ={"" , "QPainter*"};
8601 8606 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8602 8607 void* args[2] = {NULL, (void*)&painter0};
8603 8608 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8604 8609 if (result) { Py_DECREF(result); }
8605 8610 Py_DECREF(obj);
8606 8611 return;
8607 8612 } else {
8608 8613 PyErr_Clear();
8609 8614 }
8610 8615 }
8611 8616 genericBinaryFileWidget::initPainter(painter0);
8612 8617 }
8613 8618 void PythonQtShell_genericBinaryFileWidget::inputMethodEvent(QInputMethodEvent* arg__1)
8614 8619 {
8615 8620 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
8616 8621 static PyObject* name = PyString_FromString("inputMethodEvent");
8617 8622 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
8618 8623 if (obj) {
8619 8624 static const char* argumentList[] ={"" , "QInputMethodEvent*"};
8620 8625 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8621 8626 void* args[2] = {NULL, (void*)&arg__1};
8622 8627 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8623 8628 if (result) { Py_DECREF(result); }
8624 8629 Py_DECREF(obj);
8625 8630 return;
8626 8631 } else {
8627 8632 PyErr_Clear();
8628 8633 }
8629 8634 }
8630 8635 genericBinaryFileWidget::inputMethodEvent(arg__1);
8631 8636 }
8632 8637 QVariant PythonQtShell_genericBinaryFileWidget::inputMethodQuery(Qt::InputMethodQuery arg__1) const
8633 8638 {
8634 8639 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
8635 8640 static PyObject* name = PyString_FromString("inputMethodQuery");
8636 8641 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
8637 8642 if (obj) {
8638 8643 static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"};
8639 8644 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8640 8645 QVariant returnValue;
8641 8646 void* args[2] = {NULL, (void*)&arg__1};
8642 8647 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8643 8648 if (result) {
8644 8649 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
8645 8650 if (args[0]!=&returnValue) {
8646 8651 if (args[0]==NULL) {
8647 8652 PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result);
8648 8653 } else {
8649 8654 returnValue = *((QVariant*)args[0]);
8650 8655 }
8651 8656 }
8652 8657 }
8653 8658 if (result) { Py_DECREF(result); }
8654 8659 Py_DECREF(obj);
8655 8660 return returnValue;
8656 8661 } else {
8657 8662 PyErr_Clear();
8658 8663 }
8659 8664 }
8660 8665 return genericBinaryFileWidget::inputMethodQuery(arg__1);
8661 8666 }
8662 8667 void PythonQtShell_genericBinaryFileWidget::keyPressEvent(QKeyEvent* arg__1)
8663 8668 {
8664 8669 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
8665 8670 static PyObject* name = PyString_FromString("keyPressEvent");
8666 8671 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
8667 8672 if (obj) {
8668 8673 static const char* argumentList[] ={"" , "QKeyEvent*"};
8669 8674 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8670 8675 void* args[2] = {NULL, (void*)&arg__1};
8671 8676 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8672 8677 if (result) { Py_DECREF(result); }
8673 8678 Py_DECREF(obj);
8674 8679 return;
8675 8680 } else {
8676 8681 PyErr_Clear();
8677 8682 }
8678 8683 }
8679 8684 genericBinaryFileWidget::keyPressEvent(arg__1);
8680 8685 }
8681 8686 void PythonQtShell_genericBinaryFileWidget::keyReleaseEvent(QKeyEvent* arg__1)
8682 8687 {
8683 8688 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
8684 8689 static PyObject* name = PyString_FromString("keyReleaseEvent");
8685 8690 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
8686 8691 if (obj) {
8687 8692 static const char* argumentList[] ={"" , "QKeyEvent*"};
8688 8693 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8689 8694 void* args[2] = {NULL, (void*)&arg__1};
8690 8695 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8691 8696 if (result) { Py_DECREF(result); }
8692 8697 Py_DECREF(obj);
8693 8698 return;
8694 8699 } else {
8695 8700 PyErr_Clear();
8696 8701 }
8697 8702 }
8698 8703 genericBinaryFileWidget::keyReleaseEvent(arg__1);
8699 8704 }
8700 8705 void PythonQtShell_genericBinaryFileWidget::leaveEvent(QEvent* arg__1)
8701 8706 {
8702 8707 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
8703 8708 static PyObject* name = PyString_FromString("leaveEvent");
8704 8709 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
8705 8710 if (obj) {
8706 8711 static const char* argumentList[] ={"" , "QEvent*"};
8707 8712 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8708 8713 void* args[2] = {NULL, (void*)&arg__1};
8709 8714 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8710 8715 if (result) { Py_DECREF(result); }
8711 8716 Py_DECREF(obj);
8712 8717 return;
8713 8718 } else {
8714 8719 PyErr_Clear();
8715 8720 }
8716 8721 }
8717 8722 genericBinaryFileWidget::leaveEvent(arg__1);
8718 8723 }
8719 8724 int PythonQtShell_genericBinaryFileWidget::metric(QPaintDevice::PaintDeviceMetric arg__1) const
8720 8725 {
8721 8726 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
8722 8727 static PyObject* name = PyString_FromString("metric");
8723 8728 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
8724 8729 if (obj) {
8725 8730 static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"};
8726 8731 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8727 8732 int returnValue;
8728 8733 void* args[2] = {NULL, (void*)&arg__1};
8729 8734 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8730 8735 if (result) {
8731 8736 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
8732 8737 if (args[0]!=&returnValue) {
8733 8738 if (args[0]==NULL) {
8734 8739 PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result);
8735 8740 } else {
8736 8741 returnValue = *((int*)args[0]);
8737 8742 }
8738 8743 }
8739 8744 }
8740 8745 if (result) { Py_DECREF(result); }
8741 8746 Py_DECREF(obj);
8742 8747 return returnValue;
8743 8748 } else {
8744 8749 PyErr_Clear();
8745 8750 }
8746 8751 }
8747 8752 return genericBinaryFileWidget::metric(arg__1);
8748 8753 }
8749 8754 QSize PythonQtShell_genericBinaryFileWidget::minimumSizeHint() const
8750 8755 {
8751 8756 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
8752 8757 static PyObject* name = PyString_FromString("getMinimumSizeHint");
8753 8758 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
8754 8759 if (obj) {
8755 8760 static const char* argumentList[] ={"QSize"};
8756 8761 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
8757 8762 QSize returnValue;
8758 8763 void* args[1] = {NULL};
8759 8764 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8760 8765 if (result) {
8761 8766 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
8762 8767 if (args[0]!=&returnValue) {
8763 8768 if (args[0]==NULL) {
8764 8769 PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result);
8765 8770 } else {
8766 8771 returnValue = *((QSize*)args[0]);
8767 8772 }
8768 8773 }
8769 8774 }
8770 8775 if (result) { Py_DECREF(result); }
8771 8776 Py_DECREF(obj);
8772 8777 return returnValue;
8773 8778 } else {
8774 8779 PyErr_Clear();
8775 8780 }
8776 8781 }
8777 8782 return genericBinaryFileWidget::minimumSizeHint();
8778 8783 }
8779 8784 void PythonQtShell_genericBinaryFileWidget::mouseDoubleClickEvent(QMouseEvent* arg__1)
8780 8785 {
8781 8786 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
8782 8787 static PyObject* name = PyString_FromString("mouseDoubleClickEvent");
8783 8788 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
8784 8789 if (obj) {
8785 8790 static const char* argumentList[] ={"" , "QMouseEvent*"};
8786 8791 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8787 8792 void* args[2] = {NULL, (void*)&arg__1};
8788 8793 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8789 8794 if (result) { Py_DECREF(result); }
8790 8795 Py_DECREF(obj);
8791 8796 return;
8792 8797 } else {
8793 8798 PyErr_Clear();
8794 8799 }
8795 8800 }
8796 8801 genericBinaryFileWidget::mouseDoubleClickEvent(arg__1);
8797 8802 }
8798 8803 void PythonQtShell_genericBinaryFileWidget::mouseMoveEvent(QMouseEvent* arg__1)
8799 8804 {
8800 8805 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
8801 8806 static PyObject* name = PyString_FromString("mouseMoveEvent");
8802 8807 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
8803 8808 if (obj) {
8804 8809 static const char* argumentList[] ={"" , "QMouseEvent*"};
8805 8810 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8806 8811 void* args[2] = {NULL, (void*)&arg__1};
8807 8812 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8808 8813 if (result) { Py_DECREF(result); }
8809 8814 Py_DECREF(obj);
8810 8815 return;
8811 8816 } else {
8812 8817 PyErr_Clear();
8813 8818 }
8814 8819 }
8815 8820 genericBinaryFileWidget::mouseMoveEvent(arg__1);
8816 8821 }
8817 8822 void PythonQtShell_genericBinaryFileWidget::mousePressEvent(QMouseEvent* arg__1)
8818 8823 {
8819 8824 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
8820 8825 static PyObject* name = PyString_FromString("mousePressEvent");
8821 8826 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
8822 8827 if (obj) {
8823 8828 static const char* argumentList[] ={"" , "QMouseEvent*"};
8824 8829 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8825 8830 void* args[2] = {NULL, (void*)&arg__1};
8826 8831 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8827 8832 if (result) { Py_DECREF(result); }
8828 8833 Py_DECREF(obj);
8829 8834 return;
8830 8835 } else {
8831 8836 PyErr_Clear();
8832 8837 }
8833 8838 }
8834 8839 genericBinaryFileWidget::mousePressEvent(arg__1);
8835 8840 }
8836 8841 void PythonQtShell_genericBinaryFileWidget::mouseReleaseEvent(QMouseEvent* arg__1)
8837 8842 {
8838 8843 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
8839 8844 static PyObject* name = PyString_FromString("mouseReleaseEvent");
8840 8845 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
8841 8846 if (obj) {
8842 8847 static const char* argumentList[] ={"" , "QMouseEvent*"};
8843 8848 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8844 8849 void* args[2] = {NULL, (void*)&arg__1};
8845 8850 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8846 8851 if (result) { Py_DECREF(result); }
8847 8852 Py_DECREF(obj);
8848 8853 return;
8849 8854 } else {
8850 8855 PyErr_Clear();
8851 8856 }
8852 8857 }
8853 8858 genericBinaryFileWidget::mouseReleaseEvent(arg__1);
8854 8859 }
8855 8860 void PythonQtShell_genericBinaryFileWidget::moveEvent(QMoveEvent* arg__1)
8856 8861 {
8857 8862 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
8858 8863 static PyObject* name = PyString_FromString("moveEvent");
8859 8864 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
8860 8865 if (obj) {
8861 8866 static const char* argumentList[] ={"" , "QMoveEvent*"};
8862 8867 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8863 8868 void* args[2] = {NULL, (void*)&arg__1};
8864 8869 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8865 8870 if (result) { Py_DECREF(result); }
8866 8871 Py_DECREF(obj);
8867 8872 return;
8868 8873 } else {
8869 8874 PyErr_Clear();
8870 8875 }
8871 8876 }
8872 8877 genericBinaryFileWidget::moveEvent(arg__1);
8873 8878 }
8874 8879 bool PythonQtShell_genericBinaryFileWidget::nativeEvent(const QByteArray& eventType0, void* message1, long* result2)
8875 8880 {
8876 8881 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
8877 8882 static PyObject* name = PyString_FromString("nativeEvent");
8878 8883 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
8879 8884 if (obj) {
8880 8885 static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"};
8881 8886 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList);
8882 8887 bool returnValue;
8883 8888 void* args[4] = {NULL, (void*)&eventType0, (void*)&message1, (void*)&result2};
8884 8889 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8885 8890 if (result) {
8886 8891 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
8887 8892 if (args[0]!=&returnValue) {
8888 8893 if (args[0]==NULL) {
8889 8894 PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result);
8890 8895 } else {
8891 8896 returnValue = *((bool*)args[0]);
8892 8897 }
8893 8898 }
8894 8899 }
8895 8900 if (result) { Py_DECREF(result); }
8896 8901 Py_DECREF(obj);
8897 8902 return returnValue;
8898 8903 } else {
8899 8904 PyErr_Clear();
8900 8905 }
8901 8906 }
8902 8907 return genericBinaryFileWidget::nativeEvent(eventType0, message1, result2);
8903 8908 }
8904 8909 QPaintEngine* PythonQtShell_genericBinaryFileWidget::paintEngine() const
8905 8910 {
8906 8911 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
8907 8912 static PyObject* name = PyString_FromString("paintEngine");
8908 8913 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
8909 8914 if (obj) {
8910 8915 static const char* argumentList[] ={"QPaintEngine*"};
8911 8916 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
8912 8917 QPaintEngine* returnValue;
8913 8918 void* args[1] = {NULL};
8914 8919 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8915 8920 if (result) {
8916 8921 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
8917 8922 if (args[0]!=&returnValue) {
8918 8923 if (args[0]==NULL) {
8919 8924 PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result);
8920 8925 } else {
8921 8926 returnValue = *((QPaintEngine**)args[0]);
8922 8927 }
8923 8928 }
8924 8929 }
8925 8930 if (result) { Py_DECREF(result); }
8926 8931 Py_DECREF(obj);
8927 8932 return returnValue;
8928 8933 } else {
8929 8934 PyErr_Clear();
8930 8935 }
8931 8936 }
8932 8937 return genericBinaryFileWidget::paintEngine();
8933 8938 }
8934 8939 void PythonQtShell_genericBinaryFileWidget::paintEvent(QPaintEvent* arg__1)
8935 8940 {
8936 8941 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
8937 8942 static PyObject* name = PyString_FromString("paintEvent");
8938 8943 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
8939 8944 if (obj) {
8940 8945 static const char* argumentList[] ={"" , "QPaintEvent*"};
8941 8946 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8942 8947 void* args[2] = {NULL, (void*)&arg__1};
8943 8948 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8944 8949 if (result) { Py_DECREF(result); }
8945 8950 Py_DECREF(obj);
8946 8951 return;
8947 8952 } else {
8948 8953 PyErr_Clear();
8949 8954 }
8950 8955 }
8951 8956 genericBinaryFileWidget::paintEvent(arg__1);
8952 8957 }
8953 8958 QPaintDevice* PythonQtShell_genericBinaryFileWidget::redirected(QPoint* offset0) const
8954 8959 {
8955 8960 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
8956 8961 static PyObject* name = PyString_FromString("redirected");
8957 8962 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
8958 8963 if (obj) {
8959 8964 static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"};
8960 8965 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8961 8966 QPaintDevice* returnValue;
8962 8967 void* args[2] = {NULL, (void*)&offset0};
8963 8968 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8964 8969 if (result) {
8965 8970 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
8966 8971 if (args[0]!=&returnValue) {
8967 8972 if (args[0]==NULL) {
8968 8973 PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result);
8969 8974 } else {
8970 8975 returnValue = *((QPaintDevice**)args[0]);
8971 8976 }
8972 8977 }
8973 8978 }
8974 8979 if (result) { Py_DECREF(result); }
8975 8980 Py_DECREF(obj);
8976 8981 return returnValue;
8977 8982 } else {
8978 8983 PyErr_Clear();
8979 8984 }
8980 8985 }
8981 8986 return genericBinaryFileWidget::redirected(offset0);
8982 8987 }
8983 8988 void PythonQtShell_genericBinaryFileWidget::resizeEvent(QResizeEvent* arg__1)
8984 8989 {
8985 8990 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
8986 8991 static PyObject* name = PyString_FromString("resizeEvent");
8987 8992 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
8988 8993 if (obj) {
8989 8994 static const char* argumentList[] ={"" , "QResizeEvent*"};
8990 8995 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8991 8996 void* args[2] = {NULL, (void*)&arg__1};
8992 8997 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8993 8998 if (result) { Py_DECREF(result); }
8994 8999 Py_DECREF(obj);
8995 9000 return;
8996 9001 } else {
8997 9002 PyErr_Clear();
8998 9003 }
8999 9004 }
9000 9005 genericBinaryFileWidget::resizeEvent(arg__1);
9001 9006 }
9002 9007 QPainter* PythonQtShell_genericBinaryFileWidget::sharedPainter() const
9003 9008 {
9004 9009 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
9005 9010 static PyObject* name = PyString_FromString("sharedPainter");
9006 9011 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
9007 9012 if (obj) {
9008 9013 static const char* argumentList[] ={"QPainter*"};
9009 9014 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
9010 9015 QPainter* returnValue;
9011 9016 void* args[1] = {NULL};
9012 9017 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
9013 9018 if (result) {
9014 9019 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
9015 9020 if (args[0]!=&returnValue) {
9016 9021 if (args[0]==NULL) {
9017 9022 PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result);
9018 9023 } else {
9019 9024 returnValue = *((QPainter**)args[0]);
9020 9025 }
9021 9026 }
9022 9027 }
9023 9028 if (result) { Py_DECREF(result); }
9024 9029 Py_DECREF(obj);
9025 9030 return returnValue;
9026 9031 } else {
9027 9032 PyErr_Clear();
9028 9033 }
9029 9034 }
9030 9035 return genericBinaryFileWidget::sharedPainter();
9031 9036 }
9032 9037 void PythonQtShell_genericBinaryFileWidget::showEvent(QShowEvent* arg__1)
9033 9038 {
9034 9039 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
9035 9040 static PyObject* name = PyString_FromString("showEvent");
9036 9041 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
9037 9042 if (obj) {
9038 9043 static const char* argumentList[] ={"" , "QShowEvent*"};
9039 9044 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
9040 9045 void* args[2] = {NULL, (void*)&arg__1};
9041 9046 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
9042 9047 if (result) { Py_DECREF(result); }
9043 9048 Py_DECREF(obj);
9044 9049 return;
9045 9050 } else {
9046 9051 PyErr_Clear();
9047 9052 }
9048 9053 }
9049 9054 genericBinaryFileWidget::showEvent(arg__1);
9050 9055 }
9051 9056 QSize PythonQtShell_genericBinaryFileWidget::sizeHint() const
9052 9057 {
9053 9058 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
9054 9059 static PyObject* name = PyString_FromString("getSizeHint");
9055 9060 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
9056 9061 if (obj) {
9057 9062 static const char* argumentList[] ={"QSize"};
9058 9063 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
9059 9064 QSize returnValue;
9060 9065 void* args[1] = {NULL};
9061 9066 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
9062 9067 if (result) {
9063 9068 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
9064 9069 if (args[0]!=&returnValue) {
9065 9070 if (args[0]==NULL) {
9066 9071 PythonQt::priv()->handleVirtualOverloadReturnError("getSizeHint", methodInfo, result);
9067 9072 } else {
9068 9073 returnValue = *((QSize*)args[0]);
9069 9074 }
9070 9075 }
9071 9076 }
9072 9077 if (result) { Py_DECREF(result); }
9073 9078 Py_DECREF(obj);
9074 9079 return returnValue;
9075 9080 } else {
9076 9081 PyErr_Clear();
9077 9082 }
9078 9083 }
9079 9084 return genericBinaryFileWidget::sizeHint();
9080 9085 }
9081 9086 void PythonQtShell_genericBinaryFileWidget::tabletEvent(QTabletEvent* arg__1)
9082 9087 {
9083 9088 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
9084 9089 static PyObject* name = PyString_FromString("tabletEvent");
9085 9090 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
9086 9091 if (obj) {
9087 9092 static const char* argumentList[] ={"" , "QTabletEvent*"};
9088 9093 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
9089 9094 void* args[2] = {NULL, (void*)&arg__1};
9090 9095 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
9091 9096 if (result) { Py_DECREF(result); }
9092 9097 Py_DECREF(obj);
9093 9098 return;
9094 9099 } else {
9095 9100 PyErr_Clear();
9096 9101 }
9097 9102 }
9098 9103 genericBinaryFileWidget::tabletEvent(arg__1);
9099 9104 }
9100 9105 void PythonQtShell_genericBinaryFileWidget::timerEvent(QTimerEvent* arg__1)
9101 9106 {
9102 9107 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
9103 9108 static PyObject* name = PyString_FromString("timerEvent");
9104 9109 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
9105 9110 if (obj) {
9106 9111 static const char* argumentList[] ={"" , "QTimerEvent*"};
9107 9112 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
9108 9113 void* args[2] = {NULL, (void*)&arg__1};
9109 9114 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
9110 9115 if (result) { Py_DECREF(result); }
9111 9116 Py_DECREF(obj);
9112 9117 return;
9113 9118 } else {
9114 9119 PyErr_Clear();
9115 9120 }
9116 9121 }
9117 9122 genericBinaryFileWidget::timerEvent(arg__1);
9118 9123 }
9119 9124 void PythonQtShell_genericBinaryFileWidget::wheelEvent(QWheelEvent* arg__1)
9120 9125 {
9121 9126 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
9122 9127 static PyObject* name = PyString_FromString("wheelEvent");
9123 9128 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
9124 9129 if (obj) {
9125 9130 static const char* argumentList[] ={"" , "QWheelEvent*"};
9126 9131 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
9127 9132 void* args[2] = {NULL, (void*)&arg__1};
9128 9133 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
9129 9134 if (result) { Py_DECREF(result); }
9130 9135 Py_DECREF(obj);
9131 9136 return;
9132 9137 } else {
9133 9138 PyErr_Clear();
9134 9139 }
9135 9140 }
9136 9141 genericBinaryFileWidget::wheelEvent(arg__1);
9137 9142 }
9138 9143 genericBinaryFileWidget* PythonQtWrapper_genericBinaryFileWidget::new_genericBinaryFileWidget(QWidget* parent)
9139 9144 {
9140 9145 return new PythonQtShell_genericBinaryFileWidget(parent); }
9141 9146
9142 9147
9143 9148
9144 9149 PythonQtShell_srecFile::~PythonQtShell_srecFile() {
9145 9150 PythonQtPrivate* priv = PythonQt::priv();
9146 9151 if (priv) { priv->shellClassDeleted(this); }
9147 9152 }
9148 9153 int PythonQtShell_srecFile::closeFile()
9149 9154 {
9150 9155 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
9151 9156 static PyObject* name = PyString_FromString("closeFile");
9152 9157 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
9153 9158 if (obj) {
9154 9159 static const char* argumentList[] ={"int"};
9155 9160 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
9156 9161 int returnValue;
9157 9162 void* args[1] = {NULL};
9158 9163 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
9159 9164 if (result) {
9160 9165 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
9161 9166 if (args[0]!=&returnValue) {
9162 9167 if (args[0]==NULL) {
9163 9168 PythonQt::priv()->handleVirtualOverloadReturnError("closeFile", methodInfo, result);
9164 9169 } else {
9165 9170 returnValue = *((int*)args[0]);
9166 9171 }
9167 9172 }
9168 9173 }
9169 9174 if (result) { Py_DECREF(result); }
9170 9175 Py_DECREF(obj);
9171 9176 return returnValue;
9172 9177 } else {
9173 9178 PyErr_Clear();
9174 9179 }
9175 9180 }
9176 9181 return srecFile::closeFile();
9177 9182 }
9178 9183 QList<codeFragment* > PythonQtShell_srecFile::getFragments()
9179 9184 {
9180 9185 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
9181 9186 static PyObject* name = PyString_FromString("getFragments");
9182 9187 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
9183 9188 if (obj) {
9184 9189 static const char* argumentList[] ={"QList<codeFragment* >"};
9185 9190 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
9186 9191 QList<codeFragment* > returnValue;
9187 9192 void* args[1] = {NULL};
9188 9193 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
9189 9194 if (result) {
9190 9195 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
9191 9196 if (args[0]!=&returnValue) {
9192 9197 if (args[0]==NULL) {
9193 9198 PythonQt::priv()->handleVirtualOverloadReturnError("getFragments", methodInfo, result);
9194 9199 } else {
9195 9200 returnValue = *((QList<codeFragment* >*)args[0]);
9196 9201 }
9197 9202 }
9198 9203 }
9199 9204 if (result) { Py_DECREF(result); }
9200 9205 Py_DECREF(obj);
9201 9206 return returnValue;
9202 9207 } else {
9203 9208 PyErr_Clear();
9204 9209 }
9205 9210 }
9206 9211 return srecFile::getFragments();
9207 9212 }
9208 9213 bool PythonQtShell_srecFile::isopened()
9209 9214 {
9210 9215 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
9211 9216 static PyObject* name = PyString_FromString("isopened");
9212 9217 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
9213 9218 if (obj) {
9214 9219 static const char* argumentList[] ={"bool"};
9215 9220 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
9216 9221 bool returnValue;
9217 9222 void* args[1] = {NULL};
9218 9223 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
9219 9224 if (result) {
9220 9225 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
9221 9226 if (args[0]!=&returnValue) {
9222 9227 if (args[0]==NULL) {
9223 9228 PythonQt::priv()->handleVirtualOverloadReturnError("isopened", methodInfo, result);
9224 9229 } else {
9225 9230 returnValue = *((bool*)args[0]);
9226 9231 }
9227 9232 }
9228 9233 }
9229 9234 if (result) { Py_DECREF(result); }
9230 9235 Py_DECREF(obj);
9231 9236 return returnValue;
9232 9237 } else {
9233 9238 PyErr_Clear();
9234 9239 }
9235 9240 }
9236 9241 return srecFile::isopened();
9237 9242 }
9238 9243 bool PythonQtShell_srecFile::openFile(const QString& File0)
9239 9244 {
9240 9245 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
9241 9246 static PyObject* name = PyString_FromString("openFile");
9242 9247 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
9243 9248 if (obj) {
9244 9249 static const char* argumentList[] ={"bool" , "const QString&"};
9245 9250 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
9246 9251 bool returnValue;
9247 9252 void* args[2] = {NULL, (void*)&File0};
9248 9253 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
9249 9254 if (result) {
9250 9255 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
9251 9256 if (args[0]!=&returnValue) {
9252 9257 if (args[0]==NULL) {
9253 9258 PythonQt::priv()->handleVirtualOverloadReturnError("openFile", methodInfo, result);
9254 9259 } else {
9255 9260 returnValue = *((bool*)args[0]);
9256 9261 }
9257 9262 }
9258 9263 }
9259 9264 if (result) { Py_DECREF(result); }
9260 9265 Py_DECREF(obj);
9261 9266 return returnValue;
9262 9267 } else {
9263 9268 PyErr_Clear();
9264 9269 }
9265 9270 }
9266 9271 return srecFile::openFile(File0);
9267 9272 }
9268 9273 bool PythonQtShell_srecFile::toBinary(const QString& File0)
9269 9274 {
9270 9275 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
9271 9276 static PyObject* name = PyString_FromString("toBinary");
9272 9277 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
9273 9278 if (obj) {
9274 9279 static const char* argumentList[] ={"bool" , "const QString&"};
9275 9280 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
9276 9281 bool returnValue;
9277 9282 void* args[2] = {NULL, (void*)&File0};
9278 9283 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
9279 9284 if (result) {
9280 9285 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
9281 9286 if (args[0]!=&returnValue) {
9282 9287 if (args[0]==NULL) {
9283 9288 PythonQt::priv()->handleVirtualOverloadReturnError("toBinary", methodInfo, result);
9284 9289 } else {
9285 9290 returnValue = *((bool*)args[0]);
9286 9291 }
9287 9292 }
9288 9293 }
9289 9294 if (result) { Py_DECREF(result); }
9290 9295 Py_DECREF(obj);
9291 9296 return returnValue;
9292 9297 } else {
9293 9298 PyErr_Clear();
9294 9299 }
9295 9300 }
9296 9301 return srecFile::toBinary(File0);
9297 9302 }
9298 9303 bool PythonQtShell_srecFile::toSrec(const QString& File0)
9299 9304 {
9300 9305 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
9301 9306 static PyObject* name = PyString_FromString("toSrec");
9302 9307 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
9303 9308 if (obj) {
9304 9309 static const char* argumentList[] ={"bool" , "const QString&"};
9305 9310 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
9306 9311 bool returnValue;
9307 9312 void* args[2] = {NULL, (void*)&File0};
9308 9313 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
9309 9314 if (result) {
9310 9315 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
9311 9316 if (args[0]!=&returnValue) {
9312 9317 if (args[0]==NULL) {
9313 9318 PythonQt::priv()->handleVirtualOverloadReturnError("toSrec", methodInfo, result);
9314 9319 } else {
9315 9320 returnValue = *((bool*)args[0]);
9316 9321 }
9317 9322 }
9318 9323 }
9319 9324 if (result) { Py_DECREF(result); }
9320 9325 Py_DECREF(obj);
9321 9326 return returnValue;
9322 9327 } else {
9323 9328 PyErr_Clear();
9324 9329 }
9325 9330 }
9326 9331 return srecFile::toSrec(File0);
9327 9332 }
9328 9333 srecFile* PythonQtWrapper_srecFile::new_srecFile()
9329 9334 {
9330 9335 return new PythonQtShell_srecFile(); }
9331 9336
9332 9337 srecFile* PythonQtWrapper_srecFile::new_srecFile(const QString& File)
9333 9338 {
9334 9339 return new PythonQtShell_srecFile(File); }
9335 9340
9336 9341 srecFile* PythonQtWrapper_srecFile::new_srecFile(const QStringList& Files)
9337 9342 {
9338 9343 return new PythonQtShell_srecFile(Files); }
9339 9344
9340 9345 bool PythonQtWrapper_srecFile::static_srecFile_checkSum(const QString& line)
9341 9346 {
9342 9347 return (srecFile::checkSum(line));
9343 9348 }
9344 9349
9345 9350 int PythonQtWrapper_srecFile::closeFile(srecFile* theWrappedObject)
9346 9351 {
9347 9352 return ( ((PythonQtPublicPromoter_srecFile*)theWrappedObject)->promoted_closeFile());
9348 9353 }
9349 9354
9350 9355 codeFragment* PythonQtWrapper_srecFile::getFragment(srecFile* theWrappedObject, int index)
9351 9356 {
9352 9357 return ( theWrappedObject->getFragment(index));
9353 9358 }
9354 9359
9355 9360 int PythonQtWrapper_srecFile::getFragmentAddress(srecFile* theWrappedObject, int index)
9356 9361 {
9357 9362 return ( theWrappedObject->getFragmentAddress(index));
9358 9363 }
9359 9364
9360 9365 bool PythonQtWrapper_srecFile::getFragmentData(srecFile* theWrappedObject, int index, char** buffer)
9361 9366 {
9362 9367 return ( theWrappedObject->getFragmentData(index, buffer));
9363 9368 }
9364 9369
9365 9370 QString PythonQtWrapper_srecFile::getFragmentHeader(srecFile* theWrappedObject, int index)
9366 9371 {
9367 9372 return ( theWrappedObject->getFragmentHeader(index));
9368 9373 }
9369 9374
9370 9375 int PythonQtWrapper_srecFile::getFragmentSize(srecFile* theWrappedObject, int index)
9371 9376 {
9372 9377 return ( theWrappedObject->getFragmentSize(index));
9373 9378 }
9374 9379
9375 9380 QList<codeFragment* > PythonQtWrapper_srecFile::getFragments(srecFile* theWrappedObject)
9376 9381 {
9377 9382 return ( ((PythonQtPublicPromoter_srecFile*)theWrappedObject)->promoted_getFragments());
9378 9383 }
9379 9384
9380 9385 int PythonQtWrapper_srecFile::getFragmentsCount(srecFile* theWrappedObject)
9381 9386 {
9382 9387 return ( theWrappedObject->getFragmentsCount());
9383 9388 }
9384 9389
9385 9390 bool PythonQtWrapper_srecFile::isSREC(srecFile* theWrappedObject)
9386 9391 {
9387 9392 return ( theWrappedObject->isSREC());
9388 9393 }
9389 9394
9390 9395 bool PythonQtWrapper_srecFile::static_srecFile_isSREC(const QString& File)
9391 9396 {
9392 9397 return (srecFile::isSREC(File));
9393 9398 }
9394 9399
9395 9400 bool PythonQtWrapper_srecFile::isopened(srecFile* theWrappedObject)
9396 9401 {
9397 9402 return ( ((PythonQtPublicPromoter_srecFile*)theWrappedObject)->promoted_isopened());
9398 9403 }
9399 9404
9400 9405 int PythonQtWrapper_srecFile::lineCount(srecFile* theWrappedObject)
9401 9406 {
9402 9407 return ( theWrappedObject->lineCount());
9403 9408 }
9404 9409
9405 9410 bool PythonQtWrapper_srecFile::mergingRecords(srecFile* theWrappedObject)
9406 9411 {
9407 9412 return ( theWrappedObject->mergingRecords());
9408 9413 }
9409 9414
9410 9415 bool PythonQtWrapper_srecFile::openFile(srecFile* theWrappedObject, const QString& File)
9411 9416 {
9412 9417 return ( ((PythonQtPublicPromoter_srecFile*)theWrappedObject)->promoted_openFile(File));
9413 9418 }
9414 9419
9415 9420 bool PythonQtWrapper_srecFile::openFiles(srecFile* theWrappedObject, const QStringList& Files)
9416 9421 {
9417 9422 return ( theWrappedObject->openFiles(Files));
9418 9423 }
9419 9424
9420 9425 void PythonQtWrapper_srecFile::setMergingRecords(srecFile* theWrappedObject, bool enabled)
9421 9426 {
9422 9427 ( theWrappedObject->setMergingRecords(enabled));
9423 9428 }
9424 9429
9425 9430 bool PythonQtWrapper_srecFile::toBinary(srecFile* theWrappedObject, const QString& File)
9426 9431 {
9427 9432 return ( ((PythonQtPublicPromoter_srecFile*)theWrappedObject)->promoted_toBinary(File));
9428 9433 }
9429 9434
9430 9435 bool PythonQtWrapper_srecFile::static_srecFile_toSrec(QList<codeFragment* > fragments, const QString& File)
9431 9436 {
9432 9437 return (srecFile::toSrec(fragments, File));
9433 9438 }
9434 9439
9435 9440 bool PythonQtWrapper_srecFile::toSrec(srecFile* theWrappedObject, const QString& File)
9436 9441 {
9437 9442 return ( ((PythonQtPublicPromoter_srecFile*)theWrappedObject)->promoted_toSrec(File));
9438 9443 }
9439 9444
9440 9445
9441 9446
9442 9447 PythonQtShell_srecFileWidget::~PythonQtShell_srecFileWidget() {
9443 9448 PythonQtPrivate* priv = PythonQt::priv();
9444 9449 if (priv) { priv->shellClassDeleted(this); }
9445 9450 }
9446 9451 void PythonQtShell_srecFileWidget::reloadFile()
9447 9452 {
9448 9453 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
9449 9454 static PyObject* name = PyString_FromString("reloadFile");
9450 9455 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
9451 9456 if (obj) {
9452 9457 static const char* argumentList[] ={""};
9453 9458 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
9454 9459 void* args[1] = {NULL};
9455 9460 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
9456 9461 if (result) { Py_DECREF(result); }
9457 9462 Py_DECREF(obj);
9458 9463 return;
9459 9464 } else {
9460 9465 PyErr_Clear();
9461 9466 }
9462 9467 }
9463 9468 srecFileWidget::reloadFile();
9464 9469 }
9465 9470 void PythonQtShell_srecFileWidget::setFile(abstractBinFile* file0)
9466 9471 {
9467 9472 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
9468 9473 static PyObject* name = PyString_FromString("setFile");
9469 9474 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
9470 9475 if (obj) {
9471 9476 static const char* argumentList[] ={"" , "abstractBinFile*"};
9472 9477 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
9473 9478 void* args[2] = {NULL, (void*)&file0};
9474 9479 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
9475 9480 if (result) { Py_DECREF(result); }
9476 9481 Py_DECREF(obj);
9477 9482 return;
9478 9483 } else {
9479 9484 PyErr_Clear();
9480 9485 }
9481 9486 }
9482 9487 srecFileWidget::setFile(file0);
9483 9488 }
9484 9489 srecFileWidget* PythonQtWrapper_srecFileWidget::new_srecFileWidget(QWidget* parent)
9485 9490 {
9486 9491 return new PythonQtShell_srecFileWidget(parent); }
9487 9492
9488 9493 void PythonQtWrapper_srecFileWidget::reloadFile(srecFileWidget* theWrappedObject)
9489 9494 {
9490 9495 ( ((PythonQtPublicPromoter_srecFileWidget*)theWrappedObject)->promoted_reloadFile());
9491 9496 }
9492 9497
9493 9498 void PythonQtWrapper_srecFileWidget::setFile(srecFileWidget* theWrappedObject, abstractBinFile* file)
9494 9499 {
9495 9500 ( ((PythonQtPublicPromoter_srecFileWidget*)theWrappedObject)->promoted_setFile(file));
9496 9501 }
9497 9502
9498 9503
@@ -1,1125 +1,1126
1 1 #include <PythonQt.h>
2 2 #include <QObject>
3 3 #include <QVariant>
4 4 #include <SocExplorerPlot.h>
5 5 #include <abstractbinfile.h>
6 6 #include <binaryfile.h>
7 7 #include <binaryfilewidget.h>
8 8 #include <elffile.h>
9 9 #include <elffilewidget.h>
10 10 #include <elfinfowdgt.h>
11 11 #include <elfparser.h>
12 12 #include <genericbinaryfilewidget.h>
13 13 #include <memsizewdgt.h>
14 14 #include <qaction.h>
15 15 #include <qbackingstore.h>
16 16 #include <qbitmap.h>
17 17 #include <qbytearray.h>
18 18 #include <qcolor.h>
19 19 #include <qcoreevent.h>
20 20 #include <qcursor.h>
21 21 #include <qevent.h>
22 22 #include <qfile.h>
23 23 #include <qfont.h>
24 24 #include <qgraphicseffect.h>
25 25 #include <qgraphicsproxywidget.h>
26 26 #include <qhexedit.h>
27 27 #include <qhexspinbox.h>
28 28 #include <qicon.h>
29 29 #include <qkeysequence.h>
30 30 #include <qlayout.h>
31 31 #include <qlineedit.h>
32 32 #include <qlist.h>
33 33 #include <qlocale.h>
34 34 #include <qmargins.h>
35 35 #include <qmetaobject.h>
36 36 #include <qobject.h>
37 37 #include <qpaintdevice.h>
38 38 #include <qpaintengine.h>
39 39 #include <qpainter.h>
40 40 #include <qpalette.h>
41 41 #include <qpen.h>
42 42 #include <qpixmap.h>
43 43 #include <qpoint.h>
44 44 #include <qrect.h>
45 45 #include <qregion.h>
46 46 #include <qscrollarea.h>
47 47 #include <qscrollbar.h>
48 48 #include <qsize.h>
49 49 #include <qsizepolicy.h>
50 50 #include <qspinbox.h>
51 51 #include <qstringlist.h>
52 52 #include <qstyle.h>
53 53 #include <qstyleoption.h>
54 54 #include <qwidget.h>
55 55 #include <qwindow.h>
56 56 #include <srecfile.h>
57 57 #include <srecfilewidget.h>
58 58 #include <tcp_terminal_client.h>
59 59 #include <xbytearray.h>
60 60
61 61
62 62
63 63 class PythonQtShell_ElfFile : public ElfFile
64 64 {
65 65 public:
66 66 PythonQtShell_ElfFile():ElfFile(),_wrapper(NULL) { };
67 67 PythonQtShell_ElfFile(const QString& File):ElfFile(File),_wrapper(NULL) { };
68 68
69 69 ~PythonQtShell_ElfFile();
70 70
71 71 virtual int closeFile();
72 72 virtual QList<codeFragment* > getFragments();
73 73 virtual bool isopened();
74 74 virtual bool openFile(const QString& File);
75 75 virtual bool toBinary(const QString& File);
76 76 virtual bool toSrec(const QString& File);
77 77
78 78 PythonQtInstanceWrapper* _wrapper;
79 79 };
80 80
81 81 class PythonQtPublicPromoter_ElfFile : public ElfFile
82 82 { public:
83 83 inline int promoted_closeFile() { return ElfFile::closeFile(); }
84 84 inline QList<codeFragment* > promoted_getFragments() { return ElfFile::getFragments(); }
85 85 inline bool promoted_isopened() { return ElfFile::isopened(); }
86 86 inline bool promoted_openFile(const QString& File) { return ElfFile::openFile(File); }
87 87 inline bool promoted_toBinary(const QString& File) { return ElfFile::toBinary(File); }
88 88 inline bool promoted_toSrec(const QString& File) { return ElfFile::toSrec(File); }
89 89 };
90 90
91 91 class PythonQtWrapper_ElfFile : public QObject
92 92 { Q_OBJECT
93 93 public:
94 94 public slots:
95 95 ElfFile* new_ElfFile();
96 96 ElfFile* new_ElfFile(const QString& File);
97 97 void delete_ElfFile(ElfFile* obj) { delete obj; }
98 98 int closeFile(ElfFile* theWrappedObject);
99 99 QString getABI(ElfFile* theWrappedObject);
100 100 QString getArchitecture(ElfFile* theWrappedObject);
101 101 QString getClass(ElfFile* theWrappedObject);
102 102 QString getEndianness(ElfFile* theWrappedObject);
103 103 qint64 getEntryPointAddress(ElfFile* theWrappedObject);
104 104 QList<codeFragment* > getFragments(ElfFile* theWrappedObject);
105 105 QList<codeFragment* > getFragments(ElfFile* theWrappedObject, QStringList fragmentList);
106 106 int getSectionCount(ElfFile* theWrappedObject);
107 107 bool getSectionData(ElfFile* theWrappedObject, int index, char** buffer);
108 108 qint64 getSectionDatasz(ElfFile* theWrappedObject, int index);
109 109 int getSectionIndex(ElfFile* theWrappedObject, QString name);
110 110 qint64 getSectionMemsz(ElfFile* theWrappedObject, int index);
111 111 QString getSectionName(ElfFile* theWrappedObject, int index);
112 112 qint64 getSectionPaddr(ElfFile* theWrappedObject, int index);
113 113 QString getSectionType(ElfFile* theWrappedObject, int index);
114 114 int getSegmentCount(ElfFile* theWrappedObject);
115 115 qint64 getSegmentFilesz(ElfFile* theWrappedObject, int index);
116 116 QString getSegmentFlags(ElfFile* theWrappedObject, int index);
117 117 qint64 getSegmentMemsz(ElfFile* theWrappedObject, int index);
118 118 qint64 getSegmentOffset(ElfFile* theWrappedObject, int index);
119 119 qint64 getSegmentPaddr(ElfFile* theWrappedObject, int index);
120 120 QString getSegmentType(ElfFile* theWrappedObject, int index);
121 121 qint64 getSegmentVaddr(ElfFile* theWrappedObject, int index);
122 122 quint64 getSymbolAddress(ElfFile* theWrappedObject, int index);
123 123 int getSymbolCount(ElfFile* theWrappedObject);
124 int getSymbolIndex(ElfFile* theWrappedObject, const QString& name);
124 125 QString getSymbolLinkType(ElfFile* theWrappedObject, int index);
125 126 QString getSymbolName(ElfFile* theWrappedObject, int index);
126 127 int getSymbolSectionIndex(ElfFile* theWrappedObject, int index);
127 128 QString getSymbolSectionName(ElfFile* theWrappedObject, int index);
128 129 quint64 getSymbolSize(ElfFile* theWrappedObject, int index);
129 130 QString getSymbolType(ElfFile* theWrappedObject, int index);
130 131 QString getType(ElfFile* theWrappedObject);
131 132 qint64 getVersion(ElfFile* theWrappedObject);
132 133 bool isBigEndian(ElfFile* theWrappedObject);
133 134 bool static_ElfFile_isElf(const QString& File);
134 135 bool isLitleEndian(ElfFile* theWrappedObject);
135 136 bool iself(ElfFile* theWrappedObject);
136 137 bool isopened(ElfFile* theWrappedObject);
137 138 bool openFile(ElfFile* theWrappedObject, const QString& File);
138 139 bool sectionIsNobits(ElfFile* theWrappedObject, int index);
139 140 bool toBinary(ElfFile* theWrappedObject, const QString& File);
140 141 bool toSrec(ElfFile* theWrappedObject, const QString& File);
141 142 };
142 143
143 144
144 145
145 146
146 147
147 148 class PythonQtShell_MemSizeWdgt : public MemSizeWdgt
148 149 {
149 150 public:
150 151 PythonQtShell_MemSizeWdgt(QWidget* parent = 0):MemSizeWdgt(parent),_wrapper(NULL) { };
151 152 PythonQtShell_MemSizeWdgt(int defaultSize, QWidget* parent = 0):MemSizeWdgt(defaultSize, parent),_wrapper(NULL) { };
152 153
153 154 ~PythonQtShell_MemSizeWdgt();
154 155
155 156 virtual void actionEvent(QActionEvent* arg__1);
156 157 virtual void changeEvent(QEvent* arg__1);
157 158 virtual void childEvent(QChildEvent* arg__1);
158 159 virtual void closeEvent(QCloseEvent* arg__1);
159 160 virtual void contextMenuEvent(QContextMenuEvent* arg__1);
160 161 virtual void customEvent(QEvent* arg__1);
161 162 virtual int devType() const;
162 163 virtual void dragEnterEvent(QDragEnterEvent* arg__1);
163 164 virtual void dragLeaveEvent(QDragLeaveEvent* arg__1);
164 165 virtual void dragMoveEvent(QDragMoveEvent* arg__1);
165 166 virtual void dropEvent(QDropEvent* arg__1);
166 167 virtual void enterEvent(QEvent* arg__1);
167 168 virtual bool event(QEvent* arg__1);
168 169 virtual bool eventFilter(QObject* arg__1, QEvent* arg__2);
169 170 virtual void focusInEvent(QFocusEvent* arg__1);
170 171 virtual bool focusNextPrevChild(bool next);
171 172 virtual void focusOutEvent(QFocusEvent* arg__1);
172 173 virtual bool hasHeightForWidth() const;
173 174 virtual int heightForWidth(int arg__1) const;
174 175 virtual void hideEvent(QHideEvent* arg__1);
175 176 virtual void initPainter(QPainter* painter) const;
176 177 virtual void inputMethodEvent(QInputMethodEvent* arg__1);
177 178 virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const;
178 179 virtual void keyPressEvent(QKeyEvent* arg__1);
179 180 virtual void keyReleaseEvent(QKeyEvent* arg__1);
180 181 virtual void leaveEvent(QEvent* arg__1);
181 182 virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const;
182 183 virtual QSize minimumSizeHint() const;
183 184 virtual void mouseDoubleClickEvent(QMouseEvent* arg__1);
184 185 virtual void mouseMoveEvent(QMouseEvent* arg__1);
185 186 virtual void mousePressEvent(QMouseEvent* arg__1);
186 187 virtual void mouseReleaseEvent(QMouseEvent* arg__1);
187 188 virtual void moveEvent(QMoveEvent* arg__1);
188 189 virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result);
189 190 virtual QPaintEngine* paintEngine() const;
190 191 virtual void paintEvent(QPaintEvent* arg__1);
191 192 virtual QPaintDevice* redirected(QPoint* offset) const;
192 193 virtual void resizeEvent(QResizeEvent* arg__1);
193 194 virtual QPainter* sharedPainter() const;
194 195 virtual void showEvent(QShowEvent* arg__1);
195 196 virtual QSize sizeHint() const;
196 197 virtual void tabletEvent(QTabletEvent* arg__1);
197 198 virtual void timerEvent(QTimerEvent* arg__1);
198 199 virtual void wheelEvent(QWheelEvent* arg__1);
199 200
200 201 PythonQtInstanceWrapper* _wrapper;
201 202 };
202 203
203 204 class PythonQtWrapper_MemSizeWdgt : public QObject
204 205 { Q_OBJECT
205 206 public:
206 207 public slots:
207 208 MemSizeWdgt* new_MemSizeWdgt(QWidget* parent = 0);
208 209 MemSizeWdgt* new_MemSizeWdgt(int defaultSize, QWidget* parent = 0);
209 210 void delete_MemSizeWdgt(MemSizeWdgt* obj) { delete obj; }
210 211 int getsize(MemSizeWdgt* theWrappedObject);
211 212 void setMaximum(MemSizeWdgt* theWrappedObject, unsigned int max);
212 213 void show(MemSizeWdgt* theWrappedObject);
213 214 void updateSizeValue(MemSizeWdgt* theWrappedObject);
214 215 };
215 216
216 217
217 218
218 219
219 220
220 221 class PythonQtShell_QHexEdit : public QHexEdit
221 222 {
222 223 public:
223 224 PythonQtShell_QHexEdit(QWidget* parent = 0):QHexEdit(parent),_wrapper(NULL) { };
224 225
225 226 ~PythonQtShell_QHexEdit();
226 227
227 228 virtual void actionEvent(QActionEvent* arg__1);
228 229 virtual void changeEvent(QEvent* arg__1);
229 230 virtual void childEvent(QChildEvent* arg__1);
230 231 virtual void closeEvent(QCloseEvent* arg__1);
231 232 virtual void contextMenuEvent(QContextMenuEvent* arg__1);
232 233 virtual void customEvent(QEvent* arg__1);
233 234 virtual int devType() const;
234 235 virtual void dragEnterEvent(QDragEnterEvent* arg__1);
235 236 virtual void dragLeaveEvent(QDragLeaveEvent* arg__1);
236 237 virtual void dragMoveEvent(QDragMoveEvent* arg__1);
237 238 virtual void dropEvent(QDropEvent* arg__1);
238 239 virtual void enterEvent(QEvent* arg__1);
239 240 virtual bool event(QEvent* arg__1);
240 241 virtual bool eventFilter(QObject* arg__1, QEvent* arg__2);
241 242 virtual void focusInEvent(QFocusEvent* arg__1);
242 243 virtual bool focusNextPrevChild(bool next);
243 244 virtual void focusOutEvent(QFocusEvent* arg__1);
244 245 virtual bool hasHeightForWidth() const;
245 246 virtual int heightForWidth(int arg__1) const;
246 247 virtual void hideEvent(QHideEvent* arg__1);
247 248 virtual void initPainter(QPainter* painter) const;
248 249 virtual void inputMethodEvent(QInputMethodEvent* arg__1);
249 250 virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const;
250 251 virtual void keyPressEvent(QKeyEvent* arg__1);
251 252 virtual void keyReleaseEvent(QKeyEvent* arg__1);
252 253 virtual void leaveEvent(QEvent* arg__1);
253 254 virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const;
254 255 virtual void mouseDoubleClickEvent(QMouseEvent* arg__1);
255 256 virtual void mouseMoveEvent(QMouseEvent* arg__1);
256 257 virtual void mousePressEvent(QMouseEvent* arg__1);
257 258 virtual void mouseReleaseEvent(QMouseEvent* arg__1);
258 259 virtual void moveEvent(QMoveEvent* arg__1);
259 260 virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result);
260 261 virtual QPaintEngine* paintEngine() const;
261 262 virtual void paintEvent(QPaintEvent* arg__1);
262 263 virtual QPaintDevice* redirected(QPoint* offset) const;
263 264 virtual void resizeEvent(QResizeEvent* arg__1);
264 265 virtual void scrollContentsBy(int dx, int dy);
265 266 virtual void setupViewport(QWidget* viewport);
266 267 virtual QPainter* sharedPainter() const;
267 268 virtual void showEvent(QShowEvent* arg__1);
268 269 virtual void tabletEvent(QTabletEvent* arg__1);
269 270 virtual void timerEvent(QTimerEvent* arg__1);
270 271 virtual bool viewportEvent(QEvent* arg__1);
271 272 virtual QSize viewportSizeHint() const;
272 273 virtual void wheelEvent(QWheelEvent* arg__1);
273 274
274 275 PythonQtInstanceWrapper* _wrapper;
275 276 };
276 277
277 278 class PythonQtWrapper_QHexEdit : public QObject
278 279 { Q_OBJECT
279 280 public:
280 281 public slots:
281 282 QHexEdit* new_QHexEdit(QWidget* parent = 0);
282 283 void delete_QHexEdit(QHexEdit* obj) { delete obj; }
283 284 QColor addressAreaColor(QHexEdit* theWrappedObject);
284 285 int addressOffset(QHexEdit* theWrappedObject);
285 286 int cursorPosition(QHexEdit* theWrappedObject);
286 287 QByteArray data(QHexEdit* theWrappedObject);
287 288 const QFont* font(QHexEdit* theWrappedObject) const;
288 289 int getSelectionBegin(QHexEdit* theWrappedObject);
289 290 int getSelectionEnd(QHexEdit* theWrappedObject);
290 291 QColor highlightingColor(QHexEdit* theWrappedObject);
291 292 int indexOf(QHexEdit* theWrappedObject, const QByteArray& ba, int from = 0) const;
292 293 void insert(QHexEdit* theWrappedObject, int i, char ch);
293 294 void insert(QHexEdit* theWrappedObject, int i, const QByteArray& ba);
294 295 bool isReadOnly(QHexEdit* theWrappedObject);
295 296 int lastIndexOf(QHexEdit* theWrappedObject, const QByteArray& ba, int from = 0) const;
296 297 bool overwriteMode(QHexEdit* theWrappedObject);
297 298 void remove(QHexEdit* theWrappedObject, int pos, int len = 1);
298 299 void replace(QHexEdit* theWrappedObject, int pos, int len, const QByteArray& after);
299 300 void resetSelection(QHexEdit* theWrappedObject);
300 301 void resetSelection(QHexEdit* theWrappedObject, int pos);
301 302 QColor selectionColor(QHexEdit* theWrappedObject);
302 303 QString selectionToReadableString(QHexEdit* theWrappedObject);
303 304 void setAddressAreaColor(QHexEdit* theWrappedObject, const QColor& color);
304 305 void setAddressOffset(QHexEdit* theWrappedObject, int offset);
305 306 void setCursorPosition(QHexEdit* theWrappedObject, int cusorPos);
306 307 void setData(QHexEdit* theWrappedObject, const QByteArray& data);
307 308 void setFont(QHexEdit* theWrappedObject, const QFont& arg__1);
308 309 void setHighlightingColor(QHexEdit* theWrappedObject, const QColor& color);
309 310 void setOverwriteMode(QHexEdit* theWrappedObject, bool arg__1);
310 311 void setReadOnly(QHexEdit* theWrappedObject, bool arg__1);
311 312 void setSelection(QHexEdit* theWrappedObject, int pos);
312 313 void setSelectionColor(QHexEdit* theWrappedObject, const QColor& color);
313 314 QString toReadableString(QHexEdit* theWrappedObject);
314 315 };
315 316
316 317
317 318
318 319
319 320
320 321 class PythonQtShell_QHexSpinBox : public QHexSpinBox
321 322 {
322 323 public:
323 324 PythonQtShell_QHexSpinBox(QWidget* parent = 0):QHexSpinBox(parent),_wrapper(NULL) { };
324 325
325 326 ~PythonQtShell_QHexSpinBox();
326 327
327 328 virtual void actionEvent(QActionEvent* arg__1);
328 329 virtual void changeEvent(QEvent* event);
329 330 virtual void childEvent(QChildEvent* arg__1);
330 331 virtual void clear();
331 332 virtual void closeEvent(QCloseEvent* event);
332 333 virtual void contextMenuEvent(QContextMenuEvent* event);
333 334 virtual void customEvent(QEvent* arg__1);
334 335 virtual int devType() const;
335 336 virtual void dragEnterEvent(QDragEnterEvent* arg__1);
336 337 virtual void dragLeaveEvent(QDragLeaveEvent* arg__1);
337 338 virtual void dragMoveEvent(QDragMoveEvent* arg__1);
338 339 virtual void dropEvent(QDropEvent* arg__1);
339 340 virtual void enterEvent(QEvent* arg__1);
340 341 virtual bool event(QEvent* event);
341 342 virtual bool eventFilter(QObject* arg__1, QEvent* arg__2);
342 343 virtual void fixup(QString& str) const;
343 344 virtual void focusInEvent(QFocusEvent* event);
344 345 virtual bool focusNextPrevChild(bool next);
345 346 virtual void focusOutEvent(QFocusEvent* event);
346 347 virtual bool hasHeightForWidth() const;
347 348 virtual int heightForWidth(int arg__1) const;
348 349 virtual void hideEvent(QHideEvent* event);
349 350 virtual void initPainter(QPainter* painter) const;
350 351 virtual void inputMethodEvent(QInputMethodEvent* arg__1);
351 352 virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const;
352 353 virtual void keyPressEvent(QKeyEvent* event);
353 354 virtual void keyReleaseEvent(QKeyEvent* event);
354 355 virtual void leaveEvent(QEvent* arg__1);
355 356 virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const;
356 357 virtual void mouseDoubleClickEvent(QMouseEvent* arg__1);
357 358 virtual void mouseMoveEvent(QMouseEvent* event);
358 359 virtual void mousePressEvent(QMouseEvent* event);
359 360 virtual void mouseReleaseEvent(QMouseEvent* event);
360 361 virtual void moveEvent(QMoveEvent* arg__1);
361 362 virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result);
362 363 virtual QPaintEngine* paintEngine() const;
363 364 virtual void paintEvent(QPaintEvent* event);
364 365 virtual QPaintDevice* redirected(QPoint* offset) const;
365 366 virtual void resizeEvent(QResizeEvent* event);
366 367 virtual QPainter* sharedPainter() const;
367 368 virtual void showEvent(QShowEvent* event);
368 369 virtual void stepBy(int steps);
369 370 virtual QAbstractSpinBox::StepEnabled stepEnabled() const;
370 371 virtual void tabletEvent(QTabletEvent* arg__1);
371 372 virtual QString textFromValue(int value) const;
372 373 virtual void timerEvent(QTimerEvent* event);
373 374 virtual QValidator::State validate(QString& input, int& pos) const;
374 375 virtual int valueFromText(const QString& text) const;
375 376 virtual void wheelEvent(QWheelEvent* event);
376 377
377 378 PythonQtInstanceWrapper* _wrapper;
378 379 };
379 380
380 381 class PythonQtPublicPromoter_QHexSpinBox : public QHexSpinBox
381 382 { public:
382 383 inline QString promoted_textFromValue(int value) const { return QHexSpinBox::textFromValue(value); }
383 384 inline QValidator::State promoted_validate(QString& input, int& pos) const { return QHexSpinBox::validate(input, pos); }
384 385 inline int promoted_valueFromText(const QString& text) const { return QHexSpinBox::valueFromText(text); }
385 386 };
386 387
387 388 class PythonQtWrapper_QHexSpinBox : public QObject
388 389 { Q_OBJECT
389 390 public:
390 391 public slots:
391 392 QHexSpinBox* new_QHexSpinBox(QWidget* parent = 0);
392 393 void delete_QHexSpinBox(QHexSpinBox* obj) { delete obj; }
393 394 void show(QHexSpinBox* theWrappedObject);
394 395 QString textFromValue(QHexSpinBox* theWrappedObject, int value) const;
395 396 QValidator::State validate(QHexSpinBox* theWrappedObject, QString& input, int& pos) const;
396 397 int valueFromText(QHexSpinBox* theWrappedObject, const QString& text) const;
397 398 };
398 399
399 400
400 401
401 402
402 403
403 404 class PythonQtShell_SocExplorerPlot : public SocExplorerPlot
404 405 {
405 406 public:
406 407 PythonQtShell_SocExplorerPlot(QWidget* parent = 0):SocExplorerPlot(parent),_wrapper(NULL) { };
407 408
408 409 ~PythonQtShell_SocExplorerPlot();
409 410
410 411 virtual void actionEvent(QActionEvent* arg__1);
411 412 virtual void changeEvent(QEvent* arg__1);
412 413 virtual void childEvent(QChildEvent* arg__1);
413 414 virtual void closeEvent(QCloseEvent* arg__1);
414 415 virtual void contextMenuEvent(QContextMenuEvent* arg__1);
415 416 virtual void customEvent(QEvent* arg__1);
416 417 virtual int devType() const;
417 418 virtual void dragEnterEvent(QDragEnterEvent* arg__1);
418 419 virtual void dragLeaveEvent(QDragLeaveEvent* arg__1);
419 420 virtual void dragMoveEvent(QDragMoveEvent* arg__1);
420 421 virtual void dropEvent(QDropEvent* arg__1);
421 422 virtual void enterEvent(QEvent* arg__1);
422 423 virtual bool event(QEvent* arg__1);
423 424 virtual bool eventFilter(QObject* arg__1, QEvent* arg__2);
424 425 virtual void focusInEvent(QFocusEvent* arg__1);
425 426 virtual bool focusNextPrevChild(bool next);
426 427 virtual void focusOutEvent(QFocusEvent* arg__1);
427 428 virtual bool hasHeightForWidth() const;
428 429 virtual int heightForWidth(int arg__1) const;
429 430 virtual void hideEvent(QHideEvent* arg__1);
430 431 virtual void initPainter(QPainter* painter) const;
431 432 virtual void inputMethodEvent(QInputMethodEvent* arg__1);
432 433 virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const;
433 434 virtual void keyPressEvent(QKeyEvent* arg__1);
434 435 virtual void keyReleaseEvent(QKeyEvent* arg__1);
435 436 virtual void leaveEvent(QEvent* arg__1);
436 437 virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const;
437 438 virtual QSize minimumSizeHint() const;
438 439 virtual void mouseDoubleClickEvent(QMouseEvent* arg__1);
439 440 virtual void mouseMoveEvent(QMouseEvent* arg__1);
440 441 virtual void mousePressEvent(QMouseEvent* arg__1);
441 442 virtual void mouseReleaseEvent(QMouseEvent* arg__1);
442 443 virtual void moveEvent(QMoveEvent* arg__1);
443 444 virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result);
444 445 virtual QPaintEngine* paintEngine() const;
445 446 virtual void paintEvent(QPaintEvent* arg__1);
446 447 virtual QPaintDevice* redirected(QPoint* offset) const;
447 448 virtual void resizeEvent(QResizeEvent* arg__1);
448 449 virtual QPainter* sharedPainter() const;
449 450 virtual void showEvent(QShowEvent* arg__1);
450 451 virtual QSize sizeHint() const;
451 452 virtual void tabletEvent(QTabletEvent* arg__1);
452 453 virtual void timerEvent(QTimerEvent* arg__1);
453 454 virtual void wheelEvent(QWheelEvent* arg__1);
454 455
455 456 PythonQtInstanceWrapper* _wrapper;
456 457 };
457 458
458 459 class PythonQtPublicPromoter_SocExplorerPlot : public SocExplorerPlot
459 460 { public:
460 461 inline void promoted_keyPressEvent(QKeyEvent* arg__1) { SocExplorerPlot::keyPressEvent(arg__1); }
461 462 inline void promoted_keyReleaseEvent(QKeyEvent* arg__1) { SocExplorerPlot::keyReleaseEvent(arg__1); }
462 463 inline void promoted_mouseMoveEvent(QMouseEvent* arg__1) { SocExplorerPlot::mouseMoveEvent(arg__1); }
463 464 inline void promoted_mousePressEvent(QMouseEvent* arg__1) { SocExplorerPlot::mousePressEvent(arg__1); }
464 465 inline void promoted_mouseReleaseEvent(QMouseEvent* arg__1) { SocExplorerPlot::mouseReleaseEvent(arg__1); }
465 466 inline void promoted_wheelEvent(QWheelEvent* arg__1) { SocExplorerPlot::wheelEvent(arg__1); }
466 467 };
467 468
468 469 class PythonQtWrapper_SocExplorerPlot : public QObject
469 470 { Q_OBJECT
470 471 public:
471 472 public slots:
472 473 SocExplorerPlot* new_SocExplorerPlot(QWidget* parent = 0);
473 474 void delete_SocExplorerPlot(SocExplorerPlot* obj) { delete obj; }
474 475 int addGraph(SocExplorerPlot* theWrappedObject);
475 476 void addGraphData(SocExplorerPlot* theWrappedObject, int graphIndex, QList<QVariant > x, QList<QVariant > y);
476 477 void addGraphData(SocExplorerPlot* theWrappedObject, int graphIndex, QVariant x, QVariant y);
477 478 QPen getGraphPen(SocExplorerPlot* theWrappedObject, int graphIndex);
478 479 void keyPressEvent(SocExplorerPlot* theWrappedObject, QKeyEvent* arg__1);
479 480 void keyReleaseEvent(SocExplorerPlot* theWrappedObject, QKeyEvent* arg__1);
480 481 void mouseMoveEvent(SocExplorerPlot* theWrappedObject, QMouseEvent* arg__1);
481 482 void mousePressEvent(SocExplorerPlot* theWrappedObject, QMouseEvent* arg__1);
482 483 void mouseReleaseEvent(SocExplorerPlot* theWrappedObject, QMouseEvent* arg__1);
483 484 void removeAllGraphs(SocExplorerPlot* theWrappedObject);
484 485 bool removeGraph(SocExplorerPlot* theWrappedObject, int graphIndex);
485 486 void replot(SocExplorerPlot* theWrappedObject);
486 487 void rescaleAxis(SocExplorerPlot* theWrappedObject);
487 488 void setAdaptativeSampling(SocExplorerPlot* theWrappedObject, int graphIndex, bool enable);
488 489 void setGraphData(SocExplorerPlot* theWrappedObject, int graphIndex, QList<QVariant > x, QList<QVariant > y);
489 490 void setGraphLineStyle(SocExplorerPlot* theWrappedObject, int graphIndex, QString lineStyle);
490 491 void setGraphName(SocExplorerPlot* theWrappedObject, int graphIndex, QString name);
491 492 void setGraphPen(SocExplorerPlot* theWrappedObject, int graphIndex, QPen pen);
492 493 void setGraphScatterStyle(SocExplorerPlot* theWrappedObject, int graphIndex, QString scatterStyle);
493 494 void setLegendFont(SocExplorerPlot* theWrappedObject, QFont font);
494 495 void setLegendSelectedFont(SocExplorerPlot* theWrappedObject, QFont font);
495 496 void setTitle(SocExplorerPlot* theWrappedObject, QString title);
496 497 void setXaxisDateTimeFormat(SocExplorerPlot* theWrappedObject, const QString& format);
497 498 void setXaxisLabel(SocExplorerPlot* theWrappedObject, QString label);
498 499 void setXaxisRange(SocExplorerPlot* theWrappedObject, double lower, double upper);
499 500 void setYaxisLabel(SocExplorerPlot* theWrappedObject, QString label);
500 501 void setYaxisRange(SocExplorerPlot* theWrappedObject, double lower, double upper);
501 502 void show(SocExplorerPlot* theWrappedObject);
502 503 void wheelEvent(SocExplorerPlot* theWrappedObject, QWheelEvent* arg__1);
503 504 };
504 505
505 506
506 507
507 508
508 509
509 510 class PythonQtShell_TCP_Terminal_Client : public TCP_Terminal_Client
510 511 {
511 512 public:
512 513 PythonQtShell_TCP_Terminal_Client(QObject* parent = 0):TCP_Terminal_Client(parent),_wrapper(NULL) { };
513 514
514 515 ~PythonQtShell_TCP_Terminal_Client();
515 516
516 517 virtual void childEvent(QChildEvent* arg__1);
517 518 virtual void customEvent(QEvent* arg__1);
518 519 virtual bool event(QEvent* arg__1);
519 520 virtual bool eventFilter(QObject* arg__1, QEvent* arg__2);
520 521 virtual void timerEvent(QTimerEvent* arg__1);
521 522
522 523 PythonQtInstanceWrapper* _wrapper;
523 524 };
524 525
525 526 class PythonQtWrapper_TCP_Terminal_Client : public QObject
526 527 { Q_OBJECT
527 528 public:
528 529 public slots:
529 530 TCP_Terminal_Client* new_TCP_Terminal_Client(QObject* parent = 0);
530 531 void delete_TCP_Terminal_Client(TCP_Terminal_Client* obj) { delete obj; }
531 532 void connectToServer(TCP_Terminal_Client* theWrappedObject);
532 533 void connectToServer(TCP_Terminal_Client* theWrappedObject, const QString& IP, int port);
533 534 bool isConnected(TCP_Terminal_Client* theWrappedObject);
534 535 void sendText(TCP_Terminal_Client* theWrappedObject, const QString& text);
535 536 void startServer(TCP_Terminal_Client* theWrappedObject);
536 537 void startServer(TCP_Terminal_Client* theWrappedObject, int port);
537 538 };
538 539
539 540
540 541
541 542
542 543
543 544 class PythonQtWrapper_XByteArray : public QObject
544 545 { Q_OBJECT
545 546 public:
546 547 public slots:
547 548 XByteArray* new_XByteArray();
548 549 void delete_XByteArray(XByteArray* obj) { delete obj; }
549 550 int addressOffset(XByteArray* theWrappedObject);
550 551 int addressWidth(XByteArray* theWrappedObject);
551 552 QChar asciiChar(XByteArray* theWrappedObject, int index);
552 553 QByteArray* data(XByteArray* theWrappedObject);
553 554 bool dataChanged(XByteArray* theWrappedObject, int i);
554 555 QByteArray dataChanged(XByteArray* theWrappedObject, int i, int len);
555 556 QByteArray* insert(XByteArray* theWrappedObject, int i, char ch);
556 557 QByteArray* insert(XByteArray* theWrappedObject, int i, const QByteArray& ba);
557 558 int realAddressNumbers(XByteArray* theWrappedObject);
558 559 QByteArray* remove(XByteArray* theWrappedObject, int pos, int len);
559 560 QByteArray* replace(XByteArray* theWrappedObject, int index, char ch);
560 561 QByteArray* replace(XByteArray* theWrappedObject, int index, const QByteArray& ba);
561 562 QByteArray* replace(XByteArray* theWrappedObject, int index, int length, const QByteArray& ba);
562 563 void setAddressOffset(XByteArray* theWrappedObject, int offset);
563 564 void setAddressWidth(XByteArray* theWrappedObject, int width);
564 565 void setData(XByteArray* theWrappedObject, QByteArray data);
565 566 void setDataChanged(XByteArray* theWrappedObject, int i, bool state);
566 567 void setDataChanged(XByteArray* theWrappedObject, int i, const QByteArray& state);
567 568 int size(XByteArray* theWrappedObject);
568 569 QString toRedableString(XByteArray* theWrappedObject, int start = 0, int end = -1);
569 570 };
570 571
571 572
572 573
573 574
574 575
575 576 class PythonQtShell_abstractBinFile : public abstractBinFile
576 577 {
577 578 public:
578 579 PythonQtShell_abstractBinFile():abstractBinFile(),_wrapper(NULL) { };
579 580
580 581 ~PythonQtShell_abstractBinFile();
581 582
582 583 virtual void childEvent(QChildEvent* arg__1);
583 584 virtual int closeFile();
584 585 virtual void customEvent(QEvent* arg__1);
585 586 virtual bool event(QEvent* arg__1);
586 587 virtual bool eventFilter(QObject* arg__1, QEvent* arg__2);
587 588 virtual QList<codeFragment* > getFragments();
588 589 virtual bool isopened();
589 590 virtual bool openFile(const QString& File);
590 591 virtual void timerEvent(QTimerEvent* arg__1);
591 592 virtual bool toBinary(const QString& File);
592 593 virtual bool toSrec(const QString& File);
593 594
594 595 PythonQtInstanceWrapper* _wrapper;
595 596 };
596 597
597 598 class PythonQtPublicPromoter_abstractBinFile : public abstractBinFile
598 599 { public:
599 600 inline int promoted_closeFile() { return closeFile(); }
600 601 inline QList<codeFragment* > promoted_getFragments() { return getFragments(); }
601 602 inline bool promoted_isopened() { return isopened(); }
602 603 inline bool promoted_openFile(const QString& File) { return openFile(File); }
603 604 inline bool promoted_toBinary(const QString& File) { return toBinary(File); }
604 605 inline bool promoted_toSrec(const QString& File) { return toSrec(File); }
605 606 };
606 607
607 608 class PythonQtWrapper_abstractBinFile : public QObject
608 609 { Q_OBJECT
609 610 public:
610 611 public slots:
611 612 abstractBinFile* new_abstractBinFile();
612 613 void delete_abstractBinFile(abstractBinFile* obj) { delete obj; }
613 614 int closeFile(abstractBinFile* theWrappedObject);
614 615 QList<codeFragment* > getFragments(abstractBinFile* theWrappedObject);
615 616 bool isopened(abstractBinFile* theWrappedObject);
616 617 bool openFile(abstractBinFile* theWrappedObject, const QString& File);
617 618 bool toBinary(abstractBinFile* theWrappedObject, const QString& File);
618 619 bool toSrec(abstractBinFile* theWrappedObject, const QString& File);
619 620 void py_set_litleendian(abstractBinFile* theWrappedObject, bool litleendian){ theWrappedObject->litleendian = litleendian; }
620 621 bool py_get_litleendian(abstractBinFile* theWrappedObject){ return theWrappedObject->litleendian; }
621 622 };
622 623
623 624
624 625
625 626
626 627
627 628 class PythonQtShell_abstractBinFileWidget : public abstractBinFileWidget
628 629 {
629 630 public:
630 631 PythonQtShell_abstractBinFileWidget(QWidget* parent = 0):abstractBinFileWidget(parent),_wrapper(NULL) { };
631 632
632 633 ~PythonQtShell_abstractBinFileWidget();
633 634
634 635 virtual void actionEvent(QActionEvent* arg__1);
635 636 virtual void changeEvent(QEvent* arg__1);
636 637 virtual void childEvent(QChildEvent* arg__1);
637 638 virtual void closeEvent(QCloseEvent* arg__1);
638 639 virtual void contextMenuEvent(QContextMenuEvent* arg__1);
639 640 virtual void customEvent(QEvent* arg__1);
640 641 virtual int devType() const;
641 642 virtual void dragEnterEvent(QDragEnterEvent* arg__1);
642 643 virtual void dragLeaveEvent(QDragLeaveEvent* arg__1);
643 644 virtual void dragMoveEvent(QDragMoveEvent* arg__1);
644 645 virtual void dropEvent(QDropEvent* arg__1);
645 646 virtual void enterEvent(QEvent* arg__1);
646 647 virtual bool event(QEvent* arg__1);
647 648 virtual bool eventFilter(QObject* arg__1, QEvent* arg__2);
648 649 virtual void focusInEvent(QFocusEvent* arg__1);
649 650 virtual bool focusNextPrevChild(bool next);
650 651 virtual void focusOutEvent(QFocusEvent* arg__1);
651 652 virtual bool hasHeightForWidth() const;
652 653 virtual int heightForWidth(int arg__1) const;
653 654 virtual void hideEvent(QHideEvent* arg__1);
654 655 virtual void initPainter(QPainter* painter) const;
655 656 virtual void inputMethodEvent(QInputMethodEvent* arg__1);
656 657 virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const;
657 658 virtual void keyPressEvent(QKeyEvent* arg__1);
658 659 virtual void keyReleaseEvent(QKeyEvent* arg__1);
659 660 virtual void leaveEvent(QEvent* arg__1);
660 661 virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const;
661 662 virtual QSize minimumSizeHint() const;
662 663 virtual void mouseDoubleClickEvent(QMouseEvent* arg__1);
663 664 virtual void mouseMoveEvent(QMouseEvent* arg__1);
664 665 virtual void mousePressEvent(QMouseEvent* arg__1);
665 666 virtual void mouseReleaseEvent(QMouseEvent* arg__1);
666 667 virtual void moveEvent(QMoveEvent* arg__1);
667 668 virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result);
668 669 virtual QPaintEngine* paintEngine() const;
669 670 virtual void paintEvent(QPaintEvent* arg__1);
670 671 virtual QPaintDevice* redirected(QPoint* offset) const;
671 672 virtual void reloadFile();
672 673 virtual void resizeEvent(QResizeEvent* arg__1);
673 674 virtual void setFile(abstractBinFile* file);
674 675 virtual QPainter* sharedPainter() const;
675 676 virtual void showEvent(QShowEvent* arg__1);
676 677 virtual QSize sizeHint() const;
677 678 virtual void tabletEvent(QTabletEvent* arg__1);
678 679 virtual void timerEvent(QTimerEvent* arg__1);
679 680 virtual void wheelEvent(QWheelEvent* arg__1);
680 681
681 682 PythonQtInstanceWrapper* _wrapper;
682 683 };
683 684
684 685 class PythonQtPublicPromoter_abstractBinFileWidget : public abstractBinFileWidget
685 686 { public:
686 687 inline void promoted_reloadFile() { reloadFile(); }
687 688 inline void promoted_setFile(abstractBinFile* file) { setFile(file); }
688 689 };
689 690
690 691 class PythonQtWrapper_abstractBinFileWidget : public QObject
691 692 { Q_OBJECT
692 693 public:
693 694 public slots:
694 695 abstractBinFileWidget* new_abstractBinFileWidget(QWidget* parent = 0);
695 696 void delete_abstractBinFileWidget(abstractBinFileWidget* obj) { delete obj; }
696 697 void reloadFile(abstractBinFileWidget* theWrappedObject);
697 698 void setFile(abstractBinFileWidget* theWrappedObject, abstractBinFile* file);
698 699 };
699 700
700 701
701 702
702 703
703 704
704 705 class PythonQtShell_binaryFile : public binaryFile
705 706 {
706 707 public:
707 708 PythonQtShell_binaryFile():binaryFile(),_wrapper(NULL) { };
708 709 PythonQtShell_binaryFile(const QString& File):binaryFile(File),_wrapper(NULL) { };
709 710 PythonQtShell_binaryFile(const QStringList& Files):binaryFile(Files),_wrapper(NULL) { };
710 711
711 712 ~PythonQtShell_binaryFile();
712 713
713 714 virtual int closeFile();
714 715 virtual QList<codeFragment* > getFragments();
715 716 virtual bool isopened();
716 717 virtual bool openFile(const QString& File);
717 718 virtual bool toBinary(const QString& fileName);
718 719 virtual bool toSrec(const QString& fileName);
719 720
720 721 PythonQtInstanceWrapper* _wrapper;
721 722 };
722 723
723 724 class PythonQtPublicPromoter_binaryFile : public binaryFile
724 725 { public:
725 726 inline int promoted_closeFile() { return binaryFile::closeFile(); }
726 727 inline QList<codeFragment* > promoted_getFragments() { return binaryFile::getFragments(); }
727 728 inline bool promoted_isopened() { return binaryFile::isopened(); }
728 729 inline bool promoted_openFile(const QString& File) { return binaryFile::openFile(File); }
729 730 inline bool promoted_toBinary(const QString& fileName) { return binaryFile::toBinary(fileName); }
730 731 inline bool promoted_toSrec(const QString& fileName) { return binaryFile::toSrec(fileName); }
731 732 };
732 733
733 734 class PythonQtWrapper_binaryFile : public QObject
734 735 { Q_OBJECT
735 736 public:
736 737 public slots:
737 738 binaryFile* new_binaryFile();
738 739 binaryFile* new_binaryFile(const QString& File);
739 740 binaryFile* new_binaryFile(const QStringList& Files);
740 741 void delete_binaryFile(binaryFile* obj) { delete obj; }
741 742 int closeFile(binaryFile* theWrappedObject);
742 743 codeFragment* getFragment(binaryFile* theWrappedObject, int index);
743 744 int getFragmentAddress(binaryFile* theWrappedObject, int index);
744 745 bool getFragmentData(binaryFile* theWrappedObject, int index, char** buffer);
745 746 QString getFragmentHeader(binaryFile* theWrappedObject, int index);
746 747 int getFragmentSize(binaryFile* theWrappedObject, int index);
747 748 QList<codeFragment* > getFragments(binaryFile* theWrappedObject);
748 749 int getFragmentsCount(binaryFile* theWrappedObject);
749 750 bool isopened(binaryFile* theWrappedObject);
750 751 bool openFile(binaryFile* theWrappedObject, const QString& File);
751 752 bool openFiles(binaryFile* theWrappedObject, const QStringList& Files);
752 753 bool static_binaryFile_toBinary(QList<codeFragment* > fragments, const QString& File);
753 754 bool toBinary(binaryFile* theWrappedObject, const QString& fileName);
754 755 bool toSrec(binaryFile* theWrappedObject, const QString& fileName);
755 756 };
756 757
757 758
758 759
759 760
760 761
761 762 class PythonQtShell_binaryFileWidget : public binaryFileWidget
762 763 {
763 764 public:
764 765 PythonQtShell_binaryFileWidget(QWidget* parent = 0):binaryFileWidget(parent),_wrapper(NULL) { };
765 766
766 767 ~PythonQtShell_binaryFileWidget();
767 768
768 769 virtual void reloadFile();
769 770 virtual void setFile(abstractBinFile* file);
770 771
771 772 PythonQtInstanceWrapper* _wrapper;
772 773 };
773 774
774 775 class PythonQtPublicPromoter_binaryFileWidget : public binaryFileWidget
775 776 { public:
776 777 inline void promoted_reloadFile() { binaryFileWidget::reloadFile(); }
777 778 inline void promoted_setFile(abstractBinFile* file) { binaryFileWidget::setFile(file); }
778 779 };
779 780
780 781 class PythonQtWrapper_binaryFileWidget : public QObject
781 782 { Q_OBJECT
782 783 public:
783 784 public slots:
784 785 binaryFileWidget* new_binaryFileWidget(QWidget* parent = 0);
785 786 void delete_binaryFileWidget(binaryFileWidget* obj) { delete obj; }
786 787 void reloadFile(binaryFileWidget* theWrappedObject);
787 788 void setFile(binaryFileWidget* theWrappedObject, abstractBinFile* file);
788 789 };
789 790
790 791
791 792
792 793
793 794
794 795 class PythonQtShell_codeFragment : public codeFragment
795 796 {
796 797 public:
797 798 PythonQtShell_codeFragment():codeFragment(),_wrapper(NULL) { };
798 799 PythonQtShell_codeFragment(char* data, quint64 size, quint64 address):codeFragment(data, size, address),_wrapper(NULL) { };
799 800
800 801 ~PythonQtShell_codeFragment();
801 802
802 803
803 804 PythonQtInstanceWrapper* _wrapper;
804 805 };
805 806
806 807 class PythonQtWrapper_codeFragment : public QObject
807 808 { Q_OBJECT
808 809 public:
809 810 public slots:
810 811 codeFragment* new_codeFragment();
811 812 codeFragment* new_codeFragment(char* data, quint64 size, quint64 address);
812 813 void delete_codeFragment(codeFragment* obj) { delete obj; }
813 814 void py_set_address(codeFragment* theWrappedObject, quint64 address){ theWrappedObject->address = address; }
814 815 quint64 py_get_address(codeFragment* theWrappedObject){ return theWrappedObject->address; }
815 816 void py_set_data(codeFragment* theWrappedObject, char* data){ theWrappedObject->data = data; }
816 817 char* py_get_data(codeFragment* theWrappedObject){ return theWrappedObject->data; }
817 818 void py_set_header(codeFragment* theWrappedObject, QString header){ theWrappedObject->header = header; }
818 819 QString py_get_header(codeFragment* theWrappedObject){ return theWrappedObject->header; }
819 820 void py_set_size(codeFragment* theWrappedObject, quint64 size){ theWrappedObject->size = size; }
820 821 quint64 py_get_size(codeFragment* theWrappedObject){ return theWrappedObject->size; }
821 822 };
822 823
823 824
824 825
825 826
826 827
827 828 class PythonQtShell_elfFileWidget : public elfFileWidget
828 829 {
829 830 public:
830 831 PythonQtShell_elfFileWidget(QWidget* parent = 0):elfFileWidget(parent),_wrapper(NULL) { };
831 832
832 833 ~PythonQtShell_elfFileWidget();
833 834
834 835 virtual void reloadFile();
835 836 virtual void setFile(abstractBinFile* file);
836 837
837 838 PythonQtInstanceWrapper* _wrapper;
838 839 };
839 840
840 841 class PythonQtPublicPromoter_elfFileWidget : public elfFileWidget
841 842 { public:
842 843 inline void promoted_reloadFile() { elfFileWidget::reloadFile(); }
843 844 inline void promoted_setFile(abstractBinFile* file) { elfFileWidget::setFile(file); }
844 845 };
845 846
846 847 class PythonQtWrapper_elfFileWidget : public QObject
847 848 { Q_OBJECT
848 849 public:
849 850 public slots:
850 851 elfFileWidget* new_elfFileWidget(QWidget* parent = 0);
851 852 void delete_elfFileWidget(elfFileWidget* obj) { delete obj; }
852 853 void reloadFile(elfFileWidget* theWrappedObject);
853 854 void setFile(elfFileWidget* theWrappedObject, abstractBinFile* file);
854 855 };
855 856
856 857
857 858
858 859
859 860
860 861 class PythonQtShell_elfInfoWdgt : public elfInfoWdgt
861 862 {
862 863 public:
863 864 PythonQtShell_elfInfoWdgt(QWidget* parent = 0):elfInfoWdgt(parent),_wrapper(NULL) { };
864 865
865 866 ~PythonQtShell_elfInfoWdgt();
866 867
867 868 virtual void actionEvent(QActionEvent* arg__1);
868 869 virtual void changeEvent(QEvent* arg__1);
869 870 virtual void childEvent(QChildEvent* arg__1);
870 871 virtual void closeEvent(QCloseEvent* arg__1);
871 872 virtual void contextMenuEvent(QContextMenuEvent* arg__1);
872 873 virtual void customEvent(QEvent* arg__1);
873 874 virtual int devType() const;
874 875 virtual void dragEnterEvent(QDragEnterEvent* arg__1);
875 876 virtual void dragLeaveEvent(QDragLeaveEvent* arg__1);
876 877 virtual void dragMoveEvent(QDragMoveEvent* arg__1);
877 878 virtual void dropEvent(QDropEvent* arg__1);
878 879 virtual void enterEvent(QEvent* arg__1);
879 880 virtual bool event(QEvent* arg__1);
880 881 virtual bool eventFilter(QObject* arg__1, QEvent* arg__2);
881 882 virtual void focusInEvent(QFocusEvent* arg__1);
882 883 virtual bool focusNextPrevChild(bool next);
883 884 virtual void focusOutEvent(QFocusEvent* arg__1);
884 885 virtual bool hasHeightForWidth() const;
885 886 virtual int heightForWidth(int arg__1) const;
886 887 virtual void hideEvent(QHideEvent* arg__1);
887 888 virtual void initPainter(QPainter* painter) const;
888 889 virtual void inputMethodEvent(QInputMethodEvent* arg__1);
889 890 virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const;
890 891 virtual void keyPressEvent(QKeyEvent* arg__1);
891 892 virtual void keyReleaseEvent(QKeyEvent* arg__1);
892 893 virtual void leaveEvent(QEvent* arg__1);
893 894 virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const;
894 895 virtual QSize minimumSizeHint() const;
895 896 virtual void mouseDoubleClickEvent(QMouseEvent* arg__1);
896 897 virtual void mouseMoveEvent(QMouseEvent* arg__1);
897 898 virtual void mousePressEvent(QMouseEvent* arg__1);
898 899 virtual void mouseReleaseEvent(QMouseEvent* arg__1);
899 900 virtual void moveEvent(QMoveEvent* arg__1);
900 901 virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result);
901 902 virtual QPaintEngine* paintEngine() const;
902 903 virtual void paintEvent(QPaintEvent* arg__1);
903 904 virtual QPaintDevice* redirected(QPoint* offset) const;
904 905 virtual void resizeEvent(QResizeEvent* arg__1);
905 906 virtual QPainter* sharedPainter() const;
906 907 virtual void showEvent(QShowEvent* arg__1);
907 908 virtual QSize sizeHint() const;
908 909 virtual void tabletEvent(QTabletEvent* arg__1);
909 910 virtual void timerEvent(QTimerEvent* arg__1);
910 911 virtual void wheelEvent(QWheelEvent* arg__1);
911 912
912 913 PythonQtInstanceWrapper* _wrapper;
913 914 };
914 915
915 916 class PythonQtWrapper_elfInfoWdgt : public QObject
916 917 { Q_OBJECT
917 918 public:
918 919 public slots:
919 920 elfInfoWdgt* new_elfInfoWdgt(QWidget* parent = 0);
920 921 void delete_elfInfoWdgt(elfInfoWdgt* obj) { delete obj; }
921 922 };
922 923
923 924
924 925
925 926
926 927
927 928 class PythonQtWrapper_elfparser : public QObject
928 929 { Q_OBJECT
929 930 public:
930 931 public slots:
931 932 elfparser* new_elfparser();
932 933 void delete_elfparser(elfparser* obj) { delete obj; }
933 934 int closeFile(elfparser* theWrappedObject);
934 935 QString getABI(elfparser* theWrappedObject);
935 936 QString getArchitecture(elfparser* theWrappedObject);
936 937 QString getClass(elfparser* theWrappedObject);
937 938 QString getEndianness(elfparser* theWrappedObject);
938 939 qint64 getEntryPointAddress(elfparser* theWrappedObject);
939 940 bool getSectionData(elfparser* theWrappedObject, int index, char** buffer);
940 941 qint64 getSectionDatasz(elfparser* theWrappedObject, int index);
941 942 qint64 getSectionMemsz(elfparser* theWrappedObject, int index);
942 943 QString getSectionName(elfparser* theWrappedObject, int index);
943 944 qint64 getSectionPaddr(elfparser* theWrappedObject, int index);
944 945 QString getSectionType(elfparser* theWrappedObject, int index);
945 946 int getSectioncount(elfparser* theWrappedObject);
946 947 qint64 getSegmentFilesz(elfparser* theWrappedObject, int index);
947 948 QString getSegmentFlags(elfparser* theWrappedObject, int index);
948 949 qint64 getSegmentMemsz(elfparser* theWrappedObject, int index);
949 950 qint64 getSegmentOffset(elfparser* theWrappedObject, int index);
950 951 qint64 getSegmentPaddr(elfparser* theWrappedObject, int index);
951 952 QString getSegmentType(elfparser* theWrappedObject, int index);
952 953 qint64 getSegmentVaddr(elfparser* theWrappedObject, int index);
953 954 int getSegmentcount(elfparser* theWrappedObject);
954 955 QString getType(elfparser* theWrappedObject);
955 956 qint64 getVersion(elfparser* theWrappedObject);
956 957 bool static_elfparser_isElf(const QString& File);
957 958 bool iself(elfparser* theWrappedObject);
958 959 bool isopened(elfparser* theWrappedObject);
959 960 int setFilename(elfparser* theWrappedObject, const QString& name);
960 961 };
961 962
962 963
963 964
964 965
965 966
966 967 class PythonQtShell_genericBinaryFileWidget : public genericBinaryFileWidget
967 968 {
968 969 public:
969 970 PythonQtShell_genericBinaryFileWidget(QWidget* parent = 0):genericBinaryFileWidget(parent),_wrapper(NULL) { };
970 971
971 972 ~PythonQtShell_genericBinaryFileWidget();
972 973
973 974 virtual void actionEvent(QActionEvent* arg__1);
974 975 virtual void changeEvent(QEvent* arg__1);
975 976 virtual void childEvent(QChildEvent* arg__1);
976 977 virtual void closeEvent(QCloseEvent* arg__1);
977 978 virtual void contextMenuEvent(QContextMenuEvent* arg__1);
978 979 virtual void customEvent(QEvent* arg__1);
979 980 virtual int devType() const;
980 981 virtual void dragEnterEvent(QDragEnterEvent* arg__1);
981 982 virtual void dragLeaveEvent(QDragLeaveEvent* arg__1);
982 983 virtual void dragMoveEvent(QDragMoveEvent* arg__1);
983 984 virtual void dropEvent(QDropEvent* arg__1);
984 985 virtual void enterEvent(QEvent* arg__1);
985 986 virtual bool event(QEvent* arg__1);
986 987 virtual bool eventFilter(QObject* arg__1, QEvent* arg__2);
987 988 virtual void focusInEvent(QFocusEvent* arg__1);
988 989 virtual bool focusNextPrevChild(bool next);
989 990 virtual void focusOutEvent(QFocusEvent* arg__1);
990 991 virtual bool hasHeightForWidth() const;
991 992 virtual int heightForWidth(int arg__1) const;
992 993 virtual void hideEvent(QHideEvent* arg__1);
993 994 virtual void initPainter(QPainter* painter) const;
994 995 virtual void inputMethodEvent(QInputMethodEvent* arg__1);
995 996 virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const;
996 997 virtual void keyPressEvent(QKeyEvent* arg__1);
997 998 virtual void keyReleaseEvent(QKeyEvent* arg__1);
998 999 virtual void leaveEvent(QEvent* arg__1);
999 1000 virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const;
1000 1001 virtual QSize minimumSizeHint() const;
1001 1002 virtual void mouseDoubleClickEvent(QMouseEvent* arg__1);
1002 1003 virtual void mouseMoveEvent(QMouseEvent* arg__1);
1003 1004 virtual void mousePressEvent(QMouseEvent* arg__1);
1004 1005 virtual void mouseReleaseEvent(QMouseEvent* arg__1);
1005 1006 virtual void moveEvent(QMoveEvent* arg__1);
1006 1007 virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result);
1007 1008 virtual QPaintEngine* paintEngine() const;
1008 1009 virtual void paintEvent(QPaintEvent* arg__1);
1009 1010 virtual QPaintDevice* redirected(QPoint* offset) const;
1010 1011 virtual void resizeEvent(QResizeEvent* arg__1);
1011 1012 virtual QPainter* sharedPainter() const;
1012 1013 virtual void showEvent(QShowEvent* arg__1);
1013 1014 virtual QSize sizeHint() const;
1014 1015 virtual void tabletEvent(QTabletEvent* arg__1);
1015 1016 virtual void timerEvent(QTimerEvent* arg__1);
1016 1017 virtual void wheelEvent(QWheelEvent* arg__1);
1017 1018
1018 1019 PythonQtInstanceWrapper* _wrapper;
1019 1020 };
1020 1021
1021 1022 class PythonQtWrapper_genericBinaryFileWidget : public QObject
1022 1023 { Q_OBJECT
1023 1024 public:
1024 1025 public slots:
1025 1026 genericBinaryFileWidget* new_genericBinaryFileWidget(QWidget* parent = 0);
1026 1027 void delete_genericBinaryFileWidget(genericBinaryFileWidget* obj) { delete obj; }
1027 1028 };
1028 1029
1029 1030
1030 1031
1031 1032
1032 1033
1033 1034 class PythonQtShell_srecFile : public srecFile
1034 1035 {
1035 1036 public:
1036 1037 PythonQtShell_srecFile():srecFile(),_wrapper(NULL) { };
1037 1038 PythonQtShell_srecFile(const QString& File):srecFile(File),_wrapper(NULL) { };
1038 1039 PythonQtShell_srecFile(const QStringList& Files):srecFile(Files),_wrapper(NULL) { };
1039 1040
1040 1041 ~PythonQtShell_srecFile();
1041 1042
1042 1043 virtual int closeFile();
1043 1044 virtual QList<codeFragment* > getFragments();
1044 1045 virtual bool isopened();
1045 1046 virtual bool openFile(const QString& File);
1046 1047 virtual bool toBinary(const QString& File);
1047 1048 virtual bool toSrec(const QString& File);
1048 1049
1049 1050 PythonQtInstanceWrapper* _wrapper;
1050 1051 };
1051 1052
1052 1053 class PythonQtPublicPromoter_srecFile : public srecFile
1053 1054 { public:
1054 1055 inline int promoted_closeFile() { return srecFile::closeFile(); }
1055 1056 inline QList<codeFragment* > promoted_getFragments() { return srecFile::getFragments(); }
1056 1057 inline bool promoted_isopened() { return srecFile::isopened(); }
1057 1058 inline bool promoted_openFile(const QString& File) { return srecFile::openFile(File); }
1058 1059 inline bool promoted_toBinary(const QString& File) { return srecFile::toBinary(File); }
1059 1060 inline bool promoted_toSrec(const QString& File) { return srecFile::toSrec(File); }
1060 1061 };
1061 1062
1062 1063 class PythonQtWrapper_srecFile : public QObject
1063 1064 { Q_OBJECT
1064 1065 public:
1065 1066 public slots:
1066 1067 srecFile* new_srecFile();
1067 1068 srecFile* new_srecFile(const QString& File);
1068 1069 srecFile* new_srecFile(const QStringList& Files);
1069 1070 void delete_srecFile(srecFile* obj) { delete obj; }
1070 1071 bool static_srecFile_checkSum(const QString& line);
1071 1072 int closeFile(srecFile* theWrappedObject);
1072 1073 codeFragment* getFragment(srecFile* theWrappedObject, int index);
1073 1074 int getFragmentAddress(srecFile* theWrappedObject, int index);
1074 1075 bool getFragmentData(srecFile* theWrappedObject, int index, char** buffer);
1075 1076 QString getFragmentHeader(srecFile* theWrappedObject, int index);
1076 1077 int getFragmentSize(srecFile* theWrappedObject, int index);
1077 1078 QList<codeFragment* > getFragments(srecFile* theWrappedObject);
1078 1079 int getFragmentsCount(srecFile* theWrappedObject);
1079 1080 bool isSREC(srecFile* theWrappedObject);
1080 1081 bool static_srecFile_isSREC(const QString& File);
1081 1082 bool isopened(srecFile* theWrappedObject);
1082 1083 int lineCount(srecFile* theWrappedObject);
1083 1084 bool mergingRecords(srecFile* theWrappedObject);
1084 1085 bool openFile(srecFile* theWrappedObject, const QString& File);
1085 1086 bool openFiles(srecFile* theWrappedObject, const QStringList& Files);
1086 1087 void setMergingRecords(srecFile* theWrappedObject, bool enabled);
1087 1088 bool toBinary(srecFile* theWrappedObject, const QString& File);
1088 1089 bool static_srecFile_toSrec(QList<codeFragment* > fragments, const QString& File);
1089 1090 bool toSrec(srecFile* theWrappedObject, const QString& File);
1090 1091 };
1091 1092
1092 1093
1093 1094
1094 1095
1095 1096
1096 1097 class PythonQtShell_srecFileWidget : public srecFileWidget
1097 1098 {
1098 1099 public:
1099 1100 PythonQtShell_srecFileWidget(QWidget* parent = 0):srecFileWidget(parent),_wrapper(NULL) { };
1100 1101
1101 1102 ~PythonQtShell_srecFileWidget();
1102 1103
1103 1104 virtual void reloadFile();
1104 1105 virtual void setFile(abstractBinFile* file);
1105 1106
1106 1107 PythonQtInstanceWrapper* _wrapper;
1107 1108 };
1108 1109
1109 1110 class PythonQtPublicPromoter_srecFileWidget : public srecFileWidget
1110 1111 { public:
1111 1112 inline void promoted_reloadFile() { srecFileWidget::reloadFile(); }
1112 1113 inline void promoted_setFile(abstractBinFile* file) { srecFileWidget::setFile(file); }
1113 1114 };
1114 1115
1115 1116 class PythonQtWrapper_srecFileWidget : public QObject
1116 1117 { Q_OBJECT
1117 1118 public:
1118 1119 public slots:
1119 1120 srecFileWidget* new_srecFileWidget(QWidget* parent = 0);
1120 1121 void delete_srecFileWidget(srecFileWidget* obj) { delete obj; }
1121 1122 void reloadFile(srecFileWidget* theWrappedObject);
1122 1123 void setFile(srecFileWidget* theWrappedObject, abstractBinFile* file);
1123 1124 };
1124 1125
1125 1126
@@ -1,89 +1,126
1 1 /*------------------------------------------------------------------------------
2 2 -- This file is a part of the SocExplorer Software
3 3 -- Copyright (C) 2011, Plasma Physics Laboratory - CNRS
4 4 --
5 5 -- This program is free software; you can redistribute it and/or modify
6 6 -- it under the terms of the GNU General Public License as published by
7 7 -- the Free Software Foundation; either version 2 of the License, or
8 8 -- (at your option) any later version.
9 9 --
10 10 -- This program is distributed in the hope that it will be useful,
11 11 -- but WITHOUT ANY WARRANTY; without even the implied warranty of
12 12 -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 13 -- GNU General Public License for more details.
14 14 --
15 15 -- You should have received a copy of the GNU General Public License
16 16 -- along with this program; if not, write to the Free Software
17 17 -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 18 -------------------------------------------------------------------------------*/
19 19 /*-- Author : Alexis Jeandet
20 20 -- Mail : alexis.jeandet@lpp.polytechnique.fr
21 21 ----------------------------------------------------------------------------*/
22 22 #include <QApplication>
23 23 #include "mainwindow.h"
24 24 #include <PythonQt.h>
25 25 #include <PythonQt_QtAll.h>
26 26 #include <gui/PythonQtScriptingConsole.h>
27 27 #include <socexplorerplugin.h>
28 28 #include <QStyle>
29 29 #include <QStyleFactory>
30 30 #include <QStringList>
31 31 #include <QFile>
32 #include <QCommandLineOption>
33 #include <QCommandLineParser>
32 34
33 void usage();
35
36 QCommandLineOption executeOption = QCommandLineOption (
37 QStringList() << "e" << "execute",
38 QCoreApplication::translate("main", "Execute given script <script>."),
39 QCoreApplication::translate("main", "script"));
40
41 QCommandLineOption debugLevelOption = QCommandLineOption (
42 QStringList() << "d" << "debug-level",
43 QCoreApplication::translate("main", "Sets debug level to <level>, higher the level is more verbose the application will be."),
44 QCoreApplication::translate("main", "level"),
45 "1");
46
47 QCommandLineOption noGUIOption = QCommandLineOption (
48 QStringList() << "n" << "no-gui",
49 QCoreApplication::translate("main", "Starts SocExplorer in batch mode[not fully implemented yet!]."));
50
51 const char* socexplorerDesc="\
52 SocExplorer is an open source generic System On Chip testing software/framework.\
53 We write this software for the development and the validation of our instrument,\
54 the Low Frequency Receiver(LFR) for the Solar Orbiter mission. This instrument is\
55 based on an actel FPGA hosting a LEON3FT processor and some peripherals. To make\
56 it more collaborative, we use a plugin based system, the main executable is SocExplorer\
57 then all the functionality are provided by plugins. Like this everybody can provide\
58 his set of plugins to handle a new SOC or just a new peripheral. SocExplorer uses\
59 PythonQt to allow user to automate some tasks such as loading some plugins, configuring\
60 them and talking with his device. SocExplorer is provided under the terms of the GNU\
61 General Public License as published by the Free Software Foundation; either version 2\
62 of the License, or (at your option) any later version.";
34 63
35 64 int main(int argc, char *argv[])
36 65 {
37 66 QApplication a(argc, argv);
38 67 QString scriptToEval;
39 QStringList args= a.arguments();
68 QApplication::setOrganizationName("LPP");
69 QApplication::setOrganizationDomain("lpp.fr");
70 QApplication::setApplicationName("SocExplorer");
71 QCommandLineParser parser;
72 parser.setApplicationDescription(socexplorerDesc);
73 parser.addHelpOption();
74 parser.addVersionOption();
40 75 bool noGUI=false;
41 for(int i=0;i<=args.count()-1;i++)
76 parser.addPositionalArgument("file", QCoreApplication::translate("main", "The Python file to execute."));
77 parser.addOption(executeOption);
78 parser.addOption(debugLevelOption);
79 parser.addOption(noGUIOption);
80 parser.process(a);
81 if(parser.isSet(executeOption))
42 82 {
43 if(((args.at(i).compare("-e")==0) || (args.at(i).compare("--execute")==0)) && (i<(args.count()-1)))
83 scriptToEval = parser.value(executeOption);
84 if(!QFile::exists(scriptToEval))
44 85 {
45 scriptToEval = args.at(i+1);
86 scriptToEval.clear();
87 }
88 }
89 else
90 {
91 QStringList posArgs = parser.positionalArguments();
92 if(posArgs.count())
93 {
94 scriptToEval = posArgs.first();
46 95 if(!QFile::exists(scriptToEval))
47 96 {
48 97 scriptToEval.clear();
49 98 }
50 else
51 qDebug() << "Will execute" << scriptToEval;
52 break;
53 99 }
54 if(((args.at(i).compare("-d")==0) || (args.at(i).compare("--debug-level")==0)) && (i<(args.count()-1)))
100 }
101 if(parser.isSet(debugLevelOption))
102 {
103 bool success;
104 int lvl;
105 lvl = parser.value(debugLevelOption).toInt(&success,10);
106 if(success)
55 107 {
56 bool success;
57 int lvl;
58 lvl = args.at(i+1).toInt(&success,10);
59 if(success)
60 {
61 SocExplorerEngine::setLogLevel(lvl);
62 }
63 }
64 if((args.at(i).compare("--no-gui")==0))
65 {
66 noGUI = true;
67 qDebug() << "CLI mode";
108 SocExplorerEngine::setLogLevel(lvl);
68 109 }
69 110 }
70
111 if(parser.isSet(noGUIOption))
112 {
113 noGUI = true;
114 qDebug() << "CLI mode";
115 }
71 116 SocExplorerMainWindow w(scriptToEval);
72 117 if(!noGUI)
73 {
74
118 {
75 119 w.show();
76 }
120 }
77 121 else
78 {
122 {
79 123
80 }
124 }
81 125 return a.exec();
82 126 }
83
84
85 void usage()
86 {
87 // TODO respect usual Linux Cli interface, socexplore [OPTION]...FILES...
88 // TODO write an usage helper.
89 }
@@ -1,240 +1,367
1 1 /*------------------------------------------------------------------------------
2 2 -- This file is a part of the SocExplorer Software
3 -- Copyright (C) 2011, Plasma Physics Laboratory - CNRS
3 -- Copyright (C) 2011-2015, Plasma Physics Laboratory - CNRS
4 4 --
5 5 -- This program is free software; you can redistribute it and/or modify
6 6 -- it under the terms of the GNU General Public License as published by
7 7 -- the Free Software Foundation; either version 2 of the License, or
8 8 -- (at your option) any later version.
9 9 --
10 10 -- This program is distributed in the hope that it will be useful,
11 11 -- but WITHOUT ANY WARRANTY; without even the implied warranty of
12 12 -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 13 -- GNU General Public License for more details.
14 14 --
15 15 -- You should have received a copy of the GNU General Public License
16 16 -- along with this program; if not, write to the Free Software
17 17 -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 18 -------------------------------------------------------------------------------*/
19 19 /*-- Author : Alexis Jeandet
20 20 -- Mail : alexis.jeandet@lpp.polytechnique.fr
21 21 ----------------------------------------------------------------------------*/
22 22 #include "mainwindow.h"
23 23 #include <QDockWidget>
24 #include <socexplorersettings.h>
25 #include <socexplorerconfigkeys.h>
24 26
25 27 SocExplorerMainWindow::SocExplorerMainWindow(QString ScriptToEval, QWidget *parent)
26 28 : QMainWindow(parent)
27 29 {
28 30 QCoreApplication::setApplicationName("SocExplorer");
29 31 QCoreApplication::setOrganizationName("LPP");
30 32 QCoreApplication::setOrganizationDomain("lpp.fr");
31 33 this->makeObjects(ScriptToEval);
32 34 this->makeLayout();
33 35 this->makeMenu();
36 SocExplorerSettings::init();
34 37 this->makeConnections();
35 38 this->setWindowIcon(QIcon(":/images/icon.png"));
36 39 this->setAcceptDrops(true);
37 40 this->pluginManager->setRootLoadable(true);
38 41 this->PythonConsoleInst->pyConsoleRunFile(ScriptToEval);
39 42 QFile file(":/styles/SocExplorer.css");
40 43 if(file.open(QIODevice::ReadOnly | QIODevice::Text))
41 44 {
42 45 qApp->setStyleSheet(file.readAll());
43 46 file.close();
44 47 }
45 48 }
46 49
47 50
48 51 void SocExplorerMainWindow::makeObjects(QString ScriptToEval)
49 52 {
50 53 Q_UNUSED(ScriptToEval)
51 54 this->p_pluginGUIlist = new QList<QDockWidget*>();
52 55 pluginsDockContainer = new QMainWindow;
56 pluginsDockContainer->setObjectName("pluginsDockContainer");
53 57 pluginsDockContainer->setWindowFlags(Qt::Widget);
54 58 pluginsDockContainer->setDockNestingEnabled(true);
59 this->sessionsActions = new QActionGroup(this);
60 this->sessionManagerAction =new QAction(tr("&Session manager"),this);
55 61 this->mainWidget = new QSplitter(Qt::Vertical);
56 62 this->appTranslator = new QTranslator;
57 63 this->Quit = new QAction(tr("&Quit"),this);
58 64 this->Quit->setShortcut(tr("CTRL+Q"));
59 65 this->ManagePlugins = new QAction(tr("&Manage Plugins"),this);
60 66 this->ManagePlugins->setShortcut(tr("CTRL+P"));
61 67 this->regsManager = new QAction(tr("&Manage registers"),this);
62 68 this->exploreRegs = new QAction(tr("&Explore registers"),this);
63 69 this->help = new QAction(tr("&Help"),this);
64 70 this->help->setShortcut(tr("CTRL+H"));
65 71 this->about = new QAction(tr("&About"),this);
72 this->p_SessionManagerDialog = new SessionManagerDialog();
66 73 socexplorerproxy::setMainWindow(this);
67 74 SocExplorerEngine::setMainWindow(this);
68 75 SocExplorerEngine::xmlModel()->scanXmlFiles();
69 76 this->regExplorer = new RegsExplorer();
70 77 this->regExplorer->setAllowedAreas(Qt::AllDockWidgetAreas);
78 this->regExplorer->setObjectName("regExplorer");
71 79 this->addPluginInterface(this->regExplorer);
72 80 this->PythonConsoleInst = new PythonConsole(socexplorerproxy::self());
73 81 this->PythonConsoleInst->addObject("SocExplorerEngine",SocExplorerEngine::self());
74 82 this->pluginManager = new dockablePluginManager();
75 83 this->toolpane = new toolBar;
84 this->toolpane->setObjectName("toolpane");
76 85 this->p_about = new aboutsocexplorer();
77 86 }
78 87
79 88 void SocExplorerMainWindow::makeLayout()
80 89 {
81 90 this->mainWidget->addWidget(pluginsDockContainer);
82 91 this->mainWidget->addWidget(this->PythonConsoleInst);
83 92 this->toolpane->setAllowedAreas(Qt::RightDockWidgetArea|Qt::LeftDockWidgetArea);
84 93 this->addDockWidget(Qt::LeftDockWidgetArea,this->toolpane);
85 94 this->toolpane->addTool(this->pluginManager);
86 95 this->setCentralWidget(this->mainWidget);
87 96 }
88 97
89 98
90 99 void SocExplorerMainWindow::makeConnections()
91 100 {
92 101 connect(socexplorerproxy::self(),SIGNAL(clearMenu()),this,SLOT(clearMenu()));
93 102 connect(this,SIGNAL(translateSig()),socexplorerproxy::self(),SLOT(updateText()));
94 103 connect(socexplorerproxy::self(),SIGNAL(addPluginGUI(QDockWidget*)),this,SLOT(addPluginInterface(QDockWidget*)));
95 104 connect(socexplorerproxy::self(),SIGNAL(removePluginGUI(QDockWidget*)),this,SLOT(removePluginInterface(QDockWidget*)));
96 105 connect(this->ManagePlugins,SIGNAL(triggered()),this,SLOT(launchPluginManager()));
97 106 connect(this->Quit,SIGNAL(triggered()),qApp,SLOT(quit()));
98 107 connect(this,SIGNAL(registerObject(QObject*,QString)),this->PythonConsoleInst,SLOT(registerObject(QObject*,QString)));
99 108 connect(socexplorerproxy::self(),SIGNAL(registerObject(QObject*,QString)),this,SIGNAL(registerObject(QObject*,QString)));
100 109 connect(this->pluginManager,SIGNAL(geteplugintree()),socexplorerproxy::self(),SLOT(geteplugintree()));
101 110 connect(socexplorerproxy::self(),SIGNAL(treeChanged(QList<socexplorerplugin*>)),this->pluginManager,SIGNAL(treeChanged(QList<socexplorerplugin*>)));
102 111 connect(this->pluginManager,SIGNAL(changeSysDriverInstName(QString,QString)),socexplorerproxy::self(),SLOT(changeSysDriverInstName(QString,QString)));
103 112 connect(this->pluginManager,SIGNAL(changeSysDriverInstName(QString,QString)),this->PythonConsoleInst,SLOT(changeSysDriverInstName(QString,QString)));
104 113 connect(this->pluginManager,SIGNAL(closeSysDriver(QString)),socexplorerproxy::self(),SLOT(closeSysDriver(QString)));
105 114 connect(this->pluginManager,SIGNAL(closeSysDriver(QString)),this->PythonConsoleInst,SLOT(removeDriver(QString)));
106 115 connect(this->pluginManager,SIGNAL(pluginselected(QString)),this,SLOT(pluginselected(QString)));
107 116 connect(this->about,SIGNAL(triggered()),this,SLOT(showAboutBox()));
108 117 connect(this->exploreRegs,SIGNAL(triggered()),this->regExplorer,SLOT(show()));
109 118
119 connect(this->sessionManagerAction, SIGNAL(triggered(bool)),this,SLOT(showSessionManager(bool)));
120 connect(this->p_SessionManagerDialog, SIGNAL(switchSession(QString)),this,SLOT(setActiveSession(QString)));
121 connect(this->p_SessionManagerDialog, SIGNAL(sessionRenamed(QString,QString)),this,SLOT(renameSession(QString,QString)));
122 connect(this->p_SessionManagerDialog, SIGNAL(sessionAdded(QString)),this,SLOT(addSession(QString)));
123 connect(this->p_SessionManagerDialog, SIGNAL(sessionRemoved(QString)),this,SLOT(removeSession(QString)));
124 connect(this->sessionsActions,SIGNAL(triggered(QAction*)),this,SLOT(setActiveSession(QAction*)));
125
110 126 this->pluginManager->connect(this->pluginManager,SIGNAL(loadSysDrviver(QString)),socexplorerproxy::self(),SLOT(loadSysDriver(QString)));
111 127 this->pluginManager->connect(this->pluginManager,SIGNAL(loadSysDriverToParent(QString,QString)),socexplorerproxy::self(),SLOT(loadSysDriverToParent(QString,QString)));
112 128
113 129 }
114 130
115 131
116 132 void SocExplorerMainWindow::launchPluginManager()
117 133 {
118
119 134 if(this->pluginManager->isHidden())
120 135 {
121 136 this->pluginManager->setHidden(false);
122 137 }
123
124 138 }
125 139
126 140
127 141 void SocExplorerMainWindow::addPluginInterface(QDockWidget *plugin)
128 142 {
129 143 plugin->setAllowedAreas(Qt::AllDockWidgetAreas);
130 144 this->pluginsDockContainer->addDockWidget(Qt::TopDockWidgetArea,plugin);
131 145 if(p_pluginGUIlist->count()!=0)
132 146 this->pluginsDockContainer->tabifyDockWidget(p_pluginGUIlist->last(),plugin);
133 147 p_pluginGUIlist->append(plugin);
134 148 }
135 149
136 150 void SocExplorerMainWindow::removePluginInterface(QDockWidget *plugin)
137 151 {
138 152 p_pluginGUIlist->removeOne(plugin);
139 153 this->pluginsDockContainer->removeDockWidget(plugin);
140 154 }
141 155
142 156
143 157 void SocExplorerMainWindow::clearMenu()
144 158 {
145 159 this->menuBar()->clear();
146 160 this->makeMenu();
147 161 }
148 162
149 163
150 164 void SocExplorerMainWindow::makeMenu()
151 165 {
152 166 this->FileMenu = menuBar()->addMenu(tr("&File"));
167 this->SessionsMenu = this->FileMenu->addMenu(tr("&Sessions"));
168 this->loadSessions();
169 this->FileMenu->addAction(this->sessionManagerAction);
170 this->SettingsMenu = menuBar()->addMenu(tr("&Settings"));
171 SocExplorerGUI::registerMenuBar(menuBar(),this->FileMenu,this->SettingsMenu);
153 172 this->PluginsMenu = menuBar()->addMenu(tr("&Plugins"));
154 173 this->ToolsMenu = menuBar()->addMenu(tr("&Tools"));
155 174 this->ToolsMenu->addAction(this->exploreRegs);
156 175 this->FileMenu->addAction(this->Quit);
157 176 socexplorerproxy::self()->makeMenu(this->PluginsMenu);
158 177 this->PluginsMenu->addAction(this->ManagePlugins);
159 178
160 179 this->helpMenu = menuBar()->addMenu(tr("Help"));
161 180 this->helpMenu->addAction(this->help);
162 181 this->helpMenu->addAction(this->about);
163 182
164 183 }
165 184
185 void SocExplorerMainWindow::loadSessions()
186 {
187 p_Sessions=this->p_SessionManagerDialog->getSessionsList();
188 QAction* sact;
189 QString stext;
190 QList<QAction*> sessions=sessionsActions->actions();
191 foreach (sact, sessions)
192 {
193 sessionsActions->removeAction(sact);
194 SessionsMenu->removeAction(sact);
195 delete sact;
196 }
197 foreach (stext, p_Sessions)
198 {
199 addSession(stext);
200 }
201 }
202
203 void SocExplorerMainWindow::savePlugins()
204 {
205
206 }
207
208 void SocExplorerMainWindow::saveCurrentSession()
209 {
210 if(p_currentSession.isEmpty())
211 {
212 SocExplorerSettings::loadSession("default");
213 }
214 SocExplorerSettings::setValue("GLOBAL","LastModified",QDate::currentDate().toString(),SocExplorerSettings::Session);
215 SocExplorerSettings::setValue(this,"DOCK_LOCATIONS",this->saveState(0),SocExplorerSettings::Session);
216 SocExplorerSettings::setValue(this,"PLUGINS_DOCK_LOCATIONS",this->pluginsDockContainer->saveState(0),SocExplorerSettings::Session);
217 SocExplorerSettings::setValue(this,"MAIN_WINDOW_GEOMETRY",this->saveGeometry(),SocExplorerSettings::Session);
218 QStringList plugins = socexplorerproxy::getPluginsList();
219 SocExplorerSettings::setValue(this,"LOADED_PLUGINS",QVariant(plugins),SocExplorerSettings::Session);
220 SocExplorerSettings::sync();
221 }
222
223 void SocExplorerMainWindow::loadCurrentSession()
224 {
225
226 QStringList plugins = SocExplorerSettings::value(this,"LOADED_PLUGINS",QVariant(),SocExplorerSettings::Session).toStringList();
227 socexplorerproxy::loadPluginsList(plugins);
228 this->restoreGeometry(SocExplorerSettings::value(this,"MAIN_WINDOW_GEOMETRY",QVariant(),SocExplorerSettings::Session).toByteArray());
229 this->restoreState(SocExplorerSettings::value(this,"DOCK_LOCATIONS",QVariant(),SocExplorerSettings::Session).toByteArray());
230 this->pluginsDockContainer->restoreState(SocExplorerSettings::value(this,"PLUGINS_DOCK_LOCATIONS",QVariant(),SocExplorerSettings::Session).toByteArray());
231 }
232
166 233
167 234 SocExplorerMainWindow::~SocExplorerMainWindow()
168 235 {
236
169 237 }
170 238
171 239
172 240 void SocExplorerMainWindow::setLangage(QAction *action)
173 241 {
174 242 QString local = action->data().toString();
175 243 QString qmPath = QDir(QString("translations")).absolutePath();
176 244 appTranslator->load(qmPath+"/socexplorer_"+local+".qm");
177 245 qApp->installTranslator(appTranslator);
178 246 emit this->translateSig();
179 247 }
180 248
181 249
182 250 void SocExplorerMainWindow::createLangMenu()
183 251 {
184 252 this->langMenu = menuBar()->addMenu(tr("&Langue"));
185 253 this->langActionGrp = new QActionGroup(this);
186 254 connect(this->langActionGrp,SIGNAL(triggered(QAction*)),this,SLOT(setLangage(QAction*)));
187 255 QDir* qmDir = new QDir(QString("translations"));
188 256 QStringList LangFiles = qmDir->entryList(QStringList("socexplorer_*.qm"));
189 257 for(int i=0;i<LangFiles.size();++i)
190 258 {
191 259 QString Local = LangFiles[i];
192 260 Local.remove(0,Local.indexOf('_')+1);
193 261 Local.chop(3);
194 262 QTranslator translator;
195 263 translator.load(LangFiles[i],qmDir->absolutePath());
196 264 QString langage = translator.translate("MainWindow","English");
197 265 QAction *action = new QAction(tr("&%1 %2").arg(i+1).arg(langage),this);
198 266 action->setCheckable(true);
199 267 action->setData(Local);
200 268 langMenu->addAction(action);
201 269 langActionGrp->addAction(action);
202 270 if(langage==tr("English"))
203 271 action->setChecked(true);
204 272 }
205 273 }
206 274
207 275
208 276 void SocExplorerMainWindow::updateText()
209 277 {
210 278 emit this->translateSig();
211 279 }
212 280
213 281
214 282
215 283 void SocExplorerMainWindow::showAboutBox()
216 284 {
217 285 p_about->show();
218 286 }
219 287
220 288 void SocExplorerMainWindow::pluginselected(const QString &instanceName)
221 289 {
222 290 socexplorerplugin* drv=socexplorerproxy::self()->getSysDriver(instanceName);
223 291 if(drv)
224 292 drv->raise();
225 293 }
226 294
295 void SocExplorerMainWindow::setActiveSession(const QString &session)
296 {
297 if(!(p_currentSession.isNull() && session=="default"))
298 saveCurrentSession();
299 socexplorerproxy::self()->close();
300 this->p_currentSession = session;
301 SocExplorerSettings::loadSession(session);
302 loadCurrentSession();
303
304 }
305
306 void SocExplorerMainWindow::setActiveSession(QAction *session)
307 {
308 this->setActiveSession(session->text());
309 }
310
311 void SocExplorerMainWindow::showSessionManager(bool)
312 {
313 this->p_SessionManagerDialog->show();
314 }
315
316 void SocExplorerMainWindow::renameSession(const QString &oldName, const QString &newName)
317 {
318 for(int i=0;i<sessionsActions->actions().count();i++)
319 {
320 if(Q_UNLIKELY(sessionsActions->actions().at(i)->text()==oldName))
321 {
322 sessionsActions->actions().at(i)->setText(newName);
323 }
324 }
325 }
326
327 void SocExplorerMainWindow::addSession(const QString &newSession)
328 {
329 QAction* sact = new QAction(newSession,this);
330 sact->setCheckable(true);
331 sact->setData(newSession);
332 if(Q_UNLIKELY(p_currentSession==newSession))
333 sact->setChecked(true);
334 sessionsActions->addAction(sact);
335 SessionsMenu->addAction(sact);
336 }
337
338 void SocExplorerMainWindow::removeSession(const QString &session)
339 {
340 QAction* sact;
341 foreach (sact, sessionsActions->actions())
342 {
343 if(Q_UNLIKELY(sact->text()==session))
344 {
345 sessionsActions->removeAction(sact);
346 SessionsMenu->removeAction(sact);
347 delete sact;
348 }
349 }
350 }
351
352
227 353
228 354
229 355 void SocExplorerMainWindow::closeEvent(QCloseEvent *event)
230 356 {
357 saveCurrentSession();
231 358 socexplorerproxy::self()->close();
232 359 qApp->closeAllWindows();
233 360 event->accept();
234 361 }
235 362
236 363
237 364
238 365
239 366
240 367
@@ -1,86 +1,102
1 1 /*------------------------------------------------------------------------------
2 2 -- This file is a part of the SocExplorer Software
3 3 -- Copyright (C) 2011, Plasma Physics Laboratory - CNRS
4 4 --
5 5 -- This program is free software; you can redistribute it and/or modify
6 6 -- it under the terms of the GNU General Public License as published by
7 7 -- the Free Software Foundation; either version 2 of the License, or
8 8 -- (at your option) any later version.
9 9 --
10 10 -- This program is distributed in the hope that it will be useful,
11 11 -- but WITHOUT ANY WARRANTY; without even the implied warranty of
12 12 -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 13 -- GNU General Public License for more details.
14 14 --
15 15 -- You should have received a copy of the GNU General Public License
16 16 -- along with this program; if not, write to the Free Software
17 17 -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 18 -------------------------------------------------------------------------------*/
19 19 /*-- Author : Alexis Jeandet
20 20 -- Mail : alexis.jeandet@lpp.polytechnique.fr
21 21 ----------------------------------------------------------------------------*/
22 22 #ifndef MAINWINDOW_H
23 23 #define MAINWINDOW_H
24 24
25 25 #include <QMainWindow>
26 26 #include <QApplication>
27 27 #include <QVBoxLayout>
28 28 #include <QIcon>
29 29 #include <QMenuBar>
30 30 #include <QMenu>
31 31 #include <QAction>
32 32 #include <QDockWidget>
33 33 #include <QTranslator>
34 34 #include <QSplitter>
35 35 #include "dockablepluginmanager.h"
36 36 #include <socexplorerproxy.h>
37 37 #include "PyWdgt/pythonconsole.h"
38 38 #include "aboutsocexplorer.h"
39 39 #include "toolbar.h"
40 40 #include "regsExplorer/regsexplorer.h"
41 #include "socexplorergui.h"
42 #include "sessionmanagerdialog.h"
41 43
42 44 class SocExplorerMainWindow : public QMainWindow
43 45 {
44 46 Q_OBJECT
45 47
48
46 49 public:
47 50 SocExplorerMainWindow(QString ScriptToEval,QWidget *parent = 0);
48 51 ~SocExplorerMainWindow();
49 QAction* Quit,*LoadPlugin,*ManagePlugins,*help,*regsManager,*exploreRegs,*about,*translateAction;
52 QAction* Quit,*LoadPlugin,*ManagePlugins,*help,*regsManager,*exploreRegs,*about,*translateAction,*sessionManagerAction;
53 QActionGroup*sessionsActions;
50 54 QActionGroup*langActionGrp;
51 QMenu* FileMenu,*PluginsMenu,*ToolsMenu,*langMenu,*helpMenu;
55 QMenu* FileMenu,*SettingsMenu,*PluginsMenu,*ToolsMenu,*langMenu,*helpMenu,*SessionsMenu;
52 56 QTranslator* appTranslator;
53 57 void createLangMenu();
54 58 void closeEvent(QCloseEvent *event);
55 59 toolBar* toolpane;
56 60
57 61
58 62 public slots:
59 63 void launchPluginManager();
60 64 void addPluginInterface(QDockWidget* plugin);
61 65 void removePluginInterface(QDockWidget* plugin);
62 66 void clearMenu();
63 67 void updateText();
64 68 void setLangage(QAction* action);
65 69 void showAboutBox();
66 70 void pluginselected(const QString& instanceName);
67
71 void setActiveSession(const QString & session);
72 void setActiveSession(QAction* session);
73 void showSessionManager(bool);
74 void renameSession(const QString& oldName,const QString& newName);
75 void addSession(const QString& newSession);
76 void removeSession(const QString& session);
68 77 signals:
69 78 void translateSig();
70 79 void registerObject(QObject* object,const QString& instanceName);
71 80
72 81 private:
73 82 void makeObjects(QString ScriptToEval);
74 83 void makeLayout();
75 84 void makeConnections();
76 85 void makeMenu();
86 void loadSessions();
87 void savePlugins();
88 void saveCurrentSession();
89 void loadCurrentSession();
77 90 QMainWindow* pluginsDockContainer;
78 91 QSplitter* mainWidget;
79 92 PythonConsole* PythonConsoleInst;
80 93 dockablePluginManager* pluginManager;
81 94 RegsExplorer* regExplorer;
82 95 aboutsocexplorer* p_about;
83 96 QList<QDockWidget*>* p_pluginGUIlist;
97 QStringList p_Sessions;
98 QString p_currentSession;
99 SessionManagerDialog* p_SessionManagerDialog;
84 100 };
85 101
86 102 #endif // MAINWINDOW_H
@@ -1,123 +1,129
1 1 #-------------------------------------------------
2 2 #
3 3 # Project created by QtCreator 2011-09-19T22:52:10
4 4 #
5 5 #-------------------------------------------------
6 6 SOCEXPLORER_ROOT = $${PWD}/..
7 7 include(../build_cfg/socexplorer.pri)
8 8
9 9 TARGET = socexplorer$${DEBUG_EXT}
10 10 TEMPLATE = app
11 11 CONFIG += pythonqt
12 12
13 13
14 14 QMAKE_LFLAGS_RELEASE += --enable-auto-import -mstackrealign
15 15 QMAKE_LFLAGS_DEBUG += --enable-auto-import -mstackrealign
16 16
17 17 include ( common/pythonQtOut/generated_cpp/PySocExplorer/PySocExplorer.pri )
18 18 include ( SocExplorerEngine/pythonQtOut/generated_cpp/PySocExplorerEngine/PySocExplorerEngine.pri )
19 19 include ( SocExplorerEngine/plugins/socexplorerplugin.prf )
20 20
21 21 INCLUDEPATH+=$${PWD} \
22 22 $${PWD}/common \
23 23 $${PWD}/common/qhexedit \
24 24 $${PWD}/common/QCustomPlot \
25 25 $${PWD}/common/genericBinaryFiles \
26 26 $${PWD}/common/genericBinaryFiles/elf \
27 27 $${PWD}/common/genericBinaryFiles/srec \
28 28 $${PWD}/common/genericBinaryFiles/BinFile \
29 29 SocExplorerEngine/engine \
30 30 SocExplorerEngine/pluginloader \
31 31 SocExplorerEngine/pluginsInterface \
32 32 SocExplorerEngine/proxy \
33 33 SocExplorerEngine/pluginManagerWdgt \
34 34 SocExplorerEngine/plugins \
35 35 SocExplorerEngine/RegisterMVS \
36 36 SocExplorerEngine/XmlEngine \
37 37 SocExplorerEngine/SOC \
38 38 SocExplorerEngine/PeripheralWidget/src \
39 39 SocExplorerEngine/memtester
40 40
41 41 win32:INCLUDEPATH+= \
42 42 $${PWD}/common/genericBinaryFiles/elf/libelfWin32/include \
43 43 $${PWD}/common/genericBinaryFiles/elf/libelfWin32/include/libelf \
44 44
45 45
46 46 RC_FILE = ../win32cfg/socexplorer.rc
47 47
48 48
49 49 unix:LIBS+=-L$${SOCEXPLORER_ROOT}/bin/linux -lsocexplorercommon$${DEBUG_EXT} -L$${SOCEXPLORER_ROOT}/bin/linux -lsocexplorerengine$${DEBUG_EXT}
50 50
51 51 win32-g++:LIBS += $${SOCEXPLORER_ROOT}/bin/win32/socexplorercommon$${DEBUG_EXT}.dll $${SOCEXPLORER_ROOT}/bin/win32/socexplorerengine$${DEBUG_EXT}.dll
52 52
53 53
54 54 unix{
55 55 translation.files = $${SOCEXPLORER_ROOT}/translations/socexplorer_fr.qm \
56 56 $${SOCEXPLORER_ROOT}/translations/socexplorer_en.qm
57 57 translation.path = $${SOCEXPLORER_TRANSLATION_INSTALL_PATH}
58 58 target.path = /usr/bin
59 59 INSTALLS += translation target
60 60 }
61 61
62 62 header.path = $$[QT_INSTALL_HEADERS]/SocExplorer/common
63 63 header.files = \
64 64 socexplorer.h
65 65 INSTALLS += header
66 66
67 67
68 68 SOURCES += main.cpp\
69 69 mainwindow.cpp \
70 70 PyWdgt/pythonconsole.cpp \
71 71 PyWdgt/pythonqtscriptingconsoledandd.cpp \
72 72 dockablepluginmanager.cpp \
73 73 toolbar.cpp \
74 74 toolbarcontainer.cpp \
75 75 aboutsocexplorer.cpp \
76 regsExplorer/regsexplorer.cpp
76 regsExplorer/regsexplorer.cpp \
77 socexplorercoresettingsgui.cpp \
78 sessionmanagerdialog.cpp
77 79
78 80 HEADERS += mainwindow.h \
79 81 PyWdgt/pythonconsole.h \
80 82 PyWdgt/pythonqtscriptingconsoledandd.h \
81 83 dockablepluginmanager.h \
82 84 toolbar.h \
83 85 toolbarcontainer.h \
84 86 socexplorer.h \
85 87 SocExplorerEngine/plugins/socexplorerplugin.h \
86 88 aboutsocexplorer.h \
87 regsExplorer/regsexplorer.h
89 regsExplorer/regsexplorer.h \
90 socexplorercoresettingsgui.h \
91 sessionmanagerdialog.h
88 92
89 93
90 94 include ( NicePyConsole/NicePyConsole.pri)
91 95
92 96 win32{
93 97 RESOURCES = ../ressources/SocExplorer.qrc
94 98 }
95 99
96 100 unix{
97 101 RESOURCES = ../ressources/SocExplorer.qrc
98 102 }
99 103
100 104 TRANSLATIONS = ../translations/socexplorer_fr.ts \
101 105 ../translations/socexplorer_en.ts
102 106
103 107 FORMS += \
104 regsExplorer/regsexplorernew.ui
108 regsExplorer/regsexplorernew.ui \
109 socexplorercoresettingsgui.ui \
110 sessionmanagerdialog.ui
105 111
106 112 DISTFILES += \
107 113 ../doc/PythonExamples/LEON3_LOAD.py \
108 114 ../doc/PythonExamples/PythonPlugin.py \
109 115 ../doc/PythonExamples/simpledemo1.py \
110 116 ../doc/PythonExamples/SocExplorerPlot.py \
111 117 ../doc/PythonExamples/SocExplorerPlot2.py \
112 118 ../doc/PythonExamples/SocExplorerPlot3.py \
113 119 ../doc/PythonExamples/tcpterminaldemo.py \
114 120 ../doc/PythonExamples/tcpterminaldemo2.py
115 121
116 122
117 123
118 124
119 125
120 126
121 127
122 128
123 129
@@ -1,17 +1,17
1 1 [Desktop Entry]
2 2 Version=1.0
3 3 Name=SocExplorer
4 4 Name[en_US]=SocExplorer
5 5
6 6 Type=Application
7 7 GenericName=Soc Explorer
8 8
9 9 Comment=Software to monitor and explore Soc devices.
10 10
11 Exec=socexplorer -e %U
11 Exec=socexplorer %U
12 12 Icon=/usr/share/SocExplorer/icon.png
13 13 Terminal=false
14 14
15 15 Categories=Electronics;Engineering;
16 16
17 17 MimeType=text/x-python;
General Comments 0
You need to be logged in to leave comments. Login now