Ok, I assume you know how to get source code from a Git repository and have previous experience building a program from source.
1) Install Git core package.
2) Create a goldendict folder somewhere.
2) Open a terminal window and on that folder get the source code with:
- Code: Select all
$ git clone https://github.com/goldendict/goldendict
3) Install all dependency packages. They are all listed here:
http://goldendict.org/buildfromgit.phpIn addition to those you have to install libbz2-dev.
4) Modify mainwindow.ui file:
a) Locate line:
- Code: Select all
<widget class="QDockWidget" name="searchPane">
b) Add the following just below:
- Code: Select all
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>123</height>
</size>
</property>
c) Locate line:
- Code: Select all
<widget class="QLineEdit" name="translateLine">
d) Modify width from
- Code: Select all
<width>200</width>
to
- Code: Select all
<width>0</width>
e) Locate line:
- Code: Select all
<widget class="QDockWidget" name="dictsPane">
f) Add the following just below:
- Code: Select all
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>97</height>
</size>
</property>
Another option is to modify this form with the Qt Creator visual tool.
5) Compile:
- Code: Select all
$ qmake && make
6) Run from the build directory:
- Code: Select all
$ ./goldendict
You should be able to stretch the frames even more.
Note that the "Found in Dictionaries:" label, the "Look up in:" drop-down and text entry fields they all prevent the frames from stretching to 0px width.
Hope that helps,
Chulai