Sunteți pe pagina 1din 13

Version 5#

Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"


Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Begin VB.Form frmMain
BackColor = &H80000013
Caption = "Traitement de donnes"
ClientHeight = 6540
ClientLeft = 165
ClientTop = 555
ClientWidth = 10365
FillColor = &H400000
LinkTopic = "Form1"
PaletteMode = 2
'Custom
ScaleHeight = 6540
ScaleWidth = 10365
StartUpPosition = 3 'Windows Default
WindowState = 2
'Maximized
Begin VB.CommandButton OptionsButton
BackColor = &HFF8080
Caption = "Options..."
BeginProperty Font
Name = "Arial"
Size = 12
Charset = 178
Weight = 700
Underline = 0
'False
Italic = 0
'False
Strikethrough = 0
'False
EndProperty
Height = 495
Left = 2235
Style = 1
'Graphical
TabIndex = 18
Top = 6600
Width = 1815
End
Begin VB.CommandButton quitter
BackColor = &HFF8080
Caption = "Quit"
BeginProperty Font
Name = "Arial"
Size = 12
Charset = 178
Weight = 700
Underline = 0
'False
Italic = 0
'False
Strikethrough = 0
'False
EndProperty
Height = 495
Left = 6315

Style = 1
'Graphical
TabIndex = 17
Top = 6600
Width = 1815
End
Begin VB.CommandButton Ouvrir
BackColor = &HC0FFFF
Caption = "Input file"
Default = -1
'True
BeginProperty Font
Name = "Arial"
Size = 12
Charset = 178
Weight = 700
Underline = 0
'False
Italic = 0
'False
Strikethrough = 0
'False
EndProperty
Height = 615
Left = 4402
MaskColor = &HC0FFFF
Picture
= "frmMain.frx":0000
Style = 1
'Graphical
TabIndex = 16
Top = 120
UseMaskColor = -1
'True
Width = 1860
End
Begin MSComctlLib.StatusBar sbStatusBar
Align = 2
'Align Bottom
Height = 270
Left = 0
TabIndex = 0
Top = 6270
Width = 10365
_ExtentX
= 18283
_ExtentY
= 476
_Version
= 393216
BeginProperty Panels {8E3867A5-8586-11D1-B16A-00C0F0283628}
NumPanels = 3
BeginProperty Panel1 {8E3867AB-8586-11D1-B16A-00C0F0283628}
AutoSize = 1
Object.Width = 12621
Text = "Prt"
TextSave = "Prt"
EndProperty
BeginProperty Panel2 {8E3867AB-8586-11D1-B16A-00C0F0283628}
Style = 6
AutoSize = 2
TextSave = "12.11.2003"

EndProperty
BeginProperty Panel3 {8E3867AB-8586-11D1-B16A-00C0F0283628}
Style = 5
AutoSize = 2
TextSave = "20:52"
EndProperty
EndProperty
End
Begin MSComDlg.CommonDialog dlgCommonDialog
Left = 9720
Top = 120
_ExtentX
= 847
_ExtentY
= 847
_Version
= 393216
End
Begin VB.Frame Frame1
BackColor = &H80000013
Caption = "Graphics"
BeginProperty Font
Name = "Arial"
Size = 12
Charset = 178
Weight = 700
Underline = 0
'False
Italic = 0
'False
Strikethrough = 0
'False
EndProperty
ForeColor = &H0&
Height = 5295
Left = 240
TabIndex = 1
Top = 840
Width = 11295
Begin VB.CommandButton Seuils
BackColor = &H80C0FF
Caption = "Define tresholds"
Enabled = 0
'False
BeginProperty Font
Name = "Arial"
Size = 9.75
Charset = 178
Weight = 700
Underline = 0
'False
Italic = 0
'False
Strikethrough = 0
'False
EndProperty
Height = 615
Left = 4200
Style = 1
'Graphical
TabIndex = 15

TooltipText = "Dfinir les seuils"


Top = 3000
Width = 1695
End
Begin VB.OptionButton OptionGr7
BackColor = &HFFC0C0
Caption = "Signal quality distribution of networks"
BeginProperty Font
Name = "Arial"
Size = 9.75
Charset = 178
Weight = 700
Underline = 0
'False
Italic = 0
'False
Strikethrough = 0
'False
EndProperty
ForeColor = &H0&
Height = 615
Left = 6240
MaskColor = &H400000
TabIndex = 14
Top = 480
Width = 3735
End
Begin VB.OptionButton OptionGr11
BackColor = &HFFC0C0
Caption = "MS Tx Power"
BeginProperty Font
Name = "Arial"
Size = 9.75
Charset = 178
Weight = 700
Underline = 0
'False
Italic = 0
'False
Strikethrough = 0
'False
EndProperty
ForeColor = &H0&
Height = 615
Left = 6240
MaskColor = &H400000
TabIndex = 13
Top = 2070
Width = 3735
End
Begin VB.OptionButton OptionGr10
BackColor = &HFFC0C0
Caption = "TA distribution"
BeginProperty Font
Name = "Arial"
Size = 9.75

Charset = 178
Weight = 700
Underline = 0
'False
Italic = 0
'False
Strikethrough = 0
'False
EndProperty
ForeColor = &H0&
Height = 615
Left = 6240
MaskColor = &H400000
TabIndex = 12
Top = 2850
Width = 3735
End
Begin VB.OptionButton OptionGr12
BackColor = &HFFC0C0
Caption = "Channel rate"
BeginProperty Font
Name = "Arial"
Size = 9.75
Charset = 178
Weight = 700
Underline = 0
'False
Italic = 0
'False
Strikethrough = 0
'False
EndProperty
ForeColor = &H0&
Height = 615
Left = 6240
MaskColor = &H400000
TabIndex = 11
Top = 3645
Width = 3735
End
Begin VB.OptionButton OptionTous
BackColor = &HFFC0C0
Caption = "All graphics on the same form"
BeginProperty Font
Name = "Arial"
Size = 9.75
Charset = 178
Weight = 700
Underline = 0
'False
Italic = 0
'False
Strikethrough = 0
'False
EndProperty
ForeColor = &H0&
Height = 615
Left = 3315
MaskColor = &H400000

TabIndex = 10
TooltipText = "Visualiser tous les graphiques sur le mme cran et sauvegarder sur Word
en quittant"
Top = 4560
Value = -1
'True
Width = 3735
End
Begin VB.OptionButton OptionGr8
BackColor = &HFFC0C0
Caption = "Average signal quality of networks"
BeginProperty Font
Name = "Arial"
Size = 9.75
Charset = 178
Weight = 700
Underline = 0
'False
Italic = 0
'False
Strikethrough = 0
'False
EndProperty
ForeColor = &H0&
Height = 615
Left = 6240
MaskColor = &H400000
TabIndex = 9
Top = 1275
Width = 3735
End
Begin VB.CommandButton Run
BackColor = &H80C0FF
Caption = "RUN"
Enabled = 0
'False
BeginProperty Font
Name = "Arial"
Size = 12
Charset = 178
Weight = 700
Underline = 0
'False
Italic = 0
'False
Strikethrough = 0
'False
EndProperty
Height = 735
Left = 9840
MaskColor = &H400000
Picture
= "frmMain.frx":0532
Style = 1
'Graphical
TabIndex = 8
TooltipText = "Excuter "
Top = 4320
UseMaskColor = -1
'True
Width = 975

End
Begin VB.OptionButton OptionGr1
BackColor = &HFFC0C0
Caption = "Number of used BCCHs"
BeginProperty Font
Name = "Arial"
Size = 9.75
Charset = 178
Weight = 700
Underline = 0
'False
Italic = 0
'False
Strikethrough = 0
'False
EndProperty
ForeColor = &H0&
Height = 375
Left = 360
MaskColor = &H400000
TabIndex = 7
Top = 1200
Width = 3735
End
Begin VB.OptionButton OptionGr6
BackColor = &HFFC0C0
Caption = "Average signal strength of networks"
BeginProperty Font
Name = "Arial"
Size = 9.75
Charset = 178
Weight = 700
Underline = 0
'False
Italic = 0
'False
Strikethrough = 0
'False
EndProperty
ForeColor = &H0&
Height = 615
Left = 360
MaskColor = &H400000
TabIndex = 6
Top = 3840
Width = 3735
End
Begin VB.OptionButton OptionGr4
BackColor = &HFFC0C0
Caption = "Signal strength of distribution networks"
BeginProperty Font
Name = "Arial"
Size = 9.75
Charset = 178
Weight = 700
Underline = 0
'False

Italic = 0
'False
Strikethrough = 0
'False
EndProperty
ForeColor = &H0&
Height = 615
Left = 360
MaskColor = &H400000
TabIndex = 5
Top = 3000
Width = 3735
End
Begin VB.OptionButton OptionGr3
BackColor = &HFFC0C0
Caption = "Handover success rate"
BeginProperty Font
Name = "Arial"
Size = 9.75
Charset = 178
Weight = 700
Underline = 0
'False
Italic = 0
'False
Strikethrough = 0
'False
EndProperty
ForeColor = &H0&
Height = 375
Left = 360
MaskColor = &H400000
TabIndex = 4
Top = 2400
Width = 3735
End
Begin VB.OptionButton OptionGr2
BackColor = &HFFC0C0
Caption = "Handover statistics"
BeginProperty Font
Name = "Arial"
Size = 9.75
Charset = 178
Weight = 700
Underline = 0
'False
Italic = 0
'False
Strikethrough = 0
'False
EndProperty
ForeColor = &H0&
Height = 375
Left = 360
MaskColor = &H400000
TabIndex = 3
Top = 1800
Width = 3735

End
Begin VB.OptionButton OptionGr0
BackColor = &HFFC0C0
Caption = "Number of serving cells"
BeginProperty Font
Name = "Arial"
Size = 9.75
Charset = 178
Weight = 700
Underline = 0
'False
Italic = 0
'False
Strikethrough = 0
'False
EndProperty
ForeColor = &H0&
Height = 375
Left = 360
MaskColor = &H400000
TabIndex = 2
Top = 540
Width = 3735
End
End
End
Attribute VB_Name = "frmMain"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim debut As Boolean
Private Sub Form_Load()
Me.Left = GetSetting(App.Title, "Settings", "MainLeft", 1000)
Me.Top = GetSetting(App.Title, "Settings", "MainTop", 1000)
Me.Width = GetSetting(App.Title, "Settings", "MainWidth", 6500)
Me.Height = GetSetting(App.Title, "Settings", "MainHeight", 6500)
End Sub
Private Sub Form_Unload(Cancel As Integer)
Dim i As Integer
Dim numfile
'close all sub forms
For i = Forms.Count - 1 To 1 Step -1
Unload Forms(i)
Next
If Me.WindowState <> vbMinimized Then
SaveSetting App.Title, "Settings", "MainLeft", Me.Left
SaveSetting App.Title, "Settings", "MainTop", Me.Top
SaveSetting App.Title, "Settings", "MainWidth", Me.Width
SaveSetting App.Title, "Settings", "MainHeight", Me.Height

End If
'save options
numfile = FreeFile
Open "MS.DAT" For Output As #numfile
For i = 1 To 3
Print #numfile, MSTable(i)
Next i
Close (numfile)
End
End Sub
Private Sub OptionsButton_Click()
Options.Show
End Sub
Private Sub Ouvrir_Click()
Dim sFile As String
Dim rstSchema As ADODB.Recordset
On Error GoTo gesterreur
With dlgCommonDialog
.DialogTitle = "Ouvrir"
.CancelError = False
'Dfinir les indicateurs et les attributs du contrle des dialogues communs
.Filter = "Fichiers Access (*.mdb)|*.mdb"
.ShowOpen
If Len(.Filename) = 0 Then
Exit Sub
End If
sFile = .Filename
If Ouverte Then
cBase.Close
End If
cBase.ConnectionString = sFile
cBase.Open
Set rstSchema = cBase.OpenSchema(adSchemaTables)
NomTable = rstSchema!TABLE_NAME
rstSchema.Close
Ouverte = True
Run.Enabled = True
Seuils.Enabled = True
debut = True
Seuils_Click
PrepareDonnees
debut = False
End With
Exit Sub
gesterreur:

MsgBox "Erreur d'ouverture de la base"


' faire : Ajouter le code de traitement du fichier ouvert
End Sub
Private Sub QUitter_Click()
Dim w As Document
Dim graphe As Control
Dim rep
'enregistrement sur Word
rep = MsgBox("Voulez-vous enregistrer les graphes", vbYesNo)
If rep = vbYes Then
Set w = New Document
w.Application.Visible = True
Documents.Add
ActiveDocument.Range.InsertAfter "Les graphiques"
ActiveDocument.Range.InsertParagraph
'tousgr1
Load tousgr1
tousgr1.Visible = False
For Each graphe In tousgr1
If (graphe.Name <> "quitter") And (graphe.Name <> "Fermer") Then
graphe.Visible = False
graphe.Height = Screen.Height * 0.9
graphe.Width = Screen.Width * 0.9
graphe.EditCopy
Selection.Range.PasteSpecial DisplayAsIcon:=False,
DataType:=wdPasteDeviceIndependentBitmap
ActiveDocument.Range.InsertBefore graphe.TitleText
ActiveDocument.Range.InsertParagraphAfter
Selection.Collapse Direction:=wdCollapseStart
Selection.Range.InsertBreak Type:=wdPageBreak
End If
Next graphe
Unload tousgr1
'tousgr2
Load tousgr2
tousgr2.Visible = False
Documents.Add
ActiveDocument.Range.InsertParagraph
For Each graphe In tousgr2
If (graphe.Name <> "quitter") And (graphe.Name <> "Previous") And (graphe.Name <>
"Fermer") Then
graphe.Visible = False
graphe.Height = Screen.Height * 0.9
graphe.Width = Screen.Width * 0.9
graphe.EditCopy

Selection.Range.PasteSpecial DisplayAsIcon:=False,
DataType:=wdPasteDeviceIndependentBitmap
ActiveDocument.Range.InsertBefore graphe.TitleText
ActiveDocument.Range.InsertParagraphAfter
Selection.Collapse Direction:=wdCollapseStart
Selection.Range.InsertBreak Type:=wdPageBreak
End If
Next graphe
Unload tousgr2
'tousgr3
Load tousgr3
tousgr3.Visible = False
Documents.Add
ActiveDocument.Range.InsertParagraph
For Each graphe In tousgr3
If (graphe.Name <> "quitter") And (graphe.Name <> "Previous") Then
graphe.Visible = False
graphe.Height = Screen.Height * 0.9
graphe.Width = Screen.Width * 0.9
graphe.EditCopy
Selection.Range.PasteSpecial DisplayAsIcon:=False,
DataType:=wdPasteDeviceIndependentBitmap
ActiveDocument.Range.InsertBefore graphe.TitleText
ActiveDocument.Range.InsertParagraphAfter
Selection.Collapse Direction:=wdCollapseStart
Selection.Range.InsertBreak Type:=wdPageBreak
End If
Next graphe
Unload tousgr3
End If
Unload Me
End Sub
Private Sub Run_Click()
If OptionGr0 Then
Graphe0.Show
ElseIf OptionGr1 Then
Graphe1.Show
ElseIf OptionGr2 Then
Graphe2.Show
ElseIf OptionGr3 Then
Graphe3.Show
ElseIf (OptionGr4 And SeuilsSaisis) Then
Graphe4.Show
ElseIf OptionGr6 Then
Graphe6.Show

ElseIf (OptionGr7) And (Slongueur) > 0 Then


Graphe7.Show
ElseIf OptionGr8 Then
Graphe8.Show
ElseIf (OptionGr10) And (Tlongueur) > 0 Then
Graphe10.Show
ElseIf (OptionGr11) And (Mlongueur) > 0 Then
Graphe11.Show
ElseIf OptionGr12 Then
Graphe12.Show
ElseIf OptionTous Then
tousgr1.Show
Else
MsgBox "Option non disponible. Donnes insuffisantes"
End If
End Sub
Private Sub Seuils_Click()
Dialog.Show (1)
If Not debut Then
gr4donnees
End If
End Sub

S-ar putea să vă placă și