IceArmy
ccde5cc418
Cleanup imports / removed very bad "import *"
2011-04-12 18:20:17 -07:00
Ariya Hidayat
528c2325e6
Merge branch 'jontuk-network-disk-cache' of https://github.com/jontuk/phantomjs into jontuk-jontuk-network-disk-cache
2011-04-12 10:17:13 -07:00
Jon Turner
e82619df4d
Removed old function declaration
2011-04-12 18:10:53 +01:00
Jon Turner
0e1e5071fb
Added option for disk cache use
2011-04-12 15:21:09 +01:00
IceArmy
16b55bba45
Fix URL qDebug in createRequest, which errored out if URL had an ordinal not in range(128)
2011-04-12 03:27:56 -07:00
IceArmy
7719e12aa7
New NetworkAccessManager
...
The new NetworkAccessManager currently:
- logs HTTP Method type
- logs HTTP Destination URL
- logs HTTP Reponse
2011-04-12 01:38:19 -07:00
IceArmy
1bdd1867ff
Remove some extra spacing on the header
2011-04-12 01:37:47 -07:00
IceArmy
6c5c23a8fb
Created README and INSTALL files
2011-04-12 01:37:09 -07:00
IceArmy
42dbe9d8f2
Fixed bug in main file where QString was not defined
...
Added message handling system
Simplified userAgent system
Added qDebug and qFatal messages
qDebug does not display unless you specify -v or --verbose on the command line
2011-04-12 01:34:20 -07:00
IceArmy
0bc48c7131
Fix usage message from tag:file to tag=file
2011-04-12 01:33:15 -07:00
IceArmy
af2cdf944d
Refactor code into separate files
2011-04-12 01:32:07 -07:00
Ariya Hidayat
e449c4ba19
Mention the contribution guide.
2011-04-09 23:55:09 -07:00
Ariya Hidayat
c1781944c7
Remove unfinished browsermode example.
2011-04-09 23:36:28 -07:00
Ariya Hidayat
e808690fd8
Default build should not litter the output with debug messages.
2011-04-09 23:04:01 -07:00
Ariya Hidayat
7280e6d5c6
For the moment, remove simulateMouseClick, includeJS, and loadJS.
...
See http://code.google.com/p/phantomjs/issues/detail?id=32 and
http://code.google.com/p/phantomjs/issues/detail?id=41 .
2011-04-09 22:40:36 -07:00
Ariya Hidayat
c0ea3d8732
Preserve last year copyright.
2011-04-09 22:37:06 -07:00
Ivan De Marino
8ed9dc1c44
Adding forgotten Include Guards.
2011-04-09 19:49:22 +01:00
Ivan De Marino
1f1e1d17e4
Amended a stupid mistake with Version String.
...
I always forget that the Pre-Compiler passes only once.
2011-04-09 19:48:58 +01:00
Ivan De Marino
be72a29c9f
Propagated License Headers.
2011-04-09 18:34:04 +01:00
Ivan De Marino
71e0612ccc
Added analysis of the HTTP Reply in the NetworkAccessManager.
2011-04-09 18:26:04 +01:00
Ivan De Marino
6ec8b3b669
New "shim" Network Access Manager, new 'browsermode' example and more.
...
The new Network Access Manager currently is designed to do just logging:
- logs HTTP Method type
- logs HTTP Destination URL
The new 'browsermode':
It's in "/examples" and make PhantomJS do just a call to "open(url)".
It has a companion shell script to help with the task.
Also, improvement for Message Handler:
messages are now prefixed with ISO Datetime.
2011-04-09 18:22:52 +01:00
Ivan De Marino
c616205620
Added a Qt Message Handler (finally).
2011-04-08 15:49:20 +01:00
Ivan De Marino
a45b8e8401
Major refactoring of the CPP code into separate classes.
...
This doesn't add ANY new feature: it's aimed only at separating code into
more manageable pieces.
Maybe it's not perfect yet, but it's a start.
2011-04-08 14:30:50 +01:00
Ivan De Marino
ce07e12c9e
Merge remote branch 'upstream/master'
2011-04-07 10:19:12 +01:00
Gabor Torok
6e485df72a
added example for waitFor function
2011-04-04 21:14:02 -07:00
IceArmy
3a7aad798e
Remove setObjectName as we don't need it
2011-04-01 20:50:51 -07:00
IceArmy
e0b869ab35
Regenerated resources, and compressed them
2011-04-01 16:48:56 -07:00
IceArmy
e52b422e3c
Added phantom.clipRect to be able to control the dimensions of the output
...
- There's 4 values: width, height, top, and left
- You can read it by, i.e. phantom.clipRect['width']
- You can set it by, phantom.clipRect = {width: 400, height:300, ...}
2011-04-01 13:37:12 -07:00
IceArmy
6888877aad
In setClipRect, remove top and left positive only limits
2011-04-01 13:21:35 -07:00
IceArmy
240e6a2c4a
Stop trashing CPU on sleep's infinite loop
2011-03-31 21:36:44 -07:00
IceArmy
f08e4faeed
Renamed some variables to get around predefined keywords
2011-03-30 16:32:03 -07:00
Ariya Hidayat
87a337f6df
Merge branch 'master' of https://github.com/wouterdebie/phantomjs into wouterdebie-master
2011-03-30 08:13:53 -07:00
IceArmy
3efc6a5ddf
General improvements
2011-03-30 05:02:16 -07:00
IceArmy
fd8fa690c4
Update usage message
2011-03-30 00:46:21 -07:00
Wouter de Bie
2a84536d95
Match coding style
2011-03-30 08:18:47 +02:00
IceArmy
e57adfe0b6
Issue 17: Make paper size for the PDF export specifiable
2011-03-29 22:54:07 -07:00
IceArmy
4926841be1
Specify js or coffee in usage message
2011-03-29 22:53:23 -07:00
Wouter de Bie
affdd9b245
Don't copy buffers, but translate the QPainter instead when clipping
2011-03-29 21:01:40 +02:00
Wouter de Bie
f96d113302
Renamed clipSize() to clipRect()
2011-03-29 20:09:45 +02:00
Wouter de Bie
7531b3311c
Renamed renderSize() to clipSize() and fixed a bug
2011-03-29 20:06:12 +02:00
Wouter de Bie
2fe2e696ee
Modified phantom.renderSize() to allow top and left parameters
2011-03-29 13:30:40 +02:00
Wouter de Bie
3e939febd4
Added phantom.renderSize() to be able to control the dimensions of the output
2011-03-29 08:39:58 +02:00
Ivan De Marino
8ac4a7962b
Separated the "usage" instructions in a text file, embedded as "resource".
...
Also:
* I added a couple of "qFatal" where it makes sense.
* Usage now mentions the fact that the input files that finish by ".coffee" are also acceptable
2011-03-24 23:20:34 -07:00
Ivan De Marino
f86bc38bc1
Separated the "usage" instructions in a text file, embedded as "resource".
...
Also:
* I added a couple of "qFatal" where it makes sense.
* Usage now mentions the fact that the input files that finish by ".coffee" are also acceptable
2011-03-24 22:43:49 +00:00
Ivan De Marino
23cfad71fa
Merge remote-tracking branch 'upstream/master'
...
Conflicts:
src/phantomjs.cpp
2011-03-24 22:00:53 +00:00
Ariya Hidayat
2182d8e54b
Add icon files for Windows and OS/2.
...
Issue: http://code.google.com/p/phantomjs/issues/detail?id=60
This improvement is provided by Salvador Parra Camacho.
2011-03-18 23:43:45 -07:00
Ariya Hidayat
1a4af0a5d0
Merge branch 'Issue_17' of https://github.com/aportale/phantomjs into aportale-Issue_17
2011-03-18 22:18:04 -07:00
IceArmy
62d798ddf8
Amend copyright date
2011-03-18 14:35:23 -07:00
Alessandro Portale
fbb524e629
Issue 17: Make paper size for the PDF export specifiable
...
http://code.google.com/p/phantomjs/issues/detail?id=17
Adding a new phantom property called "paperSize". It takes one of
the two possible dictionary variants:
{ width: '200px', height: '300px', border: '0px' }
{ format: 'A4', orientation: 'portrait', border: '1cm' }
- If no paperSize is defined, the size is defined by the web page
- supported dimension units are: mm, cm, in, px. No unit means px.
- border is optional and defaults to 0.
- supported formats are: A3, A4, A5, Legal, Letter, Tabloid
- orientation (portrait|landscape) is optional and defaults to portrait
I'm considering implementing a short form like:
phantom.paperSize = 'A4';
...needs further investigation.
2011-03-18 10:26:45 +01:00
IceArmy
162aacdc7e
Remove 2 variables from main QString() variable declaration list, as they're assigned a value not long afterward
2011-03-17 00:16:21 -07:00