* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ * along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef PULSEVIEW_PV_PROP_ENUM_H
-#define PULSEVIEW_PV_PROP_ENUM_H
+#ifndef PULSEVIEW_PV_PROP_ENUM_HPP
+#define PULSEVIEW_PV_PROP_ENUM_HPP
#include <utility>
#include <vector>
#include <QMetaType>
+using std::pair;
+using std::vector;
+
Q_DECLARE_METATYPE(Glib::VariantBase);
class QComboBox;
Q_OBJECT;
public:
- Enum(QString name, std::vector<std::pair<Glib::VariantBase, QString> > values,
+ Enum(QString name, vector<pair<Glib::VariantBase, QString> > values,
Getter getter, Setter setter);
- virtual ~Enum();
+ virtual ~Enum() = default;
QWidget* get_widget(QWidget *parent, bool auto_commit);
void on_current_item_changed(int);
private:
- const std::vector< std::pair<Glib::VariantBase, QString> > values_;
+ const vector< pair<Glib::VariantBase, QString> > values_;
QComboBox *selector_;
};
} // prop
} // pv
-#endif // PULSEVIEW_PV_PROP_ENUM_H
+#endif // PULSEVIEW_PV_PROP_ENUM_HPP