/*************************************************************************** main.cpp - description ------------------- begin : Son Mär 26 23:04:15 CEST 2000 copyright : (C) 2000 by Alexander Theel email : alex.theel@gmx.net ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #include #include "./gui/mainwindow.h" //#include "test.h" #include "commandlineoptions.h" #include #include int main(int argc, char* argv[]){ // if (false){ // (void) new Test(); // return 0; // } if (argc > 1 ){ CommandLineOptions(argc, argv); } /* #ifdef KDE_SUPPORT KApplication app; #else QApplication app; #endif */ // $KDEDIR/lib/kde/plugins/styles // in qtrc file: // [General] //  GUIEffects=general^efademenu^eanimatecombo^efadetooltip^e //////start///////// //QApplication::setStyle(new QPlatinumStyle()); // first do this //////end///////// QApplication qApp( argc, argv ); /////////////////////////////////////////////////// /* qApp.addLibraryPath("/opt/kde3/lib/kde3/plugins"); QStringList libs = qApp.libraryPaths(); QStringList::Iterator it = libs.begin(); while( it != libs.end() ) { std::cout << *it << "\n"; ++it; } ////////////////////////////////////////// QStringList styles; styles = QStyleFactory::keys(); for ( QStringList::Iterator it = styles.begin(); it != styles.end(); ++it ) { std::cout << *it << "\n"; } // */ /////////////////////////////////////////////////// //setDesktopSettingsAware(TRUE) /////////////////////////////////////////////////// // qApp.setStyle( new QWindowsStyle ); MainWindow tux(argc>1 ? argv[1] : ""); qApp.setMainWidget( &tux ); return qApp.exec(); }