From bc389b730e4d28745d8d595f9ac6f1ba0d06b689 Mon Sep 17 00:00:00 2001 From: Markus Gans Date: Fri, 28 Dec 2018 09:42:28 +0100 Subject: [PATCH] Add a "signals and callbacks" chapter into the first steps document --- doc/first-steps.md | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/doc/first-steps.md b/doc/first-steps.md index 9d0784d1..4d198b0c 100644 --- a/doc/first-steps.md +++ b/doc/first-steps.md @@ -358,6 +358,48 @@ remove a connection to a signal handler or a widget. Alternatively, you can use `delCallbacks()` to remove all existing callbacks from an object. +### The FINAL CUT widgets emit the following default signals ### + +
+
FButton
+
"clicked"
+ +
FCheckMenuItem
+
"clicked"
"toggled"
+ +
FLineEdit
+
"activate"
"changed"
+ +
FListBox
+
"clicked"
"row-changed"
"row-selected"
+ +
FListView
+
"clicked"
"row-changed"
+ +
FMenu
+
"activate"
+ +
FMenuItem
+
"activate"
"clicked"
"deactivate"
+ +
FRadioMenuItem
+
"clicked"
"toggled"
+ +
FScrollbar
+
"change-value"
+ +
FStatusBar
+
"activate"
+ +
FTextView
+
"changed"
+ +
FToggleButton
+
"clicked"
"toggled"
+
+ +  + ### Example of a callback function: ### **File:** *callback-function.cpp* @@ -466,6 +508,7 @@ g++ -O2 -std=c++11 -lfinal callback-method.cpp -o callback-method ```   + ### Send custom signals ### You can use the `emitCallback()` method to generate a user-defined signal. @@ -600,3 +643,4 @@ the above program with gcc: ```cpp g++ -O2 -std=c++11 -lfinal emit-signal.cpp -o emit-signal ``` +The FINAL CUT widgets emit the following default signals: \ No newline at end of file