SavvyUI C++ UI Library
Loading...
Searching...
No Matches
DialogFactory.h
Go to the documentation of this file.
1#pragma once
2
3#include "Component.h"
4
6{
7public:
8
9 wstring columnName;
10 wstring columnTitle;
13};
14
23{
24public:
32 static void showError(Component *parent, const wstring& errorMessage, const wstring& title = L"");
33
41 static void showWarning(Component *parent, const wstring& warningMessage, const wstring& title = L"");
42
50 static void showInfo(Component *parent, const wstring& infoMessage, const wstring& title = L"");
51
59 static void showSuccess(Component *parent, const wstring& successMessage, const wstring& title = L"");
60
69 static BOOL showConfirmDialog(Component *parent, const wstring& promptMessageText, const wstring& title = L"");
70
78 static BOOL showOpenFileDialog(Component *parent, vector<wstring>& selection, BOOL allowMultiSelection = FALSE);
79
87 static BOOL showSaveFileDialog(Component *parent, wstring& selection);
88
96 static BOOL showFolderSelectionDialog(Component *parent, wstring& selection);
97
105 static BOOL showColorSelectionDialog(Component *parent, COLORREF& selection);
106
119 wstring& fontName,
120 long& fontHeight,
121 long& fontWeight,
122 BOOL& isItalic,
123 COLORREF& color);
124
133
145 long& leftMargin, long& topMargin,
146 long& rightMargin, long& bottomMargin);
147
156 static BOOL showInputDialog(Component *parent, const vector<wstring>& labels, vector<wstring>& values);
157
165 static BOOL showDateInputDialog(Component *parent, wstring& selectedDate);
166
176 static BOOL showRecordSearchDialog(Component* parent, const wstring& title,
177 const vector<wstring>& searchFieldNames,
178 const vector<SearchDialogColumn>& gridColumns,
179 Pager* pager, long pagerRequestSourceComponentId,
180 const wstring& idColumnName, wstring& selectedRecordId);
181};
182
HDC DCHandle
Definition Common.h:17
Definition Common.h:21
Base class for all UI components providing window creation, event handling, and listener management.
Definition Component.h:32
A utility class providing static methods to show common dialog boxes.
Definition DialogFactory.h:23
static BOOL showInputDialog(Component *parent, const vector< wstring > &labels, vector< wstring > &values)
Shows a generic input dialog with multiple labeled fields.
static BOOL showFolderSelectionDialog(Component *parent, wstring &selection)
Shows a folder selection dialog.
static BOOL showConfirmDialog(Component *parent, const wstring &promptMessageText, const wstring &title=L"")
Shows a confirmation dialog with Yes/No options.
static BOOL showColorSelectionDialog(Component *parent, COLORREF &selection)
Shows a color selection dialog.
static void showSuccess(Component *parent, const wstring &successMessage, const wstring &title=L"")
Shows a success message dialog.
static BOOL showSaveFileDialog(Component *parent, wstring &selection)
Shows a Save File dialog to specify a file to save.
static void showInfo(Component *parent, const wstring &infoMessage, const wstring &title=L"")
Shows an informational message dialog.
static DCHandle showPrinterSelectionDialog(Component *parent, Bounds &printerRect)
Shows a printer selection dialog.
static BOOL showRecordSearchDialog(Component *parent, const wstring &title, const vector< wstring > &searchFieldNames, const vector< SearchDialogColumn > &gridColumns, Pager *pager, long pagerRequestSourceComponentId, const wstring &idColumnName, wstring &selectedRecordId)
Shows a generic record search dialog with search capability.
static BOOL showDateInputDialog(Component *parent, wstring &selectedDate)
Shows a generic input dialog with multiple labeled fields.
static void showWarning(Component *parent, const wstring &warningMessage, const wstring &title=L"")
Shows a warning message dialog.
static BOOL showFontSelectionDialog(Component *parent, wstring &fontName, long &fontHeight, long &fontWeight, BOOL &isItalic, COLORREF &color)
Shows a font selection dialog.
static BOOL showPrinterSetupDialog(Component *parent, long &leftMargin, long &topMargin, long &rightMargin, long &bottomMargin)
Shows a printer setup dialog to configure margins.
static BOOL showOpenFileDialog(Component *parent, vector< wstring > &selection, BOOL allowMultiSelection=FALSE)
Shows an Open File dialog to select a file.
static void showError(Component *parent, const wstring &errorMessage, const wstring &title=L"")
Shows an error message dialog.
Definition Models.h:45
Definition DialogFactory.h:6
long columnWidthRatio
Definition DialogFactory.h:11
wstring columnName
Definition DialogFactory.h:9
BOOL columnVisible
Definition DialogFactory.h:12
wstring columnTitle
Definition DialogFactory.h:10