Documentation ¶
Index ¶
- Constants
- func ConfigFont() *gui.QFont
- func LoadConfig() bool
- func LoadHistory() error
- func NewPNGIconTextButton(label string, imageName string) *widgets.QPushButton
- func OpenConfig()
- func PathFromUnix(pathStr string) string
- func Run()
- func SaveHistory()
- type Application
- type ArticleView
- type AudioCache
- type HeaderLabel
- type HeaderTemplateInput
- type HistoryView
- type KeyPressIface
- type QueryArgs
- type ResultListWidget
Constants ¶
View Source
const ( QS_mainSplitter = "main_splitter" QS_frequencyTable = "frequencytable" )
Variables ¶
This section is empty.
Functions ¶
func ConfigFont ¶
func LoadConfig ¶
func LoadConfig() bool
func LoadHistory ¶
func LoadHistory() error
func NewPNGIconTextButton ¶
func NewPNGIconTextButton(label string, imageName string) *widgets.QPushButton
func OpenConfig ¶
func OpenConfig()
func PathFromUnix ¶
func SaveHistory ¶
func SaveHistory()
Types ¶
type Application ¶
type Application struct { *widgets.QApplication // contains filtered or unexported fields }
func (*Application) LoadUserStyle ¶
func (app *Application) LoadUserStyle()
func (*Application) ReloadConfig ¶
func (app *Application) ReloadConfig()
func (*Application) ReloadFont ¶
func (app *Application) ReloadFont()
func (*Application) ReloadUserStyle ¶
func (app *Application) ReloadUserStyle()
func (*Application) Run ¶
func (app *Application) Run()
type ArticleView ¶
type ArticleView struct { *widgets.QTextBrowser // contains filtered or unexported fields }
func NewArticleView ¶
func NewArticleView(app *Application) *ArticleView
func (*ArticleView) KeyPressEventDefault ¶
func (view *ArticleView) KeyPressEventDefault(event gui.QKeyEvent_ITF)
func (*ArticleView) SetResult ¶
func (view *ArticleView) SetResult(res common.SearchResultIface)
func (*ArticleView) SetupCustomHandlers ¶
func (view *ArticleView) SetupCustomHandlers()
func (*ArticleView) ZoomIn ¶
func (view *ArticleView) ZoomIn(ran int)
func (*ArticleView) ZoomOut ¶
func (view *ArticleView) ZoomOut(ran int)
type AudioCache ¶
type AudioCache struct {
// contains filtered or unexported fields
}
func NewAudioCache ¶
func NewAudioCache() *AudioCache
func (*AudioCache) ReloadConfig ¶
func (c *AudioCache) ReloadConfig()
type HeaderLabel ¶
func CreateHeaderLabel ¶
func CreateHeaderLabel(app *Application) *HeaderLabel
func (*HeaderLabel) ReloadConfig ¶
func (label *HeaderLabel) ReloadConfig()
func (*HeaderLabel) SetResult ¶
func (label *HeaderLabel) SetResult(res common.SearchResultIface)
func (*HeaderLabel) SetText ¶
func (label *HeaderLabel) SetText(text string)
type HeaderTemplateInput ¶
type HistoryView ¶
type HistoryView struct { *widgets.QListWidget // contains filtered or unexported fields }
func NewHistoryView ¶
func NewHistoryView() *HistoryView
func (*HistoryView) AddHistory ¶
func (view *HistoryView) AddHistory(query string)
func (*HistoryView) AddHistoryList ¶
func (view *HistoryView) AddHistoryList(list []string)
func (*HistoryView) ClearHistory ¶
func (view *HistoryView) ClearHistory()
func (*HistoryView) SetupCustomHandlers ¶
func (view *HistoryView) SetupCustomHandlers()
func (*HistoryView) TrimHistory ¶
func (view *HistoryView) TrimHistory(maxSize int)
type KeyPressIface ¶
type KeyPressIface interface { ConnectKeyPressEvent(func(event *gui.QKeyEvent)) KeyPressEventDefault(event gui.QKeyEvent_ITF) }
type QueryArgs ¶
type QueryArgs struct { ArticleView *ArticleView ResultList *ResultListWidget HeaderLabel *HeaderLabel HistoryView *HistoryView PostQuery func(string) Entry *widgets.QLineEdit ModeCombo *widgets.QComboBox }
func (*QueryArgs) AddHistoryAndFrequency ¶
func (*QueryArgs) ResetQuery ¶
func (w *QueryArgs) ResetQuery()
func (*QueryArgs) SetNoResult ¶
type ResultListWidget ¶
type ResultListWidget struct { *widgets.QListWidget Active common.SearchResultIface HeaderLabel *HeaderLabel ArticleView *ArticleView // contains filtered or unexported fields }
func NewResultListWidget ¶
func NewResultListWidget( articleView *ArticleView, headerLabel *HeaderLabel, onResultDisplay func(terms []string), ) *ResultListWidget
func (*ResultListWidget) Clear ¶
func (w *ResultListWidget) Clear()
func (*ResultListWidget) OnActivate ¶
func (w *ResultListWidget) OnActivate(row int)
func (*ResultListWidget) SetResults ¶
func (w *ResultListWidget) SetResults(results []common.SearchResultIface)
Click to show internal directories.
Click to hide internal directories.