-rw-r--r-- | noncore/net/opietooth/blue-pin/pindlg.cc | 12 | ||||
-rw-r--r-- | noncore/net/opietooth/blue-pin/pindlg.h | 1 | ||||
-rw-r--r-- | noncore/net/opietooth/blue-pin/pindlgbase.ui | 597 |
3 files changed, 505 insertions, 105 deletions
diff --git a/noncore/net/opietooth/blue-pin/pindlg.cc b/noncore/net/opietooth/blue-pin/pindlg.cc index e40fe33..3db6095 100644 --- a/noncore/net/opietooth/blue-pin/pindlg.cc +++ b/noncore/net/opietooth/blue-pin/pindlg.cc @@ -11,2 +11,3 @@ #include <qlineedit.h> +#include <qpushbutton.h> @@ -34,3 +35,3 @@ PinDlg::PinDlg(QWidget* parent, txtStatus->setText(makeTextFromArgs()); - QPEApplication::showDialog( this , true) ; + QPEApplication::showDialog( this , false) ; } @@ -96,2 +97,10 @@ QString PinDlg::makeMacFromArgs() +void PinDlg::addnum() +{ + if( sender()->inherits( "QPushButton") ) { + const QPushButton* btn = static_cast<const QPushButton*> (sender()); + lnePin->setText(lnePin->text() + btn->text()); + } +} + void PinDlg::accept() @@ -109 +118,2 @@ void PinDlg::accept() } + diff --git a/noncore/net/opietooth/blue-pin/pindlg.h b/noncore/net/opietooth/blue-pin/pindlg.h index 8623274..1817aa8 100644 --- a/noncore/net/opietooth/blue-pin/pindlg.h +++ b/noncore/net/opietooth/blue-pin/pindlg.h @@ -30,2 +30,3 @@ namespace OpieTooth { void accept(); + void addnum(); diff --git a/noncore/net/opietooth/blue-pin/pindlgbase.ui b/noncore/net/opietooth/blue-pin/pindlgbase.ui index a79bb49..6586014 100644 --- a/noncore/net/opietooth/blue-pin/pindlgbase.ui +++ b/noncore/net/opietooth/blue-pin/pindlgbase.ui @@ -2,3 +2,3 @@ <class>PinDlgBase</class> -<author>zecke</author> +<author>gints</author> <widget> @@ -14,4 +14,4 @@ <y>0</y> - <width>267</width> - <height>161</height> + <width>196</width> + <height>175</height> </rect> @@ -19,2 +19,9 @@ <property stdset="1"> + <name>sizePolicy</name> + <sizepolicy> + <hsizetype>3</hsizetype> + <vsizetype>3</vsizetype> + </sizepolicy> + </property> + <property stdset="1"> <name>caption</name> @@ -22,6 +29,16 @@ </property> - <grid> + <property stdset="1"> + <name>sizeGripEnabled</name> + <bool>false</bool> + </property> + <property> + <name>layoutMargin</name> + </property> + <property> + <name>layoutSpacing</name> + </property> + <vbox> <property stdset="1"> <name>margin</name> - <number>11</number> + <number>5</number> </property> @@ -29,20 +46,228 @@ <name>spacing</name> - <number>6</number> + <number>2</number> </property> - <widget row="0" column="0" > - <class>QLabel</class> + <widget> + <class>QLayoutWidget</class> <property stdset="1"> <name>name</name> - <cstring>txtStatus</cstring> + <cstring>Layout9</cstring> </property> + <hbox> + <property stdset="1"> + <name>margin</name> + <number>0</number> + </property> + <property stdset="1"> + <name>spacing</name> + <number>6</number> + </property> + <widget> + <class>QLabel</class> + <property stdset="1"> + <name>name</name> + <cstring>txtStatus</cstring> + </property> + <property stdset="1"> + <name>font</name> + <font> + </font> + </property> + <property stdset="1"> + <name>text</name> + <string>Enter PIN:</string> + </property> + </widget> + <spacer> + <property> + <name>name</name> + <cstring>Spacer1</cstring> + </property> + <property stdset="1"> + <name>orientation</name> + <enum>Horizontal</enum> + </property> + <property stdset="1"> + <name>sizeType</name> + <enum>Expanding</enum> + </property> + <property> + <name>sizeHint</name> + <size> + <width>20</width> + <height>20</height> + </size> + </property> + </spacer> + </hbox> + </widget> + <widget> + <class>QLayoutWidget</class> <property stdset="1"> - <name>text</name> - <string></string> + <name>name</name> + <cstring>Layout8</cstring> </property> + <hbox> + <property stdset="1"> + <name>margin</name> + <number>0</number> + </property> + <property stdset="1"> + <name>spacing</name> + <number>6</number> + </property> + <spacer> + <property> + <name>name</name> + <cstring>Spacer2</cstring> + </property> + <property stdset="1"> + <name>orientation</name> + <enum>Horizontal</enum> + </property> + <property stdset="1"> + <name>sizeType</name> + <enum>Expanding</enum> + </property> + <property> + <name>sizeHint</name> + <size> + <width>20</width> + <height>20</height> + </size> + </property> + </spacer> + <widget> + <class>QLineEdit</class> + <property stdset="1"> + <name>name</name> + <cstring>lnePin</cstring> + </property> + <property stdset="1"> + <name>frame</name> + <bool>true</bool> + </property> + </widget> + <spacer> + <property> + <name>name</name> + <cstring>Spacer3</cstring> + </property> + <property stdset="1"> + <name>orientation</name> + <enum>Horizontal</enum> + </property> + <property stdset="1"> + <name>sizeType</name> + <enum>Expanding</enum> + </property> + <property> + <name>sizeHint</name> + <size> + <width>20</width> + <height>20</height> + </size> + </property> + </spacer> + <widget> + <class>QCheckBox</class> + <property stdset="1"> + <name>name</name> + <cstring>ckbPin</cstring> + </property> + <property stdset="1"> + <name>text</name> + <string>Save</string> + </property> + <property stdset="1"> + <name>checked</name> + <bool>true</bool> + </property> + </widget> + </hbox> + </widget> + <widget> + <class>QLayoutWidget</class> <property stdset="1"> - <name>textFormat</name> - <enum>RichText</enum> + <name>name</name> + <cstring>Layout22</cstring> + </property> + <property stdset="1"> + <name>maximumSize</name> + <size> + <width>32767</width> + <height>35</height> + </size> + </property> + <property> + <name>layoutMargin</name> </property> + <property> + <name>layoutSpacing</name> + </property> + <hbox> + <property stdset="1"> + <name>margin</name> + <number>0</number> + </property> + <property stdset="1"> + <name>spacing</name> + <number>2</number> + </property> + <widget> + <class>QPushButton</class> + <property stdset="1"> + <name>name</name> + <cstring>bt1</cstring> + </property> + <property stdset="1"> + <name>maximumSize</name> + <size> + <width>60</width> + <height>25</height> + </size> + </property> + <property stdset="1"> + <name>text</name> + <string>1</string> + </property> + </widget> + <widget> + <class>QPushButton</class> + <property stdset="1"> + <name>name</name> + <cstring>bt2</cstring> + </property> + <property stdset="1"> + <name>maximumSize</name> + <size> + <width>60</width> + <height>25</height> + </size> + </property> + <property stdset="1"> + <name>text</name> + <string>2</string> + </property> + </widget> + <widget> + <class>QPushButton</class> + <property stdset="1"> + <name>name</name> + <cstring>bt3</cstring> + </property> + <property stdset="1"> + <name>maximumSize</name> + <size> + <width>60</width> + <height>25</height> + </size> + </property> + <property stdset="1"> + <name>text</name> + <string>3</string> + </property> + </widget> + </hbox> </widget> - <widget row="1" column="0" > + <widget> <class>QLayoutWidget</class> @@ -50,5 +275,15 @@ <name>name</name> - <cstring>Layout6</cstring> + <cstring>Layout22_2</cstring> + </property> + <property stdset="1"> + <name>maximumSize</name> + <size> + <width>32767</width> + <height>35</height> + </size> + </property> + <property> + <name>layoutSpacing</name> </property> - <vbox> + <hbox> <property stdset="1"> @@ -59,9 +294,16 @@ <name>spacing</name> - <number>6</number> + <number>2</number> </property> <widget> - <class>QLabel</class> + <class>QPushButton</class> <property stdset="1"> <name>name</name> - <cstring>TextLabel3</cstring> + <cstring>bt4</cstring> + </property> + <property stdset="1"> + <name>maximumSize</name> + <size> + <width>60</width> + <height>25</height> + </size> </property> @@ -69,3 +311,3 @@ <name>text</name> - <string>Please enter PIN:</string> + <string>4</string> </property> @@ -73,55 +315,31 @@ <widget> - <class>QLayoutWidget</class> - <property stdset="1"> - <name>name</name> - <cstring>Layout5</cstring> - </property> - <hbox> - <property stdset="1"> - <name>margin</name> - <number>0</number> - </property> - <property stdset="1"> - <name>spacing</name> - <number>6</number> - </property> - <widget> - <class>QLineEdit</class> - <property stdset="1"> - <name>name</name> - <cstring>lnePin</cstring> - </property> - <property stdset="1"> - <name>echoMode</name> - <enum>Password</enum> - </property> - </widget> - <spacer> - <property> - <name>name</name> - <cstring>Spacer4</cstring> - </property> - <property stdset="1"> - <name>orientation</name> - <enum>Horizontal</enum> - </property> - <property stdset="1"> - <name>sizeType</name> - <enum>Fixed</enum> - </property> - <property> - <name>sizeHint</name> - <size> - <width>21</width> - <height>20</height> - </size> - </property> - </spacer> - </hbox> + <class>QPushButton</class> + <property stdset="1"> + <name>name</name> + <cstring>bt5</cstring> + </property> + <property stdset="1"> + <name>maximumSize</name> + <size> + <width>60</width> + <height>25</height> + </size> + </property> + <property stdset="1"> + <name>text</name> + <string>5</string> + </property> </widget> <widget> - <class>QCheckBox</class> + <class>QPushButton</class> <property stdset="1"> <name>name</name> - <cstring>ckbPin</cstring> + <cstring>bt6</cstring> + </property> + <property stdset="1"> + <name>maximumSize</name> + <size> + <width>60</width> + <height>25</height> + </size> </property> @@ -129,8 +347,8 @@ <name>text</name> - <string>Save pin</string> + <string>6</string> </property> </widget> - </vbox> + </hbox> </widget> - <widget row="2" column="0" > + <widget> <class>QLayoutWidget</class> @@ -138,3 +356,13 @@ <name>name</name> - <cstring>Layout7</cstring> + <cstring>Layout22_2_2</cstring> + </property> + <property stdset="1"> + <name>maximumSize</name> + <size> + <width>32767</width> + <height>35</height> + </size> + </property> + <property> + <name>layoutSpacing</name> </property> @@ -147,25 +375,85 @@ <name>spacing</name> - <number>6</number> + <number>2</number> </property> - <spacer> - <property> + <widget> + <class>QPushButton</class> + <property stdset="1"> <name>name</name> - <cstring>Spacer1</cstring> + <cstring>bt7</cstring> </property> <property stdset="1"> - <name>orientation</name> - <enum>Horizontal</enum> + <name>maximumSize</name> + <size> + <width>60</width> + <height>25</height> + </size> </property> <property stdset="1"> - <name>sizeType</name> - <enum>Fixed</enum> + <name>text</name> + <string>7</string> </property> - <property> - <name>sizeHint</name> + </widget> + <widget> + <class>QPushButton</class> + <property stdset="1"> + <name>name</name> + <cstring>bt8</cstring> + </property> + <property stdset="1"> + <name>maximumSize</name> <size> - <width>30</width> - <height>20</height> + <width>60</width> + <height>25</height> </size> </property> - </spacer> + <property stdset="1"> + <name>text</name> + <string>8</string> + </property> + </widget> + <widget> + <class>QPushButton</class> + <property stdset="1"> + <name>name</name> + <cstring>bt9</cstring> + </property> + <property stdset="1"> + <name>maximumSize</name> + <size> + <width>60</width> + <height>25</height> + </size> + </property> + <property stdset="1"> + <name>text</name> + <string>9</string> + </property> + </widget> + </hbox> + </widget> + <widget> + <class>QLayoutWidget</class> + <property stdset="1"> + <name>name</name> + <cstring>Layout24</cstring> + </property> + <property stdset="1"> + <name>maximumSize</name> + <size> + <width>32767</width> + <height>35</height> + </size> + </property> + <property> + <name>layoutSpacing</name> + </property> + <hbox> + <property stdset="1"> + <name>margin</name> + <number>0</number> + </property> + <property stdset="1"> + <name>spacing</name> + <number>2</number> + </property> <widget> @@ -177,2 +465,9 @@ <property stdset="1"> + <name>maximumSize</name> + <size> + <width>60</width> + <height>25</height> + </size> + </property> + <property stdset="1"> <name>text</name> @@ -185,3 +480,17 @@ <name>name</name> - <cstring>PushButton2</cstring> + <cstring>bt0</cstring> + </property> + <property stdset="1"> + <name>sizePolicy</name> + <sizepolicy> + <hsizetype>1</hsizetype> + <vsizetype>1</vsizetype> + </sizepolicy> + </property> + <property stdset="1"> + <name>maximumSize</name> + <size> + <width>60</width> + <height>25</height> + </size> </property> @@ -189,29 +498,33 @@ <name>text</name> - <string>&Cancel</string> + <string>0</string> </property> </widget> - <spacer> - <property> + <widget> + <class>QPushButton</class> + <property stdset="1"> <name>name</name> - <cstring>Spacer2</cstring> + <cstring>PushButton2</cstring> </property> <property stdset="1"> - <name>orientation</name> - <enum>Horizontal</enum> + <name>sizePolicy</name> + <sizepolicy> + <hsizetype>1</hsizetype> + <vsizetype>1</vsizetype> + </sizepolicy> </property> <property stdset="1"> - <name>sizeType</name> - <enum>Fixed</enum> - </property> - <property> - <name>sizeHint</name> + <name>maximumSize</name> <size> - <width>16</width> - <height>20</height> + <width>60</width> + <height>25</height> </size> </property> - </spacer> + <property stdset="1"> + <name>text</name> + <string>&Cancel</string> + </property> + </widget> </hbox> </widget> - </grid> + </vbox> </widget> @@ -219,2 +532,8 @@ <connection> + <sender>PushButton2</sender> + <signal>clicked()</signal> + <receiver>Form1</receiver> + <slot>reject()</slot> + </connection> + <connection> <sender>PushButton1</sender> @@ -225,8 +544,78 @@ <connection> - <sender>PushButton2</sender> + <sender>bt0</sender> <signal>clicked()</signal> <receiver>Form1</receiver> - <slot>reject()</slot> + <slot>addnum()</slot> + </connection> + <connection> + <sender>bt1</sender> + <signal>clicked()</signal> + <receiver>Form1</receiver> + <slot>addnum()</slot> + </connection> + <connection> + <sender>bt2</sender> + <signal>clicked()</signal> + <receiver>Form1</receiver> + <slot>addnum()</slot> + </connection> + <connection> + <sender>bt3</sender> + <signal>clicked()</signal> + <receiver>Form1</receiver> + <slot>addnum()</slot> + </connection> + <connection> + <sender>bt4</sender> + <signal>clicked()</signal> + <receiver>Form1</receiver> + <slot>addnum()</slot> + </connection> + <connection> + <sender>bt5</sender> + <signal>clicked()</signal> + <receiver>Form1</receiver> + <slot>addnum()</slot> + </connection> + <connection> + <sender>bt6</sender> + <signal>clicked()</signal> + <receiver>Form1</receiver> + <slot>addnum()</slot> + </connection> + <connection> + <sender>bt7</sender> + <signal>clicked()</signal> + <receiver>Form1</receiver> + <slot>addnum()</slot> + </connection> + <connection> + <sender>bt8</sender> + <signal>clicked()</signal> + <receiver>Form1</receiver> + <slot>addnum()</slot> + </connection> + <connection> + <sender>bt9</sender> + <signal>clicked()</signal> + <receiver>Form1</receiver> + <slot>addnum()</slot> </connection> + <slot access="protected">addnum()</slot> </connections> +<tabstops> + <tabstop>lnePin</tabstop> + <tabstop>PushButton1</tabstop> + <tabstop>PushButton2</tabstop> + <tabstop>bt1</tabstop> + <tabstop>bt2</tabstop> + <tabstop>bt3</tabstop> + <tabstop>bt4</tabstop> + <tabstop>bt5</tabstop> + <tabstop>bt6</tabstop> + <tabstop>bt7</tabstop> + <tabstop>bt8</tabstop> + <tabstop>bt9</tabstop> + <tabstop>bt0</tabstop> +</tabstops> </UI> |