\section{Tk\-Dialogs Class Reference}
\label{class_tk_dialogs}\index{TkDialogs@{TkDialogs}}
Contains static metods for simple dialogs - message box,open and save file dialog.  


{\tt \#include $<$tk\_\-dialogs.h$>$}

\subsection*{Static Public Member Functions}
\begin{CompactItemize}
\item 
static int {\bf create\-Dialog} ({\bf Ptr}$<$ {\bf Tcl\-Interp} $>$ \&interp, const string \&title, const string \&text, int default\-Button)
\begin{CompactList}\small\item\em Create dialog. \item\end{CompactList}\item 
static int {\bf create\-Dialog} ({\bf Ptr}$<$ {\bf Tcl\-Interp} $>$ \&interp, const string \&title, const string \&text, int default\-Button, const string \&button0)
\begin{CompactList}\small\item\em Create dialog. \item\end{CompactList}\item 
static int {\bf create\-Dialog} ({\bf Ptr}$<$ {\bf Tcl\-Interp} $>$ \&interp, const string \&title, const string \&text, int default\-Button, const string \&button0, const string \&button1)
\begin{CompactList}\small\item\em Create dialog. \item\end{CompactList}\item 
static int {\bf create\-Dialog} ({\bf Ptr}$<$ {\bf Tcl\-Interp} $>$ \&interp, const string \&title, const string \&text, int default\-Button, const string \&button0, const string \&button1, const string \&button2)
\begin{CompactList}\small\item\em Create dialog. \item\end{CompactList}\item 
static int {\bf create\-Dialog} ({\bf Ptr}$<$ {\bf Tcl\-Interp} $>$ \&interp, const string \&title, const string \&text, int default\-Button, const list$<$ string $>$ \&buttons)
\begin{CompactList}\small\item\em Create dialog. \item\end{CompactList}\item 
static MBox\-Button {\bf create\-MBox} ({\bf Ptr}$<$ {\bf Tcl\-Interp} $>$ \&interp, const string \&title, const string \&message, MBox\-Type type, MBox\-Icon icon, MBox\-Button default\-Button)
\begin{CompactList}\small\item\em Create message box. \item\end{CompactList}\item 
static const string \& {\bf create\-Open\-Dialog} ({\bf Ptr}$<$ {\bf Tcl\-Interp} $>$ \&interp)
\begin{CompactList}\small\item\em Create standard openfile dialog. \item\end{CompactList}\item 
static const string \& {\bf create\-Open\-Dialog} ({\bf Ptr}$<$ {\bf Tcl\-Interp} $>$ \&interp, const string \&default\-Extension, const map$<$ string, string $>$ \&file\-Types, const string \&initial\-Dir, bool multiple, const string \&title)
\begin{CompactList}\small\item\em Create standard open dialog. \item\end{CompactList}\item 
static const string \& {\bf create\-Save\-Dialog} ({\bf Ptr}$<$ {\bf Tcl\-Interp} $>$ \&interp, const string \&default\-Extension, const map$<$ string, string $>$ \&file\-Types, const string \&initial\-Dir, const string \&title)
\begin{CompactList}\small\item\em Create standard save dialog. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
Contains static metods for simple dialogs - message box,open and save file dialog. 

\begin{Desc}
\item[Date:]01-12-2006\end{Desc}
\begin{Desc}
\item[Author:]Ondrej Svejdar\end{Desc}
\begin{Desc}
\item[{\bf Todo}]\end{Desc}
\begin{Desc}
\item[{\bf Bug}]\end{Desc}




\subsection{Member Function Documentation}
\index{TkDialogs@{Tk\-Dialogs}!createDialog@{createDialog}}
\index{createDialog@{createDialog}!TkDialogs@{Tk\-Dialogs}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int Tk\-Dialogs::create\-Dialog ({\bf Ptr}$<$ {\bf Tcl\-Interp} $>$ \& {\em interp}, const string \& {\em title}, const string \& {\em text}, int {\em default\-Button}, const list$<$ string $>$ \& {\em buttons})\hspace{0.3cm}{\tt  [static]}}\label{class_tk_dialogs_8ad2becd85a9745be79d05640bdb9407}


Create dialog. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em interp}]reference to interpret \item[{\em title}]dialog title \item[{\em text}]text to display \item[{\em default\-Button}]mbut\_\-abort, mbut\_\-retry, mbut\_\-cancel, mbut\_\-ok , mbut\_\-yes, mbut\_\-no \item[{\em buttons}]for each item in this list would be created one button \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]int index of pressed button \end{Desc}
\index{TkDialogs@{Tk\-Dialogs}!createDialog@{createDialog}}
\index{createDialog@{createDialog}!TkDialogs@{Tk\-Dialogs}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int Tk\-Dialogs::create\-Dialog ({\bf Ptr}$<$ {\bf Tcl\-Interp} $>$ \& {\em interp}, const string \& {\em title}, const string \& {\em text}, int {\em default\-Button}, const string \& {\em button0}, const string \& {\em button1}, const string \& {\em button2})\hspace{0.3cm}{\tt  [static]}}\label{class_tk_dialogs_42dc969357764c04f5355b9506293c16}


Create dialog. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em interp}]reference to interpret \item[{\em title}]dialog title \item[{\em text}]text to display \item[{\em default\-Button}]mbut\_\-abort, mbut\_\-retry, mbut\_\-cancel, mbut\_\-ok , mbut\_\-yes, mbut\_\-no \item[{\em button0}]text displayed on button 0 (buttons are indexed from left to right) \item[{\em button1}]text displayed on button 1 (buttons are indexed from left to right) \item[{\em button2}]text displayed on button 2 (buttons are indexed from left to right) \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]int index of pressed button \end{Desc}
\index{TkDialogs@{Tk\-Dialogs}!createDialog@{createDialog}}
\index{createDialog@{createDialog}!TkDialogs@{Tk\-Dialogs}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int Tk\-Dialogs::create\-Dialog ({\bf Ptr}$<$ {\bf Tcl\-Interp} $>$ \& {\em interp}, const string \& {\em title}, const string \& {\em text}, int {\em default\-Button}, const string \& {\em button0}, const string \& {\em button1})\hspace{0.3cm}{\tt  [static]}}\label{class_tk_dialogs_35845660ed5c5a8977af0e8dd7e7c8f5}


Create dialog. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em interp}]reference to interpret \item[{\em title}]dialog title \item[{\em text}]text to display \item[{\em default\-Button}]mbut\_\-abort, mbut\_\-retry, mbut\_\-cancel, mbut\_\-ok , mbut\_\-yes, mbut\_\-no \item[{\em button0}]text displayed on button 0 (buttons are indexed from left to right) \item[{\em button1}]text displayed on button 1 (buttons are indexed from left to right) \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]int index of pressed button \end{Desc}
\index{TkDialogs@{Tk\-Dialogs}!createDialog@{createDialog}}
\index{createDialog@{createDialog}!TkDialogs@{Tk\-Dialogs}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int Tk\-Dialogs::create\-Dialog ({\bf Ptr}$<$ {\bf Tcl\-Interp} $>$ \& {\em interp}, const string \& {\em title}, const string \& {\em text}, int {\em default\-Button}, const string \& {\em button0})\hspace{0.3cm}{\tt  [static]}}\label{class_tk_dialogs_90628b1cb8c6fa0ff5dd7892a69a4daf}


Create dialog. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em interp}]reference to interpret \item[{\em title}]dialog title \item[{\em text}]text to display \item[{\em default\-Button}]mbut\_\-abort, mbut\_\-retry, mbut\_\-cancel, mbut\_\-ok , mbut\_\-yes, mbut\_\-no \item[{\em button0}]text displayed on button 0 (buttons are indexed from left to right) \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]int index of pressed button \end{Desc}
\index{TkDialogs@{Tk\-Dialogs}!createDialog@{createDialog}}
\index{createDialog@{createDialog}!TkDialogs@{Tk\-Dialogs}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int Tk\-Dialogs::create\-Dialog ({\bf Ptr}$<$ {\bf Tcl\-Interp} $>$ \& {\em interp}, const string \& {\em title}, const string \& {\em text}, int {\em default\-Button})\hspace{0.3cm}{\tt  [static]}}\label{class_tk_dialogs_187c79a987b62fcab680d8cc5c51a9ee}


Create dialog. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em interp}]reference to interpret \item[{\em title}]dialog title \item[{\em text}]text to display \item[{\em default\-Button}]mbut\_\-abort, mbut\_\-retry, mbut\_\-cancel, mbut\_\-ok , mbut\_\-yes, mbut\_\-no \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]int index of pressed button \end{Desc}
\index{TkDialogs@{Tk\-Dialogs}!createMBox@{createMBox}}
\index{createMBox@{createMBox}!TkDialogs@{Tk\-Dialogs}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}MBox\-Button Tk\-Dialogs::create\-MBox ({\bf Ptr}$<$ {\bf Tcl\-Interp} $>$ \& {\em interp}, const string \& {\em title}, const string \& {\em message}, MBox\-Type {\em type}, MBox\-Icon {\em icon}, MBox\-Button {\em default\-Button})\hspace{0.3cm}{\tt  [static]}}\label{class_tk_dialogs_9f1e52cda6f5c54373f692a59225d08e}


Create message box. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em interp}]reference to interpret \item[{\em title}]dialog title \item[{\em message}]message to display \item[{\em type}]type of message box \item[{\em icon}]displayed icon \item[{\em default\-Button}]default active button \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]index of pressed button \end{Desc}
\index{TkDialogs@{Tk\-Dialogs}!createOpenDialog@{createOpenDialog}}
\index{createOpenDialog@{createOpenDialog}!TkDialogs@{Tk\-Dialogs}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const string \& Tk\-Dialogs::create\-Open\-Dialog ({\bf Ptr}$<$ {\bf Tcl\-Interp} $>$ \& {\em interp}, const string \& {\em default\-Extension}, const map$<$ string, string $>$ \& {\em file\-Types}, const string \& {\em initial\-Dir}, bool {\em multiple}, const string \& {\em title})\hspace{0.3cm}{\tt  [static]}}\label{class_tk_dialogs_cff56da723f3161d7228bff7ffc05af2}


Create standard open dialog. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em interp}]reference to interpret \item[{\em default\-Extension}]active extension \item[{\em file\-Types}]associative array, key is extension, for example \char`\"{}.txt\char`\"{} value is explanation - \char`\"{}Text files\char`\"{} \item[{\em initial\-Dir}]initial directory \item[{\em multiple}]true, if we should open multiple files \item[{\em title}]title of dialog \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]path to selected file(s) \end{Desc}
\index{TkDialogs@{Tk\-Dialogs}!createOpenDialog@{createOpenDialog}}
\index{createOpenDialog@{createOpenDialog}!TkDialogs@{Tk\-Dialogs}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const string \& Tk\-Dialogs::create\-Open\-Dialog ({\bf Ptr}$<$ {\bf Tcl\-Interp} $>$ \& {\em interp})\hspace{0.3cm}{\tt  [static]}}\label{class_tk_dialogs_0e6c65f7625286bd3622508ed5f53b4f}


Create standard openfile dialog. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em interp}]reference to interpret \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]path to selected file \end{Desc}
\index{TkDialogs@{Tk\-Dialogs}!createSaveDialog@{createSaveDialog}}
\index{createSaveDialog@{createSaveDialog}!TkDialogs@{Tk\-Dialogs}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const string \& Tk\-Dialogs::create\-Save\-Dialog ({\bf Ptr}$<$ {\bf Tcl\-Interp} $>$ \& {\em interp}, const string \& {\em default\-Extension}, const map$<$ string, string $>$ \& {\em file\-Types}, const string \& {\em initial\-Dir}, const string \& {\em title})\hspace{0.3cm}{\tt  [static]}}\label{class_tk_dialogs_22a00e60a7e2e7660becce0951c0107b}


Create standard save dialog. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em interp}]reference to interpret \item[{\em default\-Extension}]active extension \item[{\em file\-Types}]associative array, key is extension, for example \char`\"{}.txt\char`\"{} value is explanation - \char`\"{}Text files\char`\"{} \item[{\em initial\-Dir}]initial directory \item[{\em title}]title of dialog \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]path to selected file \end{Desc}


The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
H:/projs/dot\-NET/eda/src/tk/gui/tk\_\-dialogs.h\item 
H:/projs/dot\-NET/eda/src/tk/gui/tk\_\-dialogs.cpp\end{CompactItemize}
