FACT++  1.0
TString TPointGui::OpenDialog ( TString &  dir,
EFileDialogMode  mode = kFDOpen 
)
private

Definition at line 596 of file TPointGui.cc.

References mode.

Referenced by ProcessMessage().

597 {
598  static const char *gOpenTypes[] =
599  {
600  "TPoint files", "*.txt",
601  "Collection files", "*.col",
602  "Model files", "*.mod",
603  "All files", "*",
604  NULL, NULL
605  };
606 
607  //static TString dir("tpoint/");
608 
609  TGFileInfo fi; // fFileName and fIniDir deleted in ~TGFileInfo
610 
611  fi.fFileTypes = (const char**)gOpenTypes;
612  fi.fIniDir = StrDup(dir);
613 
614  new TGFileDialog(fClient->GetRoot(), this, mode, &fi);
615 
616  if (!fi.fFilename)
617  return "";
618 
619  dir = fi.fIniDir;
620 
621  return fi.fFilename;
622 }
int mode

+ Here is the caller graph for this function: