[CONFIGURATION]
* NEW: Switch to 3.4 version. [GB.COMPRESS.ZLIB] * BUG: Fix a file handle mistake. [GB.GUI.BASE] * NEW: Remove again the MyHSplit.class file. No idea how it came back into the repository... [GB.JIT] * BUG: Fix some warnings by using 'llvm-config.h' instead of 'config.h'. git-svn-id: svn://localhost/gambas/trunk@5485 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
parent
b2b47a4123
commit
e4477ce3b8
15
acinclude.m4
15
acinclude.m4
@ -64,25 +64,26 @@ AC_DEFUN([GB_PRINT_MESSAGES],
|
||||
|
||||
AC_DEFUN([GB_INIT_AUTOMAKE],
|
||||
[
|
||||
AM_INIT_AUTOMAKE($1, 3.3.90)
|
||||
AM_INIT_AUTOMAKE($1, 3.4.0)
|
||||
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES(yes)])
|
||||
##AM_SILENT_RULES([yes])
|
||||
AC_CONFIG_HEADER([config.h])
|
||||
AC_PREFIX_DEFAULT(/usr)
|
||||
|
||||
GAMBAS_VERSION=3
|
||||
GAMBAS_MINOR_VERSION=2
|
||||
GAMBAS_MINOR_VERSION=4
|
||||
|
||||
AC_SUBST(GAMBAS_VERSION)
|
||||
AC_SUBST(GAMBAS_MINOR_VERSION)
|
||||
|
||||
AC_DEFINE(GAMBAS_VERSION, 3, Gambas version)
|
||||
AC_DEFINE(GAMBAS_MINOR_VERSION, 3, Gambas minor version)
|
||||
AC_DEFINE(GAMBAS_VERSION_STRING, "3", Gambas version string)
|
||||
AC_DEFINE(GAMBAS_FULL_VERSION_STRING, "3.3", Gambas full version string)
|
||||
AC_DEFINE(GAMBAS_MINOR_VERSION, 4, Gambas minor version)
|
||||
|
||||
AC_DEFINE(GAMBAS_FULL_VERSION, 0x03030090, [Full Gambas version])
|
||||
AC_DEFINE(GAMBAS_PCODE_VERSION, 0x03030000, [Gambas bytecode version])
|
||||
AC_DEFINE(GAMBAS_VERSION_STRING, "3", Gambas version string)
|
||||
AC_DEFINE(GAMBAS_FULL_VERSION_STRING, "3.4", Gambas full version string)
|
||||
|
||||
AC_DEFINE(GAMBAS_FULL_VERSION, 0x03040000, [Full Gambas version])
|
||||
AC_DEFINE(GAMBAS_PCODE_VERSION, 0x03040000, [Gambas bytecode version])
|
||||
AC_DEFINE(GAMBAS_PCODE_VERSION_MIN, 0x03000000, [Minimum Gambas bytecode version])
|
||||
|
||||
GB_CLEAR_MESSAGES
|
||||
|
@ -143,7 +143,7 @@ Public Sub Form_Open()
|
||||
$bInitExistingTab = False
|
||||
UpdateExistingTab
|
||||
|
||||
lstType.Select(Null )
|
||||
lstType.Select(Null)
|
||||
If Not $sType Then $sType = "module"
|
||||
For Each hCtrl In lstType.Children
|
||||
If hCtrl.Tag = $sType Then
|
||||
@ -203,7 +203,7 @@ Private Sub CreateFile() As Boolean
|
||||
|
||||
Case Else
|
||||
|
||||
sMsg = Project.CheckClassName(sName, True )
|
||||
sMsg = Project.CheckClassName(sName, True)
|
||||
If sMsg Then
|
||||
txtName.SetFocus
|
||||
Balloon.Warning(sMsg, txtName)
|
||||
@ -246,7 +246,7 @@ Private Sub CreateFile() As Boolean
|
||||
sTemp = Replace(sTemp, "\t", Space$(Project.TabSize))
|
||||
Endif
|
||||
|
||||
Project.InsertSource(sName, "class", $sDir, sTemp, True , True )
|
||||
Project.InsertSource(sName, "class", $sDir, sTemp, True, True)
|
||||
|
||||
sTemp = Project.FORM_MAGIC & "\n\n" &
|
||||
"{ " & sName & " " & UCase(Left(sType)) & Mid$(sType, 2) & "\n"
|
||||
@ -292,7 +292,7 @@ Private Sub CreateFile() As Boolean
|
||||
|
||||
Case "webpage"
|
||||
|
||||
Project.InsertSource(sName, "class", $sDir, "' Gambas class file\n\n", True , True )
|
||||
Project.InsertSource(sName, "class", $sDir, "' Gambas class file\n\n", True, True)
|
||||
Project.InsertSource(sName, "webpage", $sDir, "<html>\n<body>\n<%\nPrint \"<h1>Gambas</h1>\";\n%>\n</body>\n</html>\n")
|
||||
|
||||
Case "text"
|
||||
@ -363,7 +363,7 @@ Private Sub ImportDependencies(sName As String, sExt As String, sOrig As String,
|
||||
|
||||
If Exist(sOrig &/ sImg) Then
|
||||
If Not Exist(sDestImg) Then
|
||||
Project.InsertFile(File.Name(sDestImg), File.Dir(sDestImg), sOrig &/ sImg, True , bLink)
|
||||
Project.InsertFile(File.Name(sDestImg), File.Dir(sDestImg), sOrig &/ sImg, True, bLink)
|
||||
Endif
|
||||
sLine = Left(sLine, iPos + 7) & Chr$(34) & "import" &/ sName &/ File.Name(sDestImg) & Chr$(34) & "]"
|
||||
bSave = True
|
||||
@ -415,15 +415,15 @@ Private Sub ImportFile() As Boolean
|
||||
|
||||
Case "form", "report"
|
||||
sName = File.BaseName(Project.GetUniqueSourceName(sName))
|
||||
Project.InsertSource(sName, "class", $sDir, File.SetExt(sTemp, "class"), True , True , chkLink.Value)
|
||||
Project.InsertSource(sName, sExt, $sDir, sTemp, False , True , chkLink.Value)
|
||||
Project.InsertSource(sName, "class", $sDir, File.SetExt(sTemp, "class"), True, True, chkLink.Value)
|
||||
Project.InsertSource(sName, sExt, $sDir, sTemp, False, True, chkLink.Value)
|
||||
ImportDependencies(sName, sExt, sTemp, chkLink.Value)
|
||||
Project.OpenForm(sName)
|
||||
|
||||
Case "webpage"
|
||||
sName = File.BaseName(Project.GetUniqueSourceName(sName))
|
||||
Project.InsertSource(sName, "class", $sDir, File.SetExt(sTemp, "class"), True , True , chkLink.Value)
|
||||
Project.InsertSource(sName, "webpage", $sDir, sTemp, False , False , chkLink.Value)
|
||||
Project.InsertSource(sName, "class", $sDir, File.SetExt(sTemp, "class"), True, True, chkLink.Value)
|
||||
Project.InsertSource(sName, "webpage", $sDir, sTemp, False, False, chkLink.Value)
|
||||
|
||||
Default
|
||||
sName = Project.GetUniqueName($sDir, sName)
|
||||
@ -443,7 +443,7 @@ Public Sub btnOK_Click()
|
||||
If ImportFile() Then Return
|
||||
Endif
|
||||
|
||||
Me.Close(True )
|
||||
Me.Close(True)
|
||||
|
||||
Catch
|
||||
|
||||
|
@ -1,88 +0,0 @@
|
||||
' Gambas class file
|
||||
|
||||
Inherits UserContainer
|
||||
|
||||
Public Const _Properties As String = "*,-Padding,-Spacing,-Arrangement,-AutoResize,-Indent"
|
||||
Public Const _DefaultArrangement As String = "V"
|
||||
Public Const _DefaultEvent As String = "Click"
|
||||
|
||||
Property Layout, Settings As Integer[]
|
||||
Event Resize
|
||||
|
||||
Private $hObs As Observer
|
||||
Private $bLayouting As Boolean
|
||||
|
||||
Public Sub _new()
|
||||
|
||||
Me._Arrangement = Arrange.None
|
||||
|
||||
$hObs = New Observer(Me) As "Container"
|
||||
|
||||
End
|
||||
|
||||
Public Sub Container_NewChild((Control) As Control)
|
||||
|
||||
Dim aLayout As Integer[]
|
||||
|
||||
aLayout = Layout_Read()
|
||||
Try aLayout[aLayout.Max] = aLayout[aLayout.Max - 1]
|
||||
Layout_Write(aLayout)
|
||||
|
||||
End
|
||||
|
||||
Public Sub Container_Arrange()
|
||||
|
||||
Layout_Write(Layout_Read())
|
||||
|
||||
End
|
||||
|
||||
|
||||
Private Function Layout_Read() As Integer[]
|
||||
|
||||
Dim aLayout As New Integer[]
|
||||
Dim hChild As Control
|
||||
|
||||
For Each hChild In Me.Children
|
||||
If Not hChild.Visible Then Continue
|
||||
aLayout.Add(hChild.Width)
|
||||
Next
|
||||
|
||||
Return aLayout
|
||||
|
||||
End
|
||||
|
||||
Private Sub Layout_Write(Value As Integer[])
|
||||
|
||||
Dim I, W, WMax, WTotal As Integer
|
||||
Dim iTotal As Integer
|
||||
Dim hChild As Control
|
||||
Dim X As Integer
|
||||
|
||||
If $bLayouting Or If Not Value Or If Value.Count = 0 Then Return
|
||||
|
||||
$bLayouting = True
|
||||
|
||||
Value.Resize(Me.Children.Count)
|
||||
|
||||
For I = 0 To Value.Max
|
||||
Value[I] = Max(1, Value[I])
|
||||
iTotal += Value[I]
|
||||
Next
|
||||
|
||||
WMax = Me.W - Value.Max
|
||||
For I = 0 To Value.Max - 1
|
||||
W = Value[I] * WMax / iTotal
|
||||
WTotal += W
|
||||
Me.Children[I].Width = W
|
||||
Next
|
||||
|
||||
Me.Children[Value.Max].Width = WMax - WTotal
|
||||
|
||||
For Each hChild In Me.Children
|
||||
hChild.Move(X, 0, hChild.W, Me.H)
|
||||
X += hChild.W + 1
|
||||
Next
|
||||
|
||||
$bLayouting = False
|
||||
|
||||
End
|
@ -332,8 +332,8 @@ static void u_File(char *source,char *target)
|
||||
{
|
||||
if (len != fwrite((void*)buf,sizeof(char),len,dst) )
|
||||
{
|
||||
fclose(src);
|
||||
gzclose(dst);
|
||||
fclose(dst);
|
||||
gzclose(src);
|
||||
GB.Error("Error while writing data");
|
||||
return;
|
||||
}
|
||||
|
@ -27,7 +27,8 @@
|
||||
|
||||
#include "gambas.h"
|
||||
#include "main.h"
|
||||
#include <llvm/Config/config.h>
|
||||
// Don't use <config.h> if we just need the version
|
||||
#include <llvm/Config/llvm-config.h>
|
||||
|
||||
extern "C" {
|
||||
GB_INTERFACE GB EXPORT;
|
||||
|
Loading…
x
Reference in New Issue
Block a user