////////////////////////////////////////////////////////////////////////////////
// plab - Plants, Landscape and Buildings
// Copyright Bjoern Ganster
// Developed since 2007
// This file declares functions to display standard dialogs
////////////////////////////////////////////////////////////////////////////////

#ifndef dialogs__h
#define dialogs__h

#include "BGCPString.h"

////////////////////////////////////////////////////////////////////////////////
// MessageBox buttons

#ifdef USE_QT
#include <QtWidgets/QMessageBox>
#endif

#ifndef _WIN32
const int MB_OK = 1;
const int MB_OKCANCEL = 2;
const int MB_YESNO = 3;
const int MB_YESNOCANCEL = 4;
#ifdef USE_QT
const int IDOK = QMessageBox::Ok;
const int IDCANCEL = QMessageBox::Cancel;
const int IDYES = QMessageBox::Yes;
const int IDNO = QMessageBox::No;
#endif
const int MB_ICONERROR = 0;
#endif

////////////////////////////////////////////////////////////////////////////////

// Get Open/Save file names
bool getOpenFileName (BGCPString& FN);
bool getSaveFileName (BGCPString& FN);

// Show a message box
// see http://msdn2.microsoft.com/en-us/library/ms645505.aspx
int messageBox (const BGCPString& title, const BGCPString& message, int utype = 0);

// Present user with several options to a question
//int ask (const TCHAR* title, const TCHAR* msg, const TCHAR* buttonTexts);

#endif
