- InputWidget(QWidget *parent = 0);
- virtual ~InputWidget();
-
- const Network *currentNetwork() const;
-
- inline MultiLineEdit *inputLine() const { return ui.inputEdit; }
+ InputWidget(QWidget* parent = nullptr);
+
+ const Network* currentNetwork() const;
+
+ inline MultiLineEdit* inputLine() const { return ui.inputEdit; }
+
+public slots:
+ /**
+ * Apply the active color to the selected or typed text
+ *
+ * Active color is chosen using the UI menu.
+ */
+ void applyFormatActiveColor();
+
+ /**
+ * Apply the active fill color to the selected or typed text background
+ *
+ * Fill color is chosen using the UI menu.
+ */
+ void applyFormatActiveColorFill();
+
+ /**
+ * Toggle the boldness of the selected or typed text
+ *
+ * Bold becomes normal, and normal becomes bold.
+ */
+ void toggleFormatBold();
+
+ /**
+ * Toggle the italicness of the selected or typed text
+ *
+ * Italicized becomes normal, and normal becomes italicized.
+ */
+ void toggleFormatItalic();
+
+ /**
+ * Toggle the underlining of the selected or typed text
+ *
+ * Underlined becomes normal, and normal becomes underlined.
+ */
+ void toggleFormatUnderline();
+
+ /**
+ * Toggle the striking of the selected or typed text
+ *
+ * striking becomes normal, and normal becomes underlined.
+ */
+ void toggleFormatStrikethrough();
+
+ /**
+ * Clear the formatting of the selected or typed text
+ *
+ * Clears the font weight (bold, italic, underline) and foreground/background coloring.
+ */
+ void clearFormat();