2024.8.23
|
Public Member Functions | |
__construct ($args) | |
processWindow ($window, $id, $ctrl, $param1, $param2) | |
Data Fields | |
const | GAUGE_SAVE = 2 |
Private Attributes | |
$wbBtnBrowse | |
$wbBtnCancel | |
$wbBtnSave | |
$wbInputBrowse | |
$wbLabelExp | |
$wbProgressBar | |
$wbRadioButton | |
$wbRadioButtonOther | |
$wbWindow | |
Class ActionChangeBrowser
This class handles the action of changing the default browser in the Bearsampp application. It creates a window with options to select from installed browsers or browse for a different browser executable. The selected browser is then saved in the configuration.
Definition at line 17 of file class.action.changeBrowser.php.
ActionChangeBrowser::__construct | ( | $args | ) |
Constructor for ActionChangeBrowser.
Initializes the window and its components, sets up event handlers, and starts the main loop.
array | $args | Arguments passed to the constructor. |
Definition at line 38 of file class.action.changeBrowser.php.
References $bearsamppConfig, $bearsamppLang, Lang\BUTTON_BROWSE, Lang\BUTTON_CANCEL, Lang\BUTTON_SAVE, Lang\CHANGE_BROWSER_EXP_LABEL, Lang\CHANGE_BROWSER_OTHER_LABEL, Lang\CHANGE_BROWSER_TITLE, WinBinder\CTRL_OBJ, and Vbs\getInstalledBrowsers().
ActionChangeBrowser::processWindow | ( | $window, | |
$id, | |||
$ctrl, | |||
$param1, | |||
$param2 ) |
Processes window events.
Handles the logic for various controls in the window, such as enabling/disabling buttons, opening file dialogs, and saving the selected browser.
resource | $window | The window resource. |
int | $id | The ID of the control that triggered the event. |
resource | $ctrl | The control resource. |
mixed | $param1 | Additional parameter 1. |
mixed | $param2 | Additional parameter 2. |
Definition at line 87 of file class.action.changeBrowser.php.
References $bearsamppConfig, $bearsamppLang, Lang\ALIAS_DEST_PATH, Config\CFG_BROWSER, Lang\CHANGE_BROWSER_OK, Lang\CHANGE_BROWSER_TITLE, WinBinder\CTRL_ID, WinBinder\CTRL_OBJ, and Lang\EXECUTABLE.
|
private |
Definition at line 24 of file class.action.changeBrowser.php.
|
private |
Definition at line 27 of file class.action.changeBrowser.php.
|
private |
Definition at line 26 of file class.action.changeBrowser.php.
|
private |
Definition at line 23 of file class.action.changeBrowser.php.
|
private |
Definition at line 20 of file class.action.changeBrowser.php.
|
private |
Definition at line 25 of file class.action.changeBrowser.php.
|
private |
Definition at line 21 of file class.action.changeBrowser.php.
|
private |
Definition at line 22 of file class.action.changeBrowser.php.
|
private |
Definition at line 19 of file class.action.changeBrowser.php.
const ActionChangeBrowser::GAUGE_SAVE = 2 |
Definition at line 29 of file class.action.changeBrowser.php.