Skip to content

Commit 5384c98

Browse files
authored
Merge pull request #58 from bgli/dev
Dev
2 parents 857d182 + 0e12f77 commit 5384c98

File tree

9 files changed

+103
-10
lines changed

9 files changed

+103
-10
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
[![Build Status](https://travis-ci.org/bgli/kbbi-qt.svg?branch=master)](https://travis-ci.org/bgli/kbbi-qt)
44
[![Copr](https://copr.fedorainfracloud.org/coprs/alunux/kbbi-qt-git/package/KBBI-Qt/status_image/last_build.png)](https://copr.fedorainfracloud.org/coprs/alunux/kbbi-qt-git/)
55

6-
KBBI Qt adalah aplikasi GUI Kamus Besar Bahasa Indonesia yang dikembangkan menggunakan bahasa pemrograman C++ dan Framework Qt. KBBI Qt memiliki antarmuka grafis yang bisa digunakan dengan mudah di desktop GNU/Linux. KBBI Qt adalah perangkat lunak bebas (free software) berlisensi GNU GPL v3.0. Pada saat ini KBBI Qt tersedia siap instal untuk distribusi GNU/Linux Fedora 22/23/24 dan CentOS 7/RHEL 7.
6+
KBBI Qt adalah aplikasi GUI Kamus Besar Bahasa Indonesia yang dikembangkan menggunakan bahasa pemrograman C++ dan Framework Qt. KBBI Qt memiliki antarmuka grafis yang bisa digunakan dengan mudah di desktop GNU/Linux. KBBI Qt adalah perangkat lunak bebas (free software) berlisensi GNU GPL v3.0. Pada saat ini KBBI Qt siap untuk dipasang pada distribusi GNU/Linux Fedora 22/23/24 dan CentOS 7/RHEL 7.
77

88
![Screenshot](screenshot.png ""Screenshot"")
99

1010
# Ikut Terlibat
11-
Kami sangat terbuka apabila anda ingin bergabung dan terlibat dalam proyek ini. Segala bentuk kontribusi anda akan sangat membantu kami dalam mengembangkan aplikasi ini.
11+
Kami sangat terbuka apabila Anda ingin bergabung dan terlibat dalam proyek ini. Segala bentuk kontribusi Anda akan sangat membantu kami dalam mengembangkan aplikasi ini.
1212

1313
Kontribusi dapat berupa Bug Fix (code), Improvement (code), Dokumentasi, Publikasi, Pemaketan, dan lain sebagainya.
1414

@@ -33,7 +33,7 @@ Untuk berkontribusi silahkan _fork_ repositori ini dan melakukan _pull request_
3333

3434

3535
# Diskusi
36-
Jika anda ingin terlibat dapat menghubungi kami di group Telegram :
36+
Silakan hubungi kami via Telegram jika Anda berminat untuk terlibat dalam proyek KBBI Qt ini:
3737
* [Belajar GNU/Linux Indonesia](http://s.id/BGLI)
3838
* [SinauDev](https://telegram.me/sinaudev)
3939

src/KBBI-Qt.pro

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,16 @@ FORMS += mainwindow.ui \
4141

4242
RESOURCES += \
4343
resource.qrc
44+
45+
# hanya dicoba di output 32bit
46+
win32 {
47+
# belum dicoba
48+
equals(QT_MAJOR_VERSION, 4) {
49+
RC_FILE += kbbi-qt.rc
50+
}
51+
52+
# sudah dicoba
53+
equals(QT_MAJOR_VERSION, 5) {
54+
RC_ICONS = kbbi-qt.ico
55+
}
56+
}

src/kbbi-qt.ico

62.2 KB
Binary file not shown.

src/kbbi-qt.rc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
IDI_ICON1 ICON DISCARDABLE "kbbi-qt.ico"

src/mainwindow.cpp

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,12 @@
2929

3030
MainWindow::MainWindow(QWidget *parent) :
3131
QMainWindow(parent),
32-
ui(new Ui::MainWindow)
32+
ui(new Ui::MainWindow), autoCari(false)
3333
{
3434
ui->setupUi(this);
3535

36+
ui->btnCari->hide();
37+
3638
// Setup Signal and Slot cari
3739
connect(ui->btnCari,SIGNAL(clicked(bool)),this,SLOT(slotCariKata()));
3840
connect(ui->lineCari,SIGNAL(returnPressed()),this,SLOT(slotCariKata()));
@@ -239,3 +241,16 @@ void MainWindow::on_actionTentang_triggered()
239241
tentang tentang(this);
240242
tentang.exec();
241243
}
244+
245+
void MainWindow::on_checkAutoCari_clicked()
246+
{
247+
autoCari = ui->checkAutoCari->isChecked();
248+
}
249+
250+
void MainWindow::on_lineCari_textEdited(const QString &text)
251+
{
252+
if(autoCari == false)
253+
return;
254+
255+
searchQuery(text);
256+
}

src/mainwindow.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,15 @@ private slots:
4545

4646
void on_actionTentang_triggered();
4747

48+
void on_checkAutoCari_clicked();
49+
50+
void on_lineCari_textEdited(const QString &text);
51+
4852
private:
4953
Ui::MainWindow *ui;
5054
QSqlDatabase database;
5155
QSqlQueryModel *kamusModel;
56+
bool autoCari;
5257

5358
// Action
5459
void copyDBfromRes();

src/mainwindow.ui

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
</size>
3939
</property>
4040
<property name="placeholderText">
41-
<string>Masukkan lema/kata kunci pencarian</string>
41+
<string>Masukkan lema/kata kunci pencarian lalu tekan enter</string>
4242
</property>
4343
</widget>
4444
</item>
@@ -58,11 +58,28 @@
5858
</layout>
5959
</item>
6060
<item>
61-
<widget class="QCheckBox" name="chekCariDetail">
62-
<property name="text">
63-
<string>Cari lema yang memuat unsur pencarian</string>
64-
</property>
65-
</widget>
61+
<layout class="QHBoxLayout" name="horizontalLayout_3">
62+
<item>
63+
<widget class="QCheckBox" name="chekCariDetail">
64+
<property name="text">
65+
<string>Cari lema yang memuat unsur pencarian</string>
66+
</property>
67+
</widget>
68+
</item>
69+
<item>
70+
<widget class="QCheckBox" name="checkAutoCari">
71+
<property name="toolTip">
72+
<string/>
73+
</property>
74+
<property name="whatsThis">
75+
<string/>
76+
</property>
77+
<property name="text">
78+
<string>Aktifkan pencarian otomatis</string>
79+
</property>
80+
</widget>
81+
</item>
82+
</layout>
6683
</item>
6784
</layout>
6885
</item>

src/tentang.cpp

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
/*
2+
KBBI Qt is a GUI based C++/Qt Framework program for The Big Indonesian Language Dictionary.
3+
4+
Copyright (C) 2016 KBBI Qt Team <https://github.com/bgli/kbbi-qt>
5+
6+
This program is free software: you can redistribute it and/or modify
7+
it under the terms of the GNU General Public License as published by
8+
the Free Software Foundation, version 3 of the License.
9+
This program is distributed in the hope that it will be useful,
10+
but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
GNU General Public License for more details.
13+
14+
You should have received a copy of the GNU General Public License
15+
along with this program. If not, see <http://www.gnu.org/licenses/>.
16+
17+
This file is a part of KBBI Qt source code.
18+
This file is written by Sucipto <admin@sucipto.net>,
19+
Christian Kurniawan <saa7.go@gmail.com>, and
20+
Rania el-Amina <reaamina@gmail.com>.
21+
*/
122
#include "tentang.h"
223
#include "ui_tentang.h"
324

src/tentang.h

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
/*
2+
KBBI Qt is a GUI based C++/Qt Framework program for The Big Indonesian Language Dictionary.
3+
4+
Copyright (C) 2016 KBBI Qt Team <https://github.com/bgli/kbbi-qt>
5+
6+
This program is free software: you can redistribute it and/or modify
7+
it under the terms of the GNU General Public License as published by
8+
the Free Software Foundation, version 3 of the License.
9+
This program is distributed in the hope that it will be useful,
10+
but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
GNU General Public License for more details.
13+
14+
You should have received a copy of the GNU General Public License
15+
along with this program. If not, see <http://www.gnu.org/licenses/>.
16+
17+
This file is a part of KBBI Qt source code.
18+
This file is written by Sucipto <admin@sucipto.net>,
19+
Christian Kurniawan <saa7.go@gmail.com>, and
20+
Rania el-Amina <reaamina@gmail.com>.
21+
*/
122
#ifndef TENTANG_H
223
#define TENTANG_H
324

0 commit comments

Comments
 (0)