generated from gdt050579/appcui-template
-
Notifications
You must be signed in to change notification settings - Fork 16
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 #329 from gdt050579/dissasm_view
Added about window, improved config consistency and some dissasm refractoring
- Loading branch information
Showing
25 changed files
with
864 additions
and
760 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
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,38 @@ | ||
#include "Internal.hpp" | ||
|
||
using namespace GView::App; | ||
using namespace AppCUI::Application; | ||
using namespace AppCUI::Controls; | ||
using namespace AppCUI::Input; | ||
using namespace AppCUI::Utils; | ||
|
||
class AboutWindow : public Window, public Handlers::OnButtonPressedInterface | ||
{ | ||
Reference<Button> closeButton; | ||
public: | ||
AboutWindow() : Window("About", "t:10,l:10,w:74,h:13", WindowFlags::Sizeable) | ||
{ | ||
Factory::Label::Create(this, "GView is a cross-platform framework for reverse-engineering. Users can leverage the diverse range of available visualization options to effectively analyze and interpret the information.", "t:2,l:5,w:60"); | ||
Factory::Label::Create(this, "Users can leverage the diverse range of available visualization options to effectively analyze and interpret the information.", "t:3,l:5,w:64"); | ||
Factory::Label::Create(this, "options to effectively analyze and interpret the information.", "t:4,l:5,w:64"); | ||
|
||
Factory::Label::Create(this, "Read more on https://github.com/gdt050579/GView", "t:6,l:8,w:64"); | ||
|
||
Factory::Label::Create(this, "License: MIT", "t:8,l:25,w:64"); | ||
Factory::Label::Create(this, "Version: " GVIEW_VERSION, "t:9,l:25,w:64"); | ||
|
||
closeButton = Factory::Button::Create(this, "Close", "t:11,l:26,w:13", 100, ButtonFlags::Flat); | ||
closeButton->Handlers()->OnButtonPressed = this; | ||
} | ||
|
||
void OnButtonPressed(Reference<Controls::Button> r) override | ||
{ | ||
Exit(); | ||
} | ||
}; | ||
|
||
void Instance::ShowAboutWindow() | ||
{ | ||
AboutWindow aboutWindow{}; | ||
aboutWindow.Show(); | ||
} |
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 |
---|---|---|
|
@@ -6,4 +6,5 @@ target_sources(GViewCore PRIVATE | |
Instance.cpp | ||
SelectTypeDialog.cpp | ||
TutorialWindow.cpp | ||
AboutWindow.cpp | ||
) |
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
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.