core/vgui/internals/vgui_dialog_extensions_impl.cxx
Go to the documentation of this file.
00001 // This is core/vgui/internals/vgui_dialog_extensions_impl.cxx
00002 #ifdef VCL_NEEDS_PRAGMA_INTERFACE
00003 #pragma implementation
00004 #endif
00005 //:
00006 // \file
00007 // \author Gamze Tunali, LEMS, Brown University
00008 // \date   16 Nov 2007
00009 // \brief  See vgui_dialog_extensions_impl.h for a description of this file
00010 
00011 #include "vgui_dialog_extensions_impl.h"
00012 #include <vgui/internals/vgui_file_field.h>
00013 
00014 vgui_dialog_extensions_impl::vgui_dialog_extensions_impl(const char* n)
00015   : vgui_dialog_impl(n)
00016 {
00017 }
00018 
00019 vgui_dialog_extensions_impl::~vgui_dialog_extensions_impl()
00020 {
00021 }
00022 
00023 void vgui_dialog_extensions_impl::dir_browser(const char* txt, vcl_string& regexp, vcl_string& val)
00024 {
00025   vgui_file_field *field = new vgui_file_field(txt, regexp, val);
00026 
00027   element l;
00028   l.type = dir_bsr;
00029   l.widget = dir_browser_widget(txt, regexp, val);
00030   l.field = field;
00031 
00032   elements.push_back(l);
00033 }
00034 
00035 void vgui_dialog_extensions_impl::line_break()
00036 {
00037   element l;
00038   l.type = line_br;
00039 
00040   elements.push_back(l);
00041 }
00042 
00043 void* vgui_dialog_extensions_impl::dir_browser_widget(const char*, vcl_string&, vcl_string&) { return 0; }
00044