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

View file

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

View file

@ -203,9 +203,10 @@ Public Sub _init()
End
Private Sub InitWebView()
Public Sub InitWebView()
Dim sPath As String
Dim hFont As Font
If Not WebSettings.Cache.Path Then
sPath = System.User.Home &/ ".cache"
@ -217,6 +218,14 @@ Private Sub InitWebView()
WebSettings.Cache.Path = sPath
WebSettings.Cache.Enabled = True
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