Quote Originally Posted by jlbrd
Q
QIDe is new but really functional. Test it if you want !

Available on http://qide.free.fr/index_en.html

Thanks
Why if i add a drag list of file only one open? (line 35 code down)

Your method is ....
Editeur * ouvrirFichier(QStringList listeEmplacements, int numLigne=-1, bool modeSilencieux=false);



Qt Code:
  1. /* main.cpp */
  2. bool is_file(QString fullFileName)
  3. {
  4. QFile f( fullFileName );
  5. if ( f.exists() ) {
  6. return true;
  7. } else {
  8. return false;
  9. }
  10. }
  11. //
  12. int main(int argc, char *argv[])
  13. {
  14. QApplication app(argc, argv);
  15. for ( int i = 1; i < app.argc(); ++i )
  16. {
  17. QString yourfilemaybe = app.argv()[ i ];
  18. if (is_file(yourfilemaybe)) {
  19. list.append(yourfilemaybe);
  20. }
  21.  
  22. }
  23. QSplashScreen *splash = new QSplashScreen(QPixmap(":/divers/images/SplashQIde.png"));
  24. splash->show();
  25. QTranslator translator;
  26. QString fichierTraduction = ":/traductions/traductions/QIde_"+QLocale::languageToString( QLocale::system().language() )+".qm";
  27. translator.load( fichierTraduction );
  28. app.installTranslator( &translator );
  29. //
  30. MainImpl *main = new MainImpl;
  31. main->setGeometry(50,50, 800, 550);
  32. /* list of file */
  33. if (list.size() > 0) {
  34. main->ouvrirFichier(list);
  35. }
  36. /* list of file */
  37. main->showMaximized();
  38. //
  39. delete splash;
  40. main->controleEnvironnement();
  41. main->lectureINI();
  42. app.connect( &app, SIGNAL( lastWindowClosed() ), &app, SLOT( quit() ) );
  43. return app.exec();
  44. }
To copy to clipboard, switch view to plain text mode