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

Some new functionality #1

Closed
wants to merge 25 commits into from
Closed

Some new functionality #1

wants to merge 25 commits into from

Conversation

jhitze
Copy link

@jhitze jhitze commented May 10, 2013

Hi,
I just wanted to offer back the change that I've made. I needed to be able to swap out just portions of a hosts file, so I made a Mods section. I also needed to download the mods from the webpage, so I added that too. In retrospect, I probably should have made them two separate branches, but I'm still trying to get the hang of Git.

Thanks,
Jacob Hitze

The goal of this fork is to add in mods. So users can select subsets
that should be swappable. For instance, those who wfh, at the office, on
a VPN for work. They don't want all of their hosts file entries to
changes, just a subsection of them.
Added Mod UI changes. updated mainform.cs to be able to handle the new
mod buttons.
updates and such. Hopefully.
Decided against having it. Mostly because I was able to get the bar on
the right to hold the mod stuff.
save is currently limited by the fact that the input box checks the
ARCHIVE directory only. It wasn't designed to look anywhere. Strange.
Allows the inputbox to validate against Mods as well.
added and binded hostsModView
updated the name to "View Archives/Mods" to accurately reflect its
function.
It could be confusing to the user if nothing appears to happen. So a
message box alerts the user that it's done.
Also got the main mod list to refresh to show the changes.
regex has a problem recognizing multiple results when they are on the
same line. By forcing a newline, the regex pattern recognizer will grab
all the results. This also let me find that the [To Parent Directory]
was recognized as a match. I've hard coded a removal of that result.
hope it's not too big of a problem later on.
@scottlerch
Copy link
Owner

Thanks! It looks like our line endings are different so the GitHub diff isn't working so well and I can't figure out the changes easily. Sorry, that's my bad since I'm new to Git as well so I normalized the line endings and added a .gitattributes file but I'm not sure how to reconcile your pull request's line endings now. I'll have to do a little more research and see what I should do. I did a quick clone of your fork and ran the program and noticed a few things:

  • It's not immediately clear how the mod button works, do I select the rows to save as a mod file?
  • The Archive toolbar button doesn't seem to work anymore
  • The mod datagridview isn't anchored to the right when resizing the pane
  • A splitcontainer would be nice for the archive and mod data grids so there is a splitter between them
  • The toolbar is above the menu bar now

If you could fix those issues that would be great, otherwise no worries, when I have some time I'll look into your changes in more detail and see if I can resolve the issues.

to match Scott's project.
added split container between the archive/mod datagrids
fixes issue #3
this bug was fixed by removing the mod save button which has no function
right now. Reassigning the archive button to the correct on_click
function and fixing the text solves this issue.
@scottlerch scottlerch closed this Oct 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants