Documentation ¶
Overview ¶
Package ui contains UI-related functions
Package ui contains UI-related functions ¶
Package ui contains UI-related functions ¶
Package ui contains UI-related functions ¶
Package ui contains UI-related functions ¶
Package ui contains UI-related functions ¶
Package ui contains UI-related functions ¶
Package ui contains UI-related functions ¶
Package ui contains UI-related functions ¶
Package ui contains UI-related functions ¶
Package ui contains UI-related functions ¶
Package ui contains UI-related functions ¶
Package ui contains UI-related functions ¶
Package ui contains UI-related functions ¶
Package ui contains UI-related functions ¶
Package ui contains UI-related functions
Index ¶
- Constants
- func AcceptInvite(network, channel string)
- func Autocomplete()
- func CancelChannelAdding(network string)
- func CancelNewNetwork()
- func CancelNewScript()
- func ChannelFilter(channel string) string
- func ChannelHasNewMessages(network, channel string)
- func ClearActiveHistory()
- func ClearHistory(network, channel string)
- func CloseChannel(network, channel string)
- func CloseNetworkEditor()
- func CloseRawIO()
- func CloseScriptEditor()
- func CloseSettings()
- func ContextChannel(event *js.Object)
- func ContextChannelSwitcher(event *js.Object, network, channel string)
- func ContextMessage(event *js.Object, id int64)
- func ContextMessageClick(command string, id int64)
- func ContextNetworkSwitcher(event *js.Object, network string)
- func ContextNetworkSwitcherClick(command, network string)
- func ContextUserlistEntry(event *js.Object, network, user string)
- func ContextUserlistEntryClick(command, network, user string)
- func CreateRawIO(network string)
- func DeleteNetwork(net string)
- func DeleteScript()
- func FinishChannelAdding(network string)
- func FinishInvite()
- func FinishNewNetwork()
- func FinishNewScript()
- func FinishTitleEdit()
- func GetActiveChannel() string
- func GetActiveChannelObj() jquery.JQuery
- func GetActiveNetwork() string
- func GetActiveNetworkObj() jquery.JQuery
- func GetChannel(network, channel string) jquery.JQuery
- func GetHighlight(network, message string) *data.HighlightMatch
- func GetHistory(network, channel string, n int)
- func GetNetwork(network string) jquery.JQuery
- func HideContextMenu()
- func HideModal()
- func IsUserlistHidden() bool
- func NetworkFilter(network string) string
- func NotifyMessage(network, channel, sender, message string, highlight bool)
- func OnChangeFont()
- func OnChangeHighlights()
- func OnChangeNick()
- func OnChangeNotifications()
- func OpenChannel(network, channel string, byUser bool)
- func OpenChannelAdder(network string)
- func OpenFullImageModal(src string, id int64)
- func OpenMessageView()
- func OpenNetwork(network string)
- func OpenNetworkEditor()
- func OpenNetworksView()
- func OpenOper(network string)
- func OpenPM(network, user string)
- func OpenRawIO(network string)
- func OpenScriptEditor(net string)
- func OpenSettings()
- func OpenUserlistView()
- func OpenWhoisModal(data messages.WhoisData)
- func OperSend()
- func PartActiveChannel()
- func PartChannel(network, channel string)
- func Receive(msg messages.Message, isNew bool)
- func RenameScript()
- func SaveNetwork(net string)
- func SaveScript()
- func ScrollDown()
- func Send()
- func SendNotification(net, ch, user, message string)
- func SendRaw(net string)
- func SetNetworkConnected(net string, connected bool)
- func ShowContextMenu(event *js.Object)
- func ShowModal()
- func StartInvite()
- func StartNewNetwork()
- func StartNewScript()
- func StartTitleEdit()
- func StopInvite()
- func StopTitleEdit()
- func SwitchClearScript()
- func SwitchNetwork(net string)
- func SwitchScript(name string)
- func SwitchTo(network, channel string)
- func SwitchToClear()
- func ToggleNetworksView()
- func ToggleUserlist(manual bool)
- func ToggleUserlistView()
- func TryJoinMessage(msg messages.Message) bool
- func UpdateTitle()
- func UpdateUserlist()
- func UpdateValues()
- func WasUserlistHiddenManually() bool
- type MessageTemplateData
- type PreviewTemplateData
Constants ¶
const Global = "global"
Global is the global network name
Variables ¶
This section is empty.
Functions ¶
func CancelChannelAdding ¶
func CancelChannelAdding(network string)
CancelChannelAdding closes the channel adder
func ChannelFilter ¶
ChannelFilter filters the given channel name into a string usable in jQuery
func ChannelHasNewMessages ¶
func ChannelHasNewMessages(network, channel string)
ChannelHasNewMessages adds the new-messages class to the channel switcher
func ClearActiveHistory ¶
func ClearActiveHistory()
ClearActiveHistory clears the history of the active channel
func ClearHistory ¶
func ClearHistory(network, channel string)
ClearHistory clears the history of the given channel on the given network
func ContextChannel ¶
ContextChannel shows the context menu for a channel message container
func ContextChannelSwitcher ¶
ContextChannelSwitcher shows the context menu for a channel switcher
func ContextMessage ¶
ContextMessage shows the context menu for a message
func ContextMessageClick ¶
ContextMessageClick ...
func ContextNetworkSwitcher ¶
ContextNetworkSwitcher shows the context menu for a network switcher
func ContextNetworkSwitcherClick ¶
func ContextNetworkSwitcherClick(command, network string)
ContextNetworkSwitcherClick ...
func ContextUserlistEntry ¶
ContextUserlistEntry shows the context menu for an userlist entry
func ContextUserlistEntryClick ¶
func ContextUserlistEntryClick(command, network, user string)
ContextUserlistEntryClick ...
func CreateRawIO ¶
func CreateRawIO(network string)
CreateRawIO creates a raw io box for the given network
func FinishChannelAdding ¶
func FinishChannelAdding(network string)
FinishChannelAdding finishes adding a channel
func FinishInvite ¶
func FinishInvite()
FinishInvite invites the person given and closes the invite box
func FinishNewScript ¶
func FinishNewScript()
FinishNewScript creates the script with the name in the adder box and closes the adder
func GetActiveChannel ¶
func GetActiveChannel() string
GetActiveChannel gets the name of the active channel
func GetActiveChannelObj ¶
GetActiveChannelObj gets the active channel container
func GetActiveNetwork ¶
func GetActiveNetwork() string
GetActiveNetwork gets the name of the active network
func GetActiveNetworkObj ¶
GetActiveNetworkObj gets the active network container
func GetChannel ¶
GetChannel returns the container for the channel with the given name
func GetHighlight ¶
func GetHighlight(network, message string) *data.HighlightMatch
GetHighlight gets the first highlight match
func GetHistory ¶
GetHistory gets n messages of the history of channel @ network
func GetNetwork ¶
GetNetwork returns the container for the network with the given name
func HideModal ¶
func HideModal()
HideModal hides the modal container and deletes the contents of the modal
func IsUserlistHidden ¶
func IsUserlistHidden() bool
IsUserlistHidden checks if the userlist is currently hidden by user action or lack of content
func NetworkFilter ¶
NetworkFilter filters the given network name into a string usable in jQuery
func NotifyMessage ¶
NotifyMessage shows necessary notifications
func OnChangeHighlights ¶
func OnChangeHighlights()
OnChangeHighlights updates the highlights in the data store
func OnChangeNotifications ¶
func OnChangeNotifications()
OnChangeNotifications updates the notification level in the data store
func OpenChannel ¶
OpenChannel opens a channel
func OpenChannelAdder ¶
func OpenChannelAdder(network string)
OpenChannelAdder opens the channel adder for the given network
func OpenPM ¶
func OpenPM(network, user string)
OpenPM opens a private query with the given user on the given network
func OpenWhoisModal ¶
OpenWhoisModal opens the WHOIS data modal
func PartChannel ¶
func PartChannel(network, channel string)
PartChannel leaves the given channel on the given network
func SendNotification ¶
func SendNotification(net, ch, user, message string)
SendNotification sends a notification to the desktop
func SetNetworkConnected ¶
SetNetworkConnected sets the connected status of a network
func ShowContextMenu ¶
ShowContextMenu shows the context menu
func SwitchTo ¶
func SwitchTo(network, channel string)
SwitchTo switches to the given channel on the given network
func ToggleNetworksView ¶
func ToggleNetworksView()
ToggleNetworksView toggles between the network and message view
func ToggleUserlist ¶
func ToggleUserlist(manual bool)
ToggleUserlist opens or closes the userlist based on its current state
func ToggleUserlistView ¶
func ToggleUserlistView()
ToggleUserlistView toggles between the userlist and message view
func TryJoinMessage ¶
TryJoinMessage tries to join the message with the one above
func WasUserlistHiddenManually ¶
func WasUserlistHiddenManually() bool
WasUserlistHiddenManually checks if the userlist was hidden by the user
Types ¶
type MessageTemplateData ¶
type MessageTemplateData struct { Sender string Date string DateFull string Message string Class string WrapClass string Clipboard string Highlight bool OwnMsg bool Joined bool IsAction bool ID int64 Timestamp int64 Preview PreviewTemplateData // contains filtered or unexported fields }
MessageTemplateData contains things