NDEVR
API Documentation
FileAndFolderSettingsDialog.h
1#pragma once
2#ifndef Q_OS_WASM
3#include "DLLInfo.h"
4#include <NDEVR/ApplicationOptions.h>
5#include <NDEVR/String.h>
6#include <QWidget>
7namespace Ui
8{
9 class FileAndFolderSettingsUI;
10}
11namespace NDEVR
12{
14 class Button;
19 class NDEVR_API FileAndFolderSettingsDialog : public QWidget
20 {
21 public:
26 FileAndFolderSettingsDialog(QWidget* parent = nullptr);
27 protected:
33 bool event(QEvent* event) override;
57 protected:
58 Ui::FileAndFolderSettingsUI* ui;
61 };
62}
63#endif
The default object to store data of any type that should persist through sessions of the application.
A core widget that allows the user to click one of many button types.
Definition Button.h:68
void updateUseProjectFolders()
Updates the UI when the project folder usage setting changes.
FileChooserDialog * m_file_chooser_dialog
The file chooser dialog for browsing paths.
FileAndFolderSettingsDialog(QWidget *parent=nullptr)
Constructs a FileAndFolderSettingsDialog.
void showBrowseDialog(const TranslatedString &title, Button *b)
Shows a browse dialog for selecting a folder path.
void setDescriptions()
Sets descriptive text for each folder setting in the UI.
ApplicationOption< String > * m_path_to_modify
The application option being modified by the browse dialog.
void retranslate()
Retranslates all UI strings when the language changes.
Ui::FileAndFolderSettingsUI * ui
The UI form for this dialog.
FileChooserDialog * fileChooser()
Returns the file chooser dialog, creating it if necessary.
bool event(QEvent *event) override
Handles events for this dialog, including retranslation.
A dialog designed to allow the user to navigate a filesytem and select or create one or more files or...
Any text displayed to the user should be defined as a TranslatedString which allows the program to lo...
The primary namespace for the NDEVR SDK.