public final QAction numberListAction;\r
public final QPushButton spellCheckButton;\r
public final QAction spellCheckAction;\r
+ public final QPushButton todoButton;\r
+ public final QAction todoAction;\r
\r
public final QShortcut focusTitleShortcut;\r
public final QShortcut focusTagShortcut;\r
bulletListButton = newEditorButton("bulletList", tr("Bullet List"));\r
numberListButton = newEditorButton("numberList", tr("Number List"));\r
spellCheckButton = newEditorButton("spellCheck", tr("Spell Check"));\r
+ todoButton = newEditorButton("todo", tr("To-do"));\r
\r
\r
buttonLayout = new EditorButtonBar();\r
spellCheckAction = buttonLayout.addWidget(spellCheckButton);\r
buttonLayout.toggleNumberListVisible.triggered.connect(this, "spellCheckClicked()");\r
buttonLayout.toggleSpellCheck.triggered.connect(this, "toggleSpellCheckVisible(Boolean)");\r
+ \r
+ todoAction = buttonLayout.addWidget(todoButton);\r
+ buttonLayout.toggleNumberListVisible.triggered.connect(this, "todoClicked()");\r
+ buttonLayout.toggleTodo.triggered.connect(this, "toggleTodoVisible(Boolean)");\r
\r
\r
// buttonLayout.addWidget(new QLabel(), 1);\r
indentAction.setVisible(toggle);\r
Global.saveEditorButtonsVisible("indent", toggle);\r
}\r
+ private void toggleTodoVisible(Boolean toggle) {\r
+ todoAction.setVisible(toggle);\r
+ Global.saveEditorButtonsVisible("todo", toggle);\r
+ }\r
private void toggleOutdentVisible(Boolean toggle) {\r
outdentAction.setVisible(toggle);\r
Global.saveEditorButtonsVisible("outdent", toggle);\r
QAction toggleFontColorVisible;\r
QAction toggleFontHilight;\r
QAction toggleSpellCheck;\r
+ QAction toggleTodo;\r
\r
\r
\r
toggleFontColorVisible = addAction("fontColor", tr("Font Color"));\r
toggleFontHilight = addAction("fontHilight", tr("Font Hilight"));\r
toggleSpellCheck = addAction("spellCheck", tr("Spell Check"));\r
+ toggleTodo = addAction("todo", tr("To-Do"));\r
}\r
\r
\r