2017-07-19 23:20:32 +02:00
|
|
|
#pragma once
|
2013-08-09 06:57:18 +02:00
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
struct lcPreferencesDialogOptions;
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class lcQPreferencesDialog;
|
|
|
|
}
|
|
|
|
|
|
|
|
class lcQPreferencesDialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit lcQPreferencesDialog(QWidget *parent, void *data);
|
|
|
|
~lcQPreferencesDialog();
|
|
|
|
|
|
|
|
lcPreferencesDialogOptions *options;
|
|
|
|
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
CategoryRole = Qt::UserRole
|
|
|
|
};
|
|
|
|
|
|
|
|
bool eventFilter(QObject *object, QEvent *event);
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
void accept();
|
|
|
|
void on_partsLibraryBrowse_clicked();
|
2019-03-06 19:54:17 +01:00
|
|
|
void on_partsArchiveBrowse_clicked();
|
2013-08-17 23:54:07 +02:00
|
|
|
void on_povrayExecutableBrowse_clicked();
|
|
|
|
void on_lgeoPathBrowse_clicked();
|
2019-01-20 20:59:18 +01:00
|
|
|
void ColorButtonClicked();
|
2013-08-09 06:57:18 +02:00
|
|
|
void on_antiAliasing_toggled();
|
|
|
|
void on_edgeLines_toggled();
|
2013-08-31 23:58:47 +02:00
|
|
|
void on_gridStuds_toggled();
|
|
|
|
void on_gridLines_toggled();
|
2019-01-20 20:59:18 +01:00
|
|
|
void on_ViewSphereSizeCombo_currentIndexChanged(int Index);
|
2013-08-09 06:57:18 +02:00
|
|
|
void updateParts();
|
|
|
|
void on_newCategory_clicked();
|
|
|
|
void on_editCategory_clicked();
|
|
|
|
void on_deleteCategory_clicked();
|
|
|
|
void on_importCategories_clicked();
|
|
|
|
void on_exportCategories_clicked();
|
|
|
|
void on_resetCategories_clicked();
|
|
|
|
void on_shortcutAssign_clicked();
|
|
|
|
void on_shortcutRemove_clicked();
|
|
|
|
void on_shortcutsImport_clicked();
|
|
|
|
void on_shortcutsExport_clicked();
|
|
|
|
void on_shortcutsReset_clicked();
|
|
|
|
void commandChanged(QTreeWidgetItem *current);
|
2019-05-12 01:46:37 +02:00
|
|
|
void on_KeyboardFilterEdit_textEdited(const QString& Text);
|
2016-04-25 07:26:34 +02:00
|
|
|
void on_mouseAssign_clicked();
|
|
|
|
void on_mouseRemove_clicked();
|
|
|
|
void on_mouseReset_clicked();
|
|
|
|
void MouseTreeItemChanged(QTreeWidgetItem* Current);
|
2013-08-09 06:57:18 +02:00
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::lcQPreferencesDialog *ui;
|
|
|
|
|
|
|
|
void updateCategories();
|
|
|
|
void updateCommandList();
|
2016-04-25 07:26:34 +02:00
|
|
|
void UpdateMouseTree();
|
|
|
|
void UpdateMouseTreeItem(int ItemIndex);
|
2013-08-09 06:57:18 +02:00
|
|
|
void setShortcutModified(QTreeWidgetItem *treeItem, bool modified);
|
|
|
|
};
|
|
|
|
|