summaryrefslogtreecommitdiffstats
path: root/chalk/plugins/viewplugins
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-03-02 02:06:02 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-03-02 02:06:02 -0600
commit5e4daf07fee2bc21375f32bd897d2011c01f648e (patch)
treed64485005d8f0d16a0d93ee8e27a3ab1ac76d2d7 /chalk/plugins/viewplugins
parent7d18baa666593a494ceea480732a8540ba471fe5 (diff)
downloadkoffice-5e4daf07fee2bc21375f32bd897d2011c01f648e.tar.gz
koffice-5e4daf07fee2bc21375f32bd897d2011c01f648e.zip
Rename additional global functions and variables for tqt3
Diffstat (limited to 'chalk/plugins/viewplugins')
-rw-r--r--chalk/plugins/viewplugins/screenshot/ksnapshot.cpp30
-rw-r--r--chalk/plugins/viewplugins/screenshot/regiongrabber.cpp2
2 files changed, 16 insertions, 16 deletions
diff --git a/chalk/plugins/viewplugins/screenshot/ksnapshot.cpp b/chalk/plugins/viewplugins/screenshot/ksnapshot.cpp
index eba5a622..1f150e8f 100644
--- a/chalk/plugins/viewplugins/screenshot/ksnapshot.cpp
+++ b/chalk/plugins/viewplugins/screenshot/ksnapshot.cpp
@@ -69,7 +69,7 @@ KSnapshot::KSnapshot(TQWidget *parent, const char *name)
#ifdef HAVE_X11_EXTENSIONS_SHAPE_H
int tmp1, tmp2;
//Check whether the extension is available
- haveXShape = XShapeQueryExtension( qt_xdisplay(), &tmp1, &tmp2 );
+ haveXShape = XShapeQueryExtension( tqt_xdisplay(), &tmp1, &tmp2 );
#endif
TQVBox *vbox = makeVBoxMainWidget();
@@ -86,7 +86,7 @@ KSnapshot::KSnapshot(TQWidget *parent, const char *name)
grabber->show();
grabber->grabMouse( waitCursor );
- snapshot = TQPixmap::grabWindow( qt_xrootwin() );
+ snapshot = TQPixmap::grabWindow( tqt_xrootwin() );
updatePreview();
grabber->releaseMouse();
grabber->hide();
@@ -307,12 +307,12 @@ Window findRealWindow( Window w, int depth = 0 )
{
if( depth > 5 )
return None;
- static Atom wm_state = XInternAtom( qt_xdisplay(), "WM_STATE", False );
+ static Atom wm_state = XInternAtom( tqt_xdisplay(), "WM_STATE", False );
Atom type;
int format;
unsigned long nitems, after;
unsigned char* prop;
- if( XGetWindowProperty( qt_xdisplay(), w, wm_state, 0, 0, False, AnyPropertyType,
+ if( XGetWindowProperty( tqt_xdisplay(), w, wm_state, 0, 0, False, AnyPropertyType,
&type, &format, &nitems, &after, &prop ) == Success ) {
if( prop != NULL )
XFree( prop );
@@ -323,7 +323,7 @@ Window findRealWindow( Window w, int depth = 0 )
Window* children;
unsigned int nchildren;
Window ret = None;
- if( XQueryTree( qt_xdisplay(), w, &root, &parent, &children, &nchildren ) != 0 ) {
+ if( XQueryTree( tqt_xdisplay(), w, &root, &parent, &children, &nchildren ) != 0 ) {
for( unsigned int i = 0;
i < nchildren && ret == None;
++i )
@@ -339,17 +339,17 @@ void KSnapshot::performGrab()
grabber->releaseMouse();
grabber->hide();
grabTimer.stop();
- XGrabServer( qt_xdisplay());
+ XGrabServer( tqt_xdisplay());
if ( mainWidget->mode() == WindowUnderCursor ) {
Window root;
Window child;
uint mask;
int rootX, rootY, winX, winY;
- XQueryPointer( qt_xdisplay(), qt_xrootwin(), &root, &child,
+ XQueryPointer( tqt_xdisplay(), tqt_xrootwin(), &root, &child,
&rootX, &rootY, &winX, &winY,
&mask);
if( child == None )
- child = qt_xrootwin();
+ child = tqt_xrootwin();
if( !mainWidget->includeDecorations()) {
Window real_child = findRealWindow( child );
if( real_child != None ) // test just in case
@@ -359,7 +359,7 @@ void KSnapshot::performGrab()
unsigned int w, h;
unsigned int border;
unsigned int depth;
- XGetGeometry( qt_xdisplay(), child, &root, &x, &y,
+ XGetGeometry( tqt_xdisplay(), child, &root, &x, &y,
&w, &h, &border, &depth );
w += 2 * border;
h += 2 * border;
@@ -367,20 +367,20 @@ void KSnapshot::performGrab()
Window parent;
Window* children;
unsigned int nchildren;
- if( XQueryTree( qt_xdisplay(), child, &root, &parent,
+ if( XQueryTree( tqt_xdisplay(), child, &root, &parent,
&children, &nchildren ) != 0 ) {
if( children != NULL )
XFree( children );
int newx, newy;
Window dummy;
- if( XTranslateCoordinates( qt_xdisplay(), parent, qt_xrootwin(),
+ if( XTranslateCoordinates( tqt_xdisplay(), parent, tqt_xrootwin(),
x, y, &newx, &newy, &dummy )) {
x = newx;
y = newy;
}
}
- snapshot = TQPixmap::grabWindow( qt_xrootwin(), x, y, w, h );
+ snapshot = TQPixmap::grabWindow( tqt_xrootwin(), x, y, w, h );
#ifdef HAVE_X11_EXTENSIONS_SHAPE_H
//No XShape - no work.
@@ -388,7 +388,7 @@ void KSnapshot::performGrab()
TQBitmap mask(w, h);
//As the first step, get the mask from XShape.
int count, order;
- XRectangle* rects = XShapeGetRectangles( qt_xdisplay(), child,
+ XRectangle* rects = XShapeGetRectangles( tqt_xdisplay(), child,
ShapeBounding, &count, &order);
//The ShapeBounding region is the outermost shape of the window;
//ShapeBounding - ShapeClipping is defined to be the border.
@@ -430,9 +430,9 @@ void KSnapshot::performGrab()
#endif
}
else {
- snapshot = TQPixmap::grabWindow( qt_xrootwin() );
+ snapshot = TQPixmap::grabWindow( tqt_xrootwin() );
}
- XUngrabServer( qt_xdisplay());
+ XUngrabServer( tqt_xdisplay());
updatePreview();
TQApplication::restoreOverrideCursor();
modified = true;
diff --git a/chalk/plugins/viewplugins/screenshot/regiongrabber.cpp b/chalk/plugins/viewplugins/screenshot/regiongrabber.cpp
index 2c80832b..a192df11 100644
--- a/chalk/plugins/viewplugins/screenshot/regiongrabber.cpp
+++ b/chalk/plugins/viewplugins/screenshot/regiongrabber.cpp
@@ -87,7 +87,7 @@ RegionGrabber::~RegionGrabber()
void RegionGrabber::initGrabber()
{
- pixmap = TQPixmap::grabWindow( qt_xrootwin() );
+ pixmap = TQPixmap::grabWindow( tqt_xrootwin() );
setPaletteBackgroundPixmap( pixmap );
showFullScreen();