Giter Site home page Giter Site logo

entityplantt / dk-cpp Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 0.0 17.29 MB

A C++ IDE designed for easy use.

Home Page: https://github.com/EntityPlantt/DK-CPP

License: Other

JavaScript 77.21% HTML 22.79%
compiler cpp electron gcc gnu gnu-gcc ide mingw windows

dk-cpp's Introduction

dk-cpp's People

Contributors

entityplantt avatar yaki3355 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

dk-cpp's Issues

[Feature] Remove top bar

Problem

The top bar isn't looking good.

Solution

Remove the top bar.

Additional context

This may help:

win.autoHideMenuBar = true;

[Feature] Open C++ files with clicking on the file

Problem

I need to open a file with double-click in Windows Explorer.

Solution

  1. Go to Windows Explorer.
  2. Go to that file's directory.
  3. Double-click the file.
  4. DK-C++ opens with that file opened.

Alternatives

  1. Open DK-C++.
  2. Click Open or Ctrl + O.
  3. Open the file.

Additional context

A custom icon can be added.

Screenshots

image
Just double-click the file

[Feature] Better error log

Problem

A better error log is needed.

Solution

The error log should show:

  • With Ace editor (Optional)
  • Clickable recognized errors that send you to that line
  • Highlighting errors and warnings

Alternatives

Not an Ace editor, because the clickable element will be hard to code.

[Feature] Zooming features

Problem

On some computers, the GUI is zoomed out and the code is not readable.

Solution

Set Ctrl - + as zoom in, Ctrl - - as zoom out and Ctrl - 0 as reset zoom.

Alternatives

Go in the menu: View -> (Zoom In, Zoom Out, Actual Size)

Additional context

This may help:

document.body.style.zoom = zoom; // ..., 0.8, 0.9, 1.0, 1.1, 1.2, ...
this.blur();

Screenshots

Built-In Zoom

[Bug] Clicking "Cancel" on Save As dialog invoked via saveProject saves the file

Description

Clicking Cancel on Save As dialog invoked via saveProject saves the file

To Reproduce

  1. Open app
  2. Click Ctrl + S
  3. Click Cancel
  4. The app's title is (Saved) C:\Users\<username>\Local\dk-cpp\app-1.1.1\resources\app - DK-C++

Configuration

  • OS: Windows
  • Architecture: x64
  • App version: v1.1.1 and lower

Expected behavior

The title to be DK-C++.

Additional context

You can click the save button, too.

Screenshots

Image 1
Image 2
Image 3

โš  Translations needed!

I need anyone to translate DK-C++ to their native (or secondary) languages.
Please help by opening a pull request adding a JSON file in the lang directory,
with a filename %ln%_%st%.json, were %ln% is the language (in two letters) and
%st% is the state where this language is spoken.
If the language is spoken in only one country,
set %st% to be the same as %ln%.

For example, mk_mk.json is Macedonian, en_us.json is English spoken in United States,
and en_uk.json is English spoken in Britain.

Check en_us.json to see how to format the translation file, as well as the keys.
For the places that certain keys are used, check the code.
Maybe in the future there will be a tool to help translate DK-C++.

Help me translate DK-C++!

[Bug] DK-C++ saving only ASCII in C++ files

Description

When you try to save a Unicode-only character, it saves as multiple ASCII characters.

To Reproduce

Example:

  1. Write this C++ code:
#include <iostream>
using namespace std;
int main() {
    cout << "๐Ÿ˜€";
    return 0;
}
  1. Click Save (or Ctrl + S)
  2. Save it (eg. test.cpp)
  3. Click Open (or Ctrl + O)
  4. Open it (eg. test.cpp)
  5. See that the character ๐Ÿ˜€ has turned into =.

Configuration

  • OS: Windows
  • Architecture: x64
  • App version: v1.1.1

Expected behavior

The character ๐Ÿ˜€ to be ๐Ÿ˜€.

Additional context

It's because of the ASCII saving, in preload.js:9 and preload.js:35.

Screenshots

Before
After

[Bug] Context menu items don't work

Description

Any button in the context menu doesn't work.

To Reproduce

  1. Right-click in the editor
  2. Click on any button
  3. An error pops up

Configuration

  • App version: v1.3.1

Screenshots

image

[Feature] More menu

Problem

The menu now consists of only six buttons, it has to have more menu.

It needs to have buttons (or dropdowns) for:

  • Submitting a bug
  • Checking if g++ is installed
  • Opening a new window
  • More

[Bug] Empty top line in log when app build successfully

Description

When the C++ file is built successfully, the output is as follows:


Project successfully built file:
<filepath>

Or in HTML:

<div id="debug">
    <br />
    Project successfully built file:
    <br />
    <!--filepath-->
</div>

There is an empty line before the whole text.

To Reproduce

Steps to reproduce the behavior:

  1. Save the file
  2. Insert a code that doesn't give out an error, example:
#include <iostream>
using namespace std;
int main() {
    cout << "Hello world!" << endl;
    return 0;
}
  1. See that the output is like this.

Configuration

  • OS: Windows
  • Architecture: x64
  • App version: v1.1.2

Expected behavior

The top line to not exist.

Screenshots

Image 1

img1

Image 2

img2

[Feature] Add localization

Problem

You cannot translate DK-C++.

Solution

Add a localization folder with JSON files for localization.

{
  "language.name": "English (United States)",
  "language.code": "en_us",
  "message.foo": "Bar",
  ...
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.