-
Notifications
You must be signed in to change notification settings - Fork 0
/
gohObjects.go
154 lines (147 loc) · 7.91 KB
/
gohObjects.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
// gohObjects.go
// Source file auto-generated on Sun, 14 Jul 2019 16:40:30 using Gotk3ObjHandler v1.3 ©2019 H.F.M
/*
This program comes with absolutely no warranty. See the The MIT License (MIT) for details:
https://opensource.org/licenses/mit-license.php
*/
package main
import (
"github.com/gotk3/gotk3/gtk"
)
// Control over all used objects from glade.
var mainObjects *MainControlsObj
/******************************/
/* Main structure Declaration */
/******************************/
type MainControlsObj struct {
btnFind *gtk.Button
btnReplaceInClipboard *gtk.Button
btnShowClipboard *gtk.Button
chkCaseSensitive *gtk.CheckButton
chkCharacterClass *gtk.CheckButton
chkCharacterClassStrictMode *gtk.CheckButton
chkFollowSymlinkDir *gtk.CheckButton
chkRegex *gtk.CheckButton
chkSubDir *gtk.CheckButton
chkUseEscapeChar *gtk.CheckButton
chkWildcard *gtk.CheckButton
chkWoleWord *gtk.CheckButton
clipboard *gtk.Clipboard /*MANUAL*/
entryExtMask *gtk.Entry
entryReplace1 *gtk.Entry
entrySearch1 *gtk.Entry
fileChooserBtn *gtk.FileChooserButton
findWin *gtk.Window
findWinCancelBtn *gtk.Button
findWinChkBackUp *gtk.CheckButton
findWinGrid *gtk.Grid
findWinGridBtn *gtk.Grid
findWinLabel *gtk.Label
findWinLabel1 *gtk.Label
findWinLabel2 *gtk.Label
findWinReplaceBtn *gtk.Button
findWinScrollWin *gtk.ScrolledWindow
findWinTreeView *gtk.TreeView
findWinTreeviewSelection *gtk.TreeSelection
grid1 *gtk.Grid
gridAction *gtk.Grid
gridOptionsRxWc *gtk.Grid
gridOptSearch *gtk.Grid
imgTop *gtk.Image
ImgTopEventbox *gtk.EventBox
lblExtMask *gtk.Label
lblReplace *gtk.Label
lblSearch *gtk.Label
listStore *gtk.ListStore /*MANUAL*/
mainBox *gtk.Box
mainGrid *gtk.Grid
mainUiBuilder *gtk.Builder
mainWin *gtk.Window
posixGrid *gtk.Grid
replaceGrid *gtk.Grid
scrolledWindowTreeView *gtk.ScrolledWindow
statusbar *gtk.Statusbar
textWin *gtk.Window
textWinBox *gtk.Box
textWinBtnDone *gtk.Button
textWinChkShowModifications *gtk.CheckButton
textWinChkWrap *gtk.CheckButton
textWinGridBottom *gtk.Grid
textWinGridTop *gtk.Grid
textWinScrolledwindow *gtk.ScrolledWindow
textWinTextview *gtk.TextView
treeStore *gtk.TreeStore /*MANUAL*/
treeviewFiles *gtk.TreeView
treeviewSelection *gtk.TreeSelection
}
/******************************/
/* GtkObjects Initialisation */
/******************************/
// gladeObjParser: Initialise Gtk3 Objects into mainObjects structure.
func gladeObjParser() {
mainObjects.btnFind = loadObject("btnFind").(*gtk.Button)
mainObjects.btnReplaceInClipboard = loadObject("btnReplaceInClipboard").(*gtk.Button)
mainObjects.btnShowClipboard = loadObject("btnShowClipboard").(*gtk.Button)
mainObjects.chkCaseSensitive = loadObject("chkCaseSensitive").(*gtk.CheckButton)
mainObjects.chkCharacterClass = loadObject("chkCharacterClass").(*gtk.CheckButton)
mainObjects.chkCharacterClassStrictMode = loadObject("chkCharacterClassStrictMode").(*gtk.CheckButton)
mainObjects.chkFollowSymlinkDir = loadObject("chkFollowSymlinkDir").(*gtk.CheckButton)
mainObjects.chkRegex = loadObject("chkRegex").(*gtk.CheckButton)
mainObjects.chkSubDir = loadObject("chkSubDir").(*gtk.CheckButton)
mainObjects.chkUseEscapeChar = loadObject("chkUseEscapeChar").(*gtk.CheckButton)
mainObjects.chkWildcard = loadObject("chkWildcard").(*gtk.CheckButton)
mainObjects.chkWoleWord = loadObject("chkWoleWord").(*gtk.CheckButton)
mainObjects.entryExtMask = loadObject("entryExtMask").(*gtk.Entry)
mainObjects.entryReplace1 = loadObject("entryReplace1").(*gtk.Entry)
mainObjects.entrySearch1 = loadObject("entrySearch1").(*gtk.Entry)
mainObjects.fileChooserBtn = loadObject("fileChooserBtn").(*gtk.FileChooserButton)
mainObjects.findWin = loadObject("findWin").(*gtk.Window)
mainObjects.findWin.SetTitle(mainOptions.TxtSearchResult) /*MANUAL*/
mainObjects.findWin.SetModal(true) /*MANUAL*/
mainObjects.findWin.SetKeepAbove(mainOptions.ChildWindowsKeepAbove) /*MANUAL*/
mainObjects.findWin.SetSizeRequest(640, 480) /*MANUAL*/
mainObjects.findWin.Connect("delete_event", genericHideWindow) /*MANUAL*/
mainObjects.findWinCancelBtn = loadObject("findWinCancelBtn").(*gtk.Button)
mainObjects.findWinChkBackUp = loadObject("findWinChkBackUp").(*gtk.CheckButton)
mainObjects.findWinGrid = loadObject("findWinGrid").(*gtk.Grid)
mainObjects.findWinGridBtn = loadObject("findWinGridBtn").(*gtk.Grid)
mainObjects.findWinLabel = loadObject("findWinLabel").(*gtk.Label)
mainObjects.findWinLabel1 = loadObject("findWinLabel1").(*gtk.Label)
mainObjects.findWinLabel2 = loadObject("findWinLabel2").(*gtk.Label)
mainObjects.findWinReplaceBtn = loadObject("findWinReplaceBtn").(*gtk.Button)
mainObjects.findWinScrollWin = loadObject("findWinScrollWin").(*gtk.ScrolledWindow)
mainObjects.findWinTreeView = loadObject("findWinTreeView").(*gtk.TreeView)
mainObjects.findWinTreeviewSelection = loadObject("findWinTreeviewSelection").(*gtk.TreeSelection)
mainObjects.grid1 = loadObject("grid1").(*gtk.Grid)
mainObjects.gridAction = loadObject("gridAction").(*gtk.Grid)
mainObjects.gridOptionsRxWc = loadObject("gridOptionsRxWc").(*gtk.Grid)
mainObjects.gridOptSearch = loadObject("gridOptSearch").(*gtk.Grid)
mainObjects.imgTop = loadObject("imgTop").(*gtk.Image)
mainObjects.ImgTopEventbox = loadObject("ImgTopEventbox").(*gtk.EventBox)
mainObjects.lblExtMask = loadObject("lblExtMask").(*gtk.Label)
mainObjects.lblReplace = loadObject("lblReplace").(*gtk.Label)
mainObjects.lblSearch = loadObject("lblSearch").(*gtk.Label)
mainObjects.mainBox = loadObject("mainBox").(*gtk.Box)
mainObjects.mainGrid = loadObject("mainGrid").(*gtk.Grid)
mainObjects.mainWin = loadObject("mainWin").(*gtk.Window)
mainObjects.posixGrid = loadObject("posixGrid").(*gtk.Grid)
mainObjects.replaceGrid = loadObject("replaceGrid").(*gtk.Grid)
mainObjects.scrolledWindowTreeView = loadObject("scrolledWindowTreeView").(*gtk.ScrolledWindow)
mainObjects.statusbar = loadObject("statusbar").(*gtk.Statusbar)
mainObjects.textWin = loadObject("textWin").(*gtk.Window)
mainObjects.textWin.SetTitle(mainOptions.TxtTextWin) /*MANUAL*/
mainObjects.textWin.SetModal(false) /*MANUAL*/
mainObjects.textWin.SetKeepAbove(mainOptions.ChildWindowsKeepAbove) /*MANUAL*/
mainObjects.textWin.SetSizeRequest(640, 480) /*MANUAL*/
mainObjects.textWin.Connect("delete_event", genericHideWindow) /*MANUAL*/
mainObjects.textWinBox = loadObject("textWinBox").(*gtk.Box)
mainObjects.textWinBtnDone = loadObject("textWinBtnDone").(*gtk.Button)
mainObjects.textWinChkShowModifications = loadObject("textWinChkShowModifications").(*gtk.CheckButton)
mainObjects.textWinChkWrap = loadObject("textWinChkWrap").(*gtk.CheckButton)
mainObjects.textWinGridBottom = loadObject("textWinGridBottom").(*gtk.Grid)
mainObjects.textWinGridTop = loadObject("textWinGridTop").(*gtk.Grid)
mainObjects.textWinScrolledwindow = loadObject("textWinScrolledwindow").(*gtk.ScrolledWindow)
mainObjects.textWinTextview = loadObject("textWinTextview").(*gtk.TextView)
mainObjects.treeviewFiles = loadObject("treeviewFiles").(*gtk.TreeView)
mainObjects.treeviewSelection = loadObject("treeviewSelection").(*gtk.TreeSelection)
}