Logo Search packages:      
Sourcecode: kconfigure version File versions  Download package

void Kconfigure::execute ( const char *  file  )  [private]

Execute a command file

Definition at line 322 of file kconfigure.cpp.

References AnimatedLogo, FatalError, filePath, q, qDir, setActionMode(), streamLine, view_errors, and view_main.

Referenced by slotExecuteCheckInstallRoot(), slotExecuteConfigure(), slotExecuteConfigure_Args(), slotExecuteConfigure_Help(), slotExecuteInstall(), slotExecuteInstallRoot(), slotExecuteMake(), slotExecuteMake_Args(), slotExecuteMake_Clean(), slotExecuteQmake(), and slotExecuteQmake_Args().

{
      QString Comm_Args;
      QString SFile = file;
      int buflen = SFile.length();
      if(q.isRunning()==true){
            KMessageBox::error(0, i18n("SORRY !\n\nWait until the process finish.\n"), i18n("I cannot do this !"), false);
            return;
      }
      if( filePath == QString::null || filePath == "" )
      {
            KMessageBox::sorry(0, i18n("You must to select a project with configure file."), i18n("Execute command error"), false);
            return;
      }

      qDir.setCurrent( filePath );

      view_main->clear();
      view_main->setWordWrap( QMultiLineEdit::NoWrap );
      view_errors->clear();
      streamLine = "";
      FatalError=false;

      // and identify after space like arguments
      for( int i = 0; i < buflen; i++ )
      {
      if( *file == ' ' )
            {
            q << Comm_Args;
            Comm_Args = "";
            } else {
            Comm_Args += *file;
            }
      ++file;
      }
      q << Comm_Args;

      setActionMode( false, true );
      AnimatedLogo->start();
  q.start( KProcess::NotifyOnExit, KProcess::AllOutput );
}


Generated by  Doxygen 1.6.0   Back to index