MCPcopy Create free account
hub / github.com/baumgarr/nixnote2 / EditorButtonBar

Method EditorButtonBar

gui/browserWidgets/editorbuttonbar.cpp:33–287  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31extern Global global;
32
33EditorButtonBar::EditorButtonBar(QWidget *parent) :
34 QToolBar(parent)
35{
36 contextMenu = new QMenu();
37 undoVisible = contextMenu->addAction(tr("Undo"));
38 redoVisible = contextMenu->addAction(tr("Redo"));
39 cutVisible = contextMenu->addAction(tr("Cut"));
40 copyVisible = contextMenu->addAction(tr("Copy"));
41 pasteVisible = contextMenu->addAction(tr("Paste"));
42 removeFormatVisible = contextMenu->addAction(tr("Remove Formatting"));
43 boldVisible = contextMenu->addAction(tr("Bold"));
44 italicVisible = contextMenu->addAction(tr("Italics"));
45 superscriptVisible = contextMenu->addAction(tr("Superscript"));
46 subscriptVisible = contextMenu->addAction(tr("Subscript"));
47 underlineVisible = contextMenu->addAction(tr("Underline"));
48 strikethroughVisible = contextMenu->addAction(tr("Strikethrough"));
49 leftJustifyVisible = contextMenu->addAction(tr("Align Left"));
50 centerJustifyVisible = contextMenu->addAction(tr("Align Center"));
51 fullJustifyVisible = contextMenu->addAction(tr("Align Full"));
52 rightJustifyVisible = contextMenu->addAction(tr("Align Right"));
53 hlineVisible = contextMenu->addAction(tr("Horizontal Line"));
54 insertDatetimeVisible = contextMenu->addAction(tr("Insert Date && Time"));
55 shiftRightVisible = contextMenu->addAction(tr("Shift Right"));
56 shiftLeftVisible = contextMenu->addAction(tr("Shift Left"));
57 bulletListVisible = contextMenu->addAction(tr("Bullet List"));
58 numberListVisible = contextMenu->addAction(tr("Number List"));
59 fontVisible = contextMenu->addAction(tr("Font"));
60 fontSizeVisible = contextMenu->addAction(tr("Font Size"));
61 fontColorVisible = contextMenu->addAction(tr("Font Color"));
62 highlightVisible = contextMenu->addAction(tr("Highlight"));
63 todoVisible = contextMenu->addAction(tr("To-do"));
64 spellCheckButtonVisible = contextMenu->addAction(tr("Spell Check"));
65 insertTableButtonVisible = contextMenu->addAction(tr("Insert Table"));
66 htmlEntitiesButtonVisible = contextMenu->addAction(tr("HTML Entities"));
67 formatCodeButtonVisible = contextMenu->addAction(tr("Format Code Block"));
68
69 undoVisible->setCheckable(true);
70 redoVisible->setCheckable(true);
71 cutVisible->setCheckable(true);
72 copyVisible->setCheckable(true);
73 pasteVisible->setCheckable(true);
74 removeFormatVisible->setCheckable(true);
75 boldVisible->setCheckable(true);
76 italicVisible->setCheckable(true);
77 underlineVisible->setCheckable(true);
78 strikethroughVisible->setCheckable(true);
79 superscriptVisible->setCheckable(true);
80 subscriptVisible->setCheckable(true);
81 leftJustifyVisible->setCheckable(true);
82 centerJustifyVisible->setCheckable(true);
83 fullJustifyVisible->setCheckable(true);
84 rightJustifyVisible->setCheckable(true);
85 hlineVisible->setCheckable(true);
86 shiftRightVisible->setCheckable(true);
87 shiftLeftVisible->setCheckable(true);
88 bulletListVisible->setCheckable(true);
89 numberListVisible->setCheckable(true);
90 todoVisible->setCheckable(true);

Callers

nothing calls this directly

Calls 7

setupShortcutMethod · 0.95
getIconResourceMethod · 0.80
addWidgetMethod · 0.80
setKeyMethod · 0.80
getMenuMethod · 0.80
setDefaultMethod · 0.80
setTextMethod · 0.45

Tested by

no test coverage detected