-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #511 from timothygrant80/output_pixel_size_db_upda…
…te_fix bugfix: database breakage during update
- Loading branch information
Showing
12 changed files
with
1,073 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#include "DatabaseUpdateDialog.h" | ||
|
||
DatabaseUpdateDialog::DatabaseUpdateDialog(wxWindow* parent, wxString db_changes) : DatabaseUpdateDialogParent(parent) { | ||
schema_changes = db_changes; | ||
SchemaChangesTextCtrl->AppendText(db_changes); | ||
} | ||
|
||
void DatabaseUpdateDialog::OnButtonClicked(wxCommandEvent& event) { | ||
int button_id = event.GetId( ); | ||
|
||
enum UpdateOptions { CANCEL = 1, | ||
UPDATE_ONLY = 2, | ||
BACKUP_AND_UPDATE = 3 }; | ||
|
||
switch ( button_id ) { | ||
case wxID_CANCEL: | ||
EndModal(CANCEL); | ||
break; | ||
case wxID_UPDATE_ONLY: | ||
EndModal(UPDATE_ONLY); | ||
break; | ||
case wxID_BACKUP_AND_UPDATE: | ||
EndModal(BACKUP_AND_UPDATE); | ||
break; | ||
default: | ||
EndModal(CANCEL); | ||
break; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#ifndef _SRC_GUI_DATABASE_UDPATE_DIALOG_H_ | ||
#define _SRC_GUI_DATABASE_UPDATE_DIALOG_H_ | ||
|
||
#include "ProjectX_gui_main.h" | ||
|
||
class DatabaseUpdateDialog : public DatabaseUpdateDialogParent { | ||
public: | ||
// DatabaseUpdateDialog(wxWindow* parent); | ||
DatabaseUpdateDialog(wxWindow* parent, wxString db_changes); | ||
|
||
void OnButtonClicked(wxCommandEvent& event); | ||
|
||
private: | ||
wxString schema_changes; | ||
}; | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.