Skip to content

Commit fd1ce5c

Browse files
committed
Version 1.3
mac.xcodeproj, globals.cpp ~ changed version number to 1.3 form, interface + Help menu + GitHub repo and check for updates menu items + separator in Project menu interface_derived + event handling for new menus - reduced app description on about dialog - removed about dialog website and developer info unless on linux
1 parent 2edf368 commit fd1ce5c

File tree

7 files changed

+75
-8
lines changed

7 files changed

+75
-8
lines changed

mac.xcodeproj/project.pbxproj

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -833,13 +833,13 @@
833833
CODE_SIGN_IDENTITY = "-";
834834
CODE_SIGN_STYLE = Automatic;
835835
COMBINE_HIDPI_IMAGES = YES;
836-
CURRENT_PROJECT_VERSION = 1.2;
836+
CURRENT_PROJECT_VERSION = 1.3;
837837
INFOPLIST_FILE = "$(SRCROOT)/source/Info_cocoa.plist";
838838
LD_RUNPATH_SEARCH_PATHS = (
839839
"$(inherited)",
840840
"@executable_path/../Frameworks",
841841
);
842-
MARKETING_VERSION = 1.2;
842+
MARKETING_VERSION = 1.3;
843843
OTHER_LDFLAGS = "$(OTHER_LDFLAGS)";
844844
PRODUCT_BUNDLE_IDENTIFIER = com.ravbug.UnityHubNativeDynamic;
845845
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -852,13 +852,13 @@
852852
CODE_SIGN_IDENTITY = "-";
853853
CODE_SIGN_STYLE = Automatic;
854854
COMBINE_HIDPI_IMAGES = YES;
855-
CURRENT_PROJECT_VERSION = 1.2;
855+
CURRENT_PROJECT_VERSION = 1.3;
856856
INFOPLIST_FILE = "$(SRCROOT)/source/Info_cocoa.plist";
857857
LD_RUNPATH_SEARCH_PATHS = (
858858
"$(inherited)",
859859
"@executable_path/../Frameworks",
860860
);
861-
MARKETING_VERSION = 1.2;
861+
MARKETING_VERSION = 1.3;
862862
OTHER_LDFLAGS = "$(OTHER_LDFLAGS)";
863863
PRODUCT_BUNDLE_IDENTIFIER = com.ravbug.UnityHubNativeDynamic;
864864
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -871,6 +871,7 @@
871871
CODE_SIGN_IDENTITY = "-";
872872
CODE_SIGN_STYLE = Automatic;
873873
COMBINE_HIDPI_IMAGES = YES;
874+
CURRENT_PROJECT_VERSION = 1.3;
874875
HEADER_SEARCH_PATHS = (
875876
"\"$(WXROOT)/include\"",
876877
"\"$(WXROOT)/build/osx/setup/$(WXTOOLKIT)/include\"",
@@ -889,6 +890,7 @@
889890
"$(inherited)",
890891
"@executable_path/../Frameworks",
891892
);
893+
MARKETING_VERSION = 1.3;
892894
OTHER_LDFLAGS = "$(OTHER_LDFLAGS)";
893895
PRODUCT_BUNDLE_IDENTIFIER = com.ravbug.UnityHubNative;
894896
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -901,6 +903,7 @@
901903
CODE_SIGN_IDENTITY = "-";
902904
CODE_SIGN_STYLE = Automatic;
903905
COMBINE_HIDPI_IMAGES = YES;
906+
CURRENT_PROJECT_VERSION = 1.3;
904907
HEADER_SEARCH_PATHS = (
905908
"\"$(WXROOT)/include\"",
906909
"\"$(WXROOT)/build/osx/setup/$(WXTOOLKIT)/include\"",
@@ -919,6 +922,7 @@
919922
"$(inherited)",
920923
"@executable_path/../Frameworks",
921924
);
925+
MARKETING_VERSION = 1.3;
922926
OTHER_LDFLAGS = "$(OTHER_LDFLAGS)";
923927
PRODUCT_BUNDLE_IDENTIFIER = com.ravbug.UnityHubNative;
924928
PRODUCT_NAME = "$(TARGET_NAME)";

source/form.fbp

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1847,6 +1847,10 @@
18471847
<property name="shortcut">Ctrl--</property>
18481848
<property name="unchecked_bitmap"></property>
18491849
</object>
1850+
<object class="separator" expanded="1">
1851+
<property name="name">m_separator1</property>
1852+
<property name="permission">none</property>
1853+
</object>
18501854
<object class="wxMenuItem" expanded="1">
18511855
<property name="bitmap"></property>
18521856
<property name="checked">0</property>
@@ -1918,6 +1922,37 @@
19181922
<property name="unchecked_bitmap"></property>
19191923
</object>
19201924
</object>
1925+
<object class="wxMenu" expanded="1">
1926+
<property name="label">Help</property>
1927+
<property name="name">helpMenu</property>
1928+
<property name="permission">none</property>
1929+
<object class="wxMenuItem" expanded="1">
1930+
<property name="bitmap"></property>
1931+
<property name="checked">0</property>
1932+
<property name="enabled">1</property>
1933+
<property name="help"></property>
1934+
<property name="id">wxID_UNINDENT</property>
1935+
<property name="kind">wxITEM_NORMAL</property>
1936+
<property name="label">GitHub Repository</property>
1937+
<property name="name">sourceMenu</property>
1938+
<property name="permission">none</property>
1939+
<property name="shortcut"></property>
1940+
<property name="unchecked_bitmap"></property>
1941+
</object>
1942+
<object class="wxMenuItem" expanded="1">
1943+
<property name="bitmap"></property>
1944+
<property name="checked">0</property>
1945+
<property name="enabled">1</property>
1946+
<property name="help"></property>
1947+
<property name="id">wxID_TOP</property>
1948+
<property name="kind">wxITEM_NORMAL</property>
1949+
<property name="label">Check for Updates</property>
1950+
<property name="name">updateMenu</property>
1951+
<property name="permission">none</property>
1952+
<property name="shortcut"></property>
1953+
<property name="unchecked_bitmap"></property>
1954+
</object>
1955+
</object>
19211956
</object>
19221957
</object>
19231958
<object class="Dialog" expanded="1">

source/globals.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ using namespace std;
1616
static const string projectsFile = "projects.txt";
1717
static const string editorPathsFile = "editorPaths.txt";
1818
static const string templatePrefix = "com.unity.template";
19-
static const string AppVersion = "v1.2";
19+
static const string AppVersion = "v1.3";
2020

2121
//structure for representing an editor and for locating it
2222
struct editor{

source/interface.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,8 @@ MainFrame::MainFrame( wxWindow* parent, wxWindowID id, const wxString& title, co
195195
menuRemove = new wxMenuItem( menuProject, wxID_DELETE, wxString( wxT("Remove Project From List") ) + wxT('\t') + wxT("Ctrl--"), wxEmptyString, wxITEM_NORMAL );
196196
menuProject->Append( menuRemove );
197197

198+
menuProject->AppendSeparator();
199+
198200
menuReveal = new wxMenuItem( menuProject, wxID_FIND, wxString( wxT("Reveal") ) + wxT('\t') + wxT("Ctrl-F"), wxEmptyString, wxITEM_NORMAL );
199201
menuProject->Append( menuReveal );
200202

@@ -220,6 +222,18 @@ MainFrame::MainFrame( wxWindow* parent, wxWindowID id, const wxString& title, co
220222

221223
menubar->Append( menuWindow, wxT("Window") );
222224

225+
wxMenu* helpMenu;
226+
helpMenu = new wxMenu();
227+
wxMenuItem* sourceMenu;
228+
sourceMenu = new wxMenuItem( helpMenu, wxID_UNINDENT, wxString( wxT("GitHub Repository") ) , wxEmptyString, wxITEM_NORMAL );
229+
helpMenu->Append( sourceMenu );
230+
231+
wxMenuItem* updateMenu;
232+
updateMenu = new wxMenuItem( helpMenu, wxID_TOP, wxString( wxT("Check for Updates") ) , wxEmptyString, wxITEM_NORMAL );
233+
helpMenu->Append( updateMenu );
234+
235+
menubar->Append( helpMenu, wxT("Help") );
236+
223237
this->SetMenuBar( menubar );
224238

225239

source/interface.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@
4343
#define Nav_Back 1006
4444
#define Nav_Forward 1007
4545
#define Nav_Home 1008
46-
#define VERSIONS_LIST 1009
46+
#define wxID_TOP 1009
47+
#define VERSIONS_LIST 1010
4748

4849
///////////////////////////////////////////////////////////////////////////////
4950
/// Class MainFrame

source/interface_derived.cpp

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ EVT_MENU(wxID_DELETE, MainFrameDerived::OnRemoveProject)
3131
EVT_MENU(wxID_FIND, MainFrameDerived::OnRevealProject)
3232
EVT_MENU(wxID_PROPERTIES, MainFrameDerived::OnOpenWith)
3333
EVT_MENU(wxID_REFRESH, MainFrameDerived::OnReloadData)
34+
EVT_MENU(wxID_UNINDENT, MainFrameDerived::OnSource)
35+
EVT_MENU(wxID_TOP, MainFrameDerived::OnUpdate)
3436
EVT_BUTTON(wxID_ADD,MainFrameDerived::OnAddProject)
3537
EVT_BUTTON(wxID_NEW,MainFrameDerived::OnCreateProject)
3638
EVT_BUTTON(wxID_FIND,MainFrameDerived::OnLocateInstall)
@@ -80,6 +82,9 @@ MainFrameDerived::MainFrameDerived() : MainFrame(NULL){
8082
//if no projects to load, the interface will be blank
8183

8284
timeout = new wxTimer(this,TIMER);
85+
86+
//show current version in titlebar
87+
this->SetLabel("Unity Hub Native " + AppVersion);
8388
}
8489

8590
/**
@@ -147,11 +152,13 @@ void MainFrameDerived::OnAbout(wxCommandEvent& event)
147152
{
148153
wxAboutDialogInfo aboutInfo;
149154
aboutInfo.SetName("Unity Hub Native");
150-
aboutInfo.SetVersion(AppVersion);
151-
aboutInfo.SetDescription(_("Unity Hub Native is a custom Unity Hub, designed to be more efficient than Unity's official hub.\nRather than use Electron and web technologies for the GUI, this application uses native GUI on each platform.\nThis app is not a replacement for the official Unity Hub.\n\nCreated by Ravbug, written in C++. Uses the wxWidgets GUI library." ));
155+
//aboutInfo.SetVersion(AppVersion);
152156
aboutInfo.SetCopyright("(C) Ravbug 2019");
157+
aboutInfo.SetDescription("Developed with wxWidgets in C++");
158+
#if defined __linux__
153159
aboutInfo.SetWebSite("https://github.com/ravbug/UnityHubNative");
154160
aboutInfo.AddDeveloper("Ravbug (github.com/ravbug)");
161+
#endif
155162
wxAboutBox(aboutInfo);
156163
}
157164

source/interface_derived.hpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,12 @@ class MainFrameDerived : public MainFrame{
9090
void OnRevealProject(wxCommandEvent& event);
9191
void OnOpenWith(wxCommandEvent& event);
9292
void OnPageChanging(wxBookCtrlEvent& event);
93+
void OnUpdate(wxCommandEvent& event){
94+
wxLaunchDefaultBrowser("https://github.com/ravbug/unityhubnative/releases/latest");
95+
}
96+
void OnSource(wxCommandEvent& event){
97+
wxLaunchDefaultBrowser("https://github.com/ravbug/unityhubnative/");
98+
}
9399
void OnReloadData(wxCommandEvent& event){
94100
ReloadData();
95101
}

0 commit comments

Comments
 (0)