void OMCSConsole::slot_OMCS()
{
    mMapCanvas = new QgsMapCanvas(this,0);
    //QSettings settings;
  //mMapCanvas->freeze( true );
  if ( mMapCanvas && mMapCanvas->isDrawing() )
  {
    return;
  }

  // possibly save any pending work before opening a new project
  if ( saveDirty() )
  {
    // Retrieve last used project dir from persistent settings
    QSettings settings;
    QString lastUsedDir = settings.value( "/home/bijay", "." ).toString();//UI/lastProjectDir
    
    cout<<"lastUsedDir::"<<lastUsedDir.toAscii().data() <<endl;
    
    QFileDialog * openFileDialog = new QFileDialog( this,
        tr( "Choose a QGIS project file to open" ),
        lastUsedDir, QObject::tr( "QGis files (*.qgs)" ) );
    openFileDialog->setFileMode( QFileDialog::ExistingFile );
	             qDebug("");
    QString fullPath;
    
    //cout<<"inside slot_OMCS"<<endl;
    
    if ( openFileDialog->exec() == QDialog::Accepted )
    {
       
      fullPath = openFileDialog->selectedFiles().first();
      cout<<"full path is  "<<fullPath.toAscii().data()<<endl;
      QFileInfo myFI( fullPath );
      
      QString myPath = myFI.path();
      cout<<"myPath path is  "<<myPath.toAscii().data()<<endl;
      // Persist last used project dir
      settings.setValue( "/home/bijay", myPath );///UI/lastProjectDir
      
    }
    else
    {
      // if they didn't select anything, just return
      delete openFileDialog;
      return;
    }

    delete openFileDialog;

    // clear out any stuff from previous project
    mMapCanvas->freeze( true );
   // removeAllLayers();

    //delete mComposer;
    //mComposer = new QgsComposer( this );

    QgsProject::instance()->setFileName( fullPath );

    try
    {
      if ( QgsProject::instance()->read() )
      {
        setTitleBarText_( *this );
        emit projectRead();     // let plug-ins know that we've read in a new
        // project so that they can check any project
        // specific plug-in state

        // add this to the list of recently used project files
        saveRecentProjectPath( fullPath, settings );
      }
    }
    catch ( QgsProjectBadLayerException & e )
    {
      QMessageBox::critical( this,
                             tr( "QGIS Project Read Error" ),
                             tr( "" ) + "\n" + QString::fromLocal8Bit( e.what() ) );
      qDebug( QString( "%1 bad layers found" ).arg( e.layers().size() ) );

      // attempt to find the new locations for missing layers
      // XXX vector file hard-coded -- but what if it's raster?
      findLayers_( mVectorFileFilter, e.layers() );
    }
    catch ( std::exception & e )
    {
      QMessageBox::critical( this,
                             tr( "QGIS Project Read Error" ),
                             tr( "" ) + "\n" + QString::fromLocal8Bit( e.what() ) );
      qDebug( "BAD QgsMapLayer::LayerType FOUND" );
    }

    mMapCanvas->freeze( false );
    mMapCanvas->refresh();
    
   } //openProject();

} 
