summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
commitd7fee1a2ef53c7cab48946360cc6b83057b9a62c (patch)
tree80e016ca874c4154a009740b70340fd97c943de6
parentd64f4816a5047d26f5250b28c0e01d43bcec9e90 (diff)
downloadgtk-qt-engine-d7fee1a2.tar.gz
gtk-qt-engine-d7fee1a2.zip
rename the following methods:
tqparent parent tqmask mask git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/gtk-qt-engine@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
-rw-r--r--kcm_gtk/kcmgtk.cpp8
-rw-r--r--kcm_gtk/kcmgtk.h2
-rw-r--r--src/qt_qt_wrapper.cpp8
-rw-r--r--src/qt_theme_draw.c86
4 files changed, 52 insertions, 52 deletions
diff --git a/kcm_gtk/kcmgtk.cpp b/kcm_gtk/kcmgtk.cpp
index 11f1405..7c4531f 100644
--- a/kcm_gtk/kcmgtk.cpp
+++ b/kcm_gtk/kcmgtk.cpp
@@ -65,10 +65,10 @@ K_EXPORT_COMPONENT_FACTORY( kcm_gtk, KcmGtkFactory("gtk"))*/
extern "C"
{
- KCModule *create_kcmgtk( TQWidget * tqparent, const char * name )
+ KCModule *create_kcmgtk( TQWidget * parent, const char * name )
{
KGlobal::locale()->insertCatalogue( "gtkqtengine" );
- return new KcmGtk( tqparent, "kcmgtk" );
+ return new KcmGtk( parent, "kcmgtk" );
}
}
@@ -156,8 +156,8 @@ TQFont GtkRcParser::parseFont(TQString fontString)
return ret;
}
-KcmGtk::KcmGtk(TQWidget *tqparent, const char *name, const TQStringList&)
- : KCModule(tqparent, name),
+KcmGtk::KcmGtk(TQWidget *parent, const char *name, const TQStringList&)
+ : KCModule(parent, name),
myAboutData(0),
emacsDetailsDialog(NULL),
searchPathsDialog(NULL)
diff --git a/kcm_gtk/kcmgtk.h b/kcm_gtk/kcmgtk.h
index 039e39a..d778c62 100644
--- a/kcm_gtk/kcmgtk.h
+++ b/kcm_gtk/kcmgtk.h
@@ -57,7 +57,7 @@ class KcmGtk: public KCModule
static const TQString GTK_TQT_RC_FILE;
public:
- KcmGtk( TQWidget *tqparent=0, const char *name=0, const TQStringList& = TQStringList() );
+ KcmGtk( TQWidget *parent=0, const char *name=0, const TQStringList& = TQStringList() );
~KcmGtk();
virtual void load();
diff --git a/src/qt_qt_wrapper.cpp b/src/qt_qt_wrapper.cpp
index 495f869..bc99cf3 100644
--- a/src/qt_qt_wrapper.cpp
+++ b/src/qt_qt_wrapper.cpp
@@ -1756,11 +1756,11 @@ GdkGC* alternateBackgroundGc(GtkStyle* style)
gdk_colormap_alloc_color(style->colormap, &altBackColor, FALSE, TRUE);
GdkGCValues gc_values;
- GdkGCValuesMask gc_values_tqmask;
- gc_values_tqmask = GDK_GC_FOREGROUND;
+ GdkGCValuesMask gc_values_mask;
+ gc_values_mask = GDK_GC_FOREGROUND;
gc_values.foreground = altBackColor;
- altBackGC = (GdkGC*) gtk_gc_get (style->depth, style->colormap, &gc_values, gc_values_tqmask);
+ altBackGC = (GdkGC*) gtk_gc_get (style->depth, style->colormap, &gc_values, gc_values_mask);
return altBackGC;
}
@@ -2137,7 +2137,7 @@ void addIconThemeDir(const TQString& theme)
// Add this theme to the list
iconThemeDirs.append(icondir);
- // Do it again for any tqparent themes
+ // Do it again for any parent themes
TQStringList parents = iconInheritsDirs(icondir);
for ( TQStringList::Iterator it=parents.begin() ; it!=parents.end(); ++it)
addIconThemeDir((*it).stripWhiteSpace());
diff --git a/src/qt_theme_draw.c b/src/qt_theme_draw.c
index 6ceae7e..e0e826d 100644
--- a/src/qt_theme_draw.c
+++ b/src/qt_theme_draw.c
@@ -18,7 +18,7 @@
#define DETAIL(xx) ((detail) && (!strcmp(xx, detail)))
#define DETAILHAS(xx) ((detail) && (strstr(detail, xx)))
-#define PARENT(xx) ((tqparent) && (!strcmp(xx, gtk_widget_get_name(tqparent))))
+#define PARENT(xx) ((parent) && (!strcmp(xx, gtk_widget_get_name(parent))))
#ifndef max
#define max(x,y) ((x)>=(y)?(x):(y))
#endif
@@ -474,7 +474,7 @@ draw_arrow(GtkStyle* style,
if (DETAIL("arrow"))
{
GdkPixbuf *gpix;
- GtkWidget* tqparent;
+ GtkWidget* parent;
if (gdk_window_is_viewable(gtk_widget_get_parent_window(widget)))
{
gpix = gdk_pixbuf_get_from_drawable(NULL, gtk_widget_get_parent_window(widget),NULL, x, y, 0, 0, width, height);
@@ -482,8 +482,8 @@ draw_arrow(GtkStyle* style,
g_object_unref(gpix);
}
- tqparent = gtk_widget_get_parent(widget);
- drawArrow(window,style, GTK_WIDGET_STATE(tqparent), arrow_type, x, y, width, height);
+ parent = gtk_widget_get_parent(widget);
+ drawArrow(window,style, GTK_WIDGET_STATE(parent), arrow_type, x, y, width, height);
return;
}
/* if (DETAIL("menuitem"))
@@ -700,11 +700,11 @@ draw_box(GtkStyle * style,
}
if (DETAIL("button"))
{
- GtkWidget *tqparent;
+ GtkWidget *parent;
int toolbutton = 0;
- tqparent = gtk_widget_get_parent(widget);
+ parent = gtk_widget_get_parent(widget);
- if (tqparent && (GTK_IS_CLIST(tqparent) || GTK_IS_LIST(tqparent) || GTK_IS_TREE_VIEW(tqparent)))
+ if (parent && (GTK_IS_CLIST(parent) || GTK_IS_LIST(parent) || GTK_IS_TREE_VIEW(parent)))
{
drawListHeader(window,style,state_type,x,y,width,height);
return;
@@ -714,12 +714,12 @@ draw_box(GtkStyle * style,
* toolbar in gtk */
while (1)
{
- if (GTK_IS_WIDGET(tqparent))
+ if (GTK_IS_WIDGET(parent))
{
#ifdef HAVE_BONOBO
- if (GTK_IS_TOOLBAR(tqparent) || BONOBO_IS_UI_TOOLBAR(tqparent))
+ if (GTK_IS_TOOLBAR(parent) || BONOBO_IS_UI_TOOLBAR(parent))
#else
- if (GTK_IS_TOOLBAR(tqparent))
+ if (GTK_IS_TOOLBAR(parent))
#endif
{
toolbutton = 1;
@@ -728,10 +728,10 @@ draw_box(GtkStyle * style,
}
else
break;
- tqparent = gtk_widget_get_parent(tqparent);
+ parent = gtk_widget_get_parent(parent);
}
- tqparent = gtk_widget_get_parent(widget);
+ parent = gtk_widget_get_parent(widget);
if (toolbutton)
drawToolButton(window,style,state_type,x,y,width,height);
@@ -744,9 +744,9 @@ draw_box(GtkStyle * style,
int defaultButton = GTK_WIDGET_HAS_FOCUS(widget);
GtkWindow* toplevel;
- if (isBaghira && GTK_IS_BOX(tqparent) && (g_list_length(GTK_BOX(tqparent)->children) == 2))
+ if (isBaghira && GTK_IS_BOX(parent) && (g_list_length(GTK_BOX(parent)->children) == 2))
{
- child1 = g_list_first((GTK_BOX(tqparent)->children));
+ child1 = g_list_first((GTK_BOX(parent)->children));
child = ((GtkBoxChild *)child1->data)->widget;
if (GTK_IS_ENTRY(child))
{
@@ -754,7 +754,7 @@ draw_box(GtkStyle * style,
return;
}
- child1 = g_list_last((GTK_BOX(tqparent)->children));
+ child1 = g_list_last((GTK_BOX(parent)->children));
child = ((GtkBoxChild *)child1->data)->widget;
if (GTK_IS_ENTRY(child))
{
@@ -859,17 +859,17 @@ draw_flat_box(GtkStyle * style,
{
GdkColor tooltipColor;
GdkGCValues gc_values;
- GdkGCValuesMask gc_values_tqmask;
+ GdkGCValuesMask gc_values_mask;
GdkGC* tooltipGc;
tooltipColor.red = 255*257;
tooltipColor.green = 255*257;
tooltipColor.blue = 220*257;
gdk_colormap_alloc_color(style->colormap, &tooltipColor, FALSE, TRUE);
- gc_values_tqmask = GDK_GC_FOREGROUND;
+ gc_values_mask = GDK_GC_FOREGROUND;
gc_values.foreground = tooltipColor;
- tooltipGc = (GdkGC*) gtk_gc_get (style->depth, style->colormap, &gc_values, gc_values_tqmask);
+ tooltipGc = (GdkGC*) gtk_gc_get (style->depth, style->colormap, &gc_values, gc_values_mask);
gdk_draw_rectangle(window, tooltipGc, TRUE, x, y, width, height);
gdk_draw_rectangle(window, style->black_gc, FALSE, x, y, width - 1, height - 1);
@@ -1204,11 +1204,11 @@ draw_focus (GtkStyle *style,
if (gtkQtDebug)
printf("Focus Rect (%d,%d,%d,%d) Widget: %s Detail: %s\n", x, y, width, height,gtk_widget_get_name(widget),detail);
- GtkWidget* tqparent = gtk_widget_get_parent(widget);
+ GtkWidget* parent = gtk_widget_get_parent(widget);
if (GTK_IS_CHECK_BUTTON(widget) ||
GTK_IS_RADIO_BUTTON(widget) ||
- (tqparent && (GTK_IS_CLIST(tqparent) || GTK_IS_LIST(tqparent) || GTK_IS_TREE_VIEW(tqparent))))
+ (parent && (GTK_IS_CLIST(parent) || GTK_IS_LIST(parent) || GTK_IS_TREE_VIEW(parent))))
{
drawFocusRect(window, style, x, y, width, height);
}
@@ -1237,11 +1237,11 @@ draw_slider(GtkStyle * style,
GtkAdjustment* adj = gtk_range_get_adjustment(GTK_RANGE(widget));
int widgetX, widgetY;
- GtkWidget* tqparent = widget;
- while (gtk_widget_get_parent(tqparent) != NULL)
- tqparent = gtk_widget_get_parent(tqparent);
+ GtkWidget* parent = widget;
+ while (gtk_widget_get_parent(parent) != NULL)
+ parent = gtk_widget_get_parent(parent);
- gtk_widget_translate_coordinates(widget, tqparent, 0, 0, &widgetX, &widgetY);
+ gtk_widget_translate_coordinates(widget, parent, 0, 0, &widgetX, &widgetY);
if (orientation == GTK_ORIENTATION_VERTICAL)
drawScrollBarSlider(window, style, state_type, orientation, adj, x-1, y, width+2, height, y-widgetY, widget->allocation.height);
@@ -1300,13 +1300,13 @@ void draw_layout (GtkStyle *style,
if (DETAIL("accellabel") || DETAIL("label") || DETAIL("cellrenderertext"))
{
- GtkWidget* tqparent = gtk_widget_get_parent(widget);
- GtkWidget* tqparent1 = gtk_widget_get_parent(tqparent);
+ GtkWidget* parent = gtk_widget_get_parent(widget);
+ GtkWidget* parent1 = gtk_widget_get_parent(parent);
- /* printf("tqparent's names are %s->%s->%s\n", gtk_widget_get_name(widget), gtk_widget_get_name(tqparent), gtk_widget_get_name(tqparent1)); */
+ /* printf("parent's names are %s->%s->%s\n", gtk_widget_get_name(widget), gtk_widget_get_name(parent), gtk_widget_get_name(parent1)); */
/* In baghira -- even highlight the menu bar items */
- if ((GTK_IS_MENU_ITEM(tqparent) && (!GTK_IS_MENU_BAR(tqparent1) || isBaghira || isPolyester)) || GTK_IS_TREE_VIEW(widget))
+ if ((GTK_IS_MENU_ITEM(parent) && (!GTK_IS_MENU_BAR(parent1) || isBaghira || isPolyester)) || GTK_IS_TREE_VIEW(widget))
{
PangoAttrList *layoutattr;
@@ -1743,7 +1743,7 @@ static void
gtk_style_real_realize (GtkStyle *style)
{
GdkGCValues gc_values;
- GdkGCValuesMask gc_values_tqmask;
+ GdkGCValuesMask gc_values_mask;
gint i;
@@ -1771,13 +1771,13 @@ gtk_style_real_realize (GtkStyle *style)
style->white.blue = 0xffff;
gdk_colormap_alloc_color (style->colormap, &style->white, FALSE, TRUE);
- gc_values_tqmask = GDK_GC_FOREGROUND;
+ gc_values_mask = GDK_GC_FOREGROUND;
gc_values.foreground = style->black;
- style->black_gc = (GdkGC*) gtk_gc_get (style->depth, style->colormap, &gc_values, gc_values_tqmask);
+ style->black_gc = (GdkGC*) gtk_gc_get (style->depth, style->colormap, &gc_values, gc_values_mask);
gc_values.foreground = style->white;
- style->white_gc = (GdkGC*) gtk_gc_get (style->depth, style->colormap, &gc_values, gc_values_tqmask);
+ style->white_gc = (GdkGC*) gtk_gc_get (style->depth, style->colormap, &gc_values, gc_values_mask);
for (i = 0; i < 5; i++)
{
@@ -1808,28 +1808,28 @@ gtk_style_real_realize (GtkStyle *style)
style->text_aa[i].red, style->text_aa[i].green, style->text_aa[i].blue);
gc_values.foreground = style->fg[i];
- style->fg_gc[i] = (GdkGC*) gtk_gc_get (style->depth, style->colormap, &gc_values, gc_values_tqmask);
+ style->fg_gc[i] = (GdkGC*) gtk_gc_get (style->depth, style->colormap, &gc_values, gc_values_mask);
gc_values.foreground = style->bg[i];
- style->bg_gc[i] = (GdkGC*) gtk_gc_get (style->depth, style->colormap, &gc_values, gc_values_tqmask);
+ style->bg_gc[i] = (GdkGC*) gtk_gc_get (style->depth, style->colormap, &gc_values, gc_values_mask);
gc_values.foreground = style->light[i];
- style->light_gc[i] = (GdkGC*) gtk_gc_get (style->depth, style->colormap, &gc_values, gc_values_tqmask);
+ style->light_gc[i] = (GdkGC*) gtk_gc_get (style->depth, style->colormap, &gc_values, gc_values_mask);
gc_values.foreground = style->dark[i];
- style->dark_gc[i] = (GdkGC*) gtk_gc_get (style->depth, style->colormap, &gc_values, gc_values_tqmask);
+ style->dark_gc[i] = (GdkGC*) gtk_gc_get (style->depth, style->colormap, &gc_values, gc_values_mask);
gc_values.foreground = style->mid[i];
- style->mid_gc[i] = (GdkGC*) gtk_gc_get (style->depth, style->colormap, &gc_values, gc_values_tqmask);
+ style->mid_gc[i] = (GdkGC*) gtk_gc_get (style->depth, style->colormap, &gc_values, gc_values_mask);
gc_values.foreground = style->text[i];
- style->text_gc[i] = (GdkGC*) gtk_gc_get (style->depth, style->colormap, &gc_values, gc_values_tqmask);
+ style->text_gc[i] = (GdkGC*) gtk_gc_get (style->depth, style->colormap, &gc_values, gc_values_mask);
gc_values.foreground = style->base[i];
- style->base_gc[i] = (GdkGC*) gtk_gc_get (style->depth, style->colormap, &gc_values, gc_values_tqmask);
+ style->base_gc[i] = (GdkGC*) gtk_gc_get (style->depth, style->colormap, &gc_values, gc_values_mask);
gc_values.foreground = style->text_aa[i];
- style->text_aa_gc[i] = (GdkGC*) gtk_gc_get (style->depth, style->colormap, &gc_values, gc_values_tqmask);
+ style->text_aa_gc[i] = (GdkGC*) gtk_gc_get (style->depth, style->colormap, &gc_values, gc_values_mask);
}
}
@@ -1849,9 +1849,9 @@ set_background (GtkStyle *style, GdkWindow *window, GtkStateType state_type)
GdkPixmap* pix_test;
/* What kind of horrible person would store a pointer to a widget here... */
- void* tqparent = 0;
- gdk_window_get_user_data(window, &tqparent);
- if (GTK_IS_MENU((GtkWidget*) tqparent))
+ void* parent = 0;
+ gdk_window_get_user_data(window, &parent);
+ if (GTK_IS_MENU((GtkWidget*) parent))
{
pix_test = TQTENGINE_STYLE(style)->menuBackground;
}