diff options
Diffstat (limited to 'kcontrol/info')
-rw-r--r-- | kcontrol/info/info.cpp | 140 | ||||
-rw-r--r-- | kcontrol/info/info.h | 56 | ||||
-rw-r--r-- | kcontrol/info/info_aix.cpp | 76 | ||||
-rw-r--r-- | kcontrol/info/info_fbsd.cpp | 148 | ||||
-rw-r--r-- | kcontrol/info/info_generic.cpp | 22 | ||||
-rw-r--r-- | kcontrol/info/info_hpux.cpp | 216 | ||||
-rw-r--r-- | kcontrol/info/info_linux.cpp | 158 | ||||
-rw-r--r-- | kcontrol/info/info_netbsd.cpp | 90 | ||||
-rw-r--r-- | kcontrol/info/info_openbsd.cpp | 84 | ||||
-rw-r--r-- | kcontrol/info/info_osx.cpp | 42 | ||||
-rw-r--r-- | kcontrol/info/info_sgi.cpp | 26 | ||||
-rw-r--r-- | kcontrol/info/info_solaris.cpp | 76 | ||||
-rw-r--r-- | kcontrol/info/info_svr4.cpp | 38 | ||||
-rw-r--r-- | kcontrol/info/main.cpp | 26 | ||||
-rw-r--r-- | kcontrol/info/memory.cpp | 86 | ||||
-rw-r--r-- | kcontrol/info/memory.h | 42 | ||||
-rw-r--r-- | kcontrol/info/memory_linux.cpp | 4 | ||||
-rw-r--r-- | kcontrol/info/memory_osx.cpp | 2 | ||||
-rw-r--r-- | kcontrol/info/opengl.cpp | 140 |
19 files changed, 736 insertions, 736 deletions
diff --git a/kcontrol/info/info.cpp b/kcontrol/info/info.cpp index ea74ed9ac..770b2cdf3 100644 --- a/kcontrol/info/info.cpp +++ b/kcontrol/info/info.cpp @@ -27,9 +27,9 @@ be copied to kde/applnk/Settings/Information !! */ -#include <qheader.h> -#include <qwhatsthis.h> -#include <qlayout.h> +#include <tqheader.h> +#include <tqwhatsthis.h> +#include <tqlayout.h> #include <kglobalsettings.h> #include <kiconloader.h> @@ -45,16 +45,16 @@ DEFAULT_ERRORSTRING will be used... */ -static QString *GetInfo_ErrorString; /* should always point to: +static TQString *GetInfo_ErrorString; /* should always point to: KInfoListWidget::ErrorString */ static bool sorting_allowed; /* is sorting allowed by user ? */ #if defined(__linux__) -# define DEFAULT_ERRORSTRING QString::null /* i18n("Maybe the proc-filesystem is not enabled in Linux-Kernel.") */ +# define DEFAULT_ERRORSTRING TQString::null /* i18n("Maybe the proc-filesystem is not enabled in Linux-Kernel.") */ #elif defined(__hpux) -# define DEFAULT_ERRORSTRING QString::null +# define DEFAULT_ERRORSTRING TQString::null #else #define DEFAULT_ERRORSTRING i18n("Maybe this system is not completely supported yet :-(") #endif @@ -71,16 +71,16 @@ static bool sorting_allowed; /* is sorting allowed by user ? */ #define HEXDIGITS (sizeof(int)*8/4) /* 4 Bytes = 32 Bits = 8 Hex-Digits */ -static const QString Value( int val, int numbers=1 ) +static const TQString Value( int val, int numbers=1 ) { return KGlobal::locale()->formatNumber(val, 0).rightJustify(numbers); } -static const QString HexStr(unsigned long val, int digits ) +static const TQString HexStr(unsigned long val, int digits ) { - QString hexstr; + TQString hexstr; int i; - hexstr = QString::fromLatin1("0x%1").arg(val, digits, 16/*=HEX*/); + hexstr = TQString::fromLatin1("0x%1").arg(val, digits, 16/*=HEX*/); for (i=hexstr.length()-1; i>0; --i) if (hexstr[i]==' ') hexstr[i] = '0'; @@ -119,7 +119,7 @@ static struct _event_table { { 0L, 0 }}; -static QListViewItem* XServer_fill_screen_info( QListViewItem *lBox, QListViewItem *last, +static TQListViewItem* XServer_fill_screen_info( TQListViewItem *lBox, TQListViewItem *last, Display *dpy, int scr, int default_scr) { unsigned width, height; @@ -128,7 +128,7 @@ static QListViewItem* XServer_fill_screen_info( QListViewItem *lBox, QListViewIt ndepths, *depths; Screen *s = ScreenOfDisplay(dpy,scr); /* opaque structure */ - QListViewItem *item; + TQListViewItem *item; /* * there are 2.54 centimeters to an inch; so there are 25.4 millimeters. @@ -141,19 +141,19 @@ static QListViewItem* XServer_fill_screen_info( QListViewItem *lBox, QListViewIt xres = ((double)(DisplayWidth(dpy,scr) *25.4)/DisplayWidthMM(dpy,scr) ); yres = ((double)(DisplayHeight(dpy,scr)*25.4)/DisplayHeightMM(dpy,scr)); - item = new QListViewItem(lBox,last, i18n("Screen # %1").arg((int)scr,-1), - (scr==default_scr) ? i18n("(Default Screen)") : QString::null ); + item = new TQListViewItem(lBox,last, i18n("Screen # %1").arg((int)scr,-1), + (scr==default_scr) ? i18n("(Default Screen)") : TQString::null ); item->setExpandable(true); if (scr==default_scr) item->setOpen(true); - last = new QListViewItem(item, i18n("Dimensions"), + last = new TQListViewItem(item, i18n("Dimensions"), i18n("%1 x %2 Pixel (%3 x %4 mm)") .arg( (int)DisplayWidth(dpy,scr) ) .arg( (int)DisplayHeight(dpy,scr) ) .arg( (int)DisplayWidthMM(dpy,scr) ) .arg( (int)DisplayHeightMM (dpy,scr) )); - last = new QListViewItem(item, last, i18n("Resolution"), + last = new TQListViewItem(item, last, i18n("Resolution"), i18n("%1 x %2 dpi") .arg( (int)(xres+0.5) ) .arg( (int)(yres+0.5) )); @@ -162,39 +162,39 @@ static QListViewItem* XServer_fill_screen_info( QListViewItem *lBox, QListViewIt depths = 0; depths = XListDepths (dpy, scr, &ndepths); if (depths) { - QString txt; + TQString txt; for (i = 0; i < ndepths; i++) { txt = txt + Value(depths[i]); if (i < ndepths - 1) - txt = txt + QString::fromLatin1(", "); + txt = txt + TQString::fromLatin1(", "); } - last = new QListViewItem(item, last, i18n("Depths (%1)").arg(ndepths,-1), txt); + last = new TQListViewItem(item, last, i18n("Depths (%1)").arg(ndepths,-1), txt); XFree((char *) depths); } - last = new QListViewItem(item, last, i18n("Root Window ID"), + last = new TQListViewItem(item, last, i18n("Root Window ID"), HexStr((unsigned long)RootWindow(dpy,scr),HEXDIGITS)); - last = new QListViewItem(item, last, i18n("Depth of Root Window"), + last = new TQListViewItem(item, last, i18n("Depth of Root Window"), (DisplayPlanes (dpy, scr) == 1) ? i18n("%1 plane").arg(DisplayPlanes(dpy,scr)) /*singular*/ : i18n("%1 planes").arg(DisplayPlanes(dpy,scr)));/*plural*/ - last = new QListViewItem(item, last, i18n("Number of Colormaps"), + last = new TQListViewItem(item, last, i18n("Number of Colormaps"), i18n("minimum %1, maximum %2") .arg((int)MinCmapsOfScreen(s)).arg((int)MaxCmapsOfScreen(s))); - last = new QListViewItem(item, last, i18n("Default Colormap"), + last = new TQListViewItem(item, last, i18n("Default Colormap"), Value((int)DefaultColormap(dpy,scr))); - last = new QListViewItem(item, last, i18n("Default Number of Colormap Cells"), + last = new TQListViewItem(item, last, i18n("Default Number of Colormap Cells"), Value((int)DisplayCells(dpy, scr))); - last = new QListViewItem(item, last, i18n("Preallocated Pixels"), + last = new TQListViewItem(item, last, i18n("Preallocated Pixels"), i18n("Black %1, White %2") .arg(KGlobal::locale()->formatNumber(BlackPixel(dpy,scr), 0)) .arg(KGlobal::locale()->formatNumber(WhitePixel(dpy,scr), 0))); - QString YES(i18n("Yes")); - QString NO(i18n("No")); - last = new QListViewItem(item, last, i18n("Options"), + TQString YES(i18n("Yes")); + TQString NO(i18n("No")); + last = new TQListViewItem(item, last, i18n("Options"), i18n("backing-store: %1, save-unders: %2") .arg( (DoesBackingStore(s) == NotUseful) ? NO : ((DoesBackingStore(s) == Always) ? YES : i18n("When mapped")) ) @@ -202,17 +202,17 @@ static QListViewItem* XServer_fill_screen_info( QListViewItem *lBox, QListViewIt XQueryBestSize (dpy, CursorShape, RootWindow(dpy,scr), 65535, 65535, &width, &height); - last = new QListViewItem(item, last, i18n("Largest Cursor"), + last = new TQListViewItem(item, last, i18n("Largest Cursor"), (width == 65535 && height == 65535) - ? i18n("unlimited") : QString::fromLatin1("%1 x %2").arg(width).arg(height)); + ? i18n("unlimited") : TQString::fromLatin1("%1 x %2").arg(width).arg(height)); - last = new QListViewItem(item, last, i18n("Current Input Event Mask"), + last = new TQListViewItem(item, last, i18n("Current Input Event Mask"), HexStr((unsigned long)EventMaskOfScreen(s),HEXDIGITS)); item = last; struct _event_table *etp; for (etp=event_table; etp->name; etp++) { if (EventMaskOfScreen(s) & etp->value) - item = new QListViewItem(last, item, + item = new TQListViewItem(last, item, i18n("Event = %1").arg(HexStr(etp->value,HEXDIGITS)), etp->name ); } @@ -220,19 +220,19 @@ static QListViewItem* XServer_fill_screen_info( QListViewItem *lBox, QListViewIt return item; } -static const QString Order( int order ) +static const TQString Order( int order ) { if (order==LSBFirst) return i18n("LSBFirst"); else if (order==MSBFirst) return i18n("MSBFirst"); else return i18n("Unknown Order %1").arg(order); } -static const QString BitString( unsigned long n ) +static const TQString BitString( unsigned long n ) { return i18n("1 Bit", "%n Bits", n); // singular & plural form of "%d Bit" } -static const QString ByteString( unsigned long n ) +static const TQString ByteString( unsigned long n ) { /* explanation in BR #52640 (http://bugs.kde.org/show_bug.cgi?id=52640) */ if (n == 1) @@ -242,7 +242,7 @@ static const QString ByteString( unsigned long n ) .arg(KGlobal::locale()->formatNumber(n,0)); } -static bool GetInfo_XServer_Generic( QListView *lBox ) +static bool GetInfo_XServer_Generic( TQListView *lBox ) { /* Many parts of this source are taken from the X11-program "xdpyinfo" */ @@ -252,8 +252,8 @@ static bool GetInfo_XServer_Generic( QListView *lBox ) Display *dpy; XPixmapFormatValues *pmf; - QString str,txt; - QListViewItem *last, *item, *next; + TQString str,txt; + TQListViewItem *last, *item, *next; dpy = XOpenDisplay(0); if (!dpy) @@ -263,24 +263,24 @@ static bool GetInfo_XServer_Generic( QListView *lBox ) lBox->addColumn(i18n("Value") ); sorting_allowed = false; - next = new QListViewItem(lBox, i18n("Server Information")); + next = new TQListViewItem(lBox, i18n("Server Information")); next->setPixmap(0, SmallIcon("kcmx")); next->setOpen(true); next->setSelectable(false); next->setExpandable(false); - last = new QListViewItem(next, i18n("Name of the Display"), + last = new TQListViewItem(next, i18n("Name of the Display"), DisplayString(dpy)); - last = new QListViewItem(next, last, i18n("Vendor String"), QString::fromLatin1(ServerVendor(dpy))); - last = new QListViewItem(next, last, i18n("Vendor Release Number"), + last = new TQListViewItem(next, last, i18n("Vendor String"), TQString::fromLatin1(ServerVendor(dpy))); + last = new TQListViewItem(next, last, i18n("Vendor Release Number"), Value((int)VendorRelease(dpy))); - last = new QListViewItem(next, last, i18n("Version Number"), - QString::fromLatin1("%1.%2").arg((int)ProtocolVersion(dpy)) + last = new TQListViewItem(next, last, i18n("Version Number"), + TQString::fromLatin1("%1.%2").arg((int)ProtocolVersion(dpy)) .arg((int)ProtocolRevision(dpy))); - last = item = new QListViewItem(next, last, i18n("Available Screens")); + last = item = new TQListViewItem(next, last, i18n("Available Screens")); last->setOpen(true); last->setExpandable(true); for (i=0; i<ScreenCount(dpy); i++) { @@ -288,22 +288,22 @@ static bool GetInfo_XServer_Generic( QListView *lBox ) if (i==0) item->setOpen(true); } - last = new QListViewItem( next, last, i18n("Supported Extensions") ); + last = new TQListViewItem( next, last, i18n("Supported Extensions") ); item = last; int extCount; char **extensions = XListExtensions( dpy, &extCount ); for ( i = 0; i < extCount; i++ ) { - item = new QListViewItem( last, item, QString::fromLatin1( extensions[i] ) ); + item = new TQListViewItem( last, item, TQString::fromLatin1( extensions[i] ) ); } XFreeExtensionList( extensions ); pmf = XListPixmapFormats(dpy, &n); - last = item = new QListViewItem(next, last, i18n("Supported Pixmap Formats")); + last = item = new TQListViewItem(next, last, i18n("Supported Pixmap Formats")); if (pmf) { last->setExpandable(true); for (i=0; i<n; i++) { - item = new QListViewItem(last, item, + item = new TQListViewItem(last, item, i18n("Pixmap Format #%1").arg(i+1), i18n("%1 BPP, Depth: %2, Scanline padding: %3") .arg(pmf[i].bits_per_pixel) @@ -315,21 +315,21 @@ static bool GetInfo_XServer_Generic( QListView *lBox ) req_size = XExtendedMaxRequestSize(dpy); if (!req_size) req_size = XMaxRequestSize(dpy); - last = new QListViewItem(next, last, i18n("Maximum Request Size"), + last = new TQListViewItem(next, last, i18n("Maximum Request Size"), ByteString(req_size*4)); - last = new QListViewItem(next, last, i18n("Motion Buffer Size"), + last = new TQListViewItem(next, last, i18n("Motion Buffer Size"), ByteString(XDisplayMotionBufferSize(dpy))); - last = item = new QListViewItem(next, last, i18n("Bitmap")); + last = item = new TQListViewItem(next, last, i18n("Bitmap")); last->setExpandable(true); - item = new QListViewItem(last, item, i18n("Unit"), + item = new TQListViewItem(last, item, i18n("Unit"), Value(BitmapUnit(dpy)) ); - item = new QListViewItem(last, item, i18n("Order"), + item = new TQListViewItem(last, item, i18n("Order"), Order(BitmapBitOrder(dpy))); - item = new QListViewItem(last, item, i18n("Padding"), + item = new TQListViewItem(last, item, i18n("Padding"), Value(BitmapPad(dpy))); - last = new QListViewItem(next, last, i18n("Image Byte Order"), + last = new TQListViewItem(next, last, i18n("Image Byte Order"), Order(ImageByteOrder(dpy))); XCloseDisplay (dpy); @@ -356,7 +356,7 @@ void KInfoListWidget::load() retrieve-function. If the function wants the widget to show another string, then it change *GetInfo_ErrorString ! */ ErrorString = i18n("No information available about %1.").arg(title) - + QString::fromLatin1("\n\n") + DEFAULT_ERRORSTRING; + + TQString::fromLatin1("\n\n") + DEFAULT_ERRORSTRING; GetInfo_ErrorString = &ErrorString; /* save the address of ErrorString */ sorting_allowed = true; /* the functions may set that */ @@ -387,7 +387,7 @@ void KInfoListWidget::load() } -QString KInfoListWidget::quickHelp() const +TQString KInfoListWidget::quickHelp() const { return i18n("<h1>System Information</h1>" " All the information modules return information about a certain" @@ -397,8 +397,8 @@ QString KInfoListWidget::quickHelp() const } -KInfoListWidget::KInfoListWidget(const QString &_title, QWidget *parent, const char *name, - bool _getlistbox(QListView *lbox)) +KInfoListWidget::KInfoListWidget(const TQString &_title, TQWidget *parent, const char *name, + bool _getlistbox(TQListView *lbox)) : KCModule(parent, name), title(_title) { @@ -414,16 +414,16 @@ KInfoListWidget::KInfoListWidget(const QString &_title, QWidget *parent, const c setButtons(KCModule::Help); getlistbox = _getlistbox; GetInfo_ErrorString = 0; - QHBoxLayout *layout = new QHBoxLayout(this, 0, KDialog::spacingHint()); - widgetStack = new QWidgetStack(this); + TQHBoxLayout *layout = new TQHBoxLayout(this, 0, KDialog::spacingHint()); + widgetStack = new TQWidgetStack(this); layout->addWidget(widgetStack); - lBox = new QListView(widgetStack); + lBox = new TQListView(widgetStack); widgetStack->addWidget(lBox, 0); lBox->setMinimumSize(200,120); lBox->setFont(KGlobalSettings::generalFont()); /* default font */ lBox->setAllColumnsShowFocus(true); - QWhatsThis::add( lBox, i18n( "This list displays system information on the selected category." ) ); - NoInfoText = new QLabel(widgetStack); + TQWhatsThis::add( lBox, i18n( "This list displays system information on the selected category." ) ); + NoInfoText = new TQLabel(widgetStack); widgetStack->addWidget(NoInfoText, 1); NoInfoText->setAlignment(AlignCenter | WordBreak); widgetStack->raiseWidget(NoInfoText); @@ -433,24 +433,24 @@ KInfoListWidget::KInfoListWidget(const QString &_title, QWidget *parent, const c /* Helper-function to read output from an external program */ -static int GetInfo_ReadfromPipe( QListView *lBox, const char *FileName, bool WithEmptyLines = true ) +static int GetInfo_ReadfromPipe( TQListView *lBox, const char *FileName, bool WithEmptyLines = true ) { FILE *pipe; - QListViewItem* olditem = 0L; - QString s; + TQListViewItem* olditem = 0L; + TQString s; if ((pipe = popen(FileName, "r")) == NULL) { pclose(pipe); return 0; } - QTextStream t(pipe, IO_ReadOnly); + TQTextStream t(pipe, IO_ReadOnly); while (!t.atEnd()) { s = t.readLine(); if (!WithEmptyLines && s.length()==0) continue; - olditem = new QListViewItem(lBox, olditem, s); + olditem = new TQListViewItem(lBox, olditem, s); } pclose(pipe); diff --git a/kcontrol/info/info.h b/kcontrol/info/info.h index c55c1b2a5..723d35df5 100644 --- a/kcontrol/info/info.h +++ b/kcontrol/info/info.h @@ -1,16 +1,16 @@ #ifndef _INFO_H_ #define _INFO_H_ -#include <qwidget.h> -#include <qwidgetstack.h> -#include <qframe.h> -#include <qlabel.h> -#include <qtabdialog.h> -#include <qpushbutton.h> -#include <qtimer.h> -#include <qlistview.h> -#include <qfile.h> -#include <qevent.h> +#include <tqwidget.h> +#include <tqwidgetstack.h> +#include <tqframe.h> +#include <tqlabel.h> +#include <tqtabdialog.h> +#include <tqpushbutton.h> +#include <tqtimer.h> +#include <tqlistview.h> +#include <tqfile.h> +#include <tqevent.h> #include <kcmodule.h> #include <kaboutdata.h> @@ -19,35 +19,35 @@ /* function call-back-prototypes... */ -bool GetInfo_CPU( QListView *lBox ); -bool GetInfo_IRQ( QListView *lBox ); -bool GetInfo_DMA( QListView *lBox ); -bool GetInfo_PCI( QListView *lBox ); -bool GetInfo_IO_Ports( QListView *lBox ); -bool GetInfo_Sound( QListView *lBox ); -bool GetInfo_Devices( QListView *lBox ); -bool GetInfo_SCSI( QListView *lBox ); -bool GetInfo_Partitions( QListView *lBox ); -bool GetInfo_XServer_and_Video( QListView *lBox ); -bool GetInfo_CD_ROM( QListView *lBox ); /* New CD-ROM Info */ -extern bool GetInfo_OpenGL( QListView *lBox ); +bool GetInfo_CPU( TQListView *lBox ); +bool GetInfo_IRQ( TQListView *lBox ); +bool GetInfo_DMA( TQListView *lBox ); +bool GetInfo_PCI( TQListView *lBox ); +bool GetInfo_IO_Ports( TQListView *lBox ); +bool GetInfo_Sound( TQListView *lBox ); +bool GetInfo_Devices( TQListView *lBox ); +bool GetInfo_SCSI( TQListView *lBox ); +bool GetInfo_Partitions( TQListView *lBox ); +bool GetInfo_XServer_and_Video( TQListView *lBox ); +bool GetInfo_CD_ROM( TQListView *lBox ); /* New CD-ROM Info */ +extern bool GetInfo_OpenGL( TQListView *lBox ); class KInfoListWidget : public KCModule { public: - KInfoListWidget(const QString &_title, QWidget *parent, const char *name=0, bool _getlistbox (QListView *)=0); + KInfoListWidget(const TQString &_title, TQWidget *parent, const char *name=0, bool _getlistbox (TQListView *)=0); virtual void load(); - virtual QString quickHelp() const; + virtual TQString quickHelp() const; private: - QListView *lBox; - bool (*getlistbox) (QListView *); - QString title; + TQListView *lBox; + bool (*getlistbox) (TQListView *); + TQString title; QLabel *NoInfoText; QString ErrorString; - QWidgetStack *widgetStack; + TQWidgetStack *widgetStack; }; #endif diff --git a/kcontrol/info/info_aix.cpp b/kcontrol/info/info_aix.cpp index 8aaee4f6d..9aa0d3767 100644 --- a/kcontrol/info/info_aix.cpp +++ b/kcontrol/info/info_aix.cpp @@ -60,14 +60,14 @@ device_description(struct CuDv *cudv) } bool -list_devices(QListView *lBox, char *criteria) +list_devices(TQListView *lBox, char *criteria) { struct CuDv *cudv; /* Customized Devices */ struct listinfo info; int i; char *cudv_desc; - QString cudv_status; - QListViewItem *lastitem = NULL; + TQString cudv_status; + TQListViewItem *lastitem = NULL; lBox->addColumn(i18n("Name")); lBox->addColumn(i18n("Status")); @@ -98,18 +98,18 @@ list_devices(QListView *lBox, char *criteria) { switch(cudv[i].status) { - case DEFINED: cudv_status = QString("Defined"); break; - case AVAILABLE: cudv_status = QString("Available"); break; - case STOPPED: cudv_status = QString("Stopped"); break; - default: cudv_status = QString("Unknown"); + case DEFINED: cudv_status = TQString("Defined"); break; + case AVAILABLE: cudv_status = TQString("Available"); break; + case STOPPED: cudv_status = TQString("Stopped"); break; + default: cudv_status = TQString("Unknown"); } cudv_desc = device_description(&cudv[i]); - lastitem = new QListViewItem(lBox, lastitem, - QString(cudv[i].name), + lastitem = new TQListViewItem(lBox, lastitem, + TQString(cudv[i].name), cudv_status, - QString(cudv[i].location), - QString(cudv_desc ? cudv_desc : "N/A") ); + TQString(cudv[i].location), + TQString(cudv_desc ? cudv_desc : "N/A") ); if (cudv_desc) free(cudv_desc); } @@ -271,7 +271,7 @@ struct model _4C_models[] = */ bool -GetInfo_XServer_and_Video( QListView *lBox ) +GetInfo_XServer_and_Video( TQListView *lBox ) { return GetInfo_XServer_Generic( lBox ); } @@ -286,14 +286,14 @@ GetInfo_XServer_and_Video( QListView *lBox ) * */ bool -GetInfo_CPU( QListView *lBox ) +GetInfo_CPU( TQListView *lBox ) { struct utsname info; struct model *table = _models; /* table of model information */ char model_ID[21] = ""; /* information for table lookup */ char cpu_ID[7] = ""; /* unique CPU ID */ int i; - QListViewItem *lastitem = NULL; + TQListViewItem *lastitem = NULL; lBox->addColumn(i18n("Information")); lBox->addColumn(i18n("Value")); @@ -326,57 +326,57 @@ GetInfo_CPU( QListView *lBox ) } } - lastitem = new QListViewItem(lBox, lastitem, QString("CPU ID"), QString(cpu_ID)); - lastitem = new QListViewItem(lBox, lastitem, QString("Node"), QString(info.nodename)); - lastitem = new QListViewItem(lBox, lastitem, QString("OS"), QString(info.sysname) + - QString(" ") + QString(info.version) + QString(".") + QString(info.release)); + lastitem = new TQListViewItem(lBox, lastitem, TQString("CPU ID"), TQString(cpu_ID)); + lastitem = new TQListViewItem(lBox, lastitem, TQString("Node"), TQString(info.nodename)); + lastitem = new TQListViewItem(lBox, lastitem, TQString("OS"), TQString(info.sysname) + + TQString(" ") + TQString(info.version) + TQString(".") + TQString(info.release)); for (i=0; *(table[i].model_ID); i++) if (strcmp(model_ID, table[i].model_ID) == 0) { - lastitem = new QListViewItem(lBox, lastitem, QString("Machine Type"), QString(table[i].machine_type)); - lastitem = new QListViewItem(lBox, lastitem, QString("Architecture"), QString(chip_name[table[i].architecture])); - lastitem = new QListViewItem(lBox, lastitem, QString("Speed"), QString(table[i].processor_speed) + QString(" Mhz")); + lastitem = new TQListViewItem(lBox, lastitem, TQString("Machine Type"), TQString(table[i].machine_type)); + lastitem = new TQListViewItem(lBox, lastitem, TQString("Architecture"), TQString(chip_name[table[i].architecture])); + lastitem = new TQListViewItem(lBox, lastitem, TQString("Speed"), TQString(table[i].processor_speed) + TQString(" Mhz")); break; } return(true); } -bool GetInfo_IRQ( QListView * ) +bool GetInfo_IRQ( TQListView * ) { return false; } -bool GetInfo_DMA( QListView * ) +bool GetInfo_DMA( TQListView * ) { return false; } bool -GetInfo_PCI( QListView *lBox ) +GetInfo_PCI( TQListView *lBox ) { return list_devices(lBox, (char *)"PdDvLn like '*/pci/*'"); } -bool GetInfo_IO_Ports( QListView * ) +bool GetInfo_IO_Ports( TQListView * ) { return false; } -bool GetInfo_Sound( QListView * ) +bool GetInfo_Sound( TQListView * ) { return false; } bool -GetInfo_Devices( QListView *lBox ) +GetInfo_Devices( TQListView *lBox ) { return list_devices(lBox, (char *)"PdDvLn like '*'"); } bool -GetInfo_SCSI( QListView *lBox ) +GetInfo_SCSI( TQListView *lBox ) { return list_devices(lBox, (char *)"PdDvLn like '*/scsi/*'"); } @@ -432,17 +432,17 @@ static int get_fs_usage (char *path, long *l_total, long *l_avail) // Some Ideas taken from garbazo from his source in info_fbsd.cpp bool -GetInfo_Partitions ( QListView *lbox ) +GetInfo_Partitions ( TQListView *lbox ) { #define NUMCOLS 5 - QString Title[NUMCOLS]; + TQString Title[NUMCOLS]; int n; struct fstab *fstab_ent; struct statvfs svfs; long total,avail; - QString str; - QString MB(i18n("MB")+ " "); // International Text for MB=Mega-Byte + TQString str; + TQString MB(i18n("MB")+ " "); // International Text for MB=Mega-Byte if (setfsent() != 1) // Try to open fstab return false; @@ -467,16 +467,16 @@ GetInfo_Partitions ( QListView *lbox ) svfs.f_basetype[0] = 0; if(svfs.f_basetype[0]) { - new QListViewItem(lbox, QString(fstab_ent->fs_spec), - QString(fstab_ent->fs_file) + QString(" "), - (svfs.f_basetype[0] ? QString(svfs.f_basetype) : i18n("n/a")), + new TQListViewItem(lbox, TQString(fstab_ent->fs_spec), + TQString(fstab_ent->fs_file) + TQString(" "), + (svfs.f_basetype[0] ? TQString(svfs.f_basetype) : i18n("n/a")), Value((total+512)/1024,6) + MB, Value((avail+512)/1024,6) + MB); } else { - new QListViewItem(lbox, QString(fstab_ent->fs_spec), - QString(fstab_ent->fs_file) + QString(" "), - (svfs.f_basetype[0] ? QString(svfs.f_basetype) : i18n("n/a"))); + new TQListViewItem(lbox, TQString(fstab_ent->fs_spec), + TQString(fstab_ent->fs_file) + TQString(" "), + (svfs.f_basetype[0] ? TQString(svfs.f_basetype) : i18n("n/a"))); } } diff --git a/kcontrol/info/info_fbsd.cpp b/kcontrol/info/info_fbsd.cpp index 6e936801a..3ccd1c086 100644 --- a/kcontrol/info/info_fbsd.cpp +++ b/kcontrol/info/info_fbsd.cpp @@ -49,22 +49,22 @@ #include <fstab.h> #include <string.h> -#include <qdict.h> -#include <qfile.h> -#include <qptrlist.h> -#include <qstring.h> -#include <qtextstream.h> +#include <tqdict.h> +#include <tqfile.h> +#include <tqptrlist.h> +#include <tqstring.h> +#include <tqtextstream.h> class Device { public: - Device (QString n=QString::null, QString d=QString::null) + Device (TQString n=TQString::null, TQString d=TQString::null) {name=n; description=d;} - QString name, description; + TQString name, description; }; -void ProcessChildren(QString name); -QString GetController(const QString &line); -Device *GetDevice(const QString &line); +void ProcessChildren(TQString name); +TQString GetController(const TQString &line); +Device *GetDevice(const TQString &line); #ifdef HAVE_DEVINFO_H extern "C" { @@ -75,7 +75,7 @@ extern "C" { } #endif -bool GetInfo_CPU (QListView *lBox) +bool GetInfo_CPU (TQListView *lBox) { // Modified 13 July 2000 for SMP by Brad Hughes - bhughes@trolltech.com @@ -85,7 +85,7 @@ bool GetInfo_CPU (QListView *lBox) len = sizeof(ncpu); sysctlbyname("hw.ncpu", &ncpu, &len, NULL, 0); - QString cpustring; + TQString cpustring; for (int i = ncpu; i > 0; i--) { /* Stuff for sysctl */ char *buf; @@ -105,7 +105,7 @@ bool GetInfo_CPU (QListView *lBox) } /* Put everything in the listbox */ - new QListViewItem(lBox, cpustring); + new TQListViewItem(lBox, cpustring); /* Clean up after ourselves, this time I mean it ;-) */ delete buf; @@ -114,7 +114,7 @@ bool GetInfo_CPU (QListView *lBox) return true; } -bool GetInfo_IRQ (QListView *lbox) +bool GetInfo_IRQ (TQListView *lbox) { #ifdef HAVE_DEVINFO_H /* systat lists the interrupts assigned to devices as well as how many were @@ -131,7 +131,7 @@ bool GetInfo_IRQ (QListView *lbox) #endif } -bool GetInfo_DMA (QListView *lbox) +bool GetInfo_DMA (TQListView *lbox) { #ifdef HAVE_DEVINFO_H /* Oh neat, current now has a neat little utility called devinfo */ @@ -144,7 +144,7 @@ bool GetInfo_DMA (QListView *lbox) #endif } -bool GetInfo_IO_Ports (QListView *lbox) +bool GetInfo_IO_Ports (TQListView *lbox) { #ifdef HAVE_DEVINFO_H /* Oh neat, current now has a neat little utility called devinfo */ @@ -157,21 +157,21 @@ bool GetInfo_IO_Ports (QListView *lbox) #endif } -bool GetInfo_Sound (QListView *lbox) +bool GetInfo_Sound (TQListView *lbox) { - QFile *sndstat = new QFile("/dev/sndstat"); - QTextStream *t; - QString s; - QListViewItem *olditem = 0; + TQFile *sndstat = new TQFile("/dev/sndstat"); + TQTextStream *t; + TQString s; + TQListViewItem *olditem = 0; if (!sndstat->exists() || !sndstat->open(IO_ReadOnly)) { s = i18n("Your sound system could not be queried. /dev/sndstat does not exist or is not readable."); - olditem = new QListViewItem(lbox, olditem, s); + olditem = new TQListViewItem(lbox, olditem, s); } else { - t = new QTextStream(sndstat); + t = new TQTextStream(sndstat); while (!(s=t->readLine()).isNull()) { - olditem = new QListViewItem(lbox, olditem, s); + olditem = new TQListViewItem(lbox, olditem, s); } delete t; @@ -182,32 +182,32 @@ bool GetInfo_Sound (QListView *lbox) return true; } -bool GetInfo_SCSI (QListView *lbox) +bool GetInfo_SCSI (TQListView *lbox) { FILE *pipe; - QFile *camcontrol = new QFile("/sbin/camcontrol"); - QTextStream *t; - QString s; - QListViewItem *olditem = 0; + TQFile *camcontrol = new TQFile("/sbin/camcontrol"); + TQTextStream *t; + TQString s; + TQListViewItem *olditem = 0; if (!camcontrol->exists()) { s = i18n ("SCSI subsystem could not be queried: /sbin/camcontrol could not be found"); - olditem = new QListViewItem(lbox, olditem, s); + olditem = new TQListViewItem(lbox, olditem, s); } else if ((pipe = popen("/sbin/camcontrol devlist 2>&1", "r")) == NULL) { s = i18n ("SCSI subsystem could not be queried: /sbin/camcontrol could not be executed"); - olditem = new QListViewItem(lbox, olditem, s); + olditem = new TQListViewItem(lbox, olditem, s); } else { /* This prints out a list of all the scsi devies, perhaps eventually we could parse it as opposed to schlepping it into a listbox */ - t = new QTextStream(pipe, IO_ReadOnly); + t = new TQTextStream(pipe, IO_ReadOnly); while (true) { s = t->readLine(); if ( s.isEmpty() ) break; - olditem = new QListViewItem(lbox, olditem, s); + olditem = new TQListViewItem(lbox, olditem, s); } delete t; @@ -222,25 +222,25 @@ bool GetInfo_SCSI (QListView *lbox) return true; } -bool GetInfo_PCI (QListView *lbox) +bool GetInfo_PCI (TQListView *lbox) { FILE *pipe; - QFile *pcicontrol; - QString s, cmd; - QListViewItem *olditem = 0; + TQFile *pcicontrol; + TQString s, cmd; + TQListViewItem *olditem = 0; - pcicontrol = new QFile("/usr/sbin/pciconf"); + pcicontrol = new TQFile("/usr/sbin/pciconf"); if (!pcicontrol->exists()) { delete pcicontrol; - pcicontrol = new QFile("/usr/X11R6/bin/scanpci"); + pcicontrol = new TQFile("/usr/X11R6/bin/scanpci"); if (!pcicontrol->exists()) { delete pcicontrol; - pcicontrol = new QFile("/usr/X11R6/bin/pcitweak"); + pcicontrol = new TQFile("/usr/X11R6/bin/pcitweak"); if (!pcicontrol->exists()) { - QString s; + TQString s; s = i18n("Could not find any programs with which to query your system's PCI information"); - (void) new QListViewItem(lbox, 0, s); + (void) new TQListViewItem(lbox, 0, s); delete pcicontrol; return true; } else { @@ -256,7 +256,7 @@ bool GetInfo_PCI (QListView *lbox) if ((pipe = popen(cmd.latin1(), "r")) == NULL) { s = i18n ("PCI subsystem could not be queried: %1 could not be executed").arg(cmd); - olditem = new QListViewItem(lbox, olditem, s); + olditem = new TQListViewItem(lbox, olditem, s); } else { /* This prints out a list of all the pci devies, perhaps eventually we could @@ -268,23 +268,23 @@ bool GetInfo_PCI (QListView *lbox) if (!lbox->childCount()) { s = i18n("The PCI subsystem could not be queried, this may need root privileges."); - olditem = new QListViewItem(lbox, olditem, s); + olditem = new TQListViewItem(lbox, olditem, s); return true; } return true; } -bool GetInfo_Partitions (QListView *lbox) +bool GetInfo_Partitions (TQListView *lbox) { struct fstab *fstab_ent; if (setfsent() != 1) /* Try to open fstab */ { int s_err = errno; - QString s; + TQString s; s = i18n("Could not check filesystem info: "); s += strerror(s_err); - (void)new QListViewItem(lbox, 0, s); + (void)new TQListViewItem(lbox, 0, s); } else { lbox->addColumn(i18n("Device")); lbox->addColumn(i18n("Mount Point")); @@ -292,7 +292,7 @@ bool GetInfo_Partitions (QListView *lbox) lbox->addColumn(i18n("Mount Options")); while ((fstab_ent=getfsent())!=NULL) { - new QListViewItem(lbox, fstab_ent->fs_spec, + new TQListViewItem(lbox, fstab_ent->fs_spec, fstab_ent->fs_file, fstab_ent->fs_vfstype, fstab_ent->fs_mntops); } @@ -305,19 +305,19 @@ bool GetInfo_Partitions (QListView *lbox) return true; } -bool GetInfo_XServer_and_Video (QListView *lBox) +bool GetInfo_XServer_and_Video (TQListView *lBox) { return GetInfo_XServer_Generic( lBox ); } -bool GetInfo_Devices (QListView *lbox) +bool GetInfo_Devices (TQListView *lbox) { - QFile *f = new QFile("/var/run/dmesg.boot"); + TQFile *f = new TQFile("/var/run/dmesg.boot"); if (f->open(IO_ReadOnly)) { - QTextStream qts(f); - QDict<QListViewItem> lv_items; + TQTextStream qts(f); + TQDict<TQListViewItem> lv_items; Device *dev; - QString line, controller; + TQString line, controller; lbox->setRootIsDecorated(true); lbox->addColumn("Device"); lbox->addColumn("Description"); @@ -331,12 +331,12 @@ bool GetInfo_Devices (QListView *lbox) // Ewww assuing motherboard is the only toplevel controller is rather gross if (controller == "motherboard") { if (!lv_items[dev->name]) { - lv_items.insert(dev->name, new QListViewItem(lbox, dev->name, dev->description) ); + lv_items.insert(dev->name, new TQListViewItem(lbox, dev->name, dev->description) ); } } else { - QListViewItem *parent=lv_items[controller]; + TQListViewItem *parent=lv_items[controller]; if (parent && !lv_items[dev->name]) { - lv_items.insert(dev->name, new QListViewItem(parent, dev->name, dev->description) ); + lv_items.insert(dev->name, new TQListViewItem(parent, dev->name, dev->description) ); } } } @@ -345,32 +345,32 @@ bool GetInfo_Devices (QListView *lbox) return false; } -QString GetController(const QString &line) +TQString GetController(const TQString &line) { if ( ( (line.startsWith("ad")) || (line.startsWith("afd")) || (line.startsWith("acd")) ) && (line.find(":") < 6) ) { - QString controller = line; + TQString controller = line; controller.remove(0, controller.find(" at ")+4); if (controller.find("-slave") != -1) { controller.remove(controller.find("-slave"), controller.length()); } else if (controller.find("-master") != -1) { controller.remove(controller.find("-master"), controller.length()); } else - controller=QString::null; + controller=TQString::null; if (!controller.isNull()) return controller; } if (line.find(" on ") != -1) { - QString controller; + TQString controller; controller = line; controller.remove(0, controller.find(" on ")+4); if (controller.find(" ") != -1) controller.remove(controller.find(" "), controller.length()); return controller; } - return QString::null; + return TQString::null; } -Device *GetDevice(const QString &line) +Device *GetDevice(const TQString &line) { Device *dev; int colon = line.find(":"); @@ -387,9 +387,9 @@ Device *GetDevice(const QString &line) int print_irq(struct devinfo_rman *rman, void *arg) { - QListView *lbox = (QListView *)arg; + TQListView *lbox = (TQListView *)arg; if (strcmp(rman->dm_desc, "Interrupt request lines")==0) { - (void)new QListViewItem(lbox, 0, rman->dm_desc); + (void)new TQListViewItem(lbox, 0, rman->dm_desc); devinfo_foreach_rman_resource(rman, print_resource, arg); } return(0); @@ -397,9 +397,9 @@ int print_irq(struct devinfo_rman *rman, void *arg) int print_dma(struct devinfo_rman *rman, void *arg) { - QListView *lbox = (QListView *)arg; + TQListView *lbox = (TQListView *)arg; if (strcmp(rman->dm_desc, "DMA request lines")==0) { - (void)new QListViewItem(lbox, lbox->lastItem(), rman->dm_desc); + (void)new TQListViewItem(lbox, lbox->lastItem(), rman->dm_desc); devinfo_foreach_rman_resource(rman, print_resource, arg); } return(0); @@ -407,14 +407,14 @@ int print_dma(struct devinfo_rman *rman, void *arg) int print_ioports(struct devinfo_rman *rman, void *arg) { - QListView *lbox = (QListView *)arg; + TQListView *lbox = (TQListView *)arg; if (strcmp(rman->dm_desc, "I/O ports")==0) { - (void)new QListViewItem(lbox, lbox->lastItem(), rman->dm_desc); + (void)new TQListViewItem(lbox, lbox->lastItem(), rman->dm_desc); devinfo_foreach_rman_resource(rman, print_resource, arg); } else if (strcmp(rman->dm_desc, "I/O memory addresses")==0) { - (void)new QListViewItem(lbox, lbox->lastItem(), rman->dm_desc); + (void)new TQListViewItem(lbox, lbox->lastItem(), rman->dm_desc); devinfo_foreach_rman_resource(rman, print_resource, arg); } return(0); @@ -426,11 +426,11 @@ int print_resource(struct devinfo_res *res, void *arg) struct devinfo_rman *rman; int hexmode; - QListView *lbox; + TQListView *lbox; - lbox = (QListView *)arg; + lbox = (TQListView *)arg; - QString s, tmp; + TQString s, tmp; rman = devinfo_handle_to_rman(res->dr_rman); hexmode = (rman->dm_size > 100) || (rman->dm_size == 0); @@ -450,7 +450,7 @@ int print_resource(struct devinfo_res *res, void *arg) } s += tmp; - (void)new QListViewItem(lbox, lbox->lastItem(), s); + (void)new TQListViewItem(lbox, lbox->lastItem(), s); return(0); } diff --git a/kcontrol/info/info_generic.cpp b/kcontrol/info/info_generic.cpp index 5ef80dcca..367e1657b 100644 --- a/kcontrol/info/info_generic.cpp +++ b/kcontrol/info/info_generic.cpp @@ -31,58 +31,58 @@ */ -bool GetInfo_CPU( QListView * ) +bool GetInfo_CPU( TQListView * ) { return false; } -bool GetInfo_IRQ( QListView * ) +bool GetInfo_IRQ( TQListView * ) { return false; } -bool GetInfo_DMA( QListView * ) +bool GetInfo_DMA( TQListView * ) { return false; } -bool GetInfo_PCI( QListView * ) +bool GetInfo_PCI( TQListView * ) { return false; } -bool GetInfo_IO_Ports( QListView * ) +bool GetInfo_IO_Ports( TQListView * ) { return false; } -bool GetInfo_Sound( QListView * ) +bool GetInfo_Sound( TQListView * ) { return false; } -bool GetInfo_Devices( QListView * ) +bool GetInfo_Devices( TQListView * ) { return false; } -bool GetInfo_SCSI( QListView * ) +bool GetInfo_SCSI( TQListView * ) { return false; } -bool GetInfo_Partitions( QListView * ) +bool GetInfo_Partitions( TQListView * ) { return false; } -bool GetInfo_XServer_and_Video( QListView *lBox ) +bool GetInfo_XServer_and_Video( TQListView *lBox ) { return GetInfo_XServer_Generic( lBox ); } /* Generic GetInfo? ~Jahshan */ -bool GetInfo_CD_ROM(QListView * lBox) +bool GetInfo_CD_ROM(TQListView * lBox) { return false; } diff --git a/kcontrol/info/info_hpux.cpp b/kcontrol/info/info_hpux.cpp index dc0684ab5..82c7cbdad 100644 --- a/kcontrol/info/info_hpux.cpp +++ b/kcontrol/info/info_hpux.cpp @@ -25,9 +25,9 @@ #include <sys/vfs.h> #include <fstab.h> #include <stdlib.h> -#include <qfile.h> -#include <qfontmetrics.h> -#include <qtextstream.h> +#include <tqfile.h> +#include <tqfontmetrics.h> +#include <tqtextstream.h> #define INFO_CPU_AVAILABLE @@ -306,12 +306,12 @@ static const struct _type_LOOKUPTABLE PA_LOOKUPTABLE[] = { // Value() is defined in info.cpp !!! -static bool Find_in_LOOKUPTABLE( QListView *lBox, char *machine ) +static bool Find_in_LOOKUPTABLE( TQListView *lBox, char *machine ) { char *Machine; int len; const struct _type_LOOKUPTABLE *Entry = PA_LOOKUPTABLE; - QString str; - QListViewItem* olditem = 0; + TQString str; + TQListViewItem* olditem = 0; Machine = machine; // machine is like: "9000/715/D" @@ -328,10 +328,10 @@ static bool Find_in_LOOKUPTABLE( QListView *lBox, char *machine ) while (Entry->Name[0]) { if (strncmp(Entry->Name,Machine,len)==0) { - olditem = new QListViewItem(lBox, olditem, i18n("PA-RISC Processor"), - QString(PA_NAME[Entry->parisc_name])); - olditem = new QListViewItem(lBox, olditem, i18n("PA-RISC Revision"), - QString("PA-RISC ") + QString(PA_REVISION[Entry->parisc_rev])); + olditem = new TQListViewItem(lBox, olditem, i18n("PA-RISC Processor"), + TQString(PA_NAME[Entry->parisc_name])); + olditem = new TQListViewItem(lBox, olditem, i18n("PA-RISC Revision"), + TQString("PA-RISC ") + TQString(PA_REVISION[Entry->parisc_rev])); return true; } else @@ -348,17 +348,17 @@ static bool Find_in_LOOKUPTABLE( QListView *lBox, char *machine ) */ -bool GetInfo_CPU( QListView *lBox ) +bool GetInfo_CPU( TQListView *lBox ) { FILE *pipe; - QFile *model; + TQFile *model; struct pst_dynamic psd; struct pst_static pst; struct pst_processor pro; struct utsname info; - QString str,str2; - QListViewItem* olditem = 0; + TQString str,str2; + TQListViewItem* olditem = 0; int maxwidth,i; if((pstat_getstatic(&pst, sizeof(pst), (size_t)1, 0) == -1) || @@ -373,31 +373,31 @@ bool GetInfo_CPU( QListView *lBox ) uname(&info); - olditem = new QListViewItem(lBox, olditem, i18n("Machine"), info.machine); + olditem = new TQListViewItem(lBox, olditem, i18n("Machine"), info.machine); - model = new QFile(INFO_CPU_MODEL); + model = new TQFile(INFO_CPU_MODEL); if (model->exists()) { if ((pipe = popen(INFO_CPU_MODEL, "r"))) - { QTextStream *t = new QTextStream(pipe, IO_ReadOnly); + { TQTextStream *t = new TQTextStream(pipe, IO_ReadOnly); str = t->readLine(); - olditem = new QListViewItem(lBox, olditem, i18n("Model"), str); + olditem = new TQListViewItem(lBox, olditem, i18n("Model"), str); delete t; } delete pipe; } delete model; - olditem = new QListViewItem(lBox, olditem, i18n("Machine Identification Number"), - strlen(info.__idnumber) ? QString(info.__idnumber) : i18n("(none)") ); + olditem = new TQListViewItem(lBox, olditem, i18n("Machine Identification Number"), + strlen(info.__idnumber) ? TQString(info.__idnumber) : i18n("(none)") ); if (psd.psd_proc_cnt<=0) psd.psd_proc_cnt=1; // Minimum one CPU ! - olditem = new QListViewItem(lBox, olditem, i18n("Number of Active Processors"), + olditem = new TQListViewItem(lBox, olditem, i18n("Number of Active Processors"), Value(psd.psd_proc_cnt)); pstat_getprocessor( &pro, sizeof(pro), 1, 0 ); - olditem = new QListViewItem(lBox, olditem, i18n("CPU Clock"), + olditem = new TQListViewItem(lBox, olditem, i18n("CPU Clock"), Value(pro.psp_iticksperclktick/10000) + " " + i18n("MHz")); switch(sysconf(_SC_CPU_VERSION)) @@ -420,39 +420,39 @@ bool GetInfo_CPU( QListView *lBox ) default: str2 = i18n("(unknown)"); break; } - olditem = new QListViewItem(lBox, olditem, i18n("CPU Architecture"), str2); + olditem = new TQListViewItem(lBox, olditem, i18n("CPU Architecture"), str2); Find_in_LOOKUPTABLE( lBox, info.machine );// try to get extended Information. for (i=PS_PA83_FPU; i<=PS_PA89_FPU; ++i) { if ((1<<(i-1)) & pro.psp_coprocessor.psc_present) { - str = QString( (i==PS_PA83_FPU) ? "PS_PA83_FPU":"PS_PA89_FPU" ) - + QString(" (") - + QString(((1<<(i-1))&pro.psp_coprocessor.psc_enabled) ? + str = TQString( (i==PS_PA83_FPU) ? "PS_PA83_FPU":"PS_PA89_FPU" ) + + TQString(" (") + + TQString(((1<<(i-1))&pro.psp_coprocessor.psc_enabled) ? i18n("enabled") : i18n("disabled") ) - + QString(")"); + + TQString(")"); - olditem = new QListViewItem(lBox, olditem, i18n("Numerical Coprocessor (FPU)"), str); + olditem = new TQListViewItem(lBox, olditem, i18n("Numerical Coprocessor (FPU)"), str); } }// for(coprocessor..) str = Value(((pst.physical_memory*pst.page_size)/1024/1024)) - + QString(" ") + + TQString(" ") + i18n("MB"); // Mega-Byte - olditem = new QListViewItem(lBox, olditem, i18n("Total Physical Memory"), str); + olditem = new TQListViewItem(lBox, olditem, i18n("Total Physical Memory"), str); - str = Value(pst.page_size) + QString(" ") + i18n("Bytes"); - olditem = new QListViewItem(lBox, olditem, i18n("Size of One Page"), str); + str = Value(pst.page_size) + TQString(" ") + i18n("Bytes"); + olditem = new TQListViewItem(lBox, olditem, i18n("Size of One Page"), str); return true; } -bool GetInfo_ReadfromFile( QListView *lBox, const char *Name ) +bool GetInfo_ReadfromFile( TQListView *lBox, const char *Name ) { char buf[2048]; - QFile *file = new QFile(Name); - QListViewItem* olditem = 0; + TQFile *file = new TQFile(Name); + TQListViewItem* olditem = 0; if(!file->open(IO_ReadOnly)) { delete file; @@ -461,7 +461,7 @@ bool GetInfo_ReadfromFile( QListView *lBox, const char *Name ) while (file->readLine(buf,sizeof(buf)-1) >= 0) { if (strlen(buf)) - olditem = new QListViewItem(lBox, olditem, QString::fromLocal8Bit(buf)); + olditem = new TQListViewItem(lBox, olditem, TQString::fromLocal8Bit(buf)); } file->close(); @@ -470,23 +470,23 @@ bool GetInfo_ReadfromFile( QListView *lBox, const char *Name ) } -bool GetInfo_IRQ( QListView * ) +bool GetInfo_IRQ( TQListView * ) { return false; } -bool GetInfo_DMA( QListView * ) +bool GetInfo_DMA( TQListView * ) { return false; } -bool GetInfo_PCI( QListView *lBox ) +bool GetInfo_PCI( TQListView *lBox ) { return( GetInfo_ReadfromFile(lBox,INFO_PCI) + GetInfo_ReadfromFile(lBox,INFO_PCI_EISA) ); } -bool GetInfo_IO_Ports( QListView *lBox ) +bool GetInfo_IO_Ports( TQListView *lBox ) { if (GetInfo_ReadfromPipe( lBox, INFO_IOPORTS_1, false )) return true; @@ -495,12 +495,12 @@ bool GetInfo_IO_Ports( QListView *lBox ) } -bool GetInfo_Devices( QListView *lBox ) +bool GetInfo_Devices( TQListView *lBox ) { return GetInfo_ReadfromPipe( lBox, INFO_DEVICES, false ); } -bool GetInfo_SCSI( QListView *lBox ) +bool GetInfo_SCSI( TQListView *lBox ) { return GetInfo_Devices( lBox ); } @@ -554,17 +554,17 @@ static int get_fs_usage (char *path, long *l_total, long *l_avail) // Some Ideas taken from garbazo from his source in info_fbsd.cpp -bool GetInfo_Partitions (QListView *lbox) +bool GetInfo_Partitions (TQListView *lbox) { #define NUMCOLS 5 - QString Title[NUMCOLS]; + TQString Title[NUMCOLS]; int n; struct fstab *fstab_ent; struct statvfs svfs; long total,avail; - QString str; - QString MB(i18n("MB")+ " "); // International Text for MB=Mega-Byte + TQString str; + TQString MB(i18n("MB")+ " "); // International Text for MB=Mega-Byte if (setfsent() != 1) // Try to open fstab return false; @@ -589,16 +589,16 @@ bool GetInfo_Partitions (QListView *lbox) svfs.f_basetype[0] = 0; if(svfs.f_basetype[0]) { - new QListViewItem(lbox, QString(fstab_ent->fs_spec), - QString(fstab_ent->fs_file) + QString(" "), - (svfs.f_basetype[0] ? QString(svfs.f_basetype) : i18n("n/a")), + new TQListViewItem(lbox, TQString(fstab_ent->fs_spec), + TQString(fstab_ent->fs_file) + TQString(" "), + (svfs.f_basetype[0] ? TQString(svfs.f_basetype) : i18n("n/a")), Value((total+512)/1024,6) + MB, Value((avail+512)/1024,6) + MB); } else { - new QListViewItem(lbox, QString(fstab_ent->fs_spec), - QString(fstab_ent->fs_file) + QString(" "), - (svfs.f_basetype[0] ? QString(svfs.f_basetype) : i18n("n/a"))); + new TQListViewItem(lbox, TQString(fstab_ent->fs_spec), + TQString(fstab_ent->fs_file) + TQString(" "), + (svfs.f_basetype[0] ? TQString(svfs.f_basetype) : i18n("n/a"))); } } @@ -608,7 +608,7 @@ bool GetInfo_Partitions (QListView *lbox) } -bool GetInfo_XServer_and_Video( QListView *lBox ) +bool GetInfo_XServer_and_Video( TQListView *lBox ) { lBox = lBox; return GetInfo_XServer_Generic( lBox ); @@ -620,7 +620,7 @@ bool GetInfo_XServer_and_Video( QListView *lBox ) #ifndef HAVE_ALIB_H -bool GetInfo_Sound( QListView *lBox ) +bool GetInfo_Sound( TQListView *lBox ) { lBox = lBox; *GetInfo_ErrorString = i18n("Audio-Support (Alib) was disabled during configuration and compile-time."); return false; @@ -640,15 +640,15 @@ static const char formatNames[6][15] = { #endif -bool GetInfo_Sound( QListView *lBox ) +bool GetInfo_Sound( TQListView *lBox ) { Audio *audio; long status; char server[80]; int i; - QString str,str2; - QListViewItem* olditem = 0; + TQString str,str2; + TQListViewItem* olditem = 0; // server = Hostname.... server[0] = 0; @@ -661,120 +661,120 @@ bool GetInfo_Sound( QListView *lBox ) lBox->addColumn(i18n("Information") ); lBox->addColumn(i18n("Value") ); - olditem = new QListViewItem(lBox, olditem, i18n("Audio Name"), QString(audio->audio_name)); - olditem = new QListViewItem(lBox, olditem, i18n("Vendor"), QString(audio->vendor)); - olditem = new QListViewItem(lBox, olditem, i18n("Alib Version"), - Value(audio->alib_major_version) + QString(".") + + olditem = new TQListViewItem(lBox, olditem, i18n("Audio Name"), TQString(audio->audio_name)); + olditem = new TQListViewItem(lBox, olditem, i18n("Vendor"), TQString(audio->vendor)); + olditem = new TQListViewItem(lBox, olditem, i18n("Alib Version"), + Value(audio->alib_major_version) + TQString(".") + Value(audio->alib_minor_version)); - olditem = new QListViewItem(lBox, olditem, i18n("Protocol Revision"), - Value(audio->proto_major_version) + QString(".") + + olditem = new TQListViewItem(lBox, olditem, i18n("Protocol Revision"), + Value(audio->proto_major_version) + TQString(".") + Value(audio->proto_minor_version)); - olditem = new QListViewItem(lBox, olditem, i18n("Vendor Number"), + olditem = new TQListViewItem(lBox, olditem, i18n("Vendor Number"), Value(audio->vnumber)); - olditem = new QListViewItem(lBox, olditem, i18n("Release"), + olditem = new TQListViewItem(lBox, olditem, i18n("Release"), Value(audio->release)); - olditem = new QListViewItem(lBox, olditem, i18n("Byte Order"), - QString((audio->byte_order==ALSBFirst)? i18n("ALSBFirst (LSB)"): + olditem = new TQListViewItem(lBox, olditem, i18n("Byte Order"), + TQString((audio->byte_order==ALSBFirst)? i18n("ALSBFirst (LSB)"): ((audio->byte_order==AMSBFirst)? i18n("AMSBFirst (MSB)"): i18n("Invalid Byteorder.")) )); - olditem = new QListViewItem(lBox, olditem, i18n("Bit Order"), - QString((audio->sound_bit_order==ALeastSignificant)? + olditem = new TQListViewItem(lBox, olditem, i18n("Bit Order"), + TQString((audio->sound_bit_order==ALeastSignificant)? i18n("ALeastSignificant (LSB)") : ((audio->sound_bit_order==AMostSignificant) ? i18n("AMostSignificant (MSB)"):i18n("Invalid Bitorder.")) )); - olditem = new QListViewItem(lBox, olditem, i18n("Data Formats")); + olditem = new TQListViewItem(lBox, olditem, i18n("Data Formats")); for ( i = 0; i < audio->n_data_format; i++ ) { if (audio->data_format_list[i] <= ADFLin8Offset) - new QListViewItem(olditem, QString(formatNames[audio->data_format_list[i]])); + new TQListViewItem(olditem, TQString(formatNames[audio->data_format_list[i]])); } olditem->setOpen(true); - olditem = new QListViewItem(lBox, olditem, i18n("Sampling Rates")); + olditem = new TQListViewItem(lBox, olditem, i18n("Sampling Rates")); for ( i = 0; i < audio->n_sampling_rate; i++ ) { - new QListViewItem(olditem, Value(audio->sampling_rate_list[i])); + new TQListViewItem(olditem, Value(audio->sampling_rate_list[i])); } olditem->setOpen(true); - olditem = new QListViewItem(lBox, olditem, i18n("Input Sources")); + olditem = new TQListViewItem(lBox, olditem, i18n("Input Sources")); if ( audio->input_sources & AMonoMicrophoneMask ) - new QListViewItem(olditem, i18n("Mono-Microphone")); + new TQListViewItem(olditem, i18n("Mono-Microphone")); if ( audio->input_sources & AMonoAuxiliaryMask ) - new QListViewItem(olditem, i18n("Mono-Auxiliary")); + new TQListViewItem(olditem, i18n("Mono-Auxiliary")); if ( audio->input_sources & ALeftMicrophoneMask ) - new QListViewItem(olditem, i18n("Left-Microphone")); + new TQListViewItem(olditem, i18n("Left-Microphone")); if ( audio->input_sources & ARightMicrophoneMask ) - new QListViewItem(olditem, i18n("Right-Microphone")); + new TQListViewItem(olditem, i18n("Right-Microphone")); if ( audio->input_sources & ALeftAuxiliaryMask ) - new QListViewItem(olditem, i18n("Left-Auxiliary")); + new TQListViewItem(olditem, i18n("Left-Auxiliary")); if ( audio->input_sources & ARightAuxiliaryMask ) - new QListViewItem(olditem, i18n("Right-Auxiliary")); + new TQListViewItem(olditem, i18n("Right-Auxiliary")); olditem->setOpen(true); - olditem = new QListViewItem(lBox, olditem,i18n("Input Channels")); + olditem = new TQListViewItem(lBox, olditem,i18n("Input Channels")); if ( audio->input_channels & AMonoInputChMask ) - new QListViewItem(olditem, i18n("Mono-Channel")); + new TQListViewItem(olditem, i18n("Mono-Channel")); if ( audio->input_channels & ALeftInputChMask ) - new QListViewItem(olditem, i18n("Left-Channel")); + new TQListViewItem(olditem, i18n("Left-Channel")); if ( audio->input_channels & ARightInputChMask ) - new QListViewItem(olditem, i18n("Right-Channel")); + new TQListViewItem(olditem, i18n("Right-Channel")); olditem->setOpen(true); - olditem = new QListViewItem(lBox, olditem, i18n("Output Destinations")); + olditem = new TQListViewItem(lBox, olditem, i18n("Output Destinations")); if ( audio->output_destinations & AMonoIntSpeakerMask ) - new QListViewItem(olditem, i18n("Mono-InternalSpeaker")); + new TQListViewItem(olditem, i18n("Mono-InternalSpeaker")); if ( audio->output_destinations & AMonoJackMask ) - new QListViewItem(olditem, i18n("Mono-Jack")); + new TQListViewItem(olditem, i18n("Mono-Jack")); if ( audio->output_destinations & ALeftIntSpeakerMask ) - new QListViewItem(olditem, i18n("Left-InternalSpeaker")); + new TQListViewItem(olditem, i18n("Left-InternalSpeaker")); if ( audio->output_destinations & ARightIntSpeakerMask ) - new QListViewItem(olditem, i18n("Right-InternalSpeaker")); + new TQListViewItem(olditem, i18n("Right-InternalSpeaker")); if ( audio->output_destinations & ALeftJackMask ) - new QListViewItem(olditem, i18n("Left-Jack")); + new TQListViewItem(olditem, i18n("Left-Jack")); if ( audio->output_destinations & ARightJackMask ) - new QListViewItem(olditem, i18n("Right-Jack")); + new TQListViewItem(olditem, i18n("Right-Jack")); olditem->setOpen(true); - olditem = new QListViewItem(lBox, olditem, i18n("Output Channels")); + olditem = new TQListViewItem(lBox, olditem, i18n("Output Channels")); if ( audio->output_channels & AMonoOutputChMask ) - new QListViewItem(olditem, i18n("Mono-Channel")); + new TQListViewItem(olditem, i18n("Mono-Channel")); if ( audio->output_channels & ALeftOutputChMask ) - new QListViewItem(olditem, i18n("Left-Channel")); + new TQListViewItem(olditem, i18n("Left-Channel")); if ( audio->output_channels & ARightOutputChMask ) - new QListViewItem(olditem, i18n("Right-Channel")); + new TQListViewItem(olditem, i18n("Right-Channel")); olditem->setOpen(true); - olditem = new QListViewItem(lBox, olditem, i18n("Gain")); - new QListViewItem(olditem, i18n("Input Gain Limits"), + olditem = new TQListViewItem(lBox, olditem, i18n("Gain")); + new TQListViewItem(olditem, i18n("Input Gain Limits"), Value(audio->max_input_gain)); - new QListViewItem(olditem,i18n("Output Gain Limits"), - Value(audio->min_output_gain) + QString(" ") + new TQListViewItem(olditem,i18n("Output Gain Limits"), + Value(audio->min_output_gain) + TQString(" ") + Value(audio->max_output_gain)); - new QListViewItem(olditem, i18n("Monitor Gain Limits"), - Value(audio->min_monitor_gain) + QString(" ") + new TQListViewItem(olditem, i18n("Monitor Gain Limits"), + Value(audio->min_monitor_gain) + TQString(" ") + Value(audio->max_monitor_gain)); - new QListViewItem(olditem, i18n("Gain Restricted"), + new TQListViewItem(olditem, i18n("Gain Restricted"), Value(audio->gm_gain_restricted)); olditem->setOpen(true); - olditem = new QListViewItem(lBox, olditem,i18n("Lock"), + olditem = new TQListViewItem(lBox, olditem,i18n("Lock"), Value(audio->lock)); - olditem = new QListViewItem(lBox, olditem, i18n("Queue Length"), + olditem = new TQListViewItem(lBox, olditem, i18n("Queue Length"), Value(audio->qlen)); - olditem = new QListViewItem(lBox, olditem, i18n("Block Size"), + olditem = new TQListViewItem(lBox, olditem, i18n("Block Size"), Value(audio->block_size)); - olditem = new QListViewItem(lBox, olditem, i18n("Stream Port (decimal)"), + olditem = new TQListViewItem(lBox, olditem, i18n("Stream Port (decimal)"), Value(audio->stream_port)); - olditem = new QListViewItem(lBox, olditem, i18n("Ev Buffer Size"), + olditem = new TQListViewItem(lBox, olditem, i18n("Ev Buffer Size"), Value(audio->ev_buf_size)); - olditem = new QListViewItem(lBox, olditem, i18n("Ext Number"), + olditem = new TQListViewItem(lBox, olditem, i18n("Ext Number"), Value(audio->ext_number)); ACloseAudio( audio, &status ); diff --git a/kcontrol/info/info_linux.cpp b/kcontrol/info/info_linux.cpp index 9d29e890e..18287c45f 100644 --- a/kcontrol/info/info_linux.cpp +++ b/kcontrol/info/info_linux.cpp @@ -36,7 +36,7 @@ # undef INFO_PARTITIONS_FULL_INFO /* no partitions-info */ #endif -#include <qregexp.h> +#include <tqregexp.h> #include <kapplication.h> #include <kiconloader.h> @@ -82,13 +82,13 @@ #define MAXCOLUMNWIDTH 600 -bool GetInfo_ReadfromFile(QListView * lbox, const char *FileName, - const QChar& splitChar, - QListViewItem * lastitem = 0, - QListViewItem ** newlastitem = 0) +bool GetInfo_ReadfromFile(TQListView * lbox, const char *FileName, + const TQChar& splitChar, + TQListViewItem * lastitem = 0, + TQListViewItem ** newlastitem = 0) { bool added = false; - QFile file(FileName); + TQFile file(FileName); if (!file.exists()) { return false; @@ -101,11 +101,11 @@ bool GetInfo_ReadfromFile(QListView * lbox, const char *FileName, */ return false; } - QTextStream stream(&file); - QString line; + TQTextStream stream(&file); + TQString line; while (!stream.atEnd()) { - QString s1, s2; + TQString s1, s2; line = stream.readLine(); if (!line.isEmpty()) { if (!splitChar.isNull()) { @@ -116,7 +116,7 @@ bool GetInfo_ReadfromFile(QListView * lbox, const char *FileName, else s1 = line; } - lastitem = new QListViewItem(lbox, lastitem, s1, s2); + lastitem = new TQListViewItem(lbox, lastitem, s1, s2); added = true; } @@ -130,7 +130,7 @@ bool GetInfo_ReadfromFile(QListView * lbox, const char *FileName, -bool GetInfo_CPU(QListView * lBox) +bool GetInfo_CPU(TQListView * lBox) { lBox->addColumn(i18n("Information")); lBox->addColumn(i18n("Value")); @@ -138,30 +138,30 @@ bool GetInfo_CPU(QListView * lBox) } -bool GetInfo_IRQ(QListView * lBox) +bool GetInfo_IRQ(TQListView * lBox) { lBox->setFont(KGlobalSettings::fixedFont()); return GetInfo_ReadfromFile(lBox, INFO_IRQ, 0); } -bool GetInfo_DMA(QListView * lBox) +bool GetInfo_DMA(TQListView * lBox) { - QFile file(INFO_DMA); + TQFile file(INFO_DMA); lBox->addColumn(i18n("DMA-Channel")); lBox->addColumn(i18n("Used By")); if (file.exists() && file.open(IO_ReadOnly)) { - QTextStream stream(&file); - QString line; - QListViewItem *child=0L; + TQTextStream stream(&file); + TQString line; + TQListViewItem *child=0L; while (!stream.atEnd()) { line = stream.readLine(); if (!line.isEmpty()) { - QRegExp rx("^\\s*(\\S+)\\s*:\\s*(\\S+)"); + TQRegExp rx("^\\s*(\\S+)\\s*:\\s*(\\S+)"); if (-1 != rx.search(line)) { - child = new QListViewItem(lBox,child,rx.cap(1),rx.cap(2)); + child = new TQListViewItem(lBox,child,rx.cap(1),rx.cap(2)); } } } @@ -173,7 +173,7 @@ bool GetInfo_DMA(QListView * lBox) return true; } -bool GetInfo_PCI(QListView * lBox) +bool GetInfo_PCI(TQListView * lBox) { int num; sorting_allowed = false; /* no sorting by user */ @@ -189,14 +189,14 @@ bool GetInfo_PCI(QListView * lBox) return GetInfo_ReadfromFile(lBox, INFO_PCI, 0); } -bool GetInfo_IO_Ports(QListView * lBox) +bool GetInfo_IO_Ports(TQListView * lBox) { lBox->addColumn(i18n("I/O-Range")); lBox->addColumn(i18n("Used By")); return GetInfo_ReadfromFile(lBox, INFO_IOPORTS, ':'); } -bool GetInfo_Sound(QListView * lBox) +bool GetInfo_Sound(TQListView * lBox) { sorting_allowed = false; /* no sorting by user */ if (GetInfo_ReadfromFile(lBox, INFO_DEV_SNDSTAT, 0)) @@ -209,10 +209,10 @@ bool GetInfo_Sound(QListView * lBox) return GetInfo_ReadfromFile(lBox, INFO_ASOUND09, 0); } -bool GetInfo_Devices(QListView * lBox) +bool GetInfo_Devices(TQListView * lBox) { - QFile file; - QListViewItem *misc=0L; + TQFile file; + TQListViewItem *misc=0L; lBox->setRootIsDecorated(true); lBox->addColumn(i18n("Devices")); @@ -221,28 +221,28 @@ bool GetInfo_Devices(QListView * lBox) file.setName(INFO_DEVICES); if (file.exists() && file.open(IO_ReadOnly)) { - QTextStream stream(&file); - QString line; - QListViewItem *parent=0L, *child=0L; + TQTextStream stream(&file); + TQString line; + TQListViewItem *parent=0L, *child=0L; while (!stream.atEnd()) { line = stream.readLine(); if (!line.isEmpty()) { if (-1 != line.find("character device",0,false)) { - parent = new QListViewItem(lBox,parent,i18n("Character Devices")); + parent = new TQListViewItem(lBox,parent,i18n("Character Devices")); parent->setPixmap(0,SmallIcon("chardevice")); parent->setOpen(true); } else if (-1 != line.find("block device",0,false)) { - parent = new QListViewItem(lBox,parent,i18n("Block Devices")); + parent = new TQListViewItem(lBox,parent,i18n("Block Devices")); parent->setPixmap(0,SmallIcon("blockdevice")); parent->setOpen(true); } else { - QRegExp rx("^\\s*(\\S+)\\s+(\\S+)"); + TQRegExp rx("^\\s*(\\S+)\\s+(\\S+)"); if (-1 != rx.search(line)) { if (parent) { - child = new QListViewItem(parent,child,rx.cap(2),rx.cap(1)); + child = new TQListViewItem(parent,child,rx.cap(2),rx.cap(1)); } else { - child = new QListViewItem(lBox,parent,rx.cap(2),rx.cap(1)); + child = new TQListViewItem(lBox,parent,rx.cap(2),rx.cap(1)); } if (rx.cap(2)=="misc") { misc=child; @@ -258,9 +258,9 @@ bool GetInfo_Devices(QListView * lBox) file.setName(INFO_MISC); if (misc && file.exists() && file.open(IO_ReadOnly)) { - QTextStream stream(&file); - QString line; - QListViewItem *child=0L; + TQTextStream stream(&file); + TQString line; + TQListViewItem *child=0L; misc->setText(0,i18n("Miscellaneous Devices")); misc->setPixmap(0,SmallIcon("memory")); @@ -269,9 +269,9 @@ bool GetInfo_Devices(QListView * lBox) while (!stream.atEnd()) { line = stream.readLine(); if (!line.isEmpty()) { - QRegExp rx("^\\s*(\\S+)\\s+(\\S+)"); + TQRegExp rx("^\\s*(\\S+)\\s+(\\S+)"); if (-1 != rx.search(line)) { - child = new QListViewItem(misc,child,rx.cap(2),"10",rx.cap(1)); + child = new TQListViewItem(misc,child,rx.cap(2),"10",rx.cap(1)); } } } @@ -281,15 +281,15 @@ bool GetInfo_Devices(QListView * lBox) return true; } -bool GetInfo_SCSI(QListView * lBox) +bool GetInfo_SCSI(TQListView * lBox) { return GetInfo_ReadfromFile(lBox, INFO_SCSI, 0); } -static void cleanPassword(QString & str) +static void cleanPassword(TQString & str) { int index = 0; - QString passwd("password="); + TQString passwd("password="); while (index >= 0) { @@ -305,7 +305,7 @@ static void cleanPassword(QString & str) #ifndef INFO_PARTITIONS_FULL_INFO -bool GetInfo_Partitions(QListView * lBox) +bool GetInfo_Partitions(TQListView * lBox) { return GetInfo_ReadfromFile(lBox, INFO_PARTITIONS, 0); } @@ -341,13 +341,13 @@ bool GetInfo_Partitions(QListView * lBox) /* * get raw device bindings and information */ -void Get_LinuxRawDevices(QListView *lbox) +void Get_LinuxRawDevices(TQListView *lbox) { int f, i, err; int new_raw_devs = 1; struct raw_config_request rq; - QString devname; - QString MB(i18n("MB")); /* "MB" = "Mega-Byte" */ + TQString devname; + TQString MB(i18n("MB")); /* "MB" = "Mega-Byte" */ /* try to open the raw device control file */ f = open("/dev/rawctl", O_RDWR); @@ -371,8 +371,8 @@ void Get_LinuxRawDevices(QListView *lbox) /* IDE drives */ case 3: first_letter = 'a'; set_ide_name: - devname = QString("/dev/hd%1%2") - .arg(QChar(first_letter + minor/64)) + devname = TQString("/dev/hd%1%2") + .arg(TQChar(first_letter + minor/64)) .arg(minor&63); break; case 22:first_letter = 'c'; goto set_ide_name; @@ -388,8 +388,8 @@ void Get_LinuxRawDevices(QListView *lbox) /* SCSI drives */ case 8: first_letter = 'a'; set_scsi_name: - devname = QString("/dev/sd%1%2") - .arg(QChar(first_letter + minor/16)) + devname = TQString("/dev/sd%1%2") + .arg(TQChar(first_letter + minor/16)) .arg(minor&15); break; case 65:first_letter = 'q'; goto set_scsi_name; @@ -397,7 +397,7 @@ void Get_LinuxRawDevices(QListView *lbox) /* Compaq /dev/cciss devices */ case 104: case 105: case 106: case 107: case 108: case 109: - devname = QString("/dev/cciss/c%1d%2") + devname = TQString("/dev/cciss/c%1d%2") .arg((int)rq.block_major-104) .arg(minor&15); break; @@ -405,22 +405,22 @@ void Get_LinuxRawDevices(QListView *lbox) /* Compaq Intelligent Drive Array (ida) */ case 72: case 73: case 74: case 75: case 76: case 77: case 78: case 79: - devname = QString("/dev/ida/c%1d%2") + devname = TQString("/dev/ida/c%1d%2") .arg((int)rq.block_major-72) .arg(minor&15); break; - default: devname = QString("%1/%2") + default: devname = TQString("%1/%2") .arg((int)rq.block_major) .arg(minor); } /* TODO: get device size */ - QString size = ""; + TQString size = ""; - new QListViewItem(lbox, devname, - QString(new_raw_devs ? "/dev/raw/raw%1" : "/dev/raw%1").arg(i), + new TQListViewItem(lbox, devname, + TQString(new_raw_devs ? "/dev/raw/raw%1" : "/dev/raw%1").arg(i), "raw", size, " ", ""); } close(f); @@ -429,11 +429,11 @@ void Get_LinuxRawDevices(QListView *lbox) #define Get_LinuxRawDevices(x) /* nothing */ #endif -bool GetInfo_Partitions(QListView * lbox) +bool GetInfo_Partitions(TQListView * lbox) { #define NUMCOLS 6 - QString Title[NUMCOLS]; - QStringList Mounted_Partitions; + TQString Title[NUMCOLS]; + TQStringList Mounted_Partitions; bool found_in_List; int n; @@ -454,8 +454,8 @@ bool GetInfo_Partitions(QListView * lbox) struct statfs sfs; LONG_TYPE total, avail; - QString str, mountopts; - QString MB(i18n("MB")); /* "MB" = "Mega-Byte" */ + TQString str, mountopts; + TQString MB(i18n("MB")); /* "MB" = "Mega-Byte" */ #ifdef HAVE_FSTAB_H @@ -467,11 +467,11 @@ bool GetInfo_Partitions(QListView * lbox) #endif /* read the list of already mounted file-systems.. */ - QFile *file = new QFile(INFO_MOUNTED_PARTITIONS); + TQFile *file = new TQFile(INFO_MOUNTED_PARTITIONS); if (file->open(IO_ReadOnly)) { char buf[1024]; while (file->readLine(buf, sizeof( buf )) > 0) { - str = QString::fromLocal8Bit(buf); + str = TQString::fromLocal8Bit(buf); if (str.length()) { int p = str.find(' '); /* find first space. */ if (p) @@ -484,7 +484,7 @@ bool GetInfo_Partitions(QListView * lbox) delete file; /* create the header-tables */ - MB = QString(" ") + MB; + MB = TQString(" ") + MB; Title[0] = i18n("Device"); Title[1] = i18n("Mount Point"); Title[2] = i18n("FS Type"); @@ -518,16 +518,16 @@ bool GetInfo_Partitions(QListView * lbox) mountopts = FS_MNTOPS; cleanPassword(mountopts); if (total) - new QListViewItem(lbox, QString(FS_NAME) + " ", - QString(FS_FILE) + " ", - QString(FS_TYPE) + " ", + new TQListViewItem(lbox, TQString(FS_NAME) + " ", + TQString(FS_FILE) + " ", + TQString(FS_TYPE) + " ", Value((int) (((total / 1024) + 512) / 1024), 6) + MB, Value((int) (((avail / 1024) + 512) / 1024), 6) + MB, mountopts); else - new QListViewItem(lbox, QString(FS_NAME), QString(FS_FILE), - QString(FS_TYPE), " ", " ", mountopts); + new TQListViewItem(lbox, TQString(FS_NAME), TQString(FS_FILE), + TQString(FS_TYPE), " ", " ", mountopts); } #ifdef HAVE_FSTAB_H @@ -549,40 +549,40 @@ bool GetInfo_Partitions(QListView * lbox) -bool GetInfo_XServer_and_Video(QListView * lBox) +bool GetInfo_XServer_and_Video(TQListView * lBox) { return GetInfo_XServer_Generic(lBox); } /* GetInfo for CD-ROM Info by Jahshan Bhatti */ -bool GetInfo_CD_ROM(QListView * lBox) +bool GetInfo_CD_ROM(TQListView * lBox) { - QFile file(INFO_CD_ROM); + TQFile file(INFO_CD_ROM); lBox->addColumn(i18n("Information")); lBox->addColumn(i18n("Value")); if (file.exists() && file.open(IO_ReadOnly)) { - QRegExp rx("(.+):\\s+(\\S.*)"); - QTextStream stream(&file); - QString line; - QListViewItem *child = NULL; + TQRegExp rx("(.+):\\s+(\\S.*)"); + TQTextStream stream(&file); + TQString line; + TQListViewItem *child = NULL; while (!stream.atEnd()) { line = stream.readLine(); if (!line.isEmpty()) { if (-1 != rx.search(line)) { - QString text = rx.cap(1); - QString value = rx.cap(2); + TQString text = rx.cap(1); + TQString value = rx.cap(2); if (!text.contains('#')) { if (value == "0") value = KStdGuiItem::no().plainText(); if (value == "1") value = KStdGuiItem::yes().plainText(); } - child = new QListViewItem(lBox,child,text,value); + child = new TQListViewItem(lBox,child,text,value); } } else { - child = new QListViewItem(lBox,child,QString::null,QString::null); + child = new TQListViewItem(lBox,child,TQString::null,TQString::null); } } file.close(); diff --git a/kcontrol/info/info_netbsd.cpp b/kcontrol/info/info_netbsd.cpp index 228e32fb0..02fd98b1d 100644 --- a/kcontrol/info/info_netbsd.cpp +++ b/kcontrol/info/info_netbsd.cpp @@ -37,10 +37,10 @@ #include <stdlib.h> /* for malloc(3) */ #include <fstab.h> -#include <qfile.h> -#include <qfontmetrics.h> -#include <qstrlist.h> -#include <qtextstream.h> +#include <tqfile.h> +#include <tqfontmetrics.h> +#include <tqstrlist.h> +#include <tqtextstream.h> #include <kdebug.h> #include <kio/global.h> /* for KIO::convertSize() */ @@ -52,7 +52,7 @@ typedef struct const char *title; } hw_info_mib_list_t; -bool GetInfo_CPU(QListView *lBox) +bool GetInfo_CPU(TQListView *lBox) { static hw_info_mib_list_t hw_info_mib_list[]= { { 1, HW_MODEL, "Model" }, @@ -67,7 +67,7 @@ bool GetInfo_CPU(QListView *lBox) int mib[2], num; char *buf; size_t len; - QString value; + TQString value; lBox->addColumn(i18n("Information")); lBox->addColumn(i18n("Value")); @@ -80,19 +80,19 @@ bool GetInfo_CPU(QListView *lBox) sysctl(mib,2,NULL,&len,NULL,0); if ( (buf = (char*)malloc(len)) ) { sysctl(mib,2,buf,&len,NULL,0); - value = QString::fromLocal8Bit(buf); + value = TQString::fromLocal8Bit(buf); free(buf); } else { - value = QString("Unknown"); + value = TQString("Unknown"); } } else { len = sizeof(num); sysctl(mib,2,&num,&len,NULL,0); - value = QString::number(num); + value = TQString::number(num); } - new QListViewItem(lBox, hw_info_mib->title, value); + new TQListViewItem(lBox, hw_info_mib->title, value); } return true; @@ -100,29 +100,29 @@ bool GetInfo_CPU(QListView *lBox) // this is used to find out which devices are currently // on system -static bool GetDmesgInfo(QListView *lBox, const char *filter, - void func(QListView *, QString s)) +static bool GetDmesgInfo(TQListView *lBox, const char *filter, + void func(TQListView *, TQString s)) { - QFile *dmesg = new QFile("/var/run/dmesg.boot"); + TQFile *dmesg = new TQFile("/var/run/dmesg.boot"); bool usepipe = false; FILE *pipe = NULL; - QTextStream *t; + TQTextStream *t; bool seencpu = false; - QString s; + TQString s; bool found = false; if (dmesg->exists() && dmesg->open(IO_ReadOnly)) { - t = new QTextStream(dmesg); + t = new TQTextStream(dmesg); } else { delete dmesg; pipe = popen("/sbin/dmesg", "r"); if (!pipe) return false; usepipe = true; - t = new QTextStream(pipe, IO_ReadOnly); + t = new TQTextStream(pipe, IO_ReadOnly); } - QListViewItem *olditem = NULL; + TQListViewItem *olditem = NULL; while(!(s = t->readLine().local8Bit()).isEmpty()) { if (!seencpu) { if (s.contains("cpu")) @@ -140,7 +140,7 @@ static bool GetDmesgInfo(QListView *lBox, const char *filter, if (func) func(lBox, s); else - olditem = new QListViewItem(lBox, olditem, s); + olditem = new TQListViewItem(lBox, olditem, s); found = true; } } @@ -158,7 +158,7 @@ static bool GetDmesgInfo(QListView *lBox, const char *filter, void -AddIRQLine(QListView *lBox, QString s) +AddIRQLine(TQListView *lBox, TQString s) { int pos, irqnum; char numstr[3]; @@ -172,10 +172,10 @@ AddIRQLine(QListView *lBox, QString s) strcpy(numstr, "??"); } - new QListViewItem(lBox, numstr, s); + new TQListViewItem(lBox, numstr, s); } -bool GetInfo_IRQ (QListView *lBox) +bool GetInfo_IRQ (TQListView *lBox) { lBox->addColumn(i18n("IRQ")); lBox->addColumn(i18n("Device")); @@ -185,36 +185,36 @@ bool GetInfo_IRQ (QListView *lBox) return true; } -bool GetInfo_DMA (QListView *) +bool GetInfo_DMA (TQListView *) { return false; } -bool GetInfo_PCI (QListView *lbox) +bool GetInfo_PCI (TQListView *lbox) { if (!GetDmesgInfo(lbox, "at pci", NULL)) - new QListViewItem(lbox, i18n("No PCI devices found.")); + new TQListViewItem(lbox, i18n("No PCI devices found.")); return true; } -bool GetInfo_IO_Ports (QListView *lbox) +bool GetInfo_IO_Ports (TQListView *lbox) { if (!GetDmesgInfo(lbox, "port 0x", NULL)) - new QListViewItem(lbox, i18n("No I/O port devices found.")); + new TQListViewItem(lbox, i18n("No I/O port devices found.")); return true; } -bool GetInfo_Sound (QListView *lbox) +bool GetInfo_Sound (TQListView *lbox) { lbox->setSorting(false); if (!GetDmesgInfo(lbox, "audio", NULL)) - new QListViewItem(lbox, i18n("No audio devices found.")); + new TQListViewItem(lbox, i18n("No audio devices found.")); // append information for each audio devices found - QListViewItem *lvitem = lbox->firstChild(); + TQListViewItem *lvitem = lbox->firstChild(); for(; lvitem; lvitem = lvitem->nextSibling()) { - QString s; + TQString s; int pos, len; const char *start; char *dev; @@ -237,21 +237,21 @@ bool GetInfo_Sound (QListView *lbox) return true; } -bool GetInfo_Devices (QListView *lBox) +bool GetInfo_Devices (TQListView *lBox) { (void) GetDmesgInfo(lBox, NULL, NULL); return true; } -bool GetInfo_SCSI (QListView *lbox) +bool GetInfo_SCSI (TQListView *lbox) { if (!GetDmesgInfo(lbox, "scsibus", NULL)) - new QListViewItem(lbox, i18n("No SCSI devices found.")); + new TQListViewItem(lbox, i18n("No SCSI devices found.")); // remove the 'waiting %d seconds for devices to settle' message - QListViewItem *lvitem = lbox->firstChild(); + TQListViewItem *lvitem = lbox->firstChild(); for(; lvitem; lvitem = lvitem->nextSibling()) { - QString s = lvitem->text(0); + TQString s = lvitem->text(0); if (s.contains("seconds for devices to settle")) { lbox->removeItem(lvitem); @@ -262,7 +262,7 @@ bool GetInfo_SCSI (QListView *lbox) return true; } -bool GetInfo_Partitions (QListView *lbox) +bool GetInfo_Partitions (TQListView *lbox) { int num; // number of mounts // FIXME: older pkgsrc patches checked ST_RDONLY for this declaration @@ -288,7 +288,7 @@ bool GetInfo_Partitions (QListView *lbox) // mnt points into a static array (no need to free it) for(; num--; ++mnt) { unsigned long long big[2]; - QString vv[5]; + TQString vv[5]; big[0] = big[1] = mnt->f_bsize; // coerce the product big[0] *= mnt->f_blocks; @@ -296,18 +296,18 @@ bool GetInfo_Partitions (QListView *lbox) // convert to strings vv[0] = KIO::convertSize(big[0]); - vv[1] = QString::fromLatin1("%1 (%2%%)") + vv[1] = TQString::fromLatin1("%1 (%2%%)") .arg(KIO::convertSize(big[1])) .arg(mnt->f_blocks ? mnt->f_bavail*100/mnt->f_blocks : 0); // FIXME: these two are large enough to punctuate - vv[2] = QString::number(mnt->f_files); - vv[3] = QString::fromLatin1("%1 (%2%%) ") + vv[2] = TQString::number(mnt->f_files); + vv[3] = TQString::fromLatin1("%1 (%2%%) ") .arg(mnt->f_ffree) .arg(mnt->f_files ? mnt->f_ffree*100/mnt->f_files : 0); - vv[4] = QString::null; -#define MNTF(x) if (mnt->f_flags & MNT_##x) vv[4] += QString::fromLatin1(#x " "); + vv[4] = TQString::null; +#define MNTF(x) if (mnt->f_flags & MNT_##x) vv[4] += TQString::fromLatin1(#x " "); MNTF(ASYNC) MNTF(DEFEXPORTED) MNTF(EXKERB) @@ -335,7 +335,7 @@ bool GetInfo_Partitions (QListView *lbox) // put it in the table // FIXME: there're more data but we have limited args (this is wrong! just add!) - new QListViewItem(lbox, + new TQListViewItem(lbox, // FIXME: names need pad space mnt->f_mntfromname, mnt->f_mntonname, @@ -347,7 +347,7 @@ bool GetInfo_Partitions (QListView *lbox) return true; } -bool GetInfo_XServer_and_Video (QListView *lBox) +bool GetInfo_XServer_and_Video (TQListView *lBox) { return GetInfo_XServer_Generic( lBox ); } diff --git a/kcontrol/info/info_openbsd.cpp b/kcontrol/info/info_openbsd.cpp index 92995fd78..12ec8ee2d 100644 --- a/kcontrol/info/info_openbsd.cpp +++ b/kcontrol/info/info_openbsd.cpp @@ -35,10 +35,10 @@ #include <stdio.h> /* for NULL */ #include <stdlib.h> /* for malloc(3) */ -#include <qfile.h> -#include <qfontmetrics.h> -#include <qstrlist.h> -#include <qtextstream.h> +#include <tqfile.h> +#include <tqfontmetrics.h> +#include <tqstrlist.h> +#include <tqtextstream.h> #include <kdebug.h> @@ -49,7 +49,7 @@ typedef struct const char *title; } hw_info_mib_list_t; -bool GetInfo_CPU(QListView *lBox) +bool GetInfo_CPU(TQListView *lBox) { static hw_info_mib_list_t hw_info_mib_list[]= { { 1, HW_MODEL, "Model" }, @@ -63,7 +63,7 @@ bool GetInfo_CPU(QListView *lBox) int mib[2], num; char *buf; size_t len; - QString value; + TQString value; lBox->addColumn(i18n("Information")); lBox->addColumn(i18n("Value")); @@ -76,11 +76,11 @@ bool GetInfo_CPU(QListView *lBox) sysctl(mib,2,NULL,&len,NULL,0); if ( (buf = (char*)malloc(len)) ) { sysctl(mib,2,buf,&len,NULL,0); - value = QString::fromLocal8Bit(buf); + value = TQString::fromLocal8Bit(buf); free(buf); } else { - value = QString("Unknown"); + value = TQString("Unknown"); } } else { @@ -88,7 +88,7 @@ bool GetInfo_CPU(QListView *lBox) sysctl(mib,2,&num,&len,NULL,0); value.sprintf("%d", num); } - new QListViewItem(lBox, hw_info_mib->title, value); + new TQListViewItem(lBox, hw_info_mib->title, value); } return true; @@ -96,30 +96,30 @@ bool GetInfo_CPU(QListView *lBox) // this is used to find out which devices are currently // on system -static bool GetDmesgInfo(QListView *lBox, const char *filter, - void func(QListView *, QString s, void **, bool)) +static bool GetDmesgInfo(TQListView *lBox, const char *filter, + void func(TQListView *, TQString s, void **, bool)) { - QFile *dmesg = new QFile("/var/run/dmesg.boot"); + TQFile *dmesg = new TQFile("/var/run/dmesg.boot"); bool usepipe=false; FILE *pipe=NULL; - QTextStream *t; + TQTextStream *t; bool seencpu=false; void *opaque=NULL; - QString s; + TQString s; bool found=false; if (dmesg->exists() && dmesg->open(IO_ReadOnly)) { - t = new QTextStream(dmesg); + t = new TQTextStream(dmesg); } else { delete dmesg; pipe = popen("/sbin/dmesg", "r"); if (!pipe) return false; usepipe = true; - t = new QTextStream(pipe, IO_ReadOnly); + t = new TQTextStream(pipe, IO_ReadOnly); } - QListViewItem *olditem = NULL; + TQListViewItem *olditem = NULL; while(!(s = t->readLine()).isNull()) { if (!seencpu) { if (s.contains("cpu")) @@ -136,7 +136,7 @@ static bool GetDmesgInfo(QListView *lBox, const char *filter, func(lBox, s, &opaque, false); } else { - olditem = new QListViewItem(lBox, olditem, s); + olditem = new TQListViewItem(lBox, olditem, s); } found = true; } @@ -159,22 +159,22 @@ static bool GetDmesgInfo(QListView *lBox, const char *filter, } -void AddIRQLine(QListView *lBox, QString s, void **opaque, bool ending) +void AddIRQLine(TQListView *lBox, TQString s, void **opaque, bool ending) { - QStrList *strlist = (QStrList *) *opaque; + TQStrList *strlist = (TQStrList *) *opaque; const char *str; int pos, irqnum=0; const char *p; p = s.latin1(); if (!strlist) { - strlist = new QStrList(); + strlist = new TQStrList(); *opaque = (void *) strlist; } if (ending) { str = strlist->first(); for(;str; str = strlist->next()) { - new QListViewItem(lBox, str); + new TQListViewItem(lBox, str); } delete strlist; return; @@ -191,7 +191,7 @@ void AddIRQLine(QListView *lBox, QString s, void **opaque, bool ending) strlist->inSort(s.latin1()); } -bool GetInfo_IRQ (QListView *lBox) +bool GetInfo_IRQ (TQListView *lBox) { lBox->addColumn(i18n("IRQ")); lBox->addColumn(i18n("Device")); @@ -199,34 +199,34 @@ bool GetInfo_IRQ (QListView *lBox) return true; } -bool GetInfo_DMA (QListView *) +bool GetInfo_DMA (TQListView *) { return false; } -bool GetInfo_PCI (QListView *lbox) +bool GetInfo_PCI (TQListView *lbox) { if (!GetDmesgInfo(lbox, "at pci", NULL)) - new QListViewItem(lbox, i18n("No PCI devices found.")); + new TQListViewItem(lbox, i18n("No PCI devices found.")); return true; } -bool GetInfo_IO_Ports (QListView *lbox) +bool GetInfo_IO_Ports (TQListView *lbox) { if (!GetDmesgInfo(lbox, "port 0x", NULL)) - new QListViewItem(lbox, i18n("No I/O port devices found.")); + new TQListViewItem(lbox, i18n("No I/O port devices found.")); return true; } -bool GetInfo_Sound (QListView *lbox) +bool GetInfo_Sound (TQListView *lbox) { if (!GetDmesgInfo(lbox, "audio", NULL)) - new QListViewItem(lbox, i18n("No audio devices found.")); + new TQListViewItem(lbox, i18n("No audio devices found.")); // append information on any audio devices found - QListViewItem *lvitem = lbox->firstChild(); + TQListViewItem *lvitem = lbox->firstChild(); for(; lvitem; lvitem = lvitem->nextSibling()) { - QString s; + TQString s; int pos, len; const char *start, *end; char *dev; @@ -250,39 +250,39 @@ bool GetInfo_Sound (QListView *lbox) return true; } -bool GetInfo_Devices (QListView *lBox) +bool GetInfo_Devices (TQListView *lBox) { (void) GetDmesgInfo(lBox, NULL, NULL); return true; } -bool GetInfo_SCSI (QListView *lbox) +bool GetInfo_SCSI (TQListView *lbox) { if (!GetDmesgInfo(lbox, "scsibus", NULL)) - new QListViewItem(lbox, i18n("No SCSI devices found.")); + new TQListViewItem(lbox, i18n("No SCSI devices found.")); return true; } -bool GetInfo_Partitions (QListView *lbox) +bool GetInfo_Partitions (TQListView *lbox) { - QString s; + TQString s; char *line, *orig_line; const char *device, *mountpoint, *type, *flags; FILE *pipe = popen("/sbin/mount", "r"); - QTextStream *t; + TQTextStream *t; if (!pipe) { kdError(0) << i18n("Unable to run /sbin/mount.") << endl; return false; } - t = new QTextStream(pipe, IO_ReadOnly); + t = new TQTextStream(pipe, IO_ReadOnly); lbox->addColumn(i18n("Device")); lbox->addColumn(i18n("Mount Point")); lbox->addColumn(i18n("FS Type")); lbox->addColumn(i18n("Mount Options")); - QListViewItem *olditem = 0; + TQListViewItem *olditem = 0; while (!(s = t->readLine()).isNull()) { orig_line = line = strdup(s.latin1()); @@ -296,7 +296,7 @@ bool GetInfo_Partitions (QListView *lbox) flags = line; - olditem = new QListViewItem(lbox, olditem, device, mountpoint, + olditem = new TQListViewItem(lbox, olditem, device, mountpoint, type, flags); free(orig_line); @@ -307,7 +307,7 @@ bool GetInfo_Partitions (QListView *lbox) return true; } -bool GetInfo_XServer_and_Video (QListView *lBox) +bool GetInfo_XServer_and_Video (TQListView *lBox) { return GetInfo_XServer_Generic( lBox ); } diff --git a/kcontrol/info/info_osx.cpp b/kcontrol/info/info_osx.cpp index 25f23c2d9..5f18aebea 100644 --- a/kcontrol/info/info_osx.cpp +++ b/kcontrol/info/info_osx.cpp @@ -45,12 +45,12 @@ #include <iostream.h> -#include <qdict.h> -#include <qfile.h> -#include <qfontmetrics.h> -#include <qptrlist.h> -#include <qstring.h> -#include <qtextstream.h> +#include <tqdict.h> +#include <tqfile.h> +#include <tqfontmetrics.h> +#include <tqptrlist.h> +#include <tqstring.h> +#include <tqtextstream.h> #include <kdebug.h> @@ -63,10 +63,10 @@ #include <machine/limits.h> -bool GetInfo_CPU (QListView *lBox) +bool GetInfo_CPU (TQListView *lBox) { - QString cpustring; + TQString cpustring; kern_return_t ret; struct host_basic_info basic_info; @@ -81,37 +81,37 @@ bool GetInfo_CPU (QListView *lBox) kdDebug() << "got Host Info: (" << basic_info.avail_cpus << ") CPUs available" << endl; const NXArchInfo *archinfo; archinfo=NXGetArchInfoFromCpuType(basic_info.cpu_type, basic_info.cpu_subtype); - new QListViewItem(lBox, i18n("Kernel is configured for %1 CPUs").arg(basic_info.max_cpus)); + new TQListViewItem(lBox, i18n("Kernel is configured for %1 CPUs").arg(basic_info.max_cpus)); for (int i = 1; i <= basic_info.avail_cpus; i++) { cpustring = i18n("CPU %1: %2").arg(i).arg(archinfo->description); - new QListViewItem(lBox, cpustring); + new TQListViewItem(lBox, cpustring); } return true; } return false; } -bool GetInfo_IRQ (QListView *) +bool GetInfo_IRQ (TQListView *) { return false; } -bool GetInfo_DMA (QListView *) +bool GetInfo_DMA (TQListView *) { return false; } -bool GetInfo_PCI (QListView *) +bool GetInfo_PCI (TQListView *) { return false; } -bool GetInfo_IO_Ports (QListView *) +bool GetInfo_IO_Ports (TQListView *) { return false; } -bool GetInfo_Sound (QListView *lBox) +bool GetInfo_Sound (TQListView *lBox) { #ifdef HAVE_COREAUDIO #define kMaxStringSize 1024 @@ -137,7 +137,7 @@ bool GetInfo_Sound (QListView *lBox) kdDebug() << "get device name failed, status = " << (int)status << endl; return false; } - new QListViewItem(lBox, i18n("Device Name: %1").arg(deviceName)); + new TQListViewItem(lBox, i18n("Device Name: %1").arg(deviceName)); /* Manufacturer */ status = AudioDeviceGetProperty(gOutputDeviceID, 1, 0, kAudioDevicePropertyDeviceManufacturer, &propertySize, manufacturer); @@ -145,7 +145,7 @@ bool GetInfo_Sound (QListView *lBox) kdDebug() << "get manufacturer failed, status = " << (int)status << endl; return false; } - new QListViewItem(lBox, i18n("Manufacturer: %1").arg(manufacturer)); + new TQListViewItem(lBox, i18n("Manufacturer: %1").arg(manufacturer)); return true; } else { return false; @@ -155,22 +155,22 @@ bool GetInfo_Sound (QListView *lBox) #endif } -bool GetInfo_SCSI (QListView *lbox) +bool GetInfo_SCSI (TQListView *lbox) { return false; } -bool GetInfo_Partitions (QListView *lbox) +bool GetInfo_Partitions (TQListView *lbox) { return false; } -bool GetInfo_XServer_and_Video (QListView *lBox) +bool GetInfo_XServer_and_Video (TQListView *lBox) { return GetInfo_XServer_Generic( lBox ); } -bool GetInfo_Devices (QListView *lbox) +bool GetInfo_Devices (TQListView *lbox) { return false; } diff --git a/kcontrol/info/info_sgi.cpp b/kcontrol/info/info_sgi.cpp index 2cd1a1e30..7961d4e16 100644 --- a/kcontrol/info/info_sgi.cpp +++ b/kcontrol/info/info_sgi.cpp @@ -23,59 +23,59 @@ #include <sys/systeminfo.h> -bool GetInfo_CPU( QListView *lBox ) +bool GetInfo_CPU( TQListView *lBox ) { - QString str; + TQString str; char buf[256]; sysinfo(SI_ARCHITECTURE, buf, sizeof(buf)); - str = QString::fromLocal8Bit(buf); - new QListViewItem(lBox, str); + str = TQString::fromLocal8Bit(buf); + new TQListViewItem(lBox, str); return true; } -bool GetInfo_IRQ( QListView * ) +bool GetInfo_IRQ( TQListView * ) { return false; } -bool GetInfo_DMA( QListView * ) +bool GetInfo_DMA( TQListView * ) { return false; } -bool GetInfo_PCI( QListView * ) +bool GetInfo_PCI( TQListView * ) { return false; } -bool GetInfo_IO_Ports( QListView * ) +bool GetInfo_IO_Ports( TQListView * ) { return false; } -bool GetInfo_Sound( QListView * ) +bool GetInfo_Sound( TQListView * ) { return false; } -bool GetInfo_Devices( QListView * ) +bool GetInfo_Devices( TQListView * ) { return false; } -bool GetInfo_SCSI( QListView * ) +bool GetInfo_SCSI( TQListView * ) { return false; } -bool GetInfo_Partitions( QListView * ) +bool GetInfo_Partitions( TQListView * ) { return false; } -bool GetInfo_XServer_and_Video( QListView *lBox ) +bool GetInfo_XServer_and_Video( TQListView *lBox ) { return GetInfo_XServer_Generic( lBox ); } diff --git a/kcontrol/info/info_solaris.cpp b/kcontrol/info/info_solaris.cpp index 761200e75..9f2b17e1b 100644 --- a/kcontrol/info/info_solaris.cpp +++ b/kcontrol/info/info_solaris.cpp @@ -34,7 +34,7 @@ #define INFO_XSERVER_AVAILABLE -bool GetInfo_CPU( QListView *lBox ) { +bool GetInfo_CPU( TQListView *lBox ) { kstat_ctl_t *kctl; kstat_t *ksp; @@ -114,7 +114,7 @@ bool GetInfo_CPU( QListView *lBox ) { } kdata = (kstat_named_t *) kstat_data_lookup( ksp, "state" ); if( kdata != NULL ) { - state = QString( kdata->value.c ); + state = TQString( kdata->value.c ); } else { state = "???"; } @@ -124,11 +124,11 @@ bool GetInfo_CPU( QListView *lBox ) { if( (timetxt = ctime( (time_t *) &state_begin )) != NULL ) { ptr = strrchr( timetxt, '\n' ); *ptr = '\0'; - state += " since " + QString( timetxt ); + state += " since " + TQString( timetxt ); } } - new QListViewItem( lBox, inst, cputype, fputype, mhz, state ); + new TQListViewItem( lBox, inst, cputype, fputype, mhz, state ); } // sorting_allowed = true; @@ -137,31 +137,31 @@ bool GetInfo_CPU( QListView *lBox ) { return true; } -bool GetInfo_IRQ( QListView * ) { +bool GetInfo_IRQ( TQListView * ) { return false; } -bool GetInfo_DMA( QListView * ) { +bool GetInfo_DMA( TQListView * ) { return false; } -bool GetInfo_PCI( QListView * ) { +bool GetInfo_PCI( TQListView * ) { return false; } -bool GetInfo_IO_Ports( QListView * ) { +bool GetInfo_IO_Ports( TQListView * ) { return false; } -bool GetInfo_Sound( QListView * ) { +bool GetInfo_Sound( TQListView * ) { return false; } -bool GetInfo_SCSI( QListView * ) { +bool GetInfo_SCSI( TQListView * ) { return false; } -bool GetInfo_Partitions( QListView *lBox ) { +bool GetInfo_Partitions( TQListView *lBox ) { FILE *mnttab; struct mnttab mnt; @@ -268,14 +268,14 @@ bool GetInfo_Partitions( QListView *lBox ) { *ptr = '\0'; } - new QListViewItem( + new TQListViewItem( lBox, mnt.mnt_special, mnt.mnt_mountp, mnt.mnt_fstype, total, avail, - QString( timetxt ), + TQString( timetxt ), mnt.mnt_mntopts ); } @@ -287,7 +287,7 @@ bool GetInfo_Partitions( QListView *lBox ) { return true; } -bool GetInfo_XServer_and_Video( QListView *lBox ) { +bool GetInfo_XServer_and_Video( TQListView *lBox ) { return GetInfo_XServer_Generic( lBox ); } @@ -313,7 +313,7 @@ bool GetInfo_XServer_and_Video( QListView *lBox ) { * mktree() -- break up the device path and place its components * into the tree widget */ -QListViewItem *mktree( QListViewItem *top, const char *path ) { +TQListViewItem *mktree( TQListViewItem *top, const char *path ) { QListViewItem *parent, *previous, @@ -348,7 +348,7 @@ QListViewItem *mktree( QListViewItem *top, const char *path ) { /* * we haven't found the node, create a new one */ - result = new QListViewItem( parent, + result = new TQListViewItem( parent, previous, token ); } else { @@ -453,21 +453,21 @@ int dump_minor_node( di_node_t node, di_minor_t minor, void *arg ) { char *type; dev_t dev; - item = new QListViewItem( (QListViewItem *) arg, + item = new TQListViewItem( (TQListViewItem *) arg, di_minor_name( minor )); item->setExpandable( true ); item->setOpen( false ); - new QListViewItem( item, i18n( "Spectype:" ), + new TQListViewItem( item, i18n( "Spectype:" ), (di_minor_spectype( minor ) == S_IFCHR) ? i18n( "character special" ) : i18n( "block special" )); type = di_minor_nodetype( minor ); - new QListViewItem( item, i18n( "Nodetype:" ), + new TQListViewItem( item, i18n( "Nodetype:" ), (type == NULL) ? "NULL" : type ); if( (dev = di_minor_devt( minor )) != DDI_DEV_T_NONE ) { majmin.sprintf( "%ld/%ld", major( dev ), minor( dev )); - new QListViewItem( item, i18n( "Major/Minor:" ), majmin ); + new TQListViewItem( item, i18n( "Major/Minor:" ), majmin ); } if( di_minor_next( node, minor ) == DI_MINOR_NIL ) @@ -479,7 +479,7 @@ int dump_minor_node( di_node_t node, di_minor_t minor, void *arg ) { /* * propvalue() -- return the property value */ -QString propvalue( di_prop_t prop ) { +TQString propvalue( di_prop_t prop ) { int type; int i, n; @@ -518,7 +518,7 @@ QString propvalue( di_prop_t prop ) { result = "(error)"; } else { for( i = 0; i < n; i++ ) { - QString tmp; + TQString tmp; tmp.setNum( intp[i] ); result += tmp; result += " "; @@ -542,7 +542,7 @@ QString propvalue( di_prop_t prop ) { } result = "0x"; for( i = 0; i < n; i++ ) { - QString tmp; + TQString tmp; unsigned byte = (unsigned) bytep[i]; tmp.sprintf( "%2.2x", byte ); result += tmp; @@ -562,7 +562,7 @@ QString propvalue( di_prop_t prop ) { */ int dump_node( di_node_t node, void *arg ) { - QListViewItem *top = (QListViewItem *) arg, + QListViewItem *top = (TQListViewItem *) arg, *parent, *previous; char *path; @@ -578,7 +578,7 @@ int dump_node( di_node_t node, void *arg ) { * if this is the root node ("/"), initialize the tree */ if( strlen( path ) == 1 ) { - top->setText( 0, QString( di_binding_name( node ))); + top->setText( 0, TQString( di_binding_name( node ))); top->setPixmap( 0, SmallIcon( "kcmdevices" )); top->setOpen( true ); top->setSelectable( false ); @@ -605,12 +605,12 @@ int dump_node( di_node_t node, void *arg ) { * node name and physical device path */ drivername = di_driver_name( node ); - previous = new QListViewItem( parent, + previous = new TQListViewItem( parent, i18n( "Driver Name:" ), (drivername == NULL) ? i18n( "(driver not attached)" ) : drivername ); - previous = new QListViewItem( parent, previous, + previous = new TQListViewItem( parent, previous, i18n( "Binding Name:" ), di_binding_name( node )); n = di_compatible_names( node, &names ); @@ -624,17 +624,17 @@ int dump_node( di_node_t node, void *arg ) { } } - previous = new QListViewItem( parent, previous, + previous = new TQListViewItem( parent, previous, i18n( "Compatible Names:" ), compatnames ); - previous = new QListViewItem( parent, previous, - i18n( "Physical Path:" ), QString( path )); + previous = new TQListViewItem( parent, previous, + i18n( "Physical Path:" ), TQString( path )); /* * dump the node's property list (if any) */ if( (prop = di_prop_next( node, DI_PROP_NIL )) != DI_PROP_NIL ) { - previous = new QListViewItem( parent, previous, i18n( "Properties" )); + previous = new TQListViewItem( parent, previous, i18n( "Properties" )); previous->setExpandable( true ); previous->setOpen( false ); do { @@ -643,12 +643,12 @@ int dump_node( di_node_t node, void *arg ) { */ QListViewItem *tmp, *prev; - tmp = new QListViewItem( previous, di_prop_name( prop )); + tmp = new TQListViewItem( previous, di_prop_name( prop )); tmp->setExpandable( true ); tmp->setOpen( false ); - prev = new QListViewItem( tmp, i18n( "Type:" ), + prev = new TQListViewItem( tmp, i18n( "Type:" ), prop_type_str( prop )); - new QListViewItem( tmp, prev, i18n( "Value:" ), + new TQListViewItem( tmp, prev, i18n( "Value:" ), propvalue( prop )); } while( (prop = di_prop_next( node, prop )) != DI_PROP_NIL ); } @@ -657,7 +657,7 @@ int dump_node( di_node_t node, void *arg ) { * if there are minor nodes, expand the tree appropriately */ if( di_minor_next( node, DI_MINOR_NIL ) != DI_MINOR_NIL ) { - previous = new QListViewItem( parent, previous, i18n( "Minor Nodes" )); + previous = new TQListViewItem( parent, previous, i18n( "Minor Nodes" )); previous->setExpandable( true ); previous->setOpen( false ); di_walk_minor( node, NULL, 0, previous, dump_minor_node ); @@ -666,7 +666,7 @@ int dump_node( di_node_t node, void *arg ) { return( DI_WALK_CONTINUE ); } -bool GetInfo_Devices( QListView *lBox ) { +bool GetInfo_Devices( TQListView *lBox ) { QListViewItem *top; di_node_t root_node; @@ -685,7 +685,7 @@ bool GetInfo_Devices( QListView *lBox ) { lBox->addColumn( i18n( "Device Information" )); lBox->addColumn( i18n( "Value" )); - top = new QListViewItem( lBox ); + top = new TQListViewItem( lBox ); /* * traverse the device tree @@ -699,7 +699,7 @@ bool GetInfo_Devices( QListView *lBox ) { } #else /* ! HAVE_LIBDEVINFO_H */ -bool GetInfo_Devices( QListView * ) { +bool GetInfo_Devices( TQListView * ) { return false; } #endif /* ! HAVE_LIBDEVINFO_H */ diff --git a/kcontrol/info/info_svr4.cpp b/kcontrol/info/info_svr4.cpp index 2509aa062..ba491a50e 100644 --- a/kcontrol/info/info_svr4.cpp +++ b/kcontrol/info/info_svr4.cpp @@ -27,13 +27,13 @@ returning false indicates, that information was not available. */ -bool GetInfo_ReadfromFile( QListView *lBox, char *Name, char splitchar ) +bool GetInfo_ReadfromFile( TQListView *lBox, char *Name, char splitchar ) { - QString str; + TQString str; char buf[512]; - QFile *file = new QFile(Name); - QListViewItem* olditem = 0; + TQFile *file = new TQFile(Name); + TQListViewItem* olditem = 0; if(!file->open(IO_ReadOnly)) { delete file; @@ -54,12 +54,12 @@ bool GetInfo_ReadfromFile( QListView *lBox, char *Name, char splitchar ) else ++p; } - QString s1 = QString::fromLocal8Bit(buf); - QString s2 = s1.mid(s1.find(splitchar)+1); + TQString s1 = TQString::fromLocal8Bit(buf); + TQString s2 = s1.mid(s1.find(splitchar)+1); s1.truncate(s1.find(splitchar)); if(!(s1.isEmpty() || s2.isEmpty())) - olditem = new QListViewItem(lBox, olditem, s1, s2); + olditem = new TQListViewItem(lBox, olditem, s1, s2); } } file->close(); @@ -68,41 +68,41 @@ bool GetInfo_ReadfromFile( QListView *lBox, char *Name, char splitchar ) return true; } -bool GetInfo_CPU( QListView *lBox ) +bool GetInfo_CPU( TQListView *lBox ) { char buf[256]; sysinfo(SI_ARCHITECTURE, buf, sizeof(buf)); - new QListViewItem(lBox, QString::fromLocal8Bit(buf)); + new TQListViewItem(lBox, TQString::fromLocal8Bit(buf)); return true; } -bool GetInfo_IRQ( QListView * ) +bool GetInfo_IRQ( TQListView * ) { return false; } -bool GetInfo_DMA( QListView * ) +bool GetInfo_DMA( TQListView * ) { return false; } -bool GetInfo_PCI( QListView *lBox ) +bool GetInfo_PCI( TQListView *lBox ) { char buf[256]; sysinfo(SI_BUSTYPES, buf, sizeof(buf)); - new QListViewItem(lBox, QString::fromLocal8Bit(buf)); + new TQListViewItem(lBox, TQString::fromLocal8Bit(buf)); return true; } -bool GetInfo_IO_Ports( QListView * ) +bool GetInfo_IO_Ports( TQListView * ) { return false; } -bool GetInfo_Sound( QListView *lBox ) +bool GetInfo_Sound( TQListView *lBox ) { if ( GetInfo_ReadfromFile( lBox, INFO_DEV_SNDSTAT, 0 )) return true; @@ -110,22 +110,22 @@ bool GetInfo_Sound( QListView *lBox ) return false; } -bool GetInfo_Devices( QListView * ) +bool GetInfo_Devices( TQListView * ) { return false; } -bool GetInfo_SCSI( QListView * ) +bool GetInfo_SCSI( TQListView * ) { return false; } -bool GetInfo_Partitions( QListView * ) +bool GetInfo_Partitions( TQListView * ) { return false; } -bool GetInfo_XServer_and_Video( QListView *lBox ) +bool GetInfo_XServer_and_Video( TQListView *lBox ) { return GetInfo_XServer_Generic( lBox ); } diff --git a/kcontrol/info/main.cpp b/kcontrol/info/main.cpp index 7992fbc37..689ac25b7 100644 --- a/kcontrol/info/main.cpp +++ b/kcontrol/info/main.cpp @@ -34,7 +34,7 @@ extern "C" { - KDE_EXPORT KCModule *create_cpu(QWidget *parent, const char * /*name*/) + KDE_EXPORT KCModule *create_cpu(TQWidget *parent, const char * /*name*/) { #ifdef INFO_CPU_AVAILABLE return new KInfoListWidget(i18n("Processor(s)"), parent, "kcminfo", GetInfo_CPU); @@ -43,7 +43,7 @@ extern "C" #endif } - KDE_EXPORT KCModule *create_irq(QWidget *parent, const char * /*name*/) + KDE_EXPORT KCModule *create_irq(TQWidget *parent, const char * /*name*/) { #ifdef INFO_IRQ_AVAILABLE return new KInfoListWidget(i18n("Interrupt"), parent, "kcminfo", GetInfo_IRQ); @@ -52,7 +52,7 @@ extern "C" #endif } - KDE_EXPORT KCModule *create_pci(QWidget *parent, const char * /*name*/) + KDE_EXPORT KCModule *create_pci(TQWidget *parent, const char * /*name*/) { #ifdef INFO_PCI_AVAILABLE return new KInfoListWidget(i18n("PCI"), parent, "kcminfo", GetInfo_PCI); @@ -61,7 +61,7 @@ extern "C" #endif } - KDE_EXPORT KCModule *create_dma(QWidget *parent, const char * /*name*/) + KDE_EXPORT KCModule *create_dma(TQWidget *parent, const char * /*name*/) { #ifdef INFO_DMA_AVAILABLE return new KInfoListWidget(i18n("DMA-Channel"), parent, "kcminfo", GetInfo_DMA); @@ -70,7 +70,7 @@ extern "C" #endif } - KDE_EXPORT KCModule *create_ioports(QWidget *parent, const char * /*name*/) + KDE_EXPORT KCModule *create_ioports(TQWidget *parent, const char * /*name*/) { #ifdef INFO_IOPORTS_AVAILABLE return new KInfoListWidget(i18n("I/O-Port"), parent, "kcminfo", GetInfo_IO_Ports); @@ -79,7 +79,7 @@ extern "C" #endif } - KDE_EXPORT KCModule *create_sound(QWidget *parent, const char * /*name*/) + KDE_EXPORT KCModule *create_sound(TQWidget *parent, const char * /*name*/) { #ifdef INFO_SOUND_AVAILABLE return new KInfoListWidget(i18n("Soundcard"), parent, "kcminfo", GetInfo_Sound); @@ -88,7 +88,7 @@ extern "C" #endif } - KDE_EXPORT KCModule *create_scsi(QWidget *parent, const char * /*name*/) + KDE_EXPORT KCModule *create_scsi(TQWidget *parent, const char * /*name*/) { #ifdef INFO_SCSI_AVAILABLE return new KInfoListWidget(i18n("SCSI"), parent, "kcminfo", GetInfo_SCSI); @@ -97,7 +97,7 @@ extern "C" #endif } - KDE_EXPORT KCModule *create_devices(QWidget *parent, const char * /*name*/) + KDE_EXPORT KCModule *create_devices(TQWidget *parent, const char * /*name*/) { #ifdef INFO_DEVICES_AVAILABLE return new KInfoListWidget(i18n("Devices"), parent, "kcminfo", GetInfo_Devices); @@ -106,7 +106,7 @@ extern "C" #endif } - KDE_EXPORT KCModule *create_partitions(QWidget *parent, const char * /*name*/) + KDE_EXPORT KCModule *create_partitions(TQWidget *parent, const char * /*name*/) { #ifdef INFO_PARTITIONS_AVAILABLE return new KInfoListWidget(i18n("Partitions"), parent, "kcminfo", GetInfo_Partitions); @@ -115,7 +115,7 @@ extern "C" #endif } - KDE_EXPORT KCModule *create_xserver(QWidget *parent, const char * /*name*/) + KDE_EXPORT KCModule *create_xserver(TQWidget *parent, const char * /*name*/) { #ifdef INFO_XSERVER_AVAILABLE return new KInfoListWidget(i18n("X-Server"), parent, "kcminfo", GetInfo_XServer_and_Video); @@ -124,12 +124,12 @@ extern "C" #endif } - KDE_EXPORT KCModule *create_memory(QWidget *parent, const char * /*name*/) + KDE_EXPORT KCModule *create_memory(TQWidget *parent, const char * /*name*/) { return new KMemoryWidget(parent, "kcminfo"); } - KDE_EXPORT KCModule *create_opengl(QWidget *parent, const char * ) + KDE_EXPORT KCModule *create_opengl(TQWidget *parent, const char * ) { #ifdef INFO_OPENGL_AVAILABLE return new KInfoListWidget(i18n("OpenGL"), parent, "kcminfo", GetInfo_OpenGL); @@ -139,7 +139,7 @@ extern "C" } /* create_cdinfo function for CD-ROM Info ~Jahshan */ - KDE_EXPORT KCModule *create_cdinfo(QWidget *parent, const char * /*name*/) + KDE_EXPORT KCModule *create_cdinfo(TQWidget *parent, const char * /*name*/) { #ifdef INFO_CD_ROM_AVAILABLE return new KInfoListWidget(i18n("CD-ROM Info"), parent, "kcminfo", GetInfo_CD_ROM); diff --git a/kcontrol/info/memory.cpp b/kcontrol/info/memory.cpp index 9743087dd..df7bcc6fa 100644 --- a/kcontrol/info/memory.cpp +++ b/kcontrol/info/memory.cpp @@ -24,10 +24,10 @@ #include <sys/param.h> /* for BSD */ -#include <qlayout.h> -#include <qpainter.h> -#include <qdrawutil.h> -#include <qtooltip.h> +#include <tqlayout.h> +#include <tqpainter.h> +#include <tqdrawutil.h> +#include <tqtooltip.h> #include <kglobal.h> #include <kdialog.h> @@ -68,15 +68,15 @@ static t_memsize Memory_Info[MEM_LAST_ENTRY]; /* Implementation */ /******************/ -static QLabel *MemSizeLabel[MEM_LAST_ENTRY][2]; +static TQLabel *MemSizeLabel[MEM_LAST_ENTRY][2]; enum { MEM_RAM_AND_HDD, MEM_RAM, MEM_HDD, MEM_LAST }; -static QWidget *Graph[MEM_LAST]; -static QLabel *GraphLabel[MEM_LAST]; +static TQWidget *Graph[MEM_LAST]; +static TQLabel *GraphLabel[MEM_LAST]; #define SPACING 16 -static QString formatted_unit(t_memsize value) +static TQString formatted_unit(t_memsize value) { if (value > (1024 * 1024)) if (value > (1024 * 1024 * 1024)) @@ -87,7 +87,7 @@ static QString formatted_unit(t_memsize value) return i18n("%1 KB").arg(KGlobal::locale()->formatNumber(value / 1024.0, 2)); } -KMemoryWidget::KMemoryWidget(QWidget * parent, const char *name) +KMemoryWidget::KMemoryWidget(TQWidget * parent, const char *name) : KCModule(parent, name) { @@ -100,8 +100,8 @@ KMemoryWidget::KMemoryWidget(QWidget * parent, const char *name) about->addAuthor("Helge Deller", 0, "deller@gmx.de"); setAboutData( about ); - QString title, initial_str; - QLabel *Widget = 0; + TQString title, initial_str; + TQLabel *Widget = 0; int i, j; ram_colors_initialized = @@ -113,16 +113,16 @@ KMemoryWidget::KMemoryWidget(QWidget * parent, const char *name) /* default string for no Information... */ Not_Available_Text = i18n("Not available."); - QVBoxLayout *top = new QVBoxLayout(this, 0, KDialog::spacingHint()); + TQVBoxLayout *top = new TQVBoxLayout(this, 0, KDialog::spacingHint()); - QHBoxLayout *hbox = new QHBoxLayout(); + TQHBoxLayout *hbox = new TQHBoxLayout(); top->addLayout(hbox); /* stretch the left side */ hbox->addStretch(); /* first create the Informationtext-Widget */ - QVBoxLayout *vbox = new QVBoxLayout(hbox, 0); + TQVBoxLayout *vbox = new TQVBoxLayout(hbox, 0); for (i = TOTAL_MEM; i < MEM_LAST_ENTRY; ++i) { switch (i) { case TOTAL_MEM: @@ -162,18 +162,18 @@ KMemoryWidget::KMemoryWidget(QWidget * parent, const char *name) title = ""; break; }; - Widget = new QLabel(title, this); + Widget = new TQLabel(title, this); Widget->setAlignment(AlignLeft); vbox->addWidget(Widget, 1); } /* then the memory-content-widgets */ for (j = 0; j < 2; j++) { - vbox = new QVBoxLayout(hbox, 0); + vbox = new TQVBoxLayout(hbox, 0); for (i = TOTAL_MEM; i < MEM_LAST_ENTRY; ++i) { if (i == SWAP_MEM) vbox->addSpacing(SPACING); - Widget = new QLabel(this); + Widget = new TQLabel(this); Widget->setAlignment(AlignRight); MemSizeLabel[i][j] = Widget; vbox->addWidget(Widget, 1); @@ -187,11 +187,11 @@ KMemoryWidget::KMemoryWidget(QWidget * parent, const char *name) top->addWidget(line); /* now the Graphics */ - QString hint; - hbox = new QHBoxLayout(top, 1); + TQString hint; + hbox = new TQHBoxLayout(top, 1); for (i = MEM_RAM_AND_HDD; i < MEM_LAST; i++) { hbox->addSpacing(SPACING); - vbox = new QVBoxLayout(hbox); + vbox = new TQVBoxLayout(hbox); switch (i) { case MEM_RAM_AND_HDD: @@ -221,40 +221,40 @@ KMemoryWidget::KMemoryWidget(QWidget * parent, const char *name) "through one or more swap partitions and/or swap files."); break; default: - hint = title = QString::null; + hint = title = TQString::null; break; }; if (hint.length()) hint = "<qt>" + hint + "</qt>"; - Widget = new QLabel("<b>" + title + "</b>", this); + Widget = new TQLabel("<b>" + title + "</b>", this); Widget->setAlignment(AlignCenter); - QToolTip::add(Widget, hint); + TQToolTip::add(Widget, hint); vbox->addWidget(Widget); vbox->addSpacing(SPACING / 2); - QWidget *g = new QWidget(this); + TQWidget *g = new TQWidget(this); g->setMinimumWidth(2 * SPACING); g->setMinimumHeight(3 * SPACING); g->setBackgroundMode(NoBackground); - QToolTip::add(g, hint); // add the tooltip + TQToolTip::add(g, hint); // add the tooltip Graph[i] = g; vbox->addWidget(g, 2); vbox->addSpacing(SPACING / 2); - Widget = new QLabel(this); /* xx MB used. */ + Widget = new TQLabel(this); /* xx MB used. */ Widget->setAlignment(AlignCenter); - QToolTip::add(Widget, hint); + TQToolTip::add(Widget, hint); GraphLabel[i] = Widget; vbox->addWidget(Widget); } hbox->addSpacing(SPACING); - timer = new QTimer(this); + timer = new TQTimer(this); timer->start(100); - QObject::connect(timer, SIGNAL(timeout()), this, - SLOT(update_Values())); + TQObject::connect(timer, TQT_SIGNAL(timeout()), this, + TQT_SLOT(update_Values())); update(); } @@ -266,7 +266,7 @@ KMemoryWidget::~KMemoryWidget() } -QString KMemoryWidget::quickHelp() const +TQString KMemoryWidget::quickHelp() const { return i18n("<h1>Memory Information</h1>" " This display shows you the current memory usage of your system." @@ -280,22 +280,22 @@ bool KMemoryWidget::Display_Graph(int widgetindex, int count, t_memsize total, t_memsize * used, - QColor * color, - QString *text) + TQColor * color, + TQString *text) { - QWidget *graph = Graph[widgetindex]; + TQWidget *graph = Graph[widgetindex]; int width = graph->width(); int height = graph->height(); - QPixmap pm(width, height); - QPainter paint; + TQPixmap pm(width, height); + TQPainter paint; paint.begin(&pm, this); - QPen pen(QColor(0, 0, 0)); + TQPen pen(TQColor(0, 0, 0)); if (! ZERO_IF_NO_INFO(total)) { paint.fillRect(1, 1, width - 2, height - 2, - QBrush(QColor(128, 128, 128))); + TQBrush(TQColor(128, 128, 128))); paint.setPen(pen); paint.drawRect(graph->rect()); GraphLabel[widgetindex]->setText(Not_Available_Text); @@ -329,7 +329,7 @@ bool KMemoryWidget::Display_Graph(int widgetindex, if (localheight >= SPACING) { paint.drawText(0, startline-localheight, width, localheight, AlignCenter | WordBreak, - QString("%1 %2%").arg(*text).arg(percent)); + TQString("%1 %2%").arg(*text).arg(percent)); } } @@ -342,7 +342,7 @@ bool KMemoryWidget::Display_Graph(int widgetindex, /* draw surrounding box */ paint.setPen(pen); - QRect r = graph->rect(); + TQRect r = graph->rect(); qDrawShadePanel(&paint, r.x(), r.y(), r.width(), r.height(), palette().active(), true, 1); paint.end(); bitBlt(graph, 0, 0, &pm); @@ -357,7 +357,7 @@ void KMemoryWidget::update_Values() { int i; bool ok1; - QLabel *label; + TQLabel *label; t_memsize used[5]; update(); /* get the Information from memory_linux, memory_fbsd */ @@ -402,9 +402,9 @@ void KMemoryWidget::update_Values() ram_text[0] = i18n("Application Data"); ram_colors[0] = COLOR_USED_MEMORY; /* used+shared */ ram_text[1] = i18n("Disk Buffers"); - ram_colors[1] = QColor(24,131,5); /* buffer */ + ram_colors[1] = TQColor(24,131,5); /* buffer */ ram_text[2] = i18n("Disk Cache"); - ram_colors[2] = QColor(33,180,7); /* cached */ + ram_colors[2] = TQColor(33,180,7); /* cached */ ram_text[3] = i18n("Free Physical Memory"); ram_colors[3] = COLOR_FREE_MEMORY; /* free */ } diff --git a/kcontrol/info/memory.h b/kcontrol/info/memory.h index 7f6778c75..975b851f5 100644 --- a/kcontrol/info/memory.h +++ b/kcontrol/info/memory.h @@ -1,12 +1,12 @@ #ifndef _MEMORY_H_KDEINFO_INCLUDED_ #define _MEMORY_H_KDEINFO_INCLUDED_ -#include <qwidget.h> -#include <qframe.h> -#include <qlabel.h> -#include <qtabdialog.h> -#include <qpushbutton.h> -#include <qtimer.h> +#include <tqwidget.h> +#include <tqframe.h> +#include <tqlabel.h> +#include <tqtabdialog.h> +#include <tqpushbutton.h> +#include <tqtimer.h> #include <kcmodule.h> #include <kaboutdata.h> @@ -20,35 +20,35 @@ typedef unsigned long long t_memsize; typedef unsigned long t_memsize; #endif -#define COLOR_USED_MEMORY QColor(255,0,0) -#define COLOR_USED_SWAP QColor(255,134,64) -#define COLOR_FREE_MEMORY QColor(127,255,212) +#define COLOR_USED_MEMORY TQColor(255,0,0) +#define COLOR_USED_SWAP TQColor(255,134,64) +#define COLOR_FREE_MEMORY TQColor(127,255,212) class KMemoryWidget:public KCModule { Q_OBJECT public: - KMemoryWidget(QWidget * parent, const char *name = 0); + KMemoryWidget(TQWidget * parent, const char *name = 0); ~KMemoryWidget(); - QString quickHelp() const; + TQString quickHelp() const; private: - QString Not_Available_Text; - QTimer *timer; + TQString Not_Available_Text; + TQTimer *timer; bool ram_colors_initialized, swap_colors_initialized, all_colors_initialized; - QColor ram_colors[4]; - QString ram_text[4]; + TQColor ram_colors[4]; + TQString ram_text[4]; - QColor swap_colors[2]; - QString swap_text[2]; + TQColor swap_colors[2]; + TQString swap_text[2]; - QColor all_colors[3]; - QString all_text[3]; + TQColor all_colors[3]; + TQString all_text[3]; void update(); @@ -56,8 +56,8 @@ class KMemoryWidget:public KCModule { int count, t_memsize total, t_memsize *used, - QColor *color, - QString *text); + TQColor *color, + TQString *text); public slots: void update_Values(); }; diff --git a/kcontrol/info/memory_linux.cpp b/kcontrol/info/memory_linux.cpp index c393c01e7..175b2a617 100644 --- a/kcontrol/info/memory_linux.cpp +++ b/kcontrol/info/memory_linux.cpp @@ -1,7 +1,7 @@ #include <sys/sysinfo.h> #include <unistd.h> #include <stdlib.h> -#include <qfile.h> +#include <tqfile.h> void KMemoryWidget::update() { @@ -23,7 +23,7 @@ void KMemoryWidget::update() Memory_Info[SWAP_MEM] = MEMORY(info.totalswap) * mem_unit; // total size of all swap-partitions Memory_Info[FREESWAP_MEM] = MEMORY(info.freeswap) * mem_unit; // free memory in swap-partitions - QFile file("/proc/meminfo"); + TQFile file("/proc/meminfo"); if (file.open(IO_ReadOnly)) { char buf[512]; while (file.readLine(buf, sizeof(buf) - 1) > 0) { diff --git a/kcontrol/info/memory_osx.cpp b/kcontrol/info/memory_osx.cpp index 9c18c4a6e..b1ae7f529 100644 --- a/kcontrol/info/memory_osx.cpp +++ b/kcontrol/info/memory_osx.cpp @@ -21,7 +21,7 @@ #include <unistd.h> #include <stdlib.h> -#include <qfile.h> +#include <tqfile.h> #include <mach/mach_init.h> #include <mach/mach_host.h> #include <mach/host_info.h> diff --git a/kcontrol/info/opengl.cpp b/kcontrol/info/opengl.cpp index 66266abdf..061e368e6 100644 --- a/kcontrol/info/opengl.cpp +++ b/kcontrol/info/opengl.cpp @@ -24,10 +24,10 @@ #define KCMGL_DO_GLU -#include <qregexp.h> -#include <qlistview.h> -#include <qfile.h> -#include <qstring.h> +#include <tqregexp.h> +#include <tqlistview.h> +#include <tqfile.h> +#include <tqstring.h> #include <klocale.h> #include <kmessagebox.h> @@ -68,7 +68,7 @@ static struct glinfo { } gli; static struct { - QString module, + TQString module, pci, vendor, device, @@ -76,7 +76,7 @@ static struct { rev; } dri_info; -static int ReadPipe(QString FileName, QStringList &list) +static int ReadPipe(TQString FileName, TQStringList &list) { FILE *pipe; @@ -85,7 +85,7 @@ static int ReadPipe(QString FileName, QStringList &list) return 0; } - QTextStream t(pipe, IO_ReadOnly); + TQTextStream t(pipe, IO_ReadOnly); while (!t.atEnd()) list.append(t.readLine()); @@ -99,20 +99,20 @@ static int ReadPipe(QString FileName, QStringList &list) static bool get_dri_device() { - QFile file; + TQFile file; file.setName(INFO_DRI); if (!file.exists() || !file.open(IO_ReadOnly)) return false; - QTextStream stream(&file); - QString line = stream.readLine(); + TQTextStream stream(&file); + TQString line = stream.readLine(); if (!line.isEmpty()) { dri_info.module = line.mid(0, line.find(0x20)); // possible formats, for regression testing // line = " PCI:01:00:0"; // line = " pci:0000:01:00.0" - QRegExp rx = QRegExp("\\b[Pp][Cc][Ii][:]([0-9a-fA-F]+[:])?([0-9a-fA-F]+[:][0-9a-fA-F]+[:.][0-9a-fA-F]+)\\b"); + TQRegExp rx = TQRegExp("\\b[Pp][Cc][Ii][:]([0-9a-fA-F]+[:])?([0-9a-fA-F]+[:][0-9a-fA-F]+[:.][0-9a-fA-F]+)\\b"); if (rx.search(line)>0) { dri_info.pci = rx.cap(2); int end = dri_info.pci.findRev(':'); @@ -120,8 +120,8 @@ static bool get_dri_device() if (end2>end) end=end2; dri_info.pci[end]='.'; - QString cmd = QString("lspci -m -v -s ") + dri_info.pci; - QStringList pci_info; + TQString cmd = TQString("lspci -m -v -s ") + dri_info.pci; + TQStringList pci_info; int num; if (((num = ReadPipe(cmd, pci_info)) || (num = ReadPipe("/sbin/"+cmd, pci_info)) || @@ -129,7 +129,7 @@ static bool get_dri_device() (num = ReadPipe("/usr/local/sbin/"+cmd, pci_info))) && num>=7) { for (int i=2; i<=6; i++) { line = pci_info[i]; - line.remove(QRegExp("[^:]*:[ ]*")); + line.remove(TQRegExp("[^:]*:[ ]*")); switch (i){ case 2: dri_info.vendor = line; break; case 3: dri_info.device = line; break; @@ -149,7 +149,7 @@ static bool get_dri_device() static bool get_dri_device() { - QStringList pci_info; + TQStringList pci_info; if (ReadPipe("sysctl -n hw.dri.0.name",pci_info)) { dri_info.module = pci_info[0].mid(0, pci_info[0].find(0x20)); } @@ -188,14 +188,14 @@ mesa_hack(Display *dpy, int scrnum) static void -print_extension_list(const char *ext, QListViewItem *l1) +print_extension_list(const char *ext, TQListViewItem *l1) { int i, j; if (!ext || !ext[0]) return; - QString qext = QString::fromLatin1(ext); - QListViewItem *l2 = NULL; + TQString qext = TQString::fromLatin1(ext); + TQListViewItem *l2 = NULL; i = j = 0; while (1) { @@ -203,8 +203,8 @@ print_extension_list(const char *ext, QListViewItem *l1) /* found end of an extension name */ const int len = j - i; /* print the extension name between ext[i] and ext[j] */ - if (!l2) l2 = new QListViewItem(l1, qext.mid(i, len)); - else l2 = new QListViewItem(l1, l2, qext.mid(i, len)); + if (!l2) l2 = new TQListViewItem(l1, qext.mid(i, len)); + else l2 = new TQListViewItem(l1, l2, qext.mid(i, len)); i=j; if (ext[j] == 0) { break; @@ -227,7 +227,7 @@ extern "C" { #endif static void -print_limits(QListViewItem *l1, const char * glExtensions, bool GetProcAddress) +print_limits(TQListViewItem *l1, const char * glExtensions, bool GetProcAddress) { /* TODO GL_SAMPLE_BUFFERS @@ -241,18 +241,18 @@ print_limits(QListViewItem *l1, const char * glExtensions, bool GetProcAddress) struct token_name { GLuint type; // count and flags, !!! count must be <=2 for now GLenum token; - const QString name; + const TQString name; }; struct token_group { int count; int type; const token_name *group; - const QString descr; + const TQString descr; const char *ext; }; - QListViewItem *l2 = NULL, *l3 = NULL; + TQListViewItem *l2 = NULL, *l3 = NULL; #if defined(PFNGLGETPROGRAMIVARBPROC) PFNGLGETPROGRAMIVARBPROC kcm_glGetProgramivARB = NULL; #endif @@ -433,8 +433,8 @@ print_limits(QListViewItem *l1, const char * glExtensions, bool GetProcAddress) for (uint i = 0; i<KCMGL_SIZE(groups); i++) { if (groups[i].ext && !strstr(glExtensions, groups[i].ext)) continue; - if (l2) l2 = new QListViewItem(l1, l2, groups[i].descr); - else l2 = new QListViewItem(l1, groups[i].descr); + if (l2) l2 = new TQListViewItem(l1, l2, groups[i].descr); + else l2 = new TQListViewItem(l1, groups[i].descr); l3 = NULL; const struct token_name *cur_token; for (cur_token = groups[i].group; cur_token->type; cur_token++) { @@ -454,13 +454,13 @@ print_limits(QListViewItem *l1, const char * glExtensions, bool GetProcAddress) else glGetIntegerv(cur_token->token, max); if (glGetError() == GL_NONE) { - QString s; - if (!tfloat && count == 1) s = QString::number(max[0]); else - if (!tfloat && count == 2) s = QString("%1, %2").arg(max[0]).arg(max[1]); else - if (tfloat && count == 2) s = QString("%1 - %2").arg(fmax[0],0,'f',6).arg(fmax[1],0,'f',6); else - if (tfloat && count == 1) s = QString::number(fmax[0],'f',6); - if (l3) l3 = new QListViewItem(l2, l3, cur_token->name, s); - else l3 = new QListViewItem(l2, cur_token->name, s); + TQString s; + if (!tfloat && count == 1) s = TQString::number(max[0]); else + if (!tfloat && count == 2) s = TQString("%1, %2").arg(max[0]).arg(max[1]); else + if (tfloat && count == 2) s = TQString("%1 - %2").arg(fmax[0],0,'f',6).arg(fmax[1],0,'f',6); else + if (tfloat && count == 1) s = TQString::number(fmax[0],'f',6); + if (l3) l3 = new TQListViewItem(l2, l3, cur_token->name, s); + else l3 = new TQListViewItem(l2, cur_token->name, s); } } @@ -469,71 +469,71 @@ print_limits(QListViewItem *l1, const char * glExtensions, bool GetProcAddress) } -static QListViewItem *print_screen_info(QListViewItem *l1, QListViewItem *after) +static TQListViewItem *print_screen_info(TQListViewItem *l1, TQListViewItem *after) { - QListViewItem *l2 = NULL, *l3 = NULL; + TQListViewItem *l2 = NULL, *l3 = NULL; - if (after) l1= new QListViewItem(l1,after,IsDirect ? i18n("Direct Rendering") : i18n("Indirect Rendering")); - else l1= new QListViewItem(l1,IsDirect ? i18n("Direct Rendering") : i18n("Indirect Rendering")); + if (after) l1= new TQListViewItem(l1,after,IsDirect ? i18n("Direct Rendering") : i18n("Indirect Rendering")); + else l1= new TQListViewItem(l1,IsDirect ? i18n("Direct Rendering") : i18n("Indirect Rendering")); if (IsDirect) if (get_dri_device()) { - l2 = new QListViewItem(l1, i18n("3D Accelerator")); + l2 = new TQListViewItem(l1, i18n("3D Accelerator")); l2->setOpen(true); - l3 = new QListViewItem(l2, l3, i18n("Vendor"), dri_info.vendor); - l3 = new QListViewItem(l2, l3, i18n("Device"), dri_info.device); - l3 = new QListViewItem(l2, l3, i18n("Subvendor"), dri_info.subvendor); - l3 = new QListViewItem(l2, l3, i18n("Revision"), dri_info.rev); + l3 = new TQListViewItem(l2, l3, i18n("Vendor"), dri_info.vendor); + l3 = new TQListViewItem(l2, l3, i18n("Device"), dri_info.device); + l3 = new TQListViewItem(l2, l3, i18n("Subvendor"), dri_info.subvendor); + l3 = new TQListViewItem(l2, l3, i18n("Revision"), dri_info.rev); } - else l2=new QListViewItem(l1, l2, i18n("3D Accelerator"),i18n("unknown")); - if (l2) l2 = new QListViewItem(l1, l2, i18n("Driver")); - else l2 = new QListViewItem(l1, i18n("Driver")); + else l2=new TQListViewItem(l1, l2, i18n("3D Accelerator"),i18n("unknown")); + if (l2) l2 = new TQListViewItem(l1, l2, i18n("Driver")); + else l2 = new TQListViewItem(l1, i18n("Driver")); l2->setOpen(true); - l3 = new QListViewItem(l2, i18n("Vendor"),gli.glVendor); - l3 = new QListViewItem(l2, l3, i18n("Renderer"), gli.glRenderer); - l3 = new QListViewItem(l2, l3, i18n("OpenGL version"), gli.glVersion); + l3 = new TQListViewItem(l2, i18n("Vendor"),gli.glVendor); + l3 = new TQListViewItem(l2, l3, i18n("Renderer"), gli.glRenderer); + l3 = new TQListViewItem(l2, l3, i18n("OpenGL version"), gli.glVersion); if (IsDirect) { if (!dri_info.module) dri_info.module = i18n("unknown"); - l3 = new QListViewItem(l2, l3, i18n("Kernel module"), dri_info.module); + l3 = new TQListViewItem(l2, l3, i18n("Kernel module"), dri_info.module); } - l3 = new QListViewItem(l2, l3, i18n("OpenGL extensions")); + l3 = new TQListViewItem(l2, l3, i18n("OpenGL extensions")); print_extension_list(gli.glExtensions,l3); - l3 = new QListViewItem(l2, l3, i18n("Implementation specific")); + l3 = new TQListViewItem(l2, l3, i18n("Implementation specific")); print_limits(l3, gli.glExtensions, strstr(gli.clientExtensions, "GLX_ARB_get_proc_address") != NULL); return l1; } -void print_glx_glu(QListViewItem *l1, QListViewItem *l2) +void print_glx_glu(TQListViewItem *l1, TQListViewItem *l2) { - QListViewItem *l3; + TQListViewItem *l3; - l2=new QListViewItem(l1, l2, i18n("GLX")); - l3 = new QListViewItem(l2, i18n("server GLX vendor"),gli.serverVendor); - l3 = new QListViewItem(l2, l3, i18n("server GLX version"),gli.serverVersion); - l3 = new QListViewItem(l2, l3, i18n("server GLX extensions")); + l2=new TQListViewItem(l1, l2, i18n("GLX")); + l3 = new TQListViewItem(l2, i18n("server GLX vendor"),gli.serverVendor); + l3 = new TQListViewItem(l2, l3, i18n("server GLX version"),gli.serverVersion); + l3 = new TQListViewItem(l2, l3, i18n("server GLX extensions")); print_extension_list(gli.serverExtensions,l3); - l3 = new QListViewItem(l2, l3, i18n("client GLX vendor"),gli.clientVendor); - l3 = new QListViewItem(l2, l3, i18n("client GLX version"),gli.clientVersion); - l3 = new QListViewItem(l2, l3, i18n("client GLX extensions")); + l3 = new TQListViewItem(l2, l3, i18n("client GLX vendor"),gli.clientVendor); + l3 = new TQListViewItem(l2, l3, i18n("client GLX version"),gli.clientVersion); + l3 = new TQListViewItem(l2, l3, i18n("client GLX extensions")); print_extension_list(gli.clientExtensions,l3); - l3 = new QListViewItem(l2, l3, i18n("GLX extensions")); + l3 = new TQListViewItem(l2, l3, i18n("GLX extensions")); print_extension_list(gli.glxExtensions,l3); #ifdef KCMGL_DO_GLU - l2 = new QListViewItem(l1, l2, i18n("GLU")); - l3 = new QListViewItem(l2, i18n("GLU version"), gli.gluVersion); - l3 = new QListViewItem(l2, l3, i18n("GLU extensions")); + l2 = new TQListViewItem(l1, l2, i18n("GLU")); + l3 = new TQListViewItem(l2, i18n("GLU version"), gli.gluVersion); + l3 = new TQListViewItem(l2, l3, i18n("GLU extensions")); print_extension_list(gli.gluExtensions,l3); #endif } -static QListViewItem *get_gl_info(Display *dpy, int scrnum, Bool allowDirect,QListViewItem *l1, QListViewItem *after) +static TQListViewItem *get_gl_info(Display *dpy, int scrnum, Bool allowDirect,TQListViewItem *l1, TQListViewItem *after) { Window win; int attribSingle[] = { @@ -556,7 +556,7 @@ static QListViewItem *get_gl_info(Display *dpy, int scrnum, Bool allowDirect,QLi GLXContext ctx; XVisualInfo *visinfo; int width = 100, height = 100; - QListViewItem *result = after; + TQListViewItem *result = after; root = RootWindow(dpy, scrnum); @@ -617,9 +617,9 @@ static QListViewItem *get_gl_info(Display *dpy, int scrnum, Bool allowDirect,QLi } -static bool GetInfo_OpenGL_Generic( QListView *lBox ) +static bool GetInfo_OpenGL_Generic( TQListView *lBox ) { - QListViewItem *l1, *l2 = NULL; + TQListViewItem *l1, *l2 = NULL; char *displayName = NULL; Display *dpy; @@ -634,7 +634,7 @@ static bool GetInfo_OpenGL_Generic( QListView *lBox ) lBox->addColumn(i18n("Information") ); lBox->addColumn(i18n("Value") ); - l1 = new QListViewItem(lBox, i18n("Name of the Display"), DisplayString(dpy)); + l1 = new TQListViewItem(lBox, i18n("Name of the Display"), DisplayString(dpy)); l1->setOpen(true); l1->setSelectable(false); l1->setExpandable(false); @@ -664,7 +664,7 @@ static bool GetInfo_OpenGL_Generic( QListView *lBox ) return true; } -bool GetInfo_OpenGL(QListView * lBox) +bool GetInfo_OpenGL(TQListView * lBox) { return GetInfo_OpenGL_Generic(lBox); } |