+ mRow.tag = (int64)item;
+ }
+ }
+}
+
+class AddressBar : Window
+{
+ background = activeBorder;
+ tabCycle = true;
+ Button open
+ {
+ this, bevelOver = true, inactive = true, anchor = Anchor { left = 0, top = 0, bottom = 0 }, size = Size { 24 }, bitmap = { ":actions/docOpen.png" };
+
+ bool NotifyClicked(Button button, int x, int y, Modifiers mods)
+ {
+ MainForm mainForm = (MainForm)parent;
+ FileDialog fileDialog = mainForm.fileDialog;
+ if(fileDialog.Modal() == ok)
+ mainForm.OpenModule(fileDialog.filePath);
+ return true;
+ }
+ };
+ Button back
+ {
+ this, bevelOver = true, inactive = true, anchor = Anchor { left = 28, top = 0, bottom = 0 }, size = Size { 24 }, hotKey = altLeft, bitmap = { "<:ecere>actions/goPrevious.png" };
+ disabled = true;
+
+ bool NotifyClicked(Button button, int x, int y, Modifiers mods)
+ {
+ ((MainForm)parent).Back();
+ return true;
+ }
+ };
+ Button forward
+ {
+ this, bevelOver = true, inactive = true, anchor = Anchor { left = 52, top = 0, bottom = 0 }, size = Size { 24 }, hotKey = altRight, bitmap = { "<:ecere>actions/goNext.png" };
+ disabled = true;
+
+ bool NotifyClicked(Button button, int x, int y, Modifiers mods)
+ {
+ ((MainForm)parent).Forward();
+ return true;
+ }
+ };
+ Button home
+ {
+ this, bevelOver = true, inactive = true, anchor = Anchor { left = 80, top = 0, bottom = 0 }, size = Size { 24 }, hotKey = ctrlH, bitmap = { "<:ecere>actions/goHome.png" };
+
+ bool NotifyClicked(Button button, int x, int y, Modifiers mods)
+ {
+ ((MainForm)parent).Home();
+ return true;
+ }
+ };
+ /* TODO: Search (#143/#441)
+ When there's something in the search box, list matching sections, the exact match first,instead of the Hierarchy in the ListBox.
+ Update this in the NotifyUpdate. Enter goes to the exact match.
+
+ Label { this, anchor = Anchor { left = (124+12) }, labeledWindow = search };
+
+ EditBox search
+ {
+ this, text = "Search:", anchor = Anchor { left = (16+48+124), right = 60, top = 0, bottom = 0 }, hotKey = altD;
+
+ bool NotifyKeyDown(EditBox editBox, Key key, unichar ch)
+ {
+ if(!disabled && (SmartKey)key == enter)
+ ((MainForm)parent).Go(editBox.contents);
+ return true;