Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updating master #54

Merged
merged 74 commits into from
May 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
30e4156
Added single and multiple buttons. Changed number of missing to numbe…
EstherNjeriLiberatta Feb 21, 2022
92a40e5
Swapped the Count and Standard Deviation radio buttons.
EstherNjeriLiberatta Feb 21, 2022
49a3d57
Added user defined button to the dialogue.
EstherNjeriLiberatta Feb 23, 2022
940c765
Separated first line of code from the apply function.
EstherNjeriLiberatta Feb 23, 2022
9aa60a5
Fixed error when dialogue reopens after ucrInput is filled.
EstherNjeriLiberatta Feb 28, 2022
4884a7d
Added Omit missing values checkbox, returned missing code "ucr…
EstherNjeriLiberatta Mar 8, 2022
8a31f8f
Added new functions to the more option.
EstherNjeriLiberatta Mar 10, 2022
5f38228
Installed the statip package.
EstherNjeriLiberatta Mar 10, 2022
1998022
Added a function to convert 2 digit year to 4 digit year.
anastasia-mbithe Mar 25, 2022
48d5225
Merge pull request #39 from anastasia-mbithe/ClimaticConversions
N-thony Mar 25, 2022
c2714d2
Minor bug fixes
N-thony Mar 25, 2022
c62f070
Merge pull request #44 from N-thony/Anastasia_branch
anastasia-mbithe Mar 25, 2022
9cff7a0
changed the function name
anastasia-mbithe Mar 28, 2022
156f690
Minor changes
anastasia-mbithe Mar 29, 2022
ebb4bcf
Fixes on Duplicates Dialogue
derekagorhom Apr 3, 2022
0b7a015
Made changes to the design by adding new controls in the dialog.
anastasia-mbithe Apr 4, 2022
d1b0615
Minor changes
anastasia-mbithe Apr 4, 2022
fd236f6
Minor change
anastasia-mbithe Apr 4, 2022
e9b230d
Replacing apply with rowwise function
EstherNjeriLiberatta Apr 5, 2022
6f085f6
Fixed bug when colour is applied
N-thony Apr 5, 2022
e7a5366
Minor code change
N-thony Apr 5, 2022
beb8213
Minor bug fix in Merge Additional Dialogue
N-thony Apr 5, 2022
26255ed
Linked the Save control with the Year option
anastasia-mbithe Apr 5, 2022
4e228bd
Minor changes on code.
EstherNjeriLiberatta Apr 6, 2022
a063b2b
Updating functions to use dplyr
EstherNjeriLiberatta Apr 7, 2022
f39b159
Minor change on test enable, removed colour column in column metadata…
N-thony Apr 10, 2022
50cc727
Minor code change
N-thony Apr 10, 2022
59dffaa
Minor code and design change
N-thony Apr 10, 2022
622d71f
Added autofill class by default if not colour applied
N-thony Apr 10, 2022
2ded79b
Changes to ControlContents event
conlooptechnologies Apr 11, 2022
97e7084
removed syntax bug
conlooptechnologies Apr 11, 2022
72bfa22
Updated worksheet style as it was overriding the back colour
ChrisMarsh82 Apr 12, 2022
4b6c68f
Reverted the code on checking if colour is applied
N-thony Apr 12, 2022
ad2f69e
Coding Multiple receiver
EstherNjeriLiberatta Apr 13, 2022
9ef4dd9
Adding base function
EstherNjeriLiberatta Apr 13, 2022
c30815e
Minor changes
EstherNjeriLiberatta Apr 13, 2022
fc7f967
Minor changes on first line of code
EstherNjeriLiberatta Apr 13, 2022
869f037
Minor code amendements
EstherNjeriLiberatta Apr 13, 2022
8cfa529
Merge pull request #9 from Patowhiz/NewDerickTranslations
derekagorhom Apr 15, 2022
00ceaa0
Fixed some errors and made minor changes on code.
EstherNjeriLiberatta Apr 16, 2022
55c2f37
Bug fixes when colimn selection is applied
N-thony Apr 17, 2022
35a462d
Minor bug fixes
N-thony Apr 17, 2022
7508466
Fixed bugs and made amendments on the code.
EstherNjeriLiberatta Apr 18, 2022
198ffaf
Minor code change
N-thony Apr 18, 2022
ea71293
Minor changes on the designer and removing mfv function.
EstherNjeriLiberatta Apr 19, 2022
1532763
Update instat/dlgDuplicates.vb
lloyddewit Apr 20, 2022
6ac3489
Minore designer changes.
EstherNjeriLiberatta Apr 20, 2022
99602c1
Minor bug fixes
N-thony Apr 21, 2022
c469ff9
Minor code change
N-thony Apr 22, 2022
8150e17
reverted the commented if statement
N-thony Apr 22, 2022
bfeecc9
Merge branch 'master' into issue7232-colour-property
N-thony Apr 22, 2022
4fc8cc0
Changed columns position in the DataFrame Metadata grid
N-thony Apr 22, 2022
c19fbd2
Minor improvements on dialogue.
EstherNjeriLiberatta Apr 23, 2022
d17d317
Update instat/ucrInput.vb
conlooptechnologies Apr 25, 2022
b2f1ca4
Minor code change
N-thony Apr 25, 2022
fd64b7d
Added lines break
N-thony Apr 25, 2022
0ea5e70
Minor bug fix
N-thony Apr 26, 2022
34a53e8
Merge remote-tracking branch 'origin/master' into issue7232-colour-pr…
N-thony Apr 26, 2022
63e141d
resolved the build error
N-thony Apr 26, 2022
2c7d66e
Deleted dlgPopulationPyramids dialog
conlooptechnologies Apr 27, 2022
388a02e
Minor amendments on code.
EstherNjeriLiberatta Apr 27, 2022
dfce374
Fixed ucrInputProbability
EstherNjeriLiberatta Apr 27, 2022
32b898b
Minor changes on code and bug fixes.
EstherNjeriLiberatta Apr 28, 2022
331d2da
Changes quantile to quantiles in the multiple receiver.
EstherNjeriLiberatta Apr 28, 2022
6138318
Improved help file within which most of the dialogue help for the Fil…
N-thony May 3, 2022
9d7f8cb
Merge pull request #7415 from N-thony/issue7414-small-bug-in-merge-di…
lloyddewit May 3, 2022
9caa65e
Merge pull request #7368 from Patowhiz/RegularSeqNewBug
lloyddewit May 3, 2022
4cbce5e
Merge pull request #7439 from N-thony/help-file
lloyddewit May 3, 2022
23f1599
Update instat/dlgRowSummary.vb
lloyddewit May 3, 2022
0593b0e
Merge pull request #7248 from EstherNjeriLiberatta/Row_statistics_dia…
lloyddewit May 3, 2022
4064cbe
Merge pull request #7329 from anastasia-mbithe/ClimaticConversions
lloyddewit May 3, 2022
51a9016
Merge pull request #7355 from N-thony/issue7232-colour-property
lloyddewit May 3, 2022
e53b640
Merge pull request #7354 from derekagorhom/Changes_In_Duplicate_Dialogue
lloyddewit May 3, 2022
8bc9d15
Merge pull request #7402 from N-thony/issue7339-simple-edits-metadata
lloyddewit May 3, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion instat/Model/DataFrame/clsDataFramePage.vb
Original file line number Diff line number Diff line change
Expand Up @@ -293,9 +293,10 @@ Public Class clsDataFramePage
End If
_lstColumns.Clear()


For i = 0 To _clsRDotNetDataFrame.ColumnNames.ToList.Count - 1
columnHeader = GetColumnDispayDetails(_clsRDotNetDataFrame.ColumnNames.ToList(i), vecColumnDataTypes(i))
If bApplyBackGroundColumnColours AndAlso vecColumnColours IsNot Nothing Then
If bApplyBackGroundColumnColours AndAlso Not Double.IsNaN(vecColumnColours(i)) Then
columnHeader.clsBackGroundColour = GetColumnBackGroundColor(i, vecColumnColours(i).ToString())
End If
_lstColumns.Add(columnHeader)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ Public Class ucrDataframeMetadataReoGrid
grdData.Worksheets(0).SetSettings(unvell.ReoGrid.WorksheetSettings.Edit_DragSelectionToMoveCells, False)
grdData.Worksheets(0).SetSettings(unvell.ReoGrid.WorksheetSettings.Edit_DragSelectionToMoveCells, False)
grdData.Worksheets(0).SetSettings(unvell.ReoGrid.WorksheetSettings.Edit_DragSelectionToFillSerial, False)
grdData.Worksheets(0).SetSettings(unvell.ReoGrid.WorksheetSettings.View_AllowCellTextOverflow, False)
grdData.Worksheets(0).SelectionForwardDirection = unvell.ReoGrid.SelectionForwardDirection.Down
grdData.SheetTabNewButtonVisible = False
AttachEventsToWorksheet(grdData.Worksheets(0))
Expand Down
13 changes: 11 additions & 2 deletions instat/UserControls/DataGrid/ReoGrid/ucrReoGrid.vb
Original file line number Diff line number Diff line change
Expand Up @@ -190,15 +190,24 @@ Public MustInherit Class ucrReoGrid
End Function

Private Sub UpdateWorksheetStyle(workSheet As Worksheet)
'issue with reo grid that means if RangePosition.EntireRange is used then the back color
'changes. This would then override the back color set in R
If frmMain.clsInstatOptions IsNot Nothing Then
workSheet.SetRangeStyles(RangePosition.EntireRange, New WorksheetRangeStyle() With {
'Set enitre range apart from top row
workSheet.SetRangeStyles(New RangePosition(1, 0, workSheet.RowCount, workSheet.ColumnCount), New WorksheetRangeStyle() With {
.Flag = PlainStyleFlag.TextColor Or PlainStyleFlag.FontSize Or PlainStyleFlag.FontName,
.TextColor = frmMain.clsInstatOptions.clrEditor,
.FontSize = frmMain.clsInstatOptions.fntEditor.Size,
.FontName = frmMain.clsInstatOptions.fntEditor.Name
})
'Set top row
workSheet.SetRangeStyles(New RangePosition(0, 0, 1, workSheet.ColumnCount), New WorksheetRangeStyle() With {
.Flag = PlainStyleFlag.TextColor Or PlainStyleFlag.FontSize Or PlainStyleFlag.FontName,
.TextColor = frmMain.clsInstatOptions.clrEditor,
.FontSize = frmMain.clsInstatOptions.fntEditor.Size,
.FontName = frmMain.clsInstatOptions.fntEditor.Name
})
End If

End Sub

Private Sub ucrReoGrid_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Expand Down
6 changes: 3 additions & 3 deletions instat/dlgColourbyProperty.Designer.vb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 34 additions & 4 deletions instat/dlgColourbyProperty.vb
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@
' along with this program. If not, see <http://www.gnu.org/licenses/>.

Imports instat.Translations
Imports RDotNet
Public Class dlgColourbyProperty
Public bFirstLoad As Boolean = True
Private clsColourByMetadata As New RFunction
Private clsRemoveColour As New RFunction
Private bReset As Boolean = True
Private bApplyColumnColours As Boolean

Private Sub dlgColourbyProperty_Load(sender As Object, e As EventArgs) Handles MyBase.Load
If bFirstLoad Then
Expand All @@ -32,6 +34,8 @@ Public Class dlgColourbyProperty
SetRCodeForControls(bReset)
bReset = False
TestOKEnabled()
AutoFill()
SetBaseFunction()
autoTranslate(Me)
End Sub

Expand Down Expand Up @@ -61,7 +65,6 @@ Public Class dlgColourbyProperty

clsColourByMetadata.SetRCommand(frmMain.clsRLink.strInstatDataObject & "$set_column_colours_by_metadata")
clsRemoveColour.SetRCommand(frmMain.clsRLink.strInstatDataObject & "$remove_column_colours")

ucrBase.clsRsyntax.SetBaseRFunction(clsColourByMetadata)
End Sub

Expand All @@ -73,7 +76,7 @@ Public Class dlgColourbyProperty
End Sub

Private Sub TestOKEnabled()
If Not ucrReceiverMetadataProperty.IsEmpty Then
If Not ucrReceiverMetadataProperty.IsEmpty OrElse ucrChkRemoveColours.Checked Then
ucrBase.OKEnabled(True)
Else
ucrBase.OKEnabled(False)
Expand All @@ -86,14 +89,41 @@ Public Class dlgColourbyProperty
TestOKEnabled()
End Sub

Private Sub ucrChkRemoveColours_ControlValueChanged(ucrChangedControl As ucrCore) Handles ucrChkRemoveColours.ControlValueChanged
If ucrChkRemoveColours.Checked Then

Private Sub AutoFill()
If ucrSelectorColourByMetadata.lstAvailableVariable.Items.Count > 0 Then
Dim clsHasColoursFunc As New RFunction
clsHasColoursFunc.SetRCommand(frmMain.clsRLink.strInstatDataObject & "$has_colours")
clsHasColoursFunc.AddParameter("data_name", Chr(34) & ucrSelectorColourByMetadata.ucrAvailableDataFrames.strCurrDataFrame & Chr(34))
bApplyColumnColours = frmMain.clsRLink.RunInternalScriptGetValue(clsHasColoursFunc.ToScript()).AsLogical(0)
If Not bApplyColumnColours Then
For Each lviItem As ListViewItem In ucrSelectorColourByMetadata.lstAvailableVariable.Items
If lviItem.Text = "class" Then
ucrReceiverMetadataProperty.Add(lviItem.Text, ucrSelectorColourByMetadata.ucrAvailableDataFrames.strCurrDataFrame)
Exit For
End If
Next
End If
ucrChkRemoveColours.Visible = bApplyColumnColours
End If
End Sub

Private Sub SetBaseFunction()
If ucrChkRemoveColours.Checked AndAlso bApplyColumnColours Then
ucrBase.clsRsyntax.SetBaseRFunction(clsRemoveColour)
Else
ucrBase.clsRsyntax.SetBaseRFunction(clsColourByMetadata)
End If
End Sub

Private Sub ucrChkRemoveColours_ControlValueChanged(ucrChangedControl As ucrCore) Handles ucrChkRemoveColours.ControlValueChanged
SetBaseFunction()
End Sub

Private Sub ucrSelectorColourByMetadata_ControlValueChanged(ucrChangedControl As ucrCore) Handles ucrSelectorColourByMetadata.ControlValueChanged
AutoFill()
End Sub

Private Sub Controls_ControContententsChanged(ucrChangedControl As ucrCore) Handles ucrSelectorColourByMetadata.ControlContentsChanged, ucrReceiverMetadataProperty.ControlContentsChanged, ucrChkRemoveColours.ControlContentsChanged
TestOKEnabled()
End Sub
Expand Down
Loading