selectFile.cxx

Go to the documentation of this file.
00001 
00002 //
00003 // Copyright 2002, Lowell Boggs Jr.
00004 //
00005 // This file or directory, containing source code for a computer program,
00006 // is Copyrighted by Lowell Boggs, Jr.  987 Regency Drive, Lewisville
00007 // TX (USA), 75067.  You may use, copy, modify, and distribute this
00008 // source file without charge or obligation so long as you agree to
00009 // the following:
00010 //
00011 //  1.  You must indemnify Lowell Boggs against any and all financial
00012 //      obligations caused by its use, misuse, function, or malfunction.
00013 //      Further, you acknowledge that there is no warranty of any kind,
00014 //      whatsoever.
00015 //
00016 //  2.  You agree not to attempt to patent any portion of this original
00017 //      work -- though you may attempt to patent your own extensions to
00018 //      it if you so choose.
00019 //
00020 //  3.  You keep this copyright notice with the file and all copies
00021 //      of the file and do not change it anyway except language translation.
00022 //
00023 // You are responsible for enforcing your own compliance with these
00024 // conditions and may not use this source file if you cannot agree to the
00025 // above terms and conditions.
00026 
00027 
00028 
00029 #include <cxxtls/cursorwindow.h>
00030 #include <cxxtls/file.h>
00031 
00032 using namespace std;
00033 using namespace cxxtls;
00034 
00035 int main()
00036 {
00037 
00038   string rv;
00039 
00040   {
00041       
00042       CursorWindow w;
00043       
00044       w.open();
00045       
00046       string pattern="*";
00047       string startFile="";
00048       
00049       CursorWindow::FileSelector  s("Select a file from among the following", pattern, startFile);
00050       
00051       rv = s.popup(&w,0);
00052   }
00053 
00054   cout << "The select file was:  " << rv << endl;
00055 
00056 }
Generated on Wed Feb 29 22:50:03 2012 for CXXUtilities by  doxygen 1.6.3