Skip to content

Commit d4c8e22

Browse files
committed
Update about section
Launch and task json updated for linux Added clearn screen on main screen
1 parent fc66909 commit d4c8e22

File tree

4 files changed

+76
-4
lines changed

4 files changed

+76
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,4 @@
3030
*.exe
3131
*.out
3232
*.app
33+
ffmpeg-coder

.vscode/launch.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "g++ - Build and debug active file",
9+
"type": "cppdbg",
10+
"request": "launch",
11+
"program": "${fileDirname}/${fileBasenameNoExtension}",
12+
"args": [],
13+
"stopAtEntry": false,
14+
"cwd": "${workspaceFolder}",
15+
"environment": [],
16+
"externalConsole": false,
17+
"MIMode": "gdb",
18+
"setupCommands": [
19+
{
20+
"description": "Enable pretty-printing for gdb",
21+
"text": "-enable-pretty-printing",
22+
"ignoreFailures": true
23+
}
24+
],
25+
"preLaunchTask": "C/C++: g++ build active file",
26+
"miDebuggerPath": "/usr/bin/gdb"
27+
}
28+
]
29+
}

.vscode/tasks.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"tasks": [
3+
{
4+
"type": "cppbuild",
5+
"label": "C/C++: g++ build active file",
6+
"command": "/usr/bin/g++",
7+
"args": [
8+
"-g",
9+
"${file}",
10+
"-o",
11+
"${fileDirname}/${fileBasenameNoExtension}"
12+
],
13+
"options": {
14+
"cwd": "${workspaceFolder}"
15+
},
16+
"problemMatcher": [
17+
"$gcc"
18+
],
19+
"group": {
20+
"kind": "build",
21+
"isDefault": true
22+
},
23+
"detail": "Task generated by Debugger."
24+
}
25+
],
26+
"version": "2.0.0"
27+
}

ffmpeg-coder.cpp

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -340,18 +340,26 @@ ffmpeg::~ffmpeg()
340340
void title()
341341
{
342342
using namespace std;
343-
cout << "FFMPEG Coder\n"
343+
cout << "\t\t\tFFMPEG Coder"
344344
<< endl;
345+
cout<<"\t\tBy Abir-Tx"<<endl;
346+
cout<<"___________________________________\n"<<endl;
347+
}
348+
void about()
349+
{
350+
clear_screen();
351+
std::string about_ffmpeg_coder;
352+
353+
about_ffmpeg_coder = "FFMPEG Coder is a CLI tool created by Mushfiqur Rahman Abir AKA Abir-Tx.The tool is now in beta for testing purpose only and not much ready for use. Updates will be added soon";
354+
355+
std::cout<<about_ffmpeg_coder;
345356
}
346357

347358
//Home page of the tool
348359
void homepage()
349360
{
350361
using namespace std;
351362

352-
//Clearing the screen
353-
clear_screen();
354-
355363
ffmpeg ffmpeg; //Creating ffmpeg object
356364
int choice;
357365

@@ -382,10 +390,17 @@ void homepage()
382390
ffmpeg.select_encodes();
383391
ffmpeg.selected_action();
384392
}
393+
else if (choice == 2)
394+
{
395+
about();
396+
}
385397
}
386398

387399
int main()
388400
{
401+
//Clearing the screen
402+
clear_screen();
403+
389404
title();
390405
homepage();
391406
}

0 commit comments

Comments
 (0)