summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/profileeditorplugins.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/profileeditorplugins.cpp b/noncore/apps/opie-console/profileeditorplugins.cpp
index a0bcab8..b63fa1c 100644
--- a/noncore/apps/opie-console/profileeditorplugins.cpp
+++ b/noncore/apps/opie-console/profileeditorplugins.cpp
@@ -1,66 +1,67 @@
#include "profileeditorplugins.h"
#include "profile.h"
#include "qframe.h"
#include "qlabel.h"
#include "qlineedit.h"
#include "qlayout.h"
#include "qcombobox.h"
#include "qradiobutton.h"
#include "qcheckbox.h"
#include "qbuttongroup.h"
#include "io_serial.h"
// Base class
ProfileEditorPlugin::ProfileEditorPlugin(QWidget *parent, Profile *p)
+: QObject()
{
m_parent = parent;
m_profile = p;
m_widget = NULL;
}
ProfileEditorPlugin::~ProfileEditorPlugin()
{
if(m_widget) delete m_widget;
}
QWidget *ProfileEditorPlugin::connection_widget()
{
QWidget *root;
QVBoxLayout *lroot;
root = new QWidget();
// Build GUI
QComboBox *speed_box = new QComboBox(root);
speed_box->insertItem("115200 baud", id_baud_115200);
speed_box->insertItem("57600 baud", id_baud_57600);
speed_box->insertItem("38400 baud", id_baud_38400);
speed_box->insertItem("19200 baud", id_baud_19200);
speed_box->insertItem("9600 baud", id_baud_9600);
QLabel *speedlabel = new QLabel(QObject::tr("Speed"), root);
QLabel *flow = new QLabel(QObject::tr("Flow control"), root);
QLabel *parity = new QLabel(QObject::tr("Parity"), root);
QButtonGroup *group_flow = new QButtonGroup(root);
group_flow->hide();
QRadioButton *flow_hw = new QRadioButton(QObject::tr("Hardware"), root);
QRadioButton *flow_sw = new QRadioButton(QObject::tr("Software"), root);
group_flow->insert(flow_hw, id_flow_hw);
group_flow->insert(flow_sw, id_flow_sw);
QButtonGroup *group_parity = new QButtonGroup(root);
group_parity->hide();
QRadioButton *parity_odd = new QRadioButton(QObject::tr("Odd"), root);
QRadioButton *parity_even = new QRadioButton(QObject::tr("Even"), root);
group_parity->insert(parity_odd, id_parity_odd);
group_parity->insert(parity_even, id_parity_even);
// Build Layout
lroot = new QVBoxLayout(root);