Skip to content

Commit dfbc178

Browse files
committed
slideshow for background added
1 parent 3793382 commit dfbc178

15 files changed

+681
-507
lines changed

CMakeLists.txt.user

Lines changed: 0 additions & 371 deletions
This file was deleted.

hvl-lightdm-greeter.conf

Lines changed: 24 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,29 @@
1-
; hvl-lightdm-greeter.conf
2-
;
3-
; General configuration
4-
;
5-
; greeter-icon-theme = name of icon theme to use for the greeter
6-
;
7-
; greeter-background-image-dir /path/to/background-dir/ directory contains background images in jpg and png format. Images selected randomly at the start of the program
8-
; greeter-background-image = image file name in the greeter-background-image-dir to set a background image for the login screen
9-
;
10-
; loginform-offset-x = how far from the left edge of the screen should the loginform be placed.
11-
; Can be given in pixels, e.g. loginform-offset-x=60px, or in percentage of screen width, e.g. loginform-offset-x=20%.
12-
;
13-
; loginform-offset-y = how far from the left edge of the screen should the loginform be placed.
14-
; Can be given in pixels, e.g. loginform-offset-y=60px, or in percentage of screen height, e.g. loginform-offset-y=20%.
15-
16-
17-
; password-web-reset = set to 1 if you want to show password reset web page button. Otherwise set to 0
18-
; password-web-reset-webpage = url for the password reset we bpage
19-
20-
; password-web-reset-webpage-offset-x
21-
; password-web-reset-webpage-offset-y
22-
; password-web-reset-webpage-size-x
23-
; password-web-reset-webpage-size-y
24-
;
25-
; settingsform-offset-x = same format with loginform-offset-x
26-
; settingsform-offset-y = same format with loginform-offset-y
27-
; clockform-offset-x = same format with loginform-offset-x
28-
; clockform-offset-y = same format with loginform-offset-y
29-
; services-to-check = System services to wait to start before let the user login. Should be in this format, services-to-check="Service1", "service2"
30-
; wait-timeout = Timeout for service check. If the all services doesn't start after this timeout, user can try to login
31-
; cached-user-count = Configuration to show how many users on the user selection page. Maximum value is 5
32-
1+
# hvl-lightdm-greeter.conf
2+
#
3+
# General configuration
4+
#
5+
#
6+
# greeter-background-image-dir /path/to/background-dir/ directory contains background images in jpg and png format. Images selected randomly at the start of the program
7+
# greeter-background-image = image file name in the greeter-background-image-dir to set a background image for the login screen
8+
#
9+
# loginform-offset-x = how far from the left edge of the screen should the loginform be placed.
10+
# Can be given in pixels, e.g. loginform-offset-x=60px, or in percentage of screen width, e.g. loginform-offset-x=20%.
11+
#
12+
# loginform-offset-y = how far from the left edge of the screen should the loginform be placed.
13+
# Can be given in pixels, e.g. loginform-offset-y=60px, or in percentage of screen height, e.g. loginform-offset-y=20%.
14+
#
15+
# settingsform-offset-x = same format with loginform-offset-x
16+
# settingsform-offset-y = same format with loginform-offset-y
17+
# clockform-offset-x = same format with loginform-offset-x
18+
# clockform-offset-y = same format with loginform-offset-y
19+
# services-to-check = System services to wait to start before let the user login. Should be in this format, services-to-check="Service1", "service2"
20+
# wait-timeout = Timeout for service check. If the all services doesn't start after this timeout, user can try to login
21+
# cached-user-count = Configuration to show how many users on the user selection page. Maximum value is 5
22+
# network-ok-timeout = Timeout to shof login forms after network is ok
23+
# screen-saver-timeout = timeout for hiding login forms
24+
# slide-show-timeout = timeout for background image change
3325

3426
[General]
35-
greeter-icon-theme=pardus-dark
3627
greeter-background-image-dir =/usr/share/lightdm/lightdm-hvl-greeter.conf.d/resources/bgs/
3728
loginform-offset-x=50%
3829
loginform-offset-y=40%

src/hvl-lightdm-greeter.qrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,8 @@
2222
<file>resources/battery_good.png</file>
2323
<file>resources/battery_low.png</file>
2424
<file>resources/battery_normal.png</file>
25+
<file>resources/right_arrow.png</file>
26+
<file>resources/left_arrow.png</file>
27+
<file>resources/bgs/bg1.jpg</file>
2528
</qresource>
2629
</RCC>

src/keyboard.cpp

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Keyboard::Keyboard(QWidget *parent) :
7979
connect ( ui->space, SIGNAL( clicked() ), this, SLOT( keyboardHandler() ) );
8080

8181

82-
connect ( ui->Buttonbackspace, SIGNAL( clicked() ), this, SLOT( on_backspace_clicked() ) );
82+
// connect ( ui->Buttonbackspace, SIGNAL( clicked() ), this, SLOT( on_backspace_clicked() ) );
8383

8484

8585

@@ -207,14 +207,6 @@ void Keyboard::on_clear_clicked()
207207
clearFocus();
208208
}
209209

210-
void Keyboard::on_backspace_clicked(){
211-
212-
keySender(QString("backspace"));
213-
214-
clearFocus();
215-
}
216-
217-
218210

219211
void Keyboard::on_enterButton_clicked()
220212
{
@@ -469,3 +461,10 @@ void Keyboard::setCurrentSymbols(int n, bool caps){
469461
//convert text to character
470462

471463

464+
465+
void Keyboard::on_Buttonbackspace_clicked()
466+
{
467+
keySender(QString("backspace"));
468+
469+
clearFocus();
470+
}

src/keyboard.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,15 @@ private slots:
3232

3333
void on_backButton_clicked();
3434

35-
void on_backspace_clicked();
3635

3736
void on_shift_toggled(bool checked);
3837

3938
void on_rightshift_toggled(bool checked);
4039

4140
void on_Buttonaltgr_toggled(bool checked);
4241

42+
void on_Buttonbackspace_clicked();
43+
4344
public slots:
4445
void setKeyboardLayout(QString &layout);
4546

0 commit comments

Comments
 (0)