mirror of
https://github.com/leozide/leocad
synced 2024-12-26 21:58:44 +01:00
5adcfb4027
* Add stud logo preference and command line option * Support add stud logo when using disk library
70 lines
1.8 KiB
C++
70 lines
1.8 KiB
C++
#pragma once
|
|
|
|
#include <QDialog>
|
|
struct lcPreferencesDialogOptions;
|
|
|
|
namespace Ui {
|
|
class lcQPreferencesDialog;
|
|
}
|
|
|
|
class lcQPreferencesDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
lcQPreferencesDialog(QWidget* Parent, lcPreferencesDialogOptions* Options);
|
|
~lcQPreferencesDialog();
|
|
|
|
lcPreferencesDialogOptions* mOptions;
|
|
|
|
enum
|
|
{
|
|
CategoryRole = Qt::UserRole
|
|
};
|
|
|
|
bool eventFilter(QObject *object, QEvent *event);
|
|
|
|
public slots:
|
|
void accept();
|
|
void on_partsLibraryBrowse_clicked();
|
|
void on_partsArchiveBrowse_clicked();
|
|
void on_ColorConfigBrowseButton_clicked();
|
|
void on_MinifigSettingsBrowseButton_clicked();
|
|
void on_povrayExecutableBrowse_clicked();
|
|
void on_lgeoPathBrowse_clicked();
|
|
void ColorButtonClicked();
|
|
void on_antiAliasing_toggled();
|
|
void on_edgeLines_toggled();
|
|
void on_gridStuds_toggled();
|
|
void on_gridLines_toggled();
|
|
void on_ViewSphereSizeCombo_currentIndexChanged(int Index);
|
|
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);
|
|
void on_KeyboardFilterEdit_textEdited(const QString& Text);
|
|
void on_mouseAssign_clicked();
|
|
void on_mouseRemove_clicked();
|
|
void on_mouseReset_clicked();
|
|
void on_studLogo_toggled();
|
|
void MouseTreeItemChanged(QTreeWidgetItem* Current);
|
|
|
|
private:
|
|
Ui::lcQPreferencesDialog *ui;
|
|
|
|
void updateCategories();
|
|
void updateCommandList();
|
|
void UpdateMouseTree();
|
|
void UpdateMouseTreeItem(int ItemIndex);
|
|
void setShortcutModified(QTreeWidgetItem *treeItem, bool modified);
|
|
};
|
|
|