diff --git a/doc/Home.md b/doc/Home.md index 6753ecc64..cdbe12562 100644 --- a/doc/Home.md +++ b/doc/Home.md @@ -2,6 +2,7 @@ Welcome to the OrcaSlicer WIKI! We have divided it roughly into the following pages: -* [Calibration](wiki/Calibration) -* [Print settings](wiki/Print-settings) -* [How to build Orca Slicer](wiki/How-to-build) +- [Calibration](./Calibration) +- [Print settings](./Print-settings) +- [How to build Orca Slicer](./How-to-build) +- [Developer Reference](./developer-reference/Home) diff --git a/doc/How to build b/doc/How-to-build.md similarity index 100% rename from doc/How to build rename to doc/How-to-build.md diff --git a/doc/developer-reference/Home.md b/doc/developer-reference/Home.md new file mode 100644 index 000000000..bdbb65e07 --- /dev/null +++ b/doc/developer-reference/Home.md @@ -0,0 +1,6 @@ +# For Developers + +This is a documentation from someone exploring the code and is by no means complete or even completely accurate. Please edit the parts you might find inaccurate. This is probably going to be helpful nonetheless. + +- [Preset, PresetBundle and PresetCollection](./Preset-and-bundle) +- [Plater, Sidebar, Tab, ComboBox](./plater-sidebar-tab-combobox) diff --git a/doc/developer-reference/Preset-and-bundle.md b/doc/developer-reference/Preset-and-bundle.md new file mode 100644 index 000000000..4e0b00d18 --- /dev/null +++ b/doc/developer-reference/Preset-and-bundle.md @@ -0,0 +1,43 @@ +This page deals with the explanation for 3 classes in the code. + +## [`Preset`](../../src/libslic3r/Preset.hpp) + +As the name might suggest this class deals with presets for various things. It defines an enum `Type` which basically tells you what kind of data the present contains. Below are a few explained and there corresponding UI elements + +#### Note: There is a lot of outdated and legacy code in the code base. + +- `TYPE_PRINT`: Refers to a process preset. It's called 'Print' probably due to some legacy code. + +Example Image + +- `TYPE_FILAMENT`: As the name suggests this preset is for filaments + +Example Image + +- `TYPE_PRINTER`: Preset for printers. + +Example Image + +There are other preset types but some of them are for SLA. Which is legacy code, since SLA printers are no longer supported. Above 3 are the important types. + +## [`PresetBundle`](../../src/libslic3r/PresetBundle.hpp) + +This is a bundle containing a few types of `PresetCollection`. One bundle has presets for some printers, filaments and some processes (TYPE_PRINT). + +`PresetCollection prints`\ +`PresetCollection filaments`\ +`PrinterPresetCollection printers` + +each one of these contains a collection of processes, filaments and printers respectively.\ + +#### Note: Printers, filaments and processes in the bundle don't all have to be compatible with each other. In fact all the saved presets are stored in one `PresetBundle`. The `PresetBundle` is loaded on start up. The list of filaments and processes shown for a particular printer is a subset of `filaments` and `prints` `PresetCollection`s. + +## [`PresetCollection`](../../src/libslic3r/Preset.hpp) + +`PrinterPresetCollection` is a class derived from `PresetCollection`. + +These contain a collection of presets. The presets could be of any type.\ +functions of note here are: + +`get_edited_preset()`: returns the current selected preset along with any modifications the user has made.\ +`get_selected_preset()`: returns the current selected preset without the modifications the user has made. diff --git a/doc/developer-reference/plater-sidebar-tab-combobox.md b/doc/developer-reference/plater-sidebar-tab-combobox.md new file mode 100644 index 000000000..a35ca6f8c --- /dev/null +++ b/doc/developer-reference/plater-sidebar-tab-combobox.md @@ -0,0 +1,23 @@ +### !! incomplete, possibly inaccurate, being updated with new info !! + +## [`Plater`](../../src/slic3r/GUI/Plater.hpp) + +Refers to the entire application. The whole view, file loading, project saving and loading is all managed by this class. This class contains members for the model viewer, the sidebar, gcode viewer and everything else. + +## [`Sidebar`](../../src/slic3r/GUI/Plater.hpp) + +This is relating the the sidebar in the application window + +Example Image + +## [`ComboBox`](../../src/slic3r/GUI/Widgets/ComboBox.hpp) + +The drop down menus where you can see and select presets + +Example Image + +## [`Tab`](../../src/slic3r/GUI/Tab.hpp) + +Refers to the various windows with settings. e.g. the Popup to edit printer or filament preset. Also the section to edit process preset and the object list. These 4 are managed by `TabPrinter`, `TabFilament`, `TabPrint` and `TabPrintModel` respectively. + +Example Image diff --git a/doc/images/combobox.png b/doc/images/combobox.png new file mode 100644 index 000000000..0b720e662 Binary files /dev/null and b/doc/images/combobox.png differ diff --git a/doc/images/filament-preset.png b/doc/images/filament-preset.png new file mode 100644 index 000000000..7ad4c1c52 Binary files /dev/null and b/doc/images/filament-preset.png differ diff --git a/doc/images/full-sidebar.png b/doc/images/full-sidebar.png new file mode 100644 index 000000000..316fd2e95 Binary files /dev/null and b/doc/images/full-sidebar.png differ diff --git a/doc/images/printer-preset.png b/doc/images/printer-preset.png new file mode 100644 index 000000000..d4d73718a Binary files /dev/null and b/doc/images/printer-preset.png differ diff --git a/doc/images/process-preset.png b/doc/images/process-preset.png new file mode 100644 index 000000000..2a2fc53db Binary files /dev/null and b/doc/images/process-preset.png differ diff --git a/doc/images/tab-popup.png b/doc/images/tab-popup.png new file mode 100644 index 000000000..e31f47dc8 Binary files /dev/null and b/doc/images/tab-popup.png differ