diff --git a/control/src/README.md b/control/src/README.md
index 8b1193f..618b99d 100644
--- a/control/src/README.md
+++ b/control/src/README.md
@@ -36,7 +36,7 @@ Außerdem wird eine Bibliothek (*b15fdrv*) installiert, die eine einfache Entwic
(b) Passen Sie in der Datei *Makefile* (im aktuellen Verzeichnis) die Option "MCU = ..." an die MCU des vorliegenden Boards an.
**Achtung**: *atmega1284* und *atmega1284p* sind nicht identisch!
(c) Fügen Sie den Nutzer *famulus* zu Gruppe *dialout* hinzu: **sudo adduser famulus dialout**
- (d) Schreiben Sie (mit root-Rechten) Folgendes in die Datei "*/etc/udev/rules.d/60-olimex.rules*":
+ (d) Schreiben Sie (mit root-Rechten) Folgendes in die Datei */etc/udev/rules.d/60-olimex.rules*:
```
ATTR{idVendor}=="03eb", ATTR{idProduct}=="2104", MODE="660", GROUP="dialout"
```
diff --git a/control/src/drv/commit_hash.h b/control/src/drv/commit_hash.h
index 3572bf8..f0d564a 100644
--- a/control/src/drv/commit_hash.h
+++ b/control/src/drv/commit_hash.h
@@ -1,4 +1,4 @@
#ifndef COMMIT_HASH_H
#define COMMIT_HASH_H
-const char COMMIT_HASH[] = "ec650a35ef92e5e8cde2b44cdbb1caf0ff0e1a26";
+const char COMMIT_HASH[] = "bc3fbbbf955dea59a775638d02e76a9cc20f9707";
#endif // COMMIT_HASH_H
diff --git a/docs/html/annotated.html b/docs/html/annotated.html
index fd0bd6a..0815666 100644
--- a/docs/html/annotated.html
+++ b/docs/html/annotated.html
@@ -85,7 +85,7 @@ $(function() {
diff --git a/docs/html/b15f_8cpp_source.html b/docs/html/b15f_8cpp_source.html
index edfd14b..ba7a78c 100644
--- a/docs/html/b15f_8cpp_source.html
+++ b/docs/html/b15f_8cpp_source.html
@@ -121,7 +121,7 @@ $(function() {
diff --git a/docs/html/b15f_8h_source.html b/docs/html/b15f_8h_source.html
index bcf1d9c..5781095 100644
--- a/docs/html/b15f_8h_source.html
+++ b/docs/html/b15f_8h_source.html
@@ -117,7 +117,7 @@ $(function() {
diff --git a/docs/html/classB15F-members.html b/docs/html/classB15F-members.html
index a18d8a0..9789b23 100644
--- a/docs/html/classB15F-members.html
+++ b/docs/html/classB15F-members.html
@@ -114,7 +114,7 @@ $(function() {
diff --git a/docs/html/classB15F.html b/docs/html/classB15F.html
index 150e695..1c678d1 100644
--- a/docs/html/classB15F.html
+++ b/docs/html/classB15F.html
@@ -1309,7 +1309,7 @@ constexpr static uint32_t
diff --git a/docs/html/classDot-members.html b/docs/html/classDot-members.html
index c7d1212..08728ab 100644
--- a/docs/html/classDot-members.html
+++ b/docs/html/classDot-members.html
@@ -76,7 +76,7 @@ $(function() {
diff --git a/docs/html/classDot.html b/docs/html/classDot.html
index 195933a..723f05a 100644
--- a/docs/html/classDot.html
+++ b/docs/html/classDot.html
@@ -196,7 +196,7 @@ Public Member Functions |
diff --git a/docs/html/classDriverException-members.html b/docs/html/classDriverException-members.html
index ed42abf..0e4d0d7 100644
--- a/docs/html/classDriverException-members.html
+++ b/docs/html/classDriverException-members.html
@@ -77,7 +77,7 @@ $(function() {
diff --git a/docs/html/classDriverException.html b/docs/html/classDriverException.html
index 2eb7502..e2320ff 100644
--- a/docs/html/classDriverException.html
+++ b/docs/html/classDriverException.html
@@ -109,7 +109,7 @@ std::string msg_ | <
diff --git a/docs/html/classPlottyFile-members.html b/docs/html/classPlottyFile-members.html
index cdf0b95..240954e 100644
--- a/docs/html/classPlottyFile-members.html
+++ b/docs/html/classPlottyFile-members.html
@@ -100,7 +100,7 @@ $(function() {
diff --git a/docs/html/classPlottyFile.html b/docs/html/classPlottyFile.html
index 95da4bf..ad1183d 100644
--- a/docs/html/classPlottyFile.html
+++ b/docs/html/classPlottyFile.html
@@ -811,7 +811,7 @@ Public Member Functions
diff --git a/docs/html/classTimeoutException-members.html b/docs/html/classTimeoutException-members.html
index a655de5..b866643 100644
--- a/docs/html/classTimeoutException-members.html
+++ b/docs/html/classTimeoutException-members.html
@@ -77,7 +77,7 @@ $(function() {
diff --git a/docs/html/classTimeoutException.html b/docs/html/classTimeoutException.html
index 58fcc75..233a778 100644
--- a/docs/html/classTimeoutException.html
+++ b/docs/html/classTimeoutException.html
@@ -239,7 +239,7 @@ std::string
diff --git a/docs/html/classUSART-members.html b/docs/html/classUSART-members.html
index 4f763de..00761cd 100644
--- a/docs/html/classUSART-members.html
+++ b/docs/html/classUSART-members.html
@@ -86,7 +86,7 @@ $(function() {
diff --git a/docs/html/classUSART.html b/docs/html/classUSART.html
index f759409..6a51f48 100644
--- a/docs/html/classUSART.html
+++ b/docs/html/classUSART.html
@@ -523,7 +523,7 @@ Public Member Functions |
diff --git a/docs/html/classUSARTException-members.html b/docs/html/classUSARTException-members.html
index 50d17ec..09ccd8d 100644
--- a/docs/html/classUSARTException-members.html
+++ b/docs/html/classUSARTException-members.html
@@ -77,7 +77,7 @@ $(function() {
diff --git a/docs/html/classUSARTException.html b/docs/html/classUSARTException.html
index 2f5a9bf..6d2076f 100644
--- a/docs/html/classUSARTException.html
+++ b/docs/html/classUSARTException.html
@@ -239,7 +239,7 @@ std::string
diff --git a/docs/html/classView-members.html b/docs/html/classView-members.html
index 4307cff..9e66374 100644
--- a/docs/html/classView-members.html
+++ b/docs/html/classView-members.html
@@ -89,7 +89,7 @@ $(function() {
diff --git a/docs/html/classView.html b/docs/html/classView.html
index 8b8aa05..84a1264 100644
--- a/docs/html/classView.html
+++ b/docs/html/classView.html
@@ -157,7 +157,7 @@ constexpr static int | KEY_E
diff --git a/docs/html/classViewInfo-members.html b/docs/html/classViewInfo-members.html
index 3b6acb9..a66120d 100644
--- a/docs/html/classViewInfo-members.html
+++ b/docs/html/classViewInfo-members.html
@@ -99,7 +99,7 @@ $(function() {
diff --git a/docs/html/classViewInfo.html b/docs/html/classViewInfo.html
index cb49b9e..59da849 100644
--- a/docs/html/classViewInfo.html
+++ b/docs/html/classViewInfo.html
@@ -185,7 +185,7 @@ static std::vector< std::string > |
diff --git a/docs/html/classViewMonitor-members.html b/docs/html/classViewMonitor-members.html
index ce769fa..7267ef0 100644
--- a/docs/html/classViewMonitor-members.html
+++ b/docs/html/classViewMonitor-members.html
@@ -103,7 +103,7 @@ $(function() {
diff --git a/docs/html/classViewMonitor.html b/docs/html/classViewMonitor.html
index 6925a1d..1caa9f5 100644
--- a/docs/html/classViewMonitor.html
+++ b/docs/html/classViewMonitor.html
@@ -197,7 +197,7 @@ constexpr static int | KEY_E
diff --git a/docs/html/classViewPromt-members.html b/docs/html/classViewPromt-members.html
index 795615d..910bc31 100644
--- a/docs/html/classViewPromt-members.html
+++ b/docs/html/classViewPromt-members.html
@@ -105,7 +105,7 @@ $(function() {
diff --git a/docs/html/classViewPromt.html b/docs/html/classViewPromt.html
index 0c5612a..5a72792 100644
--- a/docs/html/classViewPromt.html
+++ b/docs/html/classViewPromt.html
@@ -205,7 +205,7 @@ static std::vector< std::string > |
diff --git a/docs/html/classViewSelection-members.html b/docs/html/classViewSelection-members.html
index b67f857..e597d72 100644
--- a/docs/html/classViewSelection-members.html
+++ b/docs/html/classViewSelection-members.html
@@ -94,7 +94,7 @@ $(function() {
diff --git a/docs/html/classViewSelection.html b/docs/html/classViewSelection.html
index 25a859d..e14a26c 100644
--- a/docs/html/classViewSelection.html
+++ b/docs/html/classViewSelection.html
@@ -172,7 +172,7 @@ static std::vector< std::string > |
diff --git a/docs/html/classes.html b/docs/html/classes.html
index c221369..028fe9f 100644
--- a/docs/html/classes.html
+++ b/docs/html/classes.html
@@ -105,7 +105,7 @@ $(function() {
diff --git a/docs/html/cli_8cpp_source.html b/docs/html/cli_8cpp_source.html
index e308a94..2000e0c 100644
--- a/docs/html/cli_8cpp_source.html
+++ b/docs/html/cli_8cpp_source.html
@@ -72,7 +72,7 @@ $(function() {
static void setAbortHandler(errorhandler_t func)
diff --git a/docs/html/commit__hash_8h_source.html b/docs/html/commit__hash_8h_source.html
index aa79403..9b4558c 100644
--- a/docs/html/commit__hash_8h_source.html
+++ b/docs/html/commit__hash_8h_source.html
@@ -70,10 +70,10 @@ $(function() {
commit_hash.h
- 3 const char COMMIT_HASH[] = "ec650a35ef92e5e8cde2b44cdbb1caf0ff0e1a26"; 4 #endif // COMMIT_HASH_H
+ 3 const char COMMIT_HASH[] = "bc3fbbbf955dea59a775638d02e76a9cc20f9707"; 4 #endif // COMMIT_HASH_H
diff --git a/docs/html/dir_1788f8309b1a812dcb800a185471cf6c.html b/docs/html/dir_1788f8309b1a812dcb800a185471cf6c.html
index 1adc2ec..207e486 100644
--- a/docs/html/dir_1788f8309b1a812dcb800a185471cf6c.html
+++ b/docs/html/dir_1788f8309b1a812dcb800a185471cf6c.html
@@ -73,7 +73,7 @@ $(function() {
diff --git a/docs/html/dir_587c94d866dbb2f408f78cf41f9b2f8d.html b/docs/html/dir_587c94d866dbb2f408f78cf41f9b2f8d.html
index 94b0209..9b969b5 100644
--- a/docs/html/dir_587c94d866dbb2f408f78cf41f9b2f8d.html
+++ b/docs/html/dir_587c94d866dbb2f408f78cf41f9b2f8d.html
@@ -73,7 +73,7 @@ $(function() {
diff --git a/docs/html/dot_8cpp_source.html b/docs/html/dot_8cpp_source.html
index d2c6a90..b1ad4ba 100644
--- a/docs/html/dot_8cpp_source.html
+++ b/docs/html/dot_8cpp_source.html
@@ -77,7 +77,7 @@ $(function() {
Dot(uint16_t x, uint16_t y, uint8_t curve)
diff --git a/docs/html/dot_8h_source.html b/docs/html/dot_8h_source.html
index 0bfbe76..17b2d02 100644
--- a/docs/html/dot_8h_source.html
+++ b/docs/html/dot_8h_source.html
@@ -78,7 +78,7 @@ $(function() {
Dot(uint16_t x, uint16_t y, uint8_t curve)
diff --git a/docs/html/driverexception_8h_source.html b/docs/html/driverexception_8h_source.html
index d412ccc..e8d2d69 100644
--- a/docs/html/driverexception_8h_source.html
+++ b/docs/html/driverexception_8h_source.html
@@ -74,7 +74,7 @@ $(function() {
diff --git a/docs/html/files.html b/docs/html/files.html
index 80b80b8..e6de9a1 100644
--- a/docs/html/files.html
+++ b/docs/html/files.html
@@ -101,7 +101,7 @@ $(function() {
diff --git a/docs/html/functions.html b/docs/html/functions.html
index d10b0dc..4056462 100644
--- a/docs/html/functions.html
+++ b/docs/html/functions.html
@@ -407,7 +407,7 @@ $(function() {
diff --git a/docs/html/functions_func.html b/docs/html/functions_func.html
index ac83d2b..c4ca67c 100644
--- a/docs/html/functions_func.html
+++ b/docs/html/functions_func.html
@@ -374,7 +374,7 @@ $(function() {
diff --git a/docs/html/functions_vars.html b/docs/html/functions_vars.html
index da3d253..38fc4ee 100644
--- a/docs/html/functions_vars.html
+++ b/docs/html/functions_vars.html
@@ -92,7 +92,7 @@ $(function() {
diff --git a/docs/html/hierarchy.html b/docs/html/hierarchy.html
index b9b259c..6eac2e8 100644
--- a/docs/html/hierarchy.html
+++ b/docs/html/hierarchy.html
@@ -86,7 +86,7 @@ $(function() {
diff --git a/docs/html/index.html b/docs/html/index.html
index 4a75f9a..8f24c01 100644
--- a/docs/html/index.html
+++ b/docs/html/index.html
@@ -105,7 +105,7 @@ Installation von Hand (falls Installationsscript mit Fehler abbricht)
(b) Passen Sie in der Datei Makefile (im aktuellen Verzeichnis) die Option "MCU = ..." an die MCU des vorliegenden Boards an.
Achtung: atmega1284 und atmega1284p sind nicht identisch!
(c) Fügen Sie den Nutzer famulus zu Gruppe dialout hinzu: sudo adduser famulus dialout
- (d) Schreiben Sie (mit root-Rechten) Folgendes in die Datei "*/etc/udev/rules.d/60-olimex.rules*":
+ (d) Schreiben Sie (mit root-Rechten) Folgendes in die Datei */etc/udev/rules.d/60-olimex.rules*:
ATTR{idVendor}=="03eb", ATTR{idProduct}=="2104", MODE="660", GROUP="dialout" Damit wird per udev-rule der Zugriff auf das ISP-Programmiergerät ohne root-Rechte erlaubt.
(e) Laden Sie die udev-Regeln neu ein: sudo udevadm control –reload-rules
(f) Stoße Verarbeitung der udev-Regeln an: sudo udevadm trigger
@@ -174,7 +174,7 @@ Dabei gehören Punkte mit dem gleichen Index für curve (uint8_
diff --git a/docs/html/plottyfile_8cpp_source.html b/docs/html/plottyfile_8cpp_source.html
index 9d951ed..2f9ab8b 100644
--- a/docs/html/plottyfile_8cpp_source.html
+++ b/docs/html/plottyfile_8cpp_source.html
@@ -101,7 +101,7 @@ $(function() {
std::string getUnitX(void) const
diff --git a/docs/html/plottyfile_8h_source.html b/docs/html/plottyfile_8h_source.html
index 979c6b5..7845d26 100644
--- a/docs/html/plottyfile_8h_source.html
+++ b/docs/html/plottyfile_8h_source.html
@@ -102,7 +102,7 @@ $(function() {
std::string getUnitX(void) const
diff --git a/docs/html/requests_8h_source.html b/docs/html/requests_8h_source.html
index 59bb52f..2cf8dbf 100644
--- a/docs/html/requests_8h_source.html
+++ b/docs/html/requests_8h_source.html
@@ -73,7 +73,7 @@ $(function() {
4 constexpr static uint8_t RQ_DISCARD = 0; 5 constexpr static uint8_t RQ_TEST = 1; 6 constexpr static uint8_t RQ_INFO = 2; 7 constexpr static uint8_t RQ_INT_TEST = 3; 8 constexpr static uint8_t RQ_SELF_TEST = 4; 9 constexpr static uint8_t RQ_DIGITAL_WRITE_0 = 5; 10 constexpr static uint8_t RQ_DIGITAL_WRITE_1 = 6; 11 constexpr static uint8_t RQ_DIGITAL_READ_0 = 7; 12 constexpr static uint8_t RQ_DIGITAL_READ_1 = 8; 13 constexpr static uint8_t RQ_READ_DIP_SWITCH = 9; 14 constexpr static uint8_t RQ_ANALOG_WRITE_0 = 10; 15 constexpr static uint8_t RQ_ANALOG_WRITE_1 = 11; 16 constexpr static uint8_t RQ_ANALOG_READ = 12; 17 constexpr static uint8_t RQ_ADC_DAC_STROKE = 13; 18 constexpr static uint8_t RQ_PWM_SET_FREQ = 14; 19 constexpr static uint8_t RQ_PWM_SET_VALUE = 15; 20 constexpr static uint8_t RQ_SET_MEM_8 = 16; 21 constexpr static uint8_t RQ_GET_MEM_8 = 17; 22 constexpr static uint8_t RQ_SET_MEM_16 = 18; 23 constexpr static uint8_t RQ_GET_MEM_16 = 19; 24 constexpr static uint8_t RQ_COUNTER_OFFSET = 20; 25 constexpr static uint8_t RQ_SERVO_ENABLE = 21; 26 constexpr static uint8_t RQ_SERVO_DISABLE = 22; 27 constexpr static uint8_t RQ_SERVO_SET_POS = 23; 29 uint8_t const rq_len[] = 44 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 ,
diff --git a/docs/html/timeoutexception_8h_source.html b/docs/html/timeoutexception_8h_source.html
index 78aee2d..8a36bbf 100644
--- a/docs/html/timeoutexception_8h_source.html
+++ b/docs/html/timeoutexception_8h_source.html
@@ -79,7 +79,7 @@ $(function() {
TimeoutException(const std::string &message)
diff --git a/docs/html/ui_8cpp_source.html b/docs/html/ui_8cpp_source.html
index 79db02f..5e949df 100644
--- a/docs/html/ui_8cpp_source.html
+++ b/docs/html/ui_8cpp_source.html
@@ -88,7 +88,7 @@ $(function() {
void digitalWrite1(uint8_t)
diff --git a/docs/html/ui_8h_source.html b/docs/html/ui_8h_source.html
index bb37901..f6896a5 100644
--- a/docs/html/ui_8h_source.html
+++ b/docs/html/ui_8h_source.html
@@ -73,7 +73,7 @@ $(function() {
5 #include "view_selection.h" 7 #include "view_monitor.h" 8 #include "view_promt.h" 17 void show_monitor( int); 18 void show_invalid_port_input( int); 19 void show_invalid_dac_input( int); 20 void write_digital_output0( int); 21 void write_digital_output1( int); 22 void write_analog_output0( int); 23 void write_analog_output1( int); 24 void show_digital_output0( int); 25 void show_digital_output1( int); 26 void show_analog_output0( int); 27 void show_analog_output1( int); 30 void show_selftest_info( int); 31 void start_selftest( int); 32 void stop_selftest( int); 35 extern std::vector<View*> win_stack; 36 extern std::thread t_refresh;
diff --git a/docs/html/usart_8cpp_source.html b/docs/html/usart_8cpp_source.html
index 98524d0..e540cf4 100644
--- a/docs/html/usart_8cpp_source.html
+++ b/docs/html/usart_8cpp_source.html
@@ -88,7 +88,7 @@ $(function() {
diff --git a/docs/html/usart_8h_source.html b/docs/html/usart_8h_source.html
index c992c2f..109e9b8 100644
--- a/docs/html/usart_8h_source.html
+++ b/docs/html/usart_8h_source.html
@@ -88,7 +88,7 @@ $(function() {
void flushOutputBuffer(void)
diff --git a/docs/html/usartexception_8h_source.html b/docs/html/usartexception_8h_source.html
index 419b5db..2b66681 100644
--- a/docs/html/usartexception_8h_source.html
+++ b/docs/html/usartexception_8h_source.html
@@ -79,7 +79,7 @@ $(function() {
virtual ~USARTException()=default
diff --git a/docs/html/view_8cpp_source.html b/docs/html/view_8cpp_source.html
index 46debff..cef712c 100644
--- a/docs/html/view_8cpp_source.html
+++ b/docs/html/view_8cpp_source.html
@@ -74,7 +74,7 @@ $(function() {
static void abort(std::string msg)
diff --git a/docs/html/view_8h_source.html b/docs/html/view_8h_source.html
index e856493..cbb1556 100644
--- a/docs/html/view_8h_source.html
+++ b/docs/html/view_8h_source.html
@@ -74,7 +74,7 @@ $(function() {
diff --git a/docs/html/view__info_8cpp_source.html b/docs/html/view__info_8cpp_source.html
index 8ec9a18..88da72a 100644
--- a/docs/html/view__info_8cpp_source.html
+++ b/docs/html/view__info_8cpp_source.html
@@ -73,7 +73,7 @@ $(function() {
5 calls.push_back( nullptr); 8 void ViewInfo::setText(std::string text) 13 void ViewInfo::setLabelClose(std::string label) 15 this->label_close = label; 18 void ViewInfo::setCall(call_t call) 26 for(std::string line : str_split(text, "\n")) 27 mvwprintw(win, text_offset_y + li++, text_offset_x, "%s", line.c_str()); 29 close_offset_x = (width - label_close.length()) / 2; 30 close_offset_y = height - 2; 32 wattron(win, A_REVERSE); 33 mvwprintw(win, close_offset_y, close_offset_x, "%s", label_close.c_str()); 34 wattroff(win, A_REVERSE); 37 call_t ViewInfo::keypress( int& key) 46 if(getmouse(&event) == OK && event.bstate & (BUTTON1_CLICKED | BUTTON1_DOUBLE_CLICKED)) 48 size_t column = start_x + close_offset_x; 49 size_t row = start_y + close_offset_y; 50 size_t mouse_x = event.x, mouse_y = event.y; 51 if(mouse_y == row && mouse_x >= column && mouse_x < column + label_close.length())
diff --git a/docs/html/view__info_8h_source.html b/docs/html/view__info_8h_source.html
index 82ebea5..4a4ff0e 100644
--- a/docs/html/view__info_8h_source.html
+++ b/docs/html/view__info_8h_source.html
@@ -75,7 +75,7 @@ $(function() {
diff --git a/docs/html/view__monitor_8cpp_source.html b/docs/html/view__monitor_8cpp_source.html
index 3690de1..3b5f4f5 100644
--- a/docs/html/view__monitor_8cpp_source.html
+++ b/docs/html/view__monitor_8cpp_source.html
@@ -84,7 +84,7 @@ $(function() {
diff --git a/docs/html/view__monitor_8h_source.html b/docs/html/view__monitor_8h_source.html
index 29fbca0..ae143d1 100644
--- a/docs/html/view__monitor_8h_source.html
+++ b/docs/html/view__monitor_8h_source.html
@@ -75,7 +75,7 @@ $(function() {
diff --git a/docs/html/view__promt_8cpp_source.html b/docs/html/view__promt_8cpp_source.html
index 2e8aac9..8c62a10 100644
--- a/docs/html/view__promt_8cpp_source.html
+++ b/docs/html/view__promt_8cpp_source.html
@@ -73,7 +73,7 @@ $(function() {
1 #include "view_promt.h" 7 int li = text_offset_y; 9 for(std::string line : str_split(message + input, "\n")) 11 mvwprintw(win, ++li, text_offset_x, "%s", line.c_str()); 12 ci = line.length() + text_offset_x; 15 button_offset_x = (width - label_cancel.length() - sep.length() - label_confirm.length()) / 2; 16 button_offset_y = height - text_offset_y; 20 wattron(win, A_REVERSE); 21 mvwprintw(win, button_offset_y, button_offset_x, "%s", label_cancel.c_str()); 22 wattroff(win, A_REVERSE); 23 mvwprintw(win, button_offset_y, button_offset_x + label_cancel.length(), "%s", sep.c_str()); 24 mvwprintw(win, button_offset_y, button_offset_x + label_cancel.length() + sep.length(), "%s", label_confirm.c_str()); 28 mvwprintw(win, button_offset_y, button_offset_x, "%s", label_cancel.c_str()); 29 mvwprintw(win, button_offset_y, button_offset_x + label_cancel.length(), "%s", sep.c_str()); 30 wattron(win, A_REVERSE); 31 mvwprintw(win, button_offset_y, button_offset_x + label_cancel.length() + sep.length(), "%s", label_confirm.c_str()); 32 wattroff(win, A_REVERSE); 37 void ViewPromt::setMessage(std::string message) 39 this->message = message; 42 void ViewPromt::setConfirm(std::string name, std::function< void( int)> call) 48 void ViewPromt::setCancel(std::string name, bool cancelable) 51 this->cancelable = cancelable; 54 std::string ViewPromt::getInput() 59 std::function<void( int)> ViewPromt::keypress( int& key) 61 std::function<void( int)> ret = nullptr; 71 selection = (selection + 1 ) % 2; 78 if(getmouse(&event) == OK && event.bstate & (BUTTON1_CLICKED | BUTTON1_DOUBLE_CLICKED)) 80 size_t column_start = start_x + button_offset_x; 81 size_t row_start = start_y + button_offset_y; 82 size_t mouse_x = event.x, mouse_y = event.y; 83 if(mouse_y == row_start) 85 if(cancelable && mouse_x >= column_start && mouse_x < column_start + label_cancel.length()) 87 if(selection == 0 || event.bstate & BUTTON1_DOUBLE_CLICKED) 91 if(mouse_x >= column_start + label_cancel.length() + sep.length() && mouse_x < column_start + label_cancel.length() + sep.length() + label_confirm.length()) 93 if(selection == 1 || event.bstate & BUTTON1_DOUBLE_CLICKED) 115 if(key >= ' ' && key <= '~')
diff --git a/docs/html/view__promt_8h_source.html b/docs/html/view__promt_8h_source.html
index 9da56be..6299e2d 100644
--- a/docs/html/view__promt_8h_source.html
+++ b/docs/html/view__promt_8h_source.html
@@ -75,7 +75,7 @@ $(function() {
diff --git a/docs/html/view__selection_8cpp_source.html b/docs/html/view__selection_8cpp_source.html
index 48d67c6..56643f6 100644
--- a/docs/html/view__selection_8cpp_source.html
+++ b/docs/html/view__selection_8cpp_source.html
@@ -73,7 +73,7 @@ $(function() {
1 #include "view_selection.h" 3 void ViewSelection::draw() 6 for( size_t i = 0; i < choices.size(); i++) 9 wattron(win, A_REVERSE); 10 mvwprintw(win, i + choice_offset_y, choice_offset_x, "%s", choices[i].c_str()); 12 wattroff(win, A_REVERSE); 16 void ViewSelection::addChoice(std::string name, call_t call) 18 choices.push_back(name); 19 calls.push_back(call); 22 call_t ViewSelection::keypress( int& key) 29 selection = (selection - 1 + choices.size()) % choices.size(); 30 while(!choices[selection].length() && choices.size()); 36 selection = (selection + 1) % choices.size(); 37 while(!choices[selection].length() && choices.size()); 45 if(getmouse(&event) == OK && event.bstate & (BUTTON1_CLICKED | BUTTON1_DOUBLE_CLICKED)) 47 size_t column_start = start_x + choice_offset_x; 48 size_t row_start = start_y + choice_offset_y; 49 size_t mouse_x = event.x, mouse_y = event.y; 50 for( size_t i = 0; i < choices.size(); i++) 51 if(choices[i].length() && mouse_y == row_start + i && mouse_x >= column_start && mouse_x < column_start + choices[i].length()) 53 if(selection == i || event.bstate & BUTTON1_DOUBLE_CLICKED) 66 if(selection == choices.size() - 1) 69 ret = calls[selection];
diff --git a/docs/html/view__selection_8h_source.html b/docs/html/view__selection_8h_source.html
index 3697811..764ff82 100644
--- a/docs/html/view__selection_8h_source.html
+++ b/docs/html/view__selection_8h_source.html
@@ -75,7 +75,7 @@ $(function() {
|