Merge all changes from the depot

This commit is contained in:
Joshua Fuhs 2012-12-05 19:03:27 -05:00
commit 321112bcff
11 changed files with 766 additions and 752 deletions

View file

@ -4,3 +4,4 @@ src/log.txt
syntax: regexp syntax: regexp
.*[cC]onfig.*\.ini .*[cC]onfig.*\.ini
.+\.\w{3}~ .+\.\w{3}~
src/data/_.*.ini

View file

@ -15,7 +15,7 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
@version 8.3.0 @version 8.4.0
*/ */
Bar_init(m) Bar_init(m)

View file

@ -15,7 +15,7 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
@version 8.3.0 @version 8.4.0
*/ */
Config_init() Config_init()

View file

@ -15,7 +15,7 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
@version 8.3.0 @version 8.4.0
*/ */
Debug_initLog(filename, level = 0, truncateFile = True) Debug_initLog(filename, level = 0, truncateFile = True)

View file

@ -15,11 +15,11 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
@version 8.3.0 @version 8.4.0
*/ */
NAME := "bug.n" NAME := "bug.n"
VERSION := "8.3.0" VERSION := "8.4.0"
;; Script settings ;; Script settings
OnExit, Main_cleanup OnExit, Main_cleanup
@ -33,9 +33,7 @@ SetWinDelay, 10
;; Pseudo main function ;; Pseudo main function
If 0 = 1 If 0 = 1
Main_dataDir = %1% Main_appDir = %1%
Else
Main_dataDir = %A_ScriptDir%
Main_setup() Main_setup()
@ -46,8 +44,8 @@ SetWinDelay, 10
Config_init() Config_init()
Menu, Tray, Tip, %NAME% %VERSION% Menu, Tray, Tip, %NAME% %VERSION%
IfExist %A_ScriptDir%\images\kfm.ico IfExist %A_ScriptDir%\logo.ico
Menu, Tray, Icon, %A_ScriptDir%\images\kfm.ico Menu, Tray, Icon, %A_ScriptDir%\logo.ico
Menu, Tray, NoStandard Menu, Tray, NoStandard
Menu, Tray, Add, Toggle bar, Main_toggleBar Menu, Tray, Add, Toggle bar, Main_toggleBar
Menu, Tray, Add, Help, Main_help Menu, Tray, Add, Help, Main_help
@ -154,7 +152,6 @@ Main_makeDir(dirName) {
Main_setup() { Main_setup() {
Local winAppDir Local winAppDir
Main_appDir := ""
Main_logFile := "" Main_logFile := ""
Main_dataDir := "" Main_dataDir := ""
Main_autoLayout := "" Main_autoLayout := ""
@ -162,6 +159,7 @@ Main_setup() {
EnvGet, winAppDir, APPDATA EnvGet, winAppDir, APPDATA
If (Main_appDir = "")
Main_appDir := winAppDir . "\bug.n" Main_appDir := winAppDir . "\bug.n"
Main_logFile := Main_appDir . "\bugn_log.txt" Main_logFile := Main_appDir . "\bugn_log.txt"
Main_dataDir := Main_appDir . "\data" Main_dataDir := Main_appDir . "\data"

View file

@ -15,7 +15,7 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
@version 8.3.0 @version 8.4.0
*/ */
Manager_init() Manager_init()
@ -114,8 +114,6 @@ Manager_maintenance()
; @todo: Manager_sync? ; @todo: Manager_sync?
Manager__displaySync()
If Not (Config_autoSaveSession = "off") And Not (Config_autoSaveSession = "False") If Not (Config_autoSaveSession = "off") And Not (Config_autoSaveSession = "False")
Manager_saveState() Manager_saveState()
} }
@ -385,7 +383,7 @@ Manager_loop(index, increment, lowerBound, upperBound)
Return, index Return, index
} }
Manager__setWinProperties(wndId, isManaged, m, tags, isDecorated, isFloating, hideTitle ) Manager__setWinProperties(wndId, isManaged, m, tags, isDecorated, isFloating, hideTitle, action = "")
{ {
Local a Local a
@ -394,6 +392,9 @@ Manager__setWinProperties(wndId, isManaged, m, tags, isDecorated, isFloating, hi
If (isManaged) If (isManaged)
{ {
If (action = "Close" Or action = "Maximize")
Manager_win%action%(wndId)
Manager_managedWndIds .= wndId ";" Manager_managedWndIds .= wndId ";"
Monitor_moveWindow(m, wndId) Monitor_moveWindow(m, wndId)
Manager_#%wndId%_tags := tags Manager_#%wndId%_tags := tags
@ -480,7 +481,7 @@ Manager_manage(preferredMonitor, preferredView, wndId)
isManaged := False isManaged := False
} }
a := Manager__setWinProperties( wndId, isManaged, m, tags, isDecorated, isFloating, hideTitle) a := Manager__setWinProperties( wndId, isManaged, m, tags, isDecorated, isFloating, hideTitle, action)
; Do view placement. ; Do view placement.
If isManaged { If isManaged {

View file

@ -15,9 +15,10 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
@version 8.3.0 @version 8.4.0
*/ */
Monitor_init(m, doRestore) Monitor_init(m, doRestore)
{ {
Global Global

View file

@ -15,7 +15,7 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
@version 8.3.0 @version 8.4.0
*/ */
ResourceMonitor_init() ResourceMonitor_init()

View file

@ -15,7 +15,7 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
@version 8.3.0 @version 8.4.0
*/ */
View_init(m, v) View_init(m, v)

View file

@ -10,7 +10,8 @@
(~) changed (~) changed
(+) added (+) added
=?????=
=8.4.0=
(+) Session auto-save and restore. Layout and Window information is (+) Session auto-save and restore. Layout and Window information is
stored periodically so that it may be recovered after a restart. stored periodically so that it may be recovered after a restart.

View file

@ -38,25 +38,20 @@ window management of Microsoft Windows are as follows:
available screen estate. available screen estate.
Additionally bug.n increases the available screen estate by freeing up Additionally bug.n can increase the available screen estate by freeing
the space occupied by up the space occupied by
- the Microsoft Windows Taskbar - the Microsoft Windows Taskbar and
- the title bar for every single window - the title bar for every single window
by hiding and replacing all with a single slim status bar (but bug.n is by hiding and replacing all with a single slim status bar (but bug.n is
not a shell replacement). not a shell replacement).
This status bar may show the following: This status bar shows the following:
- system information
- time
- date
- CPU usage
- battery level
- active window title - active window title
- layout - layout, e. g.
- []= (tile) - 1x1|= (tile)
- [M] (monocle) - [0] (monocle)
- ><> (floating) - ><> (floating)
- up to nine views indicating - up to nine views indicating
- the active view - the active view
@ -64,6 +59,16 @@ This status bar may show the following:
number number
Additionally it can show the following system information:
- time
- date
- CPU usage
- memory usage
- disk load
- network load
- battery level
=== Layouts === === Layouts ===
There are three layouts. There are three layouts.
@ -74,7 +79,8 @@ There are three layouts.
- the dimensions of the master area (1x1 ... 2x3 ... 9x9) - the dimensions of the master area (1x1 ... 2x3 ... 9x9)
- the stacking direction of the master and stacking area (from left to - the stacking direction of the master and stacking area (from left to
right, from top to bottom or monocle) right, from top to bottom or monocle)
- the position of the master area (left, top, right or bottom) - the position of the master area (left, top, right or bottom) and
accordingly the position of the stacking area
- the witdh or height of the master area (depending on its position) - the witdh or height of the master area (depending on its position)
+ **monocle**''<BR>'' + **monocle**''<BR>''
All windows are maximized and only one is shown at any time. All windows are maximized and only one is shown at any time.
@ -109,10 +115,13 @@ read and write access. This is the only requirement for using bug.n (at
least for saving the bug.n configuration file). Apart from that you may least for saving the bug.n configuration file). Apart from that you may
copy bug.n to any directory. copy bug.n to any directory.
If you want to save it to a directory, to which you do not have write If you want to save it to a directory, to which you do not have write
access, you will have to run bug.n with a parameter indicating the file access and do not want to use the default directory for application data
path to the configuration file (<file path to the bug.n executable> (APPDATA, e. g. C:\Users\joten\AppData\Roaming\bug.n), you will have to
<file path to the session file>), e. g. run bug.n with a parameter indicating the file path to that application
"C:\Program Files\bugn\bugn.exe C:\Users\joten\bugn.ini". data directory, which i. a. contains the configuration file (config.ini)
(<file path to the bug.n executable> <file path to the data directory>),
e. g.
"C:\Program Files\bugn\bugn.exe D:\projects\bugn".
=== Microsoft Windows Vista / 7 and UAC === === Microsoft Windows Vista / 7 and UAC ===
@ -132,35 +141,37 @@ file properties.
Customization can be done Customization can be done
- with configuration variables for - with configuration variables for
- the appearance of the bug.n status bar (font, colour and content) - the appearance of the bug.n status bar (position, size, font,
colour and content)
- controlling Windows UI elements (border width and colour, hiding - controlling Windows UI elements (border width and colour, hiding
elements) elements)
- default values (number of tags, layouts, runtime and session - default values (number of tags, layouts, runtime and session
management) management)
- rules controlling specific windows (i. a. exclusions) - rules controlling specific windows (i. a. excluding windows from
tiling window management)
- for hotkeys (the key bindings for the bug.n functions) - for hotkeys (the key bindings for the bug.n functions)
The available configuration variables are listed in The available configuration variables are listed in
%%LINK_configuration.''<BR>'' %%LINK_configuration.''<BR>''
To change these, first create a session file by using the hotkey To change these, first create a configuration file by using the hotkey
"WIN+CTRL+S". The file is either saved in the directory you specified "WIN+CTRL+S". The file is either saved in the directory you specified
with the parameter to the executable, or in the same directory where the with the parameter to the executable, or in the same directory where the
executable is saved. You may then edit the file with a text editor executable is saved. You may then edit the file with a text editor
("WIN+CTRL+E" opens the file for editing) and add a new line for each ("WIN+CTRL+E" opens the file for editing) and add a new line for each
configuration variable with its value (format: <variable>=<value>, use configuration variable with its value (format: <variable>=<value>, use
no quotation marks, 1 for true and 0 for false), e. g. no quotation marks, 1 for true and 0 for false), e. g.
"Config_showBar=0". You will have to quit and run bug.n again for the "Config_showBar=0". You will have to reload bug.n for the changes to
changes to take effect.''<BR>'' take effect.''<BR>''
You may find a sample configuration file (Config_example.ini) in the You may find a sample configuration file (config_example.ini) in the
main directory of bug.n. main directory of bug.n.
== Usage == == Usage ==
bug.n is mostly controlled with hotkeys. The available hotkeys are bug.n is mostly controlled with hotkeys. The available hotkeys are
listed in %%LINK_hotkeys. A list of all functions is available through listed in %%LINK_hotkeys. For a quick help there are the following
the command GUI. For a quick help there are the following hotkeys: hotkeys:
- WIN+Y: Show the command GUI. - WIN+Y: Show the command GUI.
- WIN+Space: Show / Hide the Windows Taskbar. - WIN+Space: Show / Hide the Windows Taskbar.
- WIN+CTRL+Q: Quit bug.n and restore all windows and Windows UI - WIN+CTRL+Q: Quit bug.n and restore all windows and Windows UI
@ -176,8 +187,9 @@ The following functions can also be controlled with the mouse:
layout to the last used. layout to the last used.
- With a right-click on the layout symbol you can set the layout to the - With a right-click on the layout symbol you can set the layout to the
next in the list. next in the list.
- A function can be selected from a list in the command GUI, which is - A function can be selected from a list or entered in the command GUI,
accessible by cklickig on "#!" on the right end of the status bar. which is accessible by cklickig on "#!" on the right end of the status
bar.
''<BR>'' ''<BR>''