More backend changes.
Merge pull request #166 from fricy/DF2014

40.11 layout, osx fix
mem layouts for 40.11 (win/linux)
preliminary work adding unit orientation
move gender enums, detail dock, aggregate sort

- add a separate icon in the dock for the gender with a tooltip
description
- moved the gender enums to dwarf since they're only used there
- swapped the profession desc/icon order in the dock
add orientation offsets to layouts/scripts. resolves #163
Merge remote-tracking branch 'Hello71/morewin' into DF2014
fix role preferences, remove bad role prefs

- removes generic metal/stone/gems/alcohol preferences from all roles,
since every dwarf has one of these preferences
- adjusts the role calculation to give better preference ratings
merge fixes, role pref cleanup and fixes

- changed rolestats to better show what method is being used
- added the capability to override the transformation method in
rolestats (currently only used for preferences)
- fixed leftover ATTRIBUTES_TYPE enum changes from #167
Added message in .pro file about setting up either Qt4 or Qt5 version
Fix: some gridview.dtg sizes are longer than their associated data
Fix: make get_noble_color return exactly 1 QColor

get_noble_color was crashing accessing an empty list
when m_nobles.values() returned an empty list.

If m_nobles.values() returns 1 color return that, otherwise
if it returns no colors or many colors return a default value.
fix default roles, remove unused attribute xp, raws

- fix counts for default role preferences
- removed the obsolete raw reader
- removed unused attribute experience levels
change role drawing method

- force the drawn role ratings to use a simpler range transformation
instead of letting the checks/tests choose a method
Merge pull request #177 from stoutheart/crash-get_noble_color

Fix: make get_noble_color return exactly 1 QColor
Merge pull request #178 from stoutheart/fix-gridview-sizes

Fix: some gridview.dtg sizes are longer than their associated data
Merge pull request #179 from stoutheart/add-qt45-message

Added message in .pro file about setting up either Qt4 or Qt5 version
more preference work for plants, fish, animals

- adds preference categories for: shearable, fishable creatures
- adds preferences categories for plants: millable, extracts, crops
- removed other unused/useless food preferences
- upated scripts with offsets for shearable and inorganic flags
- fixex #58 (invalid preferences)
- refactored the pref flag stuff into preferences
More backend changes.

- Update .gitignore

- Adjust BUILDING.rst

- Import LaTeX docs and delete compiled PDF and old HTML docs.

- Add build_pass scope to dwarftherapist.pro.

- Modify attributes to use ATTRIBUTES_TYPE enum instead of ints and
  casts.

- Fix vector enumeration memory leak.

- Move OSX authorization to subclass.

- Remove unused code from utils.h, add quint64 support to hexify.

- Remove useless concurrency that blocked the main thread anyways.

- Modify DFInstanceLinux to move out process_vm logic to separate
  function and use syscall() instead of glibc wrappers; this way, they
  will work regardless of glibc version.

- Rewrite DFInstanceLinux::write_raw_ptrace to only read excess data
  instead of the entire write.

- Fix various windeployqt.sh issues.
Use QDir::search_paths &c instead of find_files_list.

Conflicts:
	inc/utils.h
	src/mainwindow.cpp