maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] QtLockscreen: highly configurable lockscreen replacement (https://talk.maemo.org/showthread.php?t=75150)

sakya 2011-07-22 16:33

Re: [Announce] QtLockscreen: highly configurable lockscreen replacement
 
Quote:

Originally Posted by hasten (Post 1056269)
Where, after the install, the widgets of e-mail, sms, missen call didnīt appers. I have to do something to show it?

The notification icons appear only if there's something to notify, else they are hidden. :)

hasten 2011-07-22 16:34

Re: [Announce] QtLockscreen: highly configurable lockscreen replacement
 
Quote:

Originally Posted by sakya (Post 1056275)
The notification icons appear only if there's something to notify, else they are hidden. :)

Thanks. Good Work.

sakya 2011-07-22 16:39

Re: [Announce] QtLockscreen: highly configurable lockscreen replacement
 
Quote:

Originally Posted by geojoking (Post 1056271)
I haven't installed it yet, but I wanted to ask those who did: does this lockscreen have the the problem the other one has, meaning that when you have a incoming call, it hangs the phone for a few seconds?

I made some tests and I never had this problem.

cloud596 2011-07-22 16:47

Re: [Announce] QtLockscreen: highly configurable lockscreen replacement
 
one question for email,sms and missed icon, what kind of size need it for them. 64x64 or 48x48. and i saw that it use size=15, does the image will automatic resize to that format

sakya 2011-07-22 16:50

Re: [Announce] QtLockscreen: highly configurable lockscreen replacement
 
Quote:

Originally Posted by cloud596 (Post 1056288)
one question for email,sms and missed icon, what kind of size need it for them. 64x64 or 48x48. and i saw that it use size=15, does the image will automatic resize to that format

Icon can be any size.
The icon will be center/top aligned in the size you give to the widget, the text will be horizontally centered just under the icon.
Just be sure that the Size you set is enough to display the icon and the text.

qw3rty 2011-07-22 17:19

Re: [Announce] QtLockscreen: highly configurable lockscreen replacement
 
Ah, so changing the size of the "next" button doesn't change the icon size but changes the size of the "clickable" area, makes sense. So different question, is it possible to add one of those semi-transparent rectangles underneath the playback buttons? I tried to do it but didn't work...

sakya 2011-07-22 17:24

Re: [Announce] QtLockscreen: highly configurable lockscreen replacement
 
Quote:

Originally Posted by qw3rty (Post 1056309)
Ah, so changing the size of the "next" button doesn't change the icon size but changes the size of the "clickable" area, makes sense. So different question, is it possible to add one of those semi-transparent rectangles underneath the playback buttons? I tried to do it but didn't work...

Yes, images are not scaled to fit the size you set.
The size is the size of the area the widget can use.

The rectangle should work:
-Add a widget in the widgetlist like this:
Code:

Widgets\16\Name="Rect.Rect_PlayButton"
-Remember to change the size of the list:
Code:

Widgets\Size=16
-Define the new rectangle with correct size and position:
Code:

[Rect_PlayButton]
SizeL="800;70"
PosL="0;410"
SizeP="480;70"
PosP="0;730"
Radius=0
Color="0;0;0;150"

-Restart the lockscreen with
Code:

killall qtlockscreen

mesho123 2011-07-22 17:26

Re: [Announce] QtLockscreen: highly configurable lockscreen replacement
 
i can't change the background it's now black after i changed the pics


can any one help me ?

sakya 2011-07-22 17:27

Re: [Announce] QtLockscreen: highly configurable lockscreen replacement
 
Black = no image. :)
Check the path you set in the configuration file.

mesho123 2011-07-22 17:30

Re: [Announce] QtLockscreen: highly configurable lockscreen replacement
 
i'am sure but the image still black i don't know why

#Path to background image for Portrait (P) and Landscape (L)
BackGroundImageP="/etc/hildon/theme/backgrounds/lockslider1.png"
BackGroundImageL="/etc/hildon/theme/backgrounds/lockslider2.png"

and i'm went to this path and changed the pics .. and kill the lock and nothing new !

sakya 2011-07-22 17:34

Re: [Announce] QtLockscreen: highly configurable lockscreen replacement
 
Permissions?
The lockscreen runs as normal user, check if the images can be read.
Code:

ls -l /etc/hildon/theme/backgrounds/lockslider*

gng554 2011-07-22 17:36

Re: [Announce] QtLockscreen: highly configurable lockscreen replacement
 
can someone please tell me what should the image size (width and height in pixels) be so that the image fit correctly in portrait mode?
all the images that i tried does not work they just split into the screen...

pusak gaoq 2011-07-22 17:37

Re: [Announce] QtLockscreen: highly configurable lockscreen replacement
 
@sakya...
due to all the member who having trouble make their own setup of your lockscreen might i suggest you create a setup GUI and place it on our settings so we can change the setup much more simple that editing the config files???

funkmunk 2011-07-22 17:42

Re: [Announce] QtLockscreen: highly configurable lockscreen replacement
 
@sakya i agree that a GUI will really solve all the customization issues faced by others in this thread

amadeukaos 2011-07-22 17:45

Re: [Announce] QtLockscreen: highly configurable lockscreen replacement
 
Can someone do a video? :D

mesho123 2011-07-22 18:02

Re: [Announce] QtLockscreen: highly configurable lockscreen replacement
 
ok i have done that .. it's tell me there is images located in this path .. put still have blackscreen i not know why

sakya 2011-07-22 18:03

Re: [Announce] QtLockscreen: highly configurable lockscreen replacement
 
Quote:

Originally Posted by mesho123 (Post 1056332)
ok i have done that .. it's tell me there is images located in this path .. put still have blackscreen i not know why

Images are there, but what are the permissions on the file? :)
Post the output of the command
Code:

ls -l /etc/hildon/theme/backgrounds/lockslider*

ed_boner 2011-07-22 18:23

Re: [Announce] QtLockscreen: highly configurable lockscreen replacement
 
hello to all..this app looks really good and functional, congratulations...still, its main quality is the custiomization, as we can see by all the posts..i cannot code as many and wish ther would be an investiment on developing a GUI..can anyone do this? tks

blck 2011-07-22 18:26

Re: [Announce] QtLockscreen: highly configurable lockscreen replacement
 
Quote:

Originally Posted by sakya (Post 1056182)
Yes, I'll make a "slideToUnlock" widget.
I don't have much spare time during this days (and I'll be away for two weeks) so I cannot say when an update will be released.

Does that mean, that we can use every widget on the Lockscreen?
If yes: Great work, if not: Still great work :rolleyes:

Cheers Blck

sakya 2011-07-22 18:41

Re: [Announce] QtLockscreen: highly configurable lockscreen replacement
 
Quote:

Originally Posted by blck (Post 1056342)
Does that mean, that we can use every widget on the Lockscreen?

It means that if I code the "slideToUnlock" widget then it can be used in the lockscreen by adding it to the configuration file. :)

eefo 2011-07-22 18:46

Re: [Announce] QtLockscreen: highly configurable lockscreen replacement
 
@sakya : as pusak and others asked about a GUI , dude you can ask any one to help you making a GUI .
or is there any other issue/reason , we wont be able to see a GUI ?

blck 2011-07-22 18:48

Re: [Announce] QtLockscreen: highly configurable lockscreen replacement
 
Quote:

Originally Posted by sakya (Post 1056345)
It means that if I code the "slideToUnlock" widget then it can be used in the lockscreen by adding it to the configuration file. :)

How do you code a widget? I saw a really nice "LG-styled" Clock-&Weather-Widget but I do not found it anymore:eek:. So yeah good work!

Cheers Blck

udaychaitanya16 2011-07-22 18:50

Re: [Announce] QtLockscreen: highly configurable lockscreen replacement
 
I have added ForecaWeatherApplet as widget16 and changed the widget size to 16.But when i wanted to save config file from leafpad it is showing only / directory.First of all can i add that widget?If so please tell me how to do that.Thank you for the greatwork

sakya 2011-07-22 18:51

Re: [Announce] QtLockscreen: highly configurable lockscreen replacement
 
Quote:

Originally Posted by eefo (Post 1056349)
@sakya : as pusak and others asked about a GUI , dude you can ask any one to help you making a GUI .
or is there any other issue/reason , we wont be able to see a GUI ?

No, there's no other reason (it's all about writing a text file), it's just a matter of time.
For a configuration GUI I think of add/remove widget, move widgets dragging them around, resize, edit properties. :)

EDIT: I called them widget but these aren't Maemo desktop widget.
You can't add a desktop widget to this lockscreen.
"Widgets" are coded specifically for the lockscreen, you can use only the widgets provided by the app (rectangle, metadata, datetime....)


Quote:

I have added ForecaWeatherApplet as widget16
Remove it, it will never work! :p

[DarkGUNMAN] 2011-07-22 18:56

Re: [Announce] QtLockscreen: highly configurable lockscreen replacement
 
Nice!!

Is there any way to set the lockscreen to appear after using the hardware unlock button?
i.e the power button brings up the lockscreen - can the lock slider button do the same?

eefo 2011-07-22 18:57

Re: [Announce] QtLockscreen: highly configurable lockscreen replacement
 
thanks man , much appreciated :)
nice work :)

sakya 2011-07-22 19:05

Re: [Announce] QtLockscreen: highly configurable lockscreen replacement
 
Quote:

Originally Posted by blck (Post 1056350)
How do you code a widget?

It's made using Qt.
http://www.assembla.com/code/qtlocks.../trunk/widgets

Basically it's a class derived from LsWidget with methods:
-applySettings: loads the settings
-startUpdate: this is called when the lockscreen is visible. Starts to update the widget (if needed)
-stopUpdate: this is called when the screen is off (no need to update data and graphics). stops updating the widget
-paint: draw the widget

This is the code of the UnlockButton widget.
It doesn't have startUpdate and stopUpdate because it's a "static" widget (it doesn't display data that changes).
Code:

class LsUnlockButton :  virtual public LsButton
{
    Q_OBJECT
public:
    LsUnlockButton(QString name="");

    void applySettings();
    void pressed();
    void released();
    void clicked();

private:
    int m_Wait;
    QTimer* m_Timer;

private slots:
    void onTimer();
};


LsUnlockButton::LsUnlockButton(QString name) :
        LsButton(name.isEmpty() ? "UnlockButton": name)
{
    m_Timer = new QTimer(this);
    applySettings();
}

void LsUnlockButton::applySettings()
{
    m_Wait = getSetting("WaitTimeMsec", 1000).toInt();
    m_Bkg = QPixmap(getSetting("BackGroundImage", ":/images/unlock.png").toString());
    m_BkgPressed = QPixmap(getSetting("BackGroundImagePressed", ":/images/unlockPressed.png").toString());

    m_BkgPressed = m_BkgPressed.scaled(m_Bkg.size());
    setSizeAndPosition(m_Bkg.size(), QPoint(0, 0));

    connect(m_Timer, SIGNAL(timeout()), this, SLOT(onTimer()));
}

void LsUnlockButton::pressed()
{
    m_Timer->stop();
    m_Timer->setInterval(m_Wait);
    m_Timer->setSingleShot(true);
    m_Timer->start();
}

void LsUnlockButton::clicked()
{

}

void LsUnlockButton::released()
{
    m_Timer->stop();
}

void LsUnlockButton::onTimer()
{
    qDebug() << "UnlockButton clicked";
    mouseReleaseEvent(NULL);
#ifdef Q_WS_MAEMO_5
    if (isUnderMouse()){
        QDBusInterface lockScreen("com.nokia.mce", "/com/nokia/mce/request", "com.nokia.mce.request", QDBusConnection::systemBus(), this);
        lockScreen.call("req_tklock_mode_change", "unlocked");
    }
#else
    if (isUnderMouse())
        qApp->quit();
#endif
}


mesho123 2011-07-22 19:30

Re: [Announce] QtLockscreen: highly configurable lockscreen replacement
 
~ $ ls -l /etc/hildon/theme/backgrounds/lockslider*
-rw-r--r-- 1 root root 46702 Jul 22 17:03 /etc/hildon/theme/backgrounds/lockslider .png
-rwxrwxr-x 1 root root 46702 Jul 22 17:03 /etc/hildon/theme/backgrounds/lockslider1.png
-rw-r--r-- 1 root root 113851 Dec 2 2009 /etc/hildon/theme/backgrounds/lockslider2.png

MaikEF 2011-07-22 20:10

Re: [Announce] QtLockscreen: highly configurable lockscreen replacement
 
Hello...
can anyone tell the path to the images like Battery, UnreadSMS, UnreadEmails and MissedCalls?
i changed it to my own directory, but icons was missing, just text was there...
and how i can change the language of notifications? :confused:

eefo 2011-07-22 20:31

Re: [Announce] QtLockscreen: highly configurable lockscreen replacement
 
Quote:

Originally Posted by MaikEF (Post 1056394)
Hello...
can anyone tell the path to the images like Battery, UnreadSMS, UnreadEmails and MissedCalls?
i changed it to my own directory, but icons was missing, just text was there...
and how i can change the language of notifications? :confused:

well the icon thingy is an error , talked to sakya , he will update it as he will be online again .

and the notification font


[MissedCalls]
Icon=":/images/call.png"
PosL="center;250"
PosP="center;360"
SizeL="160;100"
Type="call"
Font=";14;normal;0"


this is you call notification command

the last line

Font=";14;normal;0"

for example you have a font name torid
and you want your notification to be showed with torid
so just edit the last command like this


Font="torid;14;normal;0"

and tadaaaa :p

MaikEF 2011-07-22 20:58

Re: [Announce] QtLockscreen: highly configurable lockscreen replacement
 
Quote:

Originally Posted by eefo (Post 1056402)
and the notification font

thx for info about icons.

the notifications:
i mean the language of notification. os-language is german, but notification of missed calls and unread messages is english.

i want the notifications in german...

christexaport 2011-07-22 21:13

Re: [Announce] QtLockscreen: highly configurable lockscreen replacement
 
How is this different from the Enhanced Lock Screen?

qw3rty 2011-07-22 21:45

Re: [Announce] QtLockscreen: highly configurable lockscreen replacement
 
@christexaport
It's highly custumizable! For example, here's what I got after playing around with it for a bit

http://img20.imageshack.us/img20/783...1072221372.png

http://img51.imageshack.us/img51/959...1072221371.png

I use shuffle a lot so I wanted a big skip to next track button, now I have it! :D

CepiPerez 2011-07-22 21:55

Re: [Announce] QtLockscreen: highly configurable lockscreen replacement
 
You missed font color!
And it doesn't load the album art...

sakya 2011-07-22 22:10

Re: [Announce] QtLockscreen: highly configurable lockscreen replacement
 
Quote:

Originally Posted by CepiPerez (Post 1056439)
You missed font color!

Font color is there. :) I forgot to mention it in the default config file...

Quote:

And it doesn't load the album art...
I'll check, thanks (but it seems to work for me).

Radicalz38 2011-07-22 22:13

Re: [Announce] QtLockscreen: highly configurable lockscreen replacement
 
So... Is this an enhanced enhanced lockscreen? :D

x61 2011-07-22 22:17

Re: [Announce] QtLockscreen: highly configurable lockscreen replacement
 
The problem I had with enhanced lockscreen was it interfered with incoming calls... callers name and numbers won't show till about 4-5 rings... and often times, it goes straight to the voicemail. Has anybody experience something similar with QtLockscreen?

sakya 2011-07-22 22:36

Re: [Announce] QtLockscreen: highly configurable lockscreen replacement
 
Quote:

Originally Posted by x61 (Post 1056450)
The problem I had with enhanced lockscreen was it interfered with incoming calls...

I haven't seen this problem during my tests.

santiago 2011-07-22 22:53

Re: [Announce] QtLockscreen: highly configurable lockscreen replacement
 
can we have the source code?
i want to translate the ts file for my italian device, this is a good app and i want to have it in italian... Becouse i'm italian, and i hate to have a mix on my device.

One more question, is it possible to move/resize/delete the mediaplayer ""widget"" from the lockscreen? Thx in advance very good app!

sakya 2011-07-22 22:59

Re: [Announce] QtLockscreen: highly configurable lockscreen replacement
 
Source code is here:
http://www.assembla.com/code/qtlocks...s/trunk?rev=16

But I just added the italian translation, it will be in the next update.
Sure, you can remove/move the media player "widget" (it's acutally not only one: album art, play/pause button, next button, prev button, artist and title).
Read the first post and change the config file. ;)

Ciao


All times are GMT. The time now is 18:21.

vBulletin® Version 3.8.8