X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fpopups%2Fdeviceoptions.hpp;h=52b2c5a585dae74e10041033076f54b0bd57bee7;hp=f840e83f3133e8ab7ad8e29bd4c0106daa75f874;hb=f4ab4b5c657e5613caba82feaa81a8a400e4f331;hpb=3cc9ad7b867853315473df611612c562d562ed8a diff --git a/pv/popups/deviceoptions.hpp b/pv/popups/deviceoptions.hpp index f840e83..52b2c5a 100644 --- a/pv/popups/deviceoptions.hpp +++ b/pv/popups/deviceoptions.hpp @@ -14,12 +14,11 @@ * 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 . */ -#ifndef PULSEVIEW_PV_POPUPS_DEVICEOPTIONS_H -#define PULSEVIEW_PV_POPUPS_DEVICEOPTIONS_H +#ifndef PULSEVIEW_PV_POPUPS_DEVICEOPTIONS_HPP +#define PULSEVIEW_PV_POPUPS_DEVICEOPTIONS_HPP #include #include @@ -27,6 +26,8 @@ #include #include +using std::shared_ptr; + namespace sigrok { class Device; } @@ -39,13 +40,14 @@ class DeviceOptions : public pv::widgets::Popup Q_OBJECT public: - DeviceOptions(std::shared_ptr device, - QWidget *parent); + DeviceOptions(shared_ptr device, QWidget *parent); pv::binding::Device& binding(); + virtual void show(); + private: - std::shared_ptr device_; + shared_ptr device_; QVBoxLayout layout_; @@ -55,4 +57,4 @@ private: } // namespace popups } // namespace pv -#endif // PULSEVIEW_PV_POPUPS_DEVICEOPTIONS_H +#endif // PULSEVIEW_PV_POPUPS_DEVICEOPTIONS_HPP