Code Search for Developers
 
 
  

qwt_designer_plotdialog.cpp from marsyas at Krugle


Show qwt_designer_plotdialog.cpp syntax highlighted

/* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
 * Qwt Widget Library
 * Copyright (C) 1997   Josef Wilgen
 * Copyright (C) 2002   Uwe Rathmann
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the Qwt License, Version 1.0
 *****************************************************************************/

#include <QLineEdit>
#include <QTabWidget>
#include <QHBoxLayout>
#include <QPushButton>
#include "qwt_designer_plotdialog.h"

using namespace QwtDesignerPlugin;

PlotDialog::PlotDialog(const QString &properties, QWidget *parent): 
    QDialog(parent)
{
    setWindowTitle("Plot Properties");

    QLineEdit *lineEdit = new QLineEdit(properties);
    connect(lineEdit, SIGNAL(textChanged(const QString &)),
        SIGNAL(edited(const QString &)));

    QTabWidget *tabWidget = new QTabWidget(this);
    tabWidget->addTab(lineEdit, "General");

    QPushButton *closeButton = new QPushButton("Close");
    connect(closeButton, SIGNAL(clicked()), this, SLOT(accept()));

    QHBoxLayout *buttonLayout = new QHBoxLayout;
    buttonLayout->addStretch(1);
    buttonLayout->addWidget(closeButton);

    QVBoxLayout *mainLayout = new QVBoxLayout;
    mainLayout->addWidget(tabWidget);
    mainLayout->addLayout(buttonLayout);
    setLayout(mainLayout);
}





See more files for this project here

marsyas

Marsyas (Music Analysis, Retrieval and Synthesis for Audio Signals) is a framework for developing systems for audio processing. It provides an general architecture for connecting audio, soundfiles, signal processing blocks and machine learning.

Project homepage: http://sourceforge.net/projects/marsyas
Programming language(s): C++
License: other

  pixmaps/
    qwtanalogclock.png
    qwtcompass.png
    qwtcounter.png
    qwtdial.png
    qwtknob.png
    qwtplot.png
    qwtscale.png
    qwtslider.png
    qwtthermo.png
    qwtwheel.png
    qwtwidget.png
  designer.pro
  qwt_designer_plotdialog.cpp
  qwt_designer_plotdialog.h
  qwt_designer_plugin.cpp
  qwt_designer_plugin.h
  qwt_designer_plugin.qrc
  qwtplugin.cpp
  qwtplugin.h