[DEVELOPMENT ENVIRONMENT]

* NEW: Apply the default font and the console font to the help browsers.


git-svn-id: svn://localhost/gambas/trunk@5331 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
Benoît Minisini 2012-11-16 23:56:12 +00:00
parent 46fcf13856
commit debb55f1e6
3 changed files with 97 additions and 86 deletions

View file

@ -432,23 +432,23 @@ msgid "Event loop"
msgstr "" msgstr ""
#: CProjectTree.class:285 FMain.form:1022 FSearch.class:96 FSelectIcon.form:31 #: CProjectTree.class:285 FMain.form:1022 FSearch.class:96 FSelectIcon.form:31
#: Project.module:1657 #: Project.module:1666
msgid "Project" msgid "Project"
msgstr "" msgstr ""
#: CProjectTree.class:288 Project.module:1658 #: CProjectTree.class:288 Project.module:1667
msgid "Sources" msgid "Sources"
msgstr "" msgstr ""
#: CProjectTree.class:290 Project.module:1659 #: CProjectTree.class:290 Project.module:1668
msgid "Connections" msgid "Connections"
msgstr "" msgstr ""
#: CProjectTree.class:298 Project.module:1660 #: CProjectTree.class:298 Project.module:1669
msgid "Public" msgid "Public"
msgstr "" msgstr ""
#: CProjectTree.class:299 Project.module:1661 #: CProjectTree.class:299 Project.module:1670
msgid "Data" msgid "Data"
msgstr "" msgstr ""
@ -479,13 +479,13 @@ msgstr ""
#: FGotoLine.form:23 FHelpBrowser.form:61 FIconEditor.class:1376 #: FGotoLine.form:23 FHelpBrowser.form:61 FIconEditor.class:1376
#: FList.form:121 FMain.class:195 FMakeInstall.class:350 FMenu.form:377 #: FList.form:121 FMain.class:195 FMakeInstall.class:350 FMenu.form:377
#: FNewConnection.form:255 FNewTable.form:86 FNewTranslation.form:21 #: FNewConnection.form:255 FNewTable.form:86 FNewTranslation.form:21
#: FOpenProject.form:203 FOption.class:671 FPasteSpecial.form:77 #: FOpenProject.form:203 FOption.class:672 FPasteSpecial.form:77
#: FPasteTable.form:107 FPropertyComponent.form:221 FPropertyProject.form:746 #: FPasteTable.form:107 FPropertyComponent.form:221 FPropertyProject.form:746
#: FProxy.form:57 FReportBorderChooser.form:48 FReportBrushChooser.form:34 #: FProxy.form:57 FReportBorderChooser.form:48 FReportBrushChooser.form:34
#: FReportCoordChooser.form:26 FReportPaddingChooser.form:75 FSave.form:28 #: FReportCoordChooser.form:26 FReportPaddingChooser.form:75 FSave.form:28
#: FSaveProjectAs.form:76 FSearch.class:864 FSelectExtraFile.form:43 #: FSaveProjectAs.form:76 FSearch.class:864 FSelectExtraFile.form:43
#: FSelectIcon.form:87 FSnippet.form:57 FTableChooser.form:68 #: FSelectIcon.form:87 FSnippet.form:57 FTableChooser.form:68 FText.form:41
#: FTextEditor.class:596 FText.form:41 FTranslate.class:627 Project.module:449 #: FTextEditor.class:596 FTranslate.class:627 Project.module:458
msgid "Cancel" msgid "Cancel"
msgstr "" msgstr ""
@ -495,19 +495,19 @@ msgid ""
"the GNU General Public License." "the GNU General Public License."
msgstr "" msgstr ""
#: Design.module:159 Project.module:2075 #: Design.module:159 Project.module:2084
msgid "first" msgid "first"
msgstr "" msgstr ""
#: Design.module:161 Project.module:2077 #: Design.module:161 Project.module:2086
msgid "second" msgid "second"
msgstr "" msgstr ""
#: Design.module:163 Project.module:2079 #: Design.module:163 Project.module:2088
msgid "third" msgid "third"
msgstr "" msgstr ""
#: Design.module:251 Project.module:2138 #: Design.module:251 Project.module:2147
msgid "in &1:&2." msgid "in &1:&2."
msgstr "" msgstr ""
@ -876,7 +876,7 @@ msgid "Export..."
msgstr "" msgstr ""
#: FConnectionEditor.form:465 FForm.form:257 FMain.class:195 #: FConnectionEditor.form:465 FForm.form:257 FMain.class:195
#: FNewConnection.class:325 FOption.class:853 FTranslate.class:627 #: FNewConnection.class:325 FOption.class:855 FTranslate.class:627
msgid "Delete" msgid "Delete"
msgstr "" msgstr ""
@ -1389,7 +1389,7 @@ msgid "Do you want to clear the expression list ?"
msgstr "" msgstr ""
#: FDebugInfo.class:558 FIconEditor.class:1376 FList.class:153 #: FDebugInfo.class:558 FIconEditor.class:1376 FList.class:153
#: FOption.class:671 FOutput.form:79 #: FOption.class:672 FOutput.form:79
msgid "Clear" msgid "Clear"
msgstr "" msgstr ""
@ -2912,7 +2912,7 @@ msgid "There is no CHANGELOG entry for this release."
msgstr "" msgstr ""
#: FMakeInstall.class:350 FPropertyProject.class:890 FSave.form:21 #: FMakeInstall.class:350 FPropertyProject.class:890 FSave.form:21
#: Project.module:3222 #: Project.module:3231
msgid "Continue" msgid "Continue"
msgstr "" msgstr ""
@ -3016,7 +3016,7 @@ msgstr ""
msgid "This menu is too deep !" msgid "This menu is too deep !"
msgstr "" msgstr ""
#: FMenu.class:937 Project.module:5055 #: FMenu.class:937 Project.module:5064
msgid "modified" msgid "modified"
msgstr "" msgstr ""
@ -3448,27 +3448,27 @@ msgstr ""
msgid "Export a theme file" msgid "Export a theme file"
msgstr "" msgstr ""
#: FOption.class:342 #: FOption.class:343
msgid "Select a theme file" msgid "Select a theme file"
msgstr "" msgstr ""
#: FOption.class:365 #: FOption.class:366
msgid "You need to restart the application to see your changes." msgid "You need to restart the application to see your changes."
msgstr "" msgstr ""
#: FOption.class:671 #: FOption.class:672
msgid "Do you really want to clear the documentation cache?" msgid "Do you really want to clear the documentation cache?"
msgstr "" msgstr ""
#: FOption.class:853 #: FOption.class:855
msgid "Do you really want to delete this snippet?" msgid "Do you really want to delete this snippet?"
msgstr "" msgstr ""
#: FOption.class:989 #: FOption.class:991
msgid "Do you really want to reset the list to its default value?" msgid "Do you really want to reset the list to its default value?"
msgstr "" msgstr ""
#: FOption.class:989 #: FOption.class:991
msgid "Reset" msgid "Reset"
msgstr "" msgstr ""
@ -3834,7 +3834,7 @@ msgstr ""
msgid "Snapping value is incorrect." msgid "Snapping value is incorrect."
msgstr "" msgstr ""
#: FPropertyProject.class:402 Project.module:3221 #: FPropertyProject.class:402 Project.module:3230
msgid "Some components are missing: &1" msgid "Some components are missing: &1"
msgstr "" msgstr ""
@ -5884,267 +5884,267 @@ msgstr ""
msgid "Multimedia" msgid "Multimedia"
msgstr "" msgstr ""
#: Project.module:419 #: Project.module:428
msgid "This project does not exist." msgid "This project does not exist."
msgstr "" msgstr ""
#: Project.module:430 #: Project.module:439
msgid "" msgid ""
"Unable to find Gambas IDE executable in directory:\n" "Unable to find Gambas IDE executable in directory:\n"
"\n" "\n"
"&1" "&1"
msgstr "" msgstr ""
#: Project.module:443 #: Project.module:452
msgid "This is not a Gambas project." msgid "This is not a Gambas project."
msgstr "" msgstr ""
#: Project.module:446 #: Project.module:455
msgid "This is a Gambas 1.0 project. Use Gambas 2 to convert it." msgid "This is a Gambas 1.0 project. Use Gambas 2 to convert it."
msgstr "" msgstr ""
#: Project.module:449 #: Project.module:458
msgid "" msgid ""
"This is a Gambas 2.0 project.\n" "This is a Gambas 2.0 project.\n"
"\n" "\n"
"Do you want to convert it?" "Do you want to convert it?"
msgstr "" msgstr ""
#: Project.module:449 #: Project.module:458
msgid "Convert" msgid "Convert"
msgstr "" msgstr ""
#: Project.module:461 #: Project.module:470
msgid "" msgid ""
"This project seems to be already opened.\n" "This project seems to be already opened.\n"
"\n" "\n"
"Opening the same project twice can lead to data loss." "Opening the same project twice can lead to data loss."
msgstr "" msgstr ""
#: Project.module:461 #: Project.module:470
msgid "Open after all" msgid "Open after all"
msgstr "" msgstr ""
#: Project.module:461 #: Project.module:470
msgid "Do not open" msgid "Do not open"
msgstr "" msgstr ""
#: Project.module:487 #: Project.module:496
msgid "This project is read-only." msgid "This project is read-only."
msgstr "" msgstr ""
#: Project.module:487 #: Project.module:496
msgid "It cannot be converted." msgid "It cannot be converted."
msgstr "" msgstr ""
#: Project.module:505 #: Project.module:514
msgid "Copying project inside a temporary directory..." msgid "Copying project inside a temporary directory..."
msgstr "" msgstr ""
#: Project.module:508 #: Project.module:517
msgid "Unable to create temporary directory" msgid "Unable to create temporary directory"
msgstr "" msgstr ""
#: Project.module:530 #: Project.module:539
msgid "Converting project structure..." msgid "Converting project structure..."
msgstr "" msgstr ""
#: Project.module:557 #: Project.module:566
msgid "Applying conversion..." msgid "Applying conversion..."
msgstr "" msgstr ""
#: Project.module:563 #: Project.module:572
msgid "Unable to apply conversion" msgid "Unable to apply conversion"
msgstr "" msgstr ""
#: Project.module:661 #: Project.module:670
msgid "Cannot open project file :\n" msgid "Cannot open project file :\n"
msgstr "" msgstr ""
#: Project.module:1390 #: Project.module:1399
msgid "The following classes have circular inheritance:" msgid "The following classes have circular inheritance:"
msgstr "" msgstr ""
#: Project.module:1557 #: Project.module:1566
msgid "read-only" msgid "read-only"
msgstr "" msgstr ""
#: Project.module:1559 #: Project.module:1568
msgid "ALPHA VERSION, USE AT YOUR OWN RISK! :-)" msgid "ALPHA VERSION, USE AT YOUR OWN RISK! :-)"
msgstr "" msgstr ""
#: Project.module:1827 #: Project.module:1836
msgid "Loading &1..." msgid "Loading &1..."
msgstr "" msgstr ""
#: Project.module:1876 #: Project.module:1885
msgid "Cannot open a binary file." msgid "Cannot open a binary file."
msgstr "" msgstr ""
#: Project.module:1909 #: Project.module:1918
msgid "Cannot open file." msgid "Cannot open file."
msgstr "" msgstr ""
#: Project.module:1965 #: Project.module:1974
msgid "File not found!" msgid "File not found!"
msgstr "" msgstr ""
#: Project.module:2081 #: Project.module:2090
msgid "&1th" msgid "&1th"
msgstr "" msgstr ""
#: Project.module:2134 #: Project.module:2143
msgid "in form definition" msgid "in form definition"
msgstr "" msgstr ""
#: Project.module:2141 #: Project.module:2150
msgid "in &1." msgid "in &1."
msgstr "" msgstr ""
#: Project.module:2299 #: Project.module:2308
msgid "" msgid ""
"Some project source files are in conflict.\n" "Some project source files are in conflict.\n"
"Please solve them if you want to compile the project." "Please solve them if you want to compile the project."
msgstr "" msgstr ""
#: Project.module:2303 #: Project.module:2312
msgid "Compiling project" msgid "Compiling project"
msgstr "" msgstr ""
#: Project.module:2537 #: Project.module:2546
msgid "File already exists." msgid "File already exists."
msgstr "" msgstr ""
#: Project.module:2569 #: Project.module:2578
msgid "Directory already exists." msgid "Directory already exists."
msgstr "" msgstr ""
#: Project.module:2581 #: Project.module:2590
msgid "Cannot link template file." msgid "Cannot link template file."
msgstr "" msgstr ""
#: Project.module:2587 #: Project.module:2596
msgid "Cannot copy template file." msgid "Cannot copy template file."
msgstr "" msgstr ""
#: Project.module:2797 #: Project.module:2806
msgid "Making executable..." msgid "Making executable..."
msgstr "" msgstr ""
#: Project.module:2841 #: Project.module:2850
msgid "Cannot make executable." msgid "Cannot make executable."
msgstr "" msgstr ""
#: Project.module:3411 #: Project.module:3420
msgid "Cannot write project file." msgid "Cannot write project file."
msgstr "" msgstr ""
#: Project.module:3454 #: Project.module:3463
msgid "Unable to create desktop shortcut." msgid "Unable to create desktop shortcut."
msgstr "" msgstr ""
#: Project.module:3700 #: Project.module:3709
msgid "The directory will be removed at the next commit." msgid "The directory will be removed at the next commit."
msgstr "" msgstr ""
#: Project.module:3717 #: Project.module:3726
msgid "You must define a startup class or form!" msgid "You must define a startup class or form!"
msgstr "" msgstr ""
#: Project.module:3748 #: Project.module:3757
msgid "Please type a name." msgid "Please type a name."
msgstr "" msgstr ""
#: Project.module:3752 #: Project.module:3761
msgid "This name contains a forbidden character:" msgid "This name contains a forbidden character:"
msgstr "" msgstr ""
#: Project.module:3756 #: Project.module:3765
msgid "The name cannot begins with a dot." msgid "The name cannot begins with a dot."
msgstr "" msgstr ""
#: Project.module:3760 #: Project.module:3769
msgid "This name is already used. Choose another one." msgid "This name is already used. Choose another one."
msgstr "" msgstr ""
#: Project.module:3796 #: Project.module:3805
msgid "" msgid ""
"A class name must begin with a letter or an underscore, followed by any " "A class name must begin with a letter or an underscore, followed by any "
"letter or digit." "letter or digit."
msgstr "" msgstr ""
#: Project.module:3844 #: Project.module:3853
msgid "Destination already exists." msgid "Destination already exists."
msgstr "" msgstr ""
#: Project.module:4056 #: Project.module:4065
msgid "Unable to rename '&1'" msgid "Unable to rename '&1'"
msgstr "" msgstr ""
#: Project.module:4172 #: Project.module:4181
msgid "Please type a project name." msgid "Please type a project name."
msgstr "" msgstr ""
#: Project.module:4180 #: Project.module:4189
msgid "The project name cannot begin with a dot." msgid "The project name cannot begin with a dot."
msgstr "" msgstr ""
#: Project.module:4183 #: Project.module:4192
msgid "Non-ASCII characters are forbidden in a project name." msgid "Non-ASCII characters are forbidden in a project name."
msgstr "" msgstr ""
#: Project.module:4184 #: Project.module:4193
msgid "" msgid ""
"The following characters are forbidden in a project name: ? * / \\ SPACE" "The following characters are forbidden in a project name: ? * / \\ SPACE"
msgstr "" msgstr ""
#: Project.module:4191 #: Project.module:4200
msgid "This project already exists." msgid "This project already exists."
msgstr "" msgstr ""
#: Project.module:4194 #: Project.module:4203
msgid "The project directory already exists." msgid "The project directory already exists."
msgstr "" msgstr ""
#: Project.module:4196 #: Project.module:4205
msgid "" msgid ""
"The project directory cannot be created because a file with the same name " "The project directory cannot be created because a file with the same name "
"already exists." "already exists."
msgstr "" msgstr ""
#: Project.module:4255 #: Project.module:4264
msgid "Create source package" msgid "Create source package"
msgstr "" msgstr ""
#: Project.module:4256 #: Project.module:4265
msgid "Source packages" msgid "Source packages"
msgstr "" msgstr ""
#: Project.module:4547 #: Project.module:4556
msgid "Cannot copy file &1." msgid "Cannot copy file &1."
msgstr "" msgstr ""
#: Project.module:4595 #: Project.module:4604
msgid "Cannot create link &1." msgid "Cannot create link &1."
msgstr "" msgstr ""
#: Project.module:4610 #: Project.module:4619
msgid "Cannot move a directory inside itself." msgid "Cannot move a directory inside itself."
msgstr "" msgstr ""
#: Project.module:4678 #: Project.module:4687
msgid "Cannot move file &1." msgid "Cannot move file &1."
msgstr "" msgstr ""
#: Project.module:5208 #: Project.module:5217
msgid "Project cleanup..." msgid "Project cleanup..."
msgstr "" msgstr ""
#: Project.module:5214 #: Project.module:5223
msgid "Project files conversion..." msgid "Project files conversion..."
msgstr "" msgstr ""
#: Project.module:5244 #: Project.module:5253
msgid "Unable to convert &1" msgid "Unable to convert &1"
msgstr "" msgstr ""

View file

@ -233,6 +233,7 @@ Private Sub RefreshConsole()
Settings["/ConsoleFont"] = txtConsoleFont.Text Settings["/ConsoleFont"] = txtConsoleFont.Text
FOutput.ReadConfig FOutput.ReadConfig
Project.InitWebView
End End
@ -706,6 +707,7 @@ Private Sub UpdateFont(sFont As String)
Else Else
Application.Font = Font[Project.DESKTOP_FONT] Application.Font = Font[Project.DESKTOP_FONT]
Endif Endif
Project.InitWebView
RefreshWindow RefreshWindow
Endif Endif

View file

@ -203,9 +203,10 @@ Public Sub _init()
End End
Private Sub InitWebView() Public Sub InitWebView()
Dim sPath As String Dim sPath As String
Dim hFont As Font
If Not WebSettings.Cache.Path Then If Not WebSettings.Cache.Path Then
sPath = System.User.Home &/ ".cache" sPath = System.User.Home &/ ".cache"
@ -217,6 +218,14 @@ Private Sub InitWebView()
WebSettings.Cache.Path = sPath WebSettings.Cache.Path = sPath
WebSettings.Cache.Enabled = True WebSettings.Cache.Enabled = True
Endif Endif
'WebSettings.Fonts.StandardFont = Application.Font.Name
WebSettings.Fonts.SansSerifFont = Application.Font.Name
WebSettings.Fonts.DefaultFontSize = Application.Font.Height
hFont = Font[Settings["/ConsoleFont", DEFAULT_FONT]]
WebSettings.Fonts.FixedFont = hFont.Name
WebSettings.Fonts.DefaultFixedFontSize = hFont.Height
End End