void ExplorerCollectionDirIndexesTreeItem::ui_dropIndex()
 {
     ExplorerCollectionTreeItem *par = dynamic_cast<ExplorerCollectionTreeItem *>(parent());
     if (par) {
         par->openCurrentCollectionShell("dropIndex({ \"<field>\" : 1 });", false);
     }
 }
 void ExplorerCollectionDirIndexesTreeItem::ui_viewIndex()
 {
     ExplorerCollectionTreeItem *par = dynamic_cast<ExplorerCollectionTreeItem *>(parent());
     if (par) {
         par->openCurrentCollectionShell("getIndexes()");
     }
 }
 void ExplorerCollectionDirIndexesTreeItem::ui_reIndex()
 {
     ExplorerCollectionTreeItem *par = dynamic_cast<ExplorerCollectionTreeItem *>(parent());
     if (par) {
         par->openCurrentCollectionShell("reIndex()", false);
     }
 }
 void ExplorerCollectionDirIndexesTreeItem::ui_addIndex()
 {
     ExplorerCollectionTreeItem *par = dynamic_cast<ExplorerCollectionTreeItem *>(parent());
     if (par) {
         par->openCurrentCollectionShell(
             "ensureIndex({ \"<field>\" : 1 }); \n"
             "\n"
             "// options: \n"
             "// { unique : true }   - A unique index causes MongoDB to reject all documents that contain a duplicate value for the indexed field. \n"
             "// { sparse : true }   - Sparse indexes only contain entries for documents that have the indexed field. \n"
             "// { dropDups : true } - Sparse indexes only contain entries for documents that have the indexed field. \n"
             , false);
     }
 }