Commit 4f456929 authored by Naba Kumar's avatar Naba Kumar

Patch submitted by: Johannes Schmid <johannes.schmid@gmx.de>

	* src/message-manager-dock.c
	  src/message-manager-private.cc
	  src/message-manager-private.h
	  src/message-manager.cc
	  src/preferences.c
	  src/preferences.h
	  src/preferences_gui.c:

	  Patch submitted by:
	  Johannes Schmid <johannes.schmid@gmx.de>

	  This patch adds a tab to the notebook of the preferences-dialog
	  where you can change the colors, the tab position of the new
	  message manager. Also the truncate messages stuff has moved
	  from misc tab to messages tab.

	  Also improved the remembering position stuff of message manager.

	* data/internal.properties,
	  Added definitions for messages colors and tag position.

	* src/message_manager.cc:
	  Fixed a bug that never lets the messages panes to get cleared.
	  Added wmclass setting for the message window. Fixed a bug in
	  which the message window was not being shown.

	* src/tag_manager.c: Fixed printing of (NULL) in the debug
	  output and disabled it.

	* src/anjuta.c: Preferences created and loaded before anything else.
	  anjuta now recognizes messages colors on startup and initializes
	  them.
parent 977bfe75
2002-01-09 Naba Kumar <kh_naba@users.sourceforge.net>
* src/message-manager-dock.c
src/message-manager-private.cc
src/message-manager-private.h
src/message-manager.cc
src/preferences.c
src/preferences.h
src/preferences_gui.c:
Patch submitted by:
Johannes Schmid <johannes.schmid@gmx.de>
This patch adds a tab to the notebook of the preferences-dialog
where you can change the colors, the tab position of the new
message manager. Also the truncate messages stuff has moved
from misc tab to messages tab.
Also improved the remembering position stuff of message manager.
* data/internal.properties,
Added definitions for messages colors and tag position.
* src/message_manager.cc:
Fixed a bug that never lets the messages panes to get cleared.
Added wmclass setting for the message window. Fixed a bug in
which the message window was not being shown.
* src/tag_manager.c: Fixed printing of (NULL) in the debug
output and disabled it.
* src/anjuta.c: Preferences created and loaded before anything else.
anjuta now recognizes messages colors on startup and initializes
them.
2002-01-09 Andy Piper <andy.piper@freeuk.com>
* src/project_dbase.c: fix bug #492923 (thanks to Johannes Schmid)
......
# Global initialisation file for Anjuta
# Though you can modify this file, it is recommended that
# you do not modify this file. Users can copy the file user.properties
# to the directory ~/.anjuta and modify it according to their taste.
# Let this file be left for the package distributors, who would like
# to present Anjuta in their own theme.
###############################
# Initial General preferences #
###############################
# Tab size in spaces
tabsize=4
# Indentation size in spaces
indent.size=4
# Use tabs for indention (0/1)
use.tabs=1
# Enable Automatic indention (0/1)
indent.automatic=1
# Auto indent on block start (such as '{')
indent.opening=0
# Auto indent on block end (such as '}')
indent.closing=0
# Caret Blink period in msec
caret.period=350
# Caret width in pixels
caret.width=1
# Max. length of the lines. (0 for none)
# beyond which the chars will be marked
edge.column=100
# Modes of long line indication beyond edge
# EDGE_NONE=0, EDGE_LINE=1, EDGE_BACKGROUND=1
edge.mode=0
# Background color for the edge.mode=1
edge.colour=#C0DCC0
# Should the linenumber margin visible (0/1)
margin.linenumber.visible=0
# Should the marker margin visible (0/1)
margin.marker.visible=1
# Should the fold margin visible (0/1)
margin.fold.visible=1
# Margin widths in pixels.
margin.linenumber.width=40
margin.marker.width=16
margin.fold.width=14
# Use double buffering for editor draw
buffered.draw=1
# Enable matching braces check
braces.check=1
# Sloppy braces
braces.sloppy=1
# Default file extension for newfiles
default.file.ext=x.c
# Should the editor use VC_HOME key
vc.home.key=1
# Should the indentation guides be highlighted (0/1)
highlight.indentation.guides=1
# Should the trailing spaces be removed when saving files (0/1)
strip.trailing.spaces=1
# Scale the fonts by a magnification factor before printing
print.magnification=-4
# Print in color (0/1)
print.colour.mode=1
# Enable folding, and show lines below when collapsed.
fold=1
# Fold flags
fold.flags=16
# Use +/- symbol or arrows to indicate code fold (1/0)
# 1 for +/- symbol
fold.use.plus=1
# Close all fold when the file is opened (0/1)
# 0: No and 1:Yes
fold.on.open=0
# Should there be highlighting within preprocessor directives
styling.within.preprocessor=1
# Should the make keep going when some target is not built
build.option.keep.going=1
# No of jobs for make (0 for infinite)
build.option.jobs=0
# ?? for python
#tab.timmy.whinge.level=
# Should the calltip ignore case (default)
# Can be overriden by language specific setting
calltip.*.ignorecase=0
# Should the autocomplete ignore case (default)
# Can be overriden by language specific setting
autocomplete.*.ignorecase=0
# Should the autocomplete complete or display window
# when there is only one match.
autocomplete.choose.single=0
# Blank margin width on the left of the editor (in text space)
# units in pixels
blank.margin.left=1
# Blank margin width on the right of the editor (in text space)
# units in pixels
blank.margin.right=1
# Should the horizontal scrollbar be visible
horizontal.scrollbar=1
# Alpha character set
chars.alpha=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
# Numeric character set
chars.numeric=0123456789
# Accented character
chars.accented=㎄Ԛ҈ꖚ
# Compilable/Buildable/executable file extensions
source.files=*.py;*.c;*.cc;*.cpp;*.cs;*.cxx;*.h;*.hh;*.hxx;*.hpp;*.idl;*.rc;*.java;\
*.pas,*.js;*.vb;*.vbs;makefile;*.mak;*.lua;*.html;*.properties;*.conf
# Should the eol character be visible
view.eol=0
# Should the white spaces be visible (0/1)
view.whitespace=0
# Should the indentation be visible (0/1)
view.indentation.whitespace=1
# Should the indentation guides be visible (0/1)
view.indentation.guides=0
# Should the statusbar visible
statusbar.visible=1
# Should the main toolbar visible
main.toolbar.visible=1
# Should the tags toolbar visible
tags.toolbar.visible=1
# Should the extended toolbar visible
extended.toolbar.visible=0
# Should the browser toolbar visible
browser.toolbar.visible=0
# Should the browser toolbar visible
format.toolbar.visible=0
# Should the debug toolbar visible
debug.toolbar.visible=0
# Import non-modifiable language specific properties file
import ada
import cs
import make
import rc
import html
import ruby
import baan
import idl
import pascal
import sample
import bash
import java
import perl
import sql
import conf
import latex
import props
import vb
import cpp
import lua
import python
import xml
import others
# Give symbolic name for the fonts
font.base=font:lucidatypewriter
font.monospace=font:courier,size:12
# Define some easy to use fonts
font.big=$(font.base),size:16
font.medium=$(font.base),size:12
font.small=$(font.base),size:10
font.comment=$(font.monospace)
###########################################
# Global default styles for all languages #
###########################################
# Whitespace
style.default.whitespace=fore:#808080
# Comments
style.default.comment=fore:#FF0000,$(font.comment)
# Numbers
style.default.number=fore:#007F00,$(font.monospace)
# Keywords
style.default.keyword=fore:#00007F,bold
# System Keywords
style.default.syskeyword=fore:#991111,bold
# Local keywords
style.default.localkeyword=fore:#0000FF,bold
# Doublequote strings
style.default.doublequote=fore:#E8C100,$(font.monospace)
# Single quote strings
style.default.singlequote=fore:#E8C100,$(font.monospace)
# Preprocessor and directives
style.default.preprocessor=fore:#7F7F00
# Operators
style.default.operator=
# Unterminated strings
style.default.unclosedstring=fore:#000000,back:#E0C0E0,$(font.monospace),eolfilled
# Identifiers
style.default.identifier=fore:#000022
# definition name
style.default.definition=fore:#0000FF,bold
# function name definition
style.default.function=fore:#007F7F,bold
##############################################
# Styles that will be same for all languages #
##############################################
# Default
style.*.32=$(font.medium)
# Line number
style.*.33=back:#D0D0D0
# Brace highlight
style.*.34=$(font.big),fore:#0000FF,bold
# Brace incomplete highlight
style.*.35=$(font.big),fore:#FF0000,bold
# Control characters
style.*.36=
# Indentation guides
style.*.37=fore:#C0C0C0,back:#FFFFFF
# Selection colors
selection.fore=#FFFFFF
selection.back=#000000
# Caret Color
caret.fore=#000000
# Calltip and auto complete window background color
calltip.back=#E6D6B6
##################################################
# Folding #
##################################################
fold.comment=1
fold.compact=1
fold.comment.python=1
fold.quotes.python=1
fold.html=1
fold.symbols=3
#########################################
# Default Commands for handling Project #
#########################################
##################################################################################################
# Variables available for the commands #
#------------------------------------------------------------------------------------------------#
# Macros in the source | Variables | Description #
#------------------------------------------------------------------------------------------------#
# CURRENT_FULL_FILENAME_WITH_EXT | $(current.full.filename.ext) | Filename with full path &ext
# CURRENT_FULL_FILENAME | $(current.full.filename) | Filename with full path #
# CURRENT_FILENAME_WITH_EXT | $(current.file.name.ext) | Only filename with ext #
# CURRENT_FILENAME | $(current.file.name) | Only filename without ext #
# CURRENT_FILE_DIRECTORY | $(current.file.dir) | Dir of the file #
# CURRENT_FILE_EXTENSION | $(current.file.extension) | Only extension of the file #
##################################################################################################
make=make
anjuta.make.options=-k
command.build.module=$(make) $(anjuta.make.options)
command.build.project=$(make) $(anjuta.make.options)
command.build.tarball=$(make) $(anjuta.make.options) dist
command.build.install=$(make) $(anjuta.make.options) install
command.build.clean=$(make) $(anjuta.make.options) clean
command.build.clean.all=$(make) $(anjuta.make.options) distclean
command.execute.project=./$(project.source.target) $(anjuta.program.arguments)
command.terminal=gnome-terminal --command="$(anjuta.current.command)"
anjuta.compiler.flags=-O -g
anjuta.linker.flags=
# Global initialisation file for Anjuta
# Though you can modify this file, it is recommended that
# you do not modify this file. Users can copy the file user.properties
# to the directory ~/.anjuta and modify it according to their taste.
# Let this file be left for the package distributors, who would like
# to present Anjuta in their own theme.
###############################
# Initial General preferences #
###############################
# Tab size in spaces
tabsize=4
# Indentation size in spaces
indent.size=4
# Use tabs for indention (0/1)
use.tabs=1
# Enable Automatic indention (0/1)
indent.automatic=1
# Auto indent on block start (such as '{')
indent.opening=0
# Auto indent on block end (such as '}')
indent.closing=0
# Caret Blink period in msec
caret.period=350
# Caret width in pixels
caret.width=1
# Max. length of the lines. (0 for none)
# beyond which the chars will be marked
edge.column=100
# Modes of long line indication beyond edge
# EDGE_NONE=0, EDGE_LINE=1, EDGE_BACKGROUND=1
edge.mode=0
# Background color for the edge.mode=1
edge.colour=#C0DCC0
# Should the linenumber margin visible (0/1)
margin.linenumber.visible=0
# Should the marker margin visible (0/1)
margin.marker.visible=1
# Should the fold margin visible (0/1)
margin.fold.visible=1
# Margin widths in pixels.
margin.linenumber.width=40
margin.marker.width=16
margin.fold.width=14
# Use double buffering for editor draw
buffered.draw=1
# Enable matching braces check
braces.check=1
# Sloppy braces
braces.sloppy=1
# Default file extension for newfiles
default.file.ext=x.c
# Should the editor use VC_HOME key
vc.home.key=1
# Should the indentation guides be highlighted (0/1)
highlight.indentation.guides=1
# Should the trailing spaces be removed when saving files (0/1)
strip.trailing.spaces=1
# Scale the fonts by a magnification factor before printing
print.magnification=-4
# Print in color (0/1)
print.colour.mode=1
# Enable folding, and show lines below when collapsed.
fold=1
# Fold flags
fold.flags=16
# Use +/- symbol or arrows to indicate code fold (1/0)
# 1 for +/- symbol
fold.use.plus=1
# Close all fold when the file is opened (0/1)
# 0: No and 1:Yes
fold.on.open=0
# Should there be highlighting within preprocessor directives
styling.within.preprocessor=1
# Should the make keep going when some target is not built
build.option.keep.going=1
# No of jobs for make (0 for infinite)
build.option.jobs=0
# ?? for python
#tab.timmy.whinge.level=
# Should the calltip ignore case (default)
# Can be overriden by language specific setting
calltip.*.ignorecase=0
# Should the autocomplete ignore case (default)
# Can be overriden by language specific setting
autocomplete.*.ignorecase=0
# Should the autocomplete complete or display window
# when there is only one match.
autocomplete.choose.single=0
# Blank margin width on the left of the editor (in text space)
# units in pixels
blank.margin.left=1
# Blank margin width on the right of the editor (in text space)
# units in pixels
blank.margin.right=1
# Should the horizontal scrollbar be visible
horizontal.scrollbar=1
# Alpha character set
chars.alpha=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
# Numeric character set
chars.numeric=0123456789
# Accented character
chars.accented=
# Compilable/Buildable/executable file extensions
source.files=*.py;*.c;*.cc;*.cpp;*.cs;*.cxx;*.h;*.hh;*.hxx;*.hpp;*.idl;*.rc;*.java;\
*.pas,*.js;*.vb;*.vbs;makefile;*.mak;*.lua;*.html;*.properties;*.conf
# Should the eol character be visible
view.eol=0
# Should the white spaces be visible (0/1)
view.whitespace=0
# Should the indentation be visible (0/1)
view.indentation.whitespace=1
# Should the indentation guides be visible (0/1)
view.indentation.guides=0
# Should the statusbar visible
statusbar.visible=1
# Should the main toolbar visible
main.toolbar.visible=1
# Should the tags toolbar visible
tags.toolbar.visible=1
# Should the extended toolbar visible
extended.toolbar.visible=0
# Should the browser toolbar visible
browser.toolbar.visible=0
# Should the browser toolbar visible
format.toolbar.visible=0
# Should the debug toolbar visible
debug.toolbar.visible=0
# Import non-modifiable language specific properties file
import ada
import cs
import make
import rc
import html
import ruby
import baan
import idl
import pascal
import sample
import bash
import java
import perl
import sql
import conf
import latex
import props
import vb
import cpp
import lua
import python
import xml
import others
# Give symbolic name for the fonts
font.base=font:lucidatypewriter
font.monospace=font:courier,size:12
# Define some easy to use fonts
font.big=$(font.base),size:16
font.medium=$(font.base),size:12
font.small=$(font.base),size:10
font.comment=$(font.monospace)
###########################################
# Global default styles for all languages #
###########################################
# Whitespace
style.default.whitespace=fore:#808080
# Comments
style.default.comment=fore:#FF0000,$(font.comment)
# Numbers
style.default.number=fore:#007F00,$(font.monospace)
# Keywords
style.default.keyword=fore:#00007F,bold
# System Keywords
style.default.syskeyword=fore:#991111,bold
# Local keywords
style.default.localkeyword=fore:#0000FF,bold
# Doublequote strings
style.default.doublequote=fore:#E8C100,$(font.monospace)
# Single quote strings
style.default.singlequote=fore:#E8C100,$(font.monospace)
# Preprocessor and directives
style.default.preprocessor=fore:#7F7F00
# Operators
style.default.operator=
# Unterminated strings
style.default.unclosedstring=fore:#000000,back:#E0C0E0,$(font.monospace),eolfilled
# Identifiers
style.default.identifier=fore:#000022
# definition name
style.default.definition=fore:#0000FF,bold
# function name definition
style.default.function=fore:#007F7F,bold
##############################################
# Styles that will be same for all languages #
##############################################
# Default
style.*.32=$(font.medium)
# Line number
style.*.33=back:#D0D0D0
# Brace highlight
style.*.34=$(font.big),fore:#0000FF,bold
# Brace incomplete highlight
style.*.35=$(font.big),fore:#FF0000,bold
# Control characters
style.*.36=
# Indentation guides
style.*.37=fore:#C0C0C0,back:#FFFFFF
# Selection colors
selection.fore=#FFFFFF
selection.back=#000000
# Caret Color
caret.fore=#000000
# Calltip and auto complete window background color
calltip.back=#E6D6B6
# Messages colors
messages.color.warning=#00FF00
messages.color.error=#FF0000
messages.color.messages1=#0000FF
messages.color.messages2=#000000
# Messages notebook tag position.
messages.tag.position=0
##################################################
# Folding #
##################################################
fold.comment=1
fold.compact=1
fold.comment.python=1
fold.quotes.python=1
fold.html=1
fold.symbols=3
#########################################
# Default Commands for handling Project #
#########################################
##################################################################################################
# Variables available for the commands #
#------------------------------------------------------------------------------------------------#
# Macros in the source | Variables | Description #
#------------------------------------------------------------------------------------------------#
# CURRENT_FULL_FILENAME_WITH_EXT | $(current.full.filename.ext) | Filename with full path &ext
# CURRENT_FULL_FILENAME | $(current.full.filename) | Filename with full path #
# CURRENT_FILENAME_WITH_EXT | $(current.file.name.ext) | Only filename with ext #
# CURRENT_FILENAME | $(current.file.name) | Only filename without ext #
# CURRENT_FILE_DIRECTORY | $(current.file.dir) | Dir of the file #
# CURRENT_FILE_EXTENSION | $(current.file.extension) | Only extension of the file #
##################################################################################################
make=make
anjuta.make.options=-k
command.build.module=$(make) $(anjuta.make.options)
command.build.project=$(make) $(anjuta.make.options)
command.build.tarball=$(make) $(anjuta.make.options) dist
command.build.install=$(make) $(anjuta.make.options) install
command.build.clean=$(make) $(anjuta.make.options) clean
command.build.clean.all=$(make) $(anjuta.make.options) distclean
command.execute.project=./$(project.source.target) $(anjuta.program.arguments)
command.terminal=gnome-terminal --command="$(anjuta.current.command)"
anjuta.compiler.flags=-O -g
anjuta.linker.flags=
......@@ -154,11 +154,11 @@ anjuta_new ()
getcwd(wd, PATH_MAX);
fileselection_set_dir (app->fileselection, wd);
app->preferences = preferences_new ();
app->save_as_fileselection = create_fileselection_gui (&fsd2);
app->save_as_build_msg_sel = create_fileselection_gui (&fsd3);
app->find_replace = find_replace_new ();
app->find_in_files = find_in_files_new ();
app->preferences = preferences_new ();
app->compiler_options = compiler_options_new (app->preferences->props);
app->src_paths = src_paths_new ();
app->messages = ANJUTA_MESSAGE_MANAGER(anjuta_message_manager_new ());
......@@ -927,6 +927,8 @@ gboolean anjuta_load_yourself (PropsID pr)
{
gint length;
preferences_load_yourself (app->preferences, pr);
app->win_pos_x = prop_get_int (pr, "anjuta.win.pos.x", 10);
app->win_pos_y = prop_get_int (pr, "anjuta.win.pos.y", 10);
app->win_width =
......@@ -956,7 +958,6 @@ gboolean anjuta_load_yourself (PropsID pr)
#endif
anjuta_message_manager_load_yourself (app->messages, pr);
project_dbase_load_yourself (app->project_dbase, pr);
preferences_load_yourself (app->preferences, pr);
compiler_options_load_yourself (app->compiler_options, pr);
compiler_options_load (app->compiler_options, pr);
src_paths_load_yourself (app->src_paths, pr);
......