Fix some bugs, add a proper license
This commit is contained in:
parent
2767b03c01
commit
f3b08833b3
7
LICENSE
Normal file
7
LICENSE
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
Copyright 2019 Timothy J. Warren
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
14
README.md
14
README.md
@ -15,23 +15,15 @@ A Cross-platform Code Editor
|
|||||||
Required packages:
|
Required packages:
|
||||||
|
|
||||||
* build-essential
|
* build-essential
|
||||||
|
* cmake
|
||||||
* libssh2-1-dev
|
* libssh2-1-dev
|
||||||
* libwxgtk3.0-dev
|
* libwxgtk3.0-dev
|
||||||
|
|
||||||
After these packages are installed, the project should build with a simple `make` command.
|
After these packages are installed, the project should build with a simple `make` command.
|
||||||
|
|
||||||
### OS X
|
### OS X
|
||||||
Building wxWidgets:
|
Install wxWidgets library (Using homebrew):
|
||||||
|
* `brew install wxmac`
|
||||||
If you want maximum compatibility with older versions of OS X,
|
|
||||||
view [the guide](./Mac-compatibility-build.md). Otherwise, these simpler
|
|
||||||
steps should work fine for a local build.
|
|
||||||
|
|
||||||
1. Download the latest wxWidgets source (>= 3.0.2)
|
|
||||||
2. Run `export CXX="clang++ -std=c++11 -stdlib=libc++"` to compile with clang for better C++11 support
|
|
||||||
3. Make a new directory in the source tree, like `wxmac`
|
|
||||||
4. Run `../configure --disable-shared --disable-webviewwebkit --disable-compat28` in the new directory
|
|
||||||
5. Run `make && make install`
|
|
||||||
|
|
||||||
Install libssh2 (Using homebrew):
|
Install libssh2 (Using homebrew):
|
||||||
|
|
||||||
|
@ -139,4 +139,4 @@ const wxString TYRO_FILE_SAVE_WILDCARDS =
|
|||||||
"Shell (*.sh, *.bsh)|*.sh;*.bsh|"
|
"Shell (*.sh, *.bsh)|*.sh;*.bsh|"
|
||||||
"SQL (*.sql)|*.sql|"
|
"SQL (*.sql)|*.sql|"
|
||||||
"Text (*.txt)|*.txt|"
|
"Text (*.txt)|*.txt|"
|
||||||
"Yaml (.yml,*.yaml)| *.yml;*.yaml";
|
"Yaml (.yml,*.yaml)| *.yml;*.yaml|";
|
||||||
|
@ -302,6 +302,19 @@ void EditPane::BindEvents()
|
|||||||
}
|
}
|
||||||
}, wxID_ANY);
|
}, wxID_ANY);
|
||||||
|
|
||||||
|
this->Bind(wxEVT_STC_SAVEPOINTREACHED, [=](wxStyledTextEvent& event) {
|
||||||
|
auto parent = (wxAuiNotebook*) this->GetParent();
|
||||||
|
auto currentPage = parent->GetCurrentPage();
|
||||||
|
auto idx = parent->GetPageIndex(currentPage);
|
||||||
|
wxString currentTitle = parent->GetPageText(idx);
|
||||||
|
|
||||||
|
if (currentTitle.Contains("*"))
|
||||||
|
{
|
||||||
|
currentTitle.Replace("*", "");
|
||||||
|
parent->SetPageText(idx, currentTitle);
|
||||||
|
}
|
||||||
|
}, wxID_ANY);
|
||||||
|
|
||||||
// this->Bind(wxEVT_STC_CHARADDED, &EditPane::OnCharAdded, this, wxID_ANY);
|
// this->Bind(wxEVT_STC_CHARADDED, &EditPane::OnCharAdded, this, wxID_ANY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user