Skip to content

Commit

Permalink
1.0.0-Indev
Browse files Browse the repository at this point in the history
  • Loading branch information
Fern-Aerell committed Apr 1, 2023
1 parent 6d5daba commit 419fb19
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 5 deletions.
2 changes: 2 additions & 0 deletions RellPad-C++/RellPad-C++.pro
Original file line number Diff line number Diff line change
Expand Up @@ -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 +=
1 change: 1 addition & 0 deletions RellPad-C++/RellPad-C++.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
IDI_ICON1 ICON DISCARDABLE "RellPad.ico"
Binary file added RellPad-C++/RellPad.ico
Binary file not shown.
5 changes: 3 additions & 2 deletions RellPad-C++/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down Expand Up @@ -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());
Expand Down Expand Up @@ -364,7 +365,7 @@ void MainWindow::on_actionFind_triggered()
//Github
void MainWindow::on_actionGithub_triggered()
{

QDesktopServices::openUrl(QUrl("https://github.com/AerellDev/RellPad"));
}

//Youtube
Expand Down
30 changes: 27 additions & 3 deletions RellPad-C++/mainwindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>655</width>
<height>445</height>
<width>600</width>
<height>444</height>
</rect>
</property>
<property name="sizePolicy">
Expand All @@ -19,6 +19,12 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>367</width>
<height>293</height>
</size>
</property>
<property name="mouseTracking">
<bool>false</bool>
</property>
Expand Down Expand Up @@ -108,6 +114,9 @@
</item>
<item>
<widget class="QLabel" name="zoom_label">
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>100%</string>
</property>
Expand All @@ -120,7 +129,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>655</width>
<width>600</width>
<height>20</height>
</rect>
</property>
Expand Down Expand Up @@ -168,6 +177,9 @@
<string>View</string>
</property>
<widget class="QMenu" name="menuZoom">
<property name="enabled">
<bool>false</bool>
</property>
<property name="title">
<string>Zoom</string>
</property>
Expand Down Expand Up @@ -248,6 +260,9 @@
<property name="checkable">
<bool>true</bool>
</property>
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>Status Bar</string>
</property>
Expand All @@ -256,11 +271,17 @@
<property name="checkable">
<bool>true</bool>
</property>
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>Word Wrap</string>
</property>
</action>
<action name="actionFonts">
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>Font...</string>
</property>
Expand Down Expand Up @@ -434,6 +455,9 @@
</property>
</action>
<action name="actionTime_Date">
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>Time/Date</string>
</property>
Expand Down

0 comments on commit 419fb19

Please sign in to comment.