Diffstat (limited to 'noncore/apps/opie-gutenbrowser/gutenbrowserData.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-gutenbrowser/gutenbrowserData.cpp | 38 |
1 files changed, 21 insertions, 17 deletions
diff --git a/noncore/apps/opie-gutenbrowser/gutenbrowserData.cpp b/noncore/apps/opie-gutenbrowser/gutenbrowserData.cpp index c9149ac..a226258 100644 --- a/noncore/apps/opie-gutenbrowser/gutenbrowserData.cpp +++ b/noncore/apps/opie-gutenbrowser/gutenbrowserData.cpp @@ -12,7 +12,10 @@ * (at your option) any later version. * ***************************************************************************/ + //#include "gutenbrowserData.h" #include "gutenbrowser.h" +/* OPIE */ +#include <opie2/odebug.h> #include <qpe/config.h> #include <qpe/fontdatabase.h> @@ -21,4 +24,5 @@ #include <qpe/qpeapplication.h> +/* QT */ #include <qfontinfo.h> #include <qtoolbutton.h> @@ -36,9 +40,9 @@ void Gutenbrowser::initSlots() { connect(qApp,SIGNAL(aboutToQuit()),SLOT(cleanUp())); connect(mainList,SIGNAL(clicked(QListBoxItem *)),SLOT(listClickedSlot(QListBoxItem *))); - connect(bookmarksMenu,SIGNAL(activated(int)),SLOT(Bookmark(int))); + connect(bookmarksMenu,SIGNAL(activated(int)),SLOT(Bookmark(int))); } void Gutenbrowser::initConfig() { -//qDebug("Starting configuration."); +//odebug << "Starting configuration." << oendl; QDir library(local_library); if ( !library.exists()) { @@ -58,5 +62,5 @@ void Gutenbrowser::initConfig() { } - // qDebug( "init file is %s",iniFile.latin1()); + // odebug << "init file is " << iniFile << "" << oendl; #ifdef Q_WS_QWS @@ -138,5 +142,5 @@ void Gutenbrowser::initConfig() { ftp_base_dir= config.readEntry("base", "/pub/gutenberg"); - //bool ok2; + //bool ok2; QString temp; QString copying; @@ -148,7 +152,7 @@ void Gutenbrowser::initConfig() { if(qExit=="TRUE") { b_queryExit=TRUE; -// qDebug("Please query before leaving the library."); +// odebug << "Please query before leaving the library." << oendl; } else { -// qDebug("Please DO NOT query before leaving the library."); +// odebug << "Please DO NOT query before leaving the library." << oendl; b_queryExit=FALSE; } @@ -156,5 +160,5 @@ void Gutenbrowser::initConfig() { // config.setGroup("Titles"); // QString tmpTitle=config.readEntry(file_name,""); - + }// end initConfig() @@ -162,5 +166,5 @@ void Gutenbrowser::initConfig() { void Gutenbrowser::initMenuBar() { -// qDebug("Starting menu init."); +// odebug << "Starting menu init." << oendl; // menuBar entry fileMenu menubar = new QPEMenuBar(this); @@ -177,12 +181,12 @@ void Gutenbrowser::initMenuBar() editMenu=new QPopupMenu(); - + editMenu->insertItem(Resource::loadPixmap("up"), "Top", - this, SLOT(TopBtn()) ); + this, SLOT(TopBtn()) ); editMenu->insertItem( Resource::loadPixmap("back"), "Beginning", this, SLOT(doBeginBtn()) ); editMenu->insertItem( Resource::loadPixmap("gutenbrowser/search"), "Search", this, SLOT(SearchBtn()) ); - + editMenu->insertItem("Clear", this, SLOT(ClearEdit()) ); @@ -208,5 +212,5 @@ void Gutenbrowser::initMenuBar() void Gutenbrowser::initButtonBar() { -//qDebug("Starting buttonbar init."); +//odebug << "Starting buttonbar init." << oendl; OpenButton = new QPushButton( this, "OpenButton" ); @@ -223,5 +227,5 @@ void Gutenbrowser::initButtonBar() ForwardButton->setFocusPolicy( QWidget::TabFocus ); // ForwardButton->setAutoRepeat(TRUE); - + SearchButton = new QPushButton( this, "SearchButton" ); SearchButton->setFocusPolicy( QWidget::TabFocus ); @@ -235,5 +239,5 @@ void Gutenbrowser::initButtonBar() bookmarksMenu = new QPopupMenu(); bookmarksMenu->insertItem("Last Set", this, SLOT(Bookmark( int) )); - + lastBmkButton->setPopup(bookmarksMenu); @@ -242,5 +246,5 @@ void Gutenbrowser::initButtonBar() InfoBar = new QPushButton( this, "Info_Bar" ); -// qDebug("Infobar"); +// odebug << "Infobar" << oendl; // if(!useSplitter) { @@ -277,5 +281,5 @@ void Gutenbrowser::initView() // QFont defaultFont( "charter", 10, 50, 0 ); Lview = new MultiLine_Ex(this); - + Config cfg("Gutenbrowser"); cfg.setGroup("Font"); @@ -294,5 +298,5 @@ void Gutenbrowser::initView() QString italic=cfg.readEntry("Italic","FALSE"); if(italic=="TRUE") { - qDebug("Set Italic font"); + odebug << "Set Italic font" << oendl; defaultFont = fdb.font(family,"Regular",i_size,charSet); //workaround defaultFont.setItalic(TRUE); |