Skip to content

Commit

Permalink
Minor Incremental Update V0.3.1
Browse files Browse the repository at this point in the history
This is just prep work for adding in the backend.
Fixed many warnings during runtime and compiling.
See Changelog for more info.
  • Loading branch information
DGxInfinitY committed Jun 13, 2017
1 parent 7157fcd commit e253d7f
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 23 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
# V0.3.1
Simple Bug Fix...
Preparation for backend has begun, more functionality has been added in the executable.
espflasher.vala has been modified with extra functions for the hooking into the Ui and backend.
Inclusion of Granite library will help aid in adding functions and allowing me to quickly build the application.
espflasher.ui has been updated with a few small Ui fixes as well as a new About Dialog that still needs implementing.
If you could be of assistance in helping me get that working I'd be greatly appreciative...

# v0.3
New Ui enhancements, and code rework.
espflasher.vala was changed to shorten as well as remove unused code.
The Binary was compiled using the new version 0.3 vala code.
And changes to the Ui have been commited to the espflasher.ui file.
And changes to the Ui have been committed to the espflasher.ui file.
Ui enhancements include adding spacers, packing everything to make it look better,
and adding better button, label, and list looks to the program.

Expand Down
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
This is a Public test Repo for ESP Flasher.

This Repo contains an Alpha version of the ESP Flasher Program developed by Donovan Goodwin (DGxInfinitY).
This version of ESP Flasher is unusable as of Version 0.3.
This version of ESP Flasher is unusable as of Version 0.3.1.

ESP Flasher is built on:

Expand Down Expand Up @@ -38,7 +38,8 @@ If you're on MacOS you can install vala and it's compiler using homebrew: <code>
If you're on Windows you can install vala and it's compiler by following the info on this page:
https://wiki.gnome.org/Projects/Vala/ValaOnWindows

# Roadmap
I am wanting to have the program in a working state by the end of this month if at all possible, it is going to be hard with
my birthday being this month as well as my sister's, grandpa's, and brother's but I will try my hardest to get the back end
functioning this month.
# To Do list
1. Getting the About Dialog to open after pressing the about button(It may also be better to get it to open from a seperate Ui file)
2. Getting File Manager and Board Selector to look in the right places for device as well as filtering the selectable files.
3. Converting the esptool python program to Linux executable for greatest portability as well as ease of use.
4. Implementing a way for us to hook into the esptool program.
Binary file modified src/espflasher
Binary file not shown.
12 changes: 7 additions & 5 deletions src/espflasher.ui
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.18.3 -->
<!-- ESPFlasher Interface Version 0.3.1 -->
<interface>
<requires lib="gtk+" version="3.12"/>
<object class="GtkWindow" id="window1">
Expand Down Expand Up @@ -53,7 +54,7 @@
<property name="can_focus">False</property>
<property name="halign">center</property>
<property name="valign">center</property>
<property name="label" translatable="yes">Alpha v0.3</property>
<property name="label" translatable="yes">Alpha v0.3.1</property>
</object>
<packing>
<property name="expand">False</property>
Expand Down Expand Up @@ -260,13 +261,14 @@
<child>
<object class="GtkButton" id="about_button">
<property name="label">gtk-about</property>
<property name="name">about_button</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="use_stock">True</property>
<property name="yalign">0.50999999046325684</property>
<property name="always_show_image">True</property>
<signal name="clicked" handler="GtkAboutDialog" swapped="no"/>
<signal name="clicked" handler="about_button_clicked" swapped="no"/>
</object>
<packing>
<property name="expand">True</property>
Expand Down Expand Up @@ -311,16 +313,16 @@
<property name="transient_for">window1</property>
<property name="attached_to">about_button</property>
<property name="program_name">ESP Flasher</property>
<property name="version">V0.3 Alpha</property>
<property name="version">V0.3.1 Alpha</property>
<property name="comments" translatable="yes">This Program uses the esptool backend to flash .bin files
onto the esp8266.</property>
<property name="website">https://github.com/DGxInfinitY/Vault-Project</property>
<property name="website_label" translatable="yes">More info</property>
<property name="authors">Donovan Goodwin</property>
<property name="documenters">Donovan Goodwin</property>
<property name="artists">Donovan Goodwin</property>
<property name="logo_icon_name">utilities-terminal</property>
<property name="license_type">gpl-3-0</property>
<property name="logo"/>
<property name="license_type">lgpl-2-1</property>
<child internal-child="vbox">
<object class="GtkBox" id="aboutdialog-vbox1">
<property name="can_focus">False</property>
Expand Down
40 changes: 28 additions & 12 deletions src/espflasher.vala
Original file line number Diff line number Diff line change
@@ -1,27 +1,43 @@
/*
//Version 0.3 Alpha
//ESPFlasher by Donovan Goodwin
// Version 0.3.1 Alpha
// ESPFlasher by Donovan Goodwin
*/
using Gtk;
using Granite;

public void about_button_clicked() {
//Adding Stuff Here
}
public void help_clicked() {
//Adding Stuff Here
}
public void upload_clicked() {
//Adding Stuff Here
}

/*
// Here I am going to add the functions of the buttons
// To allow for selecting, uploading, and monitoring
// Of ESP operations.
//
*/
int main (string[] args) {
Gtk.init (ref args);

try {
// If the UI contains custom widgets, their types must've been instantiated once
// Type type = typeof(Foo.BarEntry);
// assert(type != 0);
//Type type = typeof(aboutdialog);
//assert(type != 0);
var builder = new Builder ();
builder.add_from_file ("espflasher.ui");
builder.connect_signals (null);
var window = builder.get_object ("window1") as Window;
//var aboutdialog = builder.get_object ("aboutdialog") as Gtkaboutdialog;
var window = builder.get_object("window1") as Window;
//var aboutdialog = builder.get_object("aboutdialog");


//string[] authors = {"Donovan Goodwin", "The Irish Dragon"};
// Use property names as keys
//Gtk.show_about_dialog (window,
//program_name: "ESP Flasher",
//copyright: "Copyright © 1998-2000 Gyro Gearloose",
//authors: authors,
//website: "http://gihub.com/dgxinfinity/Vault-Project",
//website_label: "Github");

window.show_all ();
Gtk.main ();
} catch (Error e) {
Expand Down

0 comments on commit e253d7f

Please sign in to comment.