Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
hundredwz committed Oct 21, 2019
1 parent b69fc18 commit 948b17f
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 3 deletions.
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2019 Hundred

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# BibTools

## Introduction

This is a small tool to search bibtex of the paper from IEEE and Google Scholar. Besides, it can also generate bibtexes for more than one paper.

![](https://raw.githubusercontent.com/hundredwz/BibTools/master/images/overview.gif)

## Build

1. Follow [QT](https://github.com/therecipe/qt) to install the needed libraries.
2. Run `qtdeploy build desktop` in the project and you'll find the executable file in the `deploy/windows(your system os)` folder.
3. Use this tool to search and write your paper. Double click to copy the bibtex content.

## Contribution

You can make pr to update this tool.

If you have any problems, you can write issues.

Binary file added images/overview.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion screen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func NewMainWin() *MainWin {
func (mw *MainWin) Show() {
mw.clipBoard = mw.app.Clipboard()
mw.window.SetMinimumSize2(250, 200)
mw.window.SetWindowTitle("Scholar Tools")
mw.window.SetWindowTitle("Bib Tools")

schLayout := NewSearchLayout(mw.clipBoard, mw.engineMap)
schWidget := schLayout.MakeWindow()
Expand Down
21 changes: 19 additions & 2 deletions screen/menu.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func (mw *MainWin) MakeMenu() {
widget.Layout().AddWidget(proxyInput)
setBtn := widgets.NewQPushButton2("save", nil)
setBtn.ConnectClicked(func(checked bool) {
mw.proxyUrl=proxyInput.ToPlainText()
mw.proxyUrl = proxyInput.ToPlainText()
for _, v := range mw.engineMap {
v.SetProxy(proxyInput.ToPlainText())
}
Expand All @@ -46,7 +46,6 @@ func (mw *MainWin) MakeMenu() {

mw.mainmenu.AddMenu(filemenu)


aboutmenu := widgets.NewQMenu2("&Help", nil)

aboutTool := aboutmenu.AddAction("&About This Tool")
Expand All @@ -66,6 +65,24 @@ func (mw *MainWin) MakeMenu() {
win.Show()
})

contactTool := aboutmenu.AddAction("&Contact me")
contactTool.SetMenuRole(widgets.QAction__AboutRole)
contactTool.ConnectTriggered(func(checked bool) {
win := widgets.NewQMainWindow(mw.window, 0)
widget := widgets.NewQWidget(win, 0)
widget.SetLayout(widgets.NewQVBoxLayout())
text := widgets.NewQLabel2("Github: <a href='https://github.com/hundredwz/BibTools' target='_blank'>BibTools<a>", win, 0)
text.SetOpenExternalLinks(true)
widget.Layout().AddWidget(text)
closeBtn := widgets.NewQPushButton2("close", win)
closeBtn.ConnectClicked(func(checked bool) {
win.Hide()
})
widget.Layout().AddWidget(closeBtn)
win.SetCentralWidget(widget)
win.Show()
})

mw.mainmenu.AddMenu(aboutmenu)

mw.window.SetMenuBar(mw.mainmenu)
Expand Down

0 comments on commit 948b17f

Please sign in to comment.