diff --git a/RellPad-C++/RellPad-C++.pro b/RellPad-C++/RellPad-C++.pro index b0fa92e..1d848ea 100644 --- a/RellPad-C++/RellPad-C++.pro +++ b/RellPad-C++/RellPad-C++.pro @@ -34,4 +34,6 @@ qnx: target.path = /tmp/$${TARGET}/bin else: unix:!android: target.path = /opt/$${TARGET}/bin !isEmpty(target.path): INSTALLS += target +RC_FILE = RellPad-C++.rc + RESOURCES += diff --git a/RellPad-C++/RellPad-C++.rc b/RellPad-C++/RellPad-C++.rc new file mode 100644 index 0000000..659afb0 --- /dev/null +++ b/RellPad-C++/RellPad-C++.rc @@ -0,0 +1 @@ +IDI_ICON1 ICON DISCARDABLE "RellPad.ico" \ No newline at end of file diff --git a/RellPad-C++/RellPad.ico b/RellPad-C++/RellPad.ico new file mode 100644 index 0000000..c67d932 Binary files /dev/null and b/RellPad-C++/RellPad.ico differ diff --git a/RellPad-C++/mainwindow.cpp b/RellPad-C++/mainwindow.cpp index cb52ab0..fccd1af 100644 --- a/RellPad-C++/mainwindow.cpp +++ b/RellPad-C++/mainwindow.cpp @@ -22,6 +22,7 @@ MainWindow::MainWindow(QWidget *parent) ui->statusbar->addPermanentWidget(ui->label_dummy); ui->statusbar->addPermanentWidget(ui->line_col_label); ui->statusbar->addPermanentWidget(ui->zoom_label); + ui->zoom_label->setText(""); updateLineAndColum(); } @@ -285,7 +286,7 @@ void MainWindow::updateLineAndColum() ui->actionDelete->setEnabled(cursorPosition.hasSelection()); //Apkah bisa di selectAll? - ui->actionSelect_All->setEnabled(cursorPosition.hasSelection()); + ui->actionSelect_All->setEnabled(colum > 1 || line > 1); //Apkah bisa di cut? ui->actionCut->setEnabled(cursorPosition.hasSelection()); @@ -364,7 +365,7 @@ void MainWindow::on_actionFind_triggered() //Github void MainWindow::on_actionGithub_triggered() { - + QDesktopServices::openUrl(QUrl("https://github.com/AerellDev/RellPad")); } //Youtube diff --git a/RellPad-C++/mainwindow.ui b/RellPad-C++/mainwindow.ui index 0a09b4b..4de5681 100644 --- a/RellPad-C++/mainwindow.ui +++ b/RellPad-C++/mainwindow.ui @@ -9,8 +9,8 @@ 0 0 - 655 - 445 + 600 + 444 @@ -19,6 +19,12 @@ 0 + + + 367 + 293 + + false @@ -108,6 +114,9 @@ + + false + 100% @@ -120,7 +129,7 @@ 0 0 - 655 + 600 20 @@ -168,6 +177,9 @@ View + + false + Zoom @@ -248,6 +260,9 @@ true + + false + Status Bar @@ -256,11 +271,17 @@ true + + false + Word Wrap + + false + Font... @@ -434,6 +455,9 @@ + + false + Time/Date