Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Version 0.20 release
[xestiaab/.git] / source / widgets / XABPriorityCtrl.h
1 // XABPriorityCtrl.h - XABPriorityCtrl widget header
2 //
3 // (c) 2017 Xestia Software Development.
4 //
5 // This file is part of Xestia Address Book.
6 //
7 // Xestia Address Book is free software: you can redistribute it and/or modify
8 // it under the terms of the GNU General Public License as published by the
9 // Free Software Foundation, version 3 of the license.
10 //
11 // Xestia Address Book is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
15 //
16 // You should have received a copy of the GNU General Public License along
17 // with Xestia Address Book. If not, see <http://www.gnu.org/licenses/>
19 #ifndef __WIDGETS_XABPRIORITYCTRL_H__
20 #define __WIDGETS_XABPRIORITYCTRL_H__
22 #include <wx/wx.h>
24 class XABPriorityCtrl : public wxPanel
25 {
26         private:
27                 wxWindow *parentControl = nullptr;
28         
29                 wxFlexGridSizer *mainSizer = nullptr;
30                 wxFlexGridSizer *sliderSizer = nullptr;
31                 wxBoxSizer *sliderLabelSizer = nullptr;
32                 wxCheckBox *chkPriority = nullptr;
33                 wxTextCtrl *txtPriority = nullptr;
34                 wxSlider *sliPriority = nullptr;
35                 wxStaticText *lowLabel = nullptr;
36                 wxStaticText *highLabel = nullptr;
37         protected:
38                 void UpdateTextValue();
39                 void UpdateSlider(int value);
40                 void SliderEvent(wxCommandEvent &event);
41                 void TextEvent(wxCommandEvent &event);
42                 void EnableControls(wxCommandEvent &event);
43         public:
44                 XABPriorityCtrl(wxWindow *parent);
45                 ~XABPriorityCtrl();
46                 void EnablePriority(bool enable);
47                 bool IsPriorityChecked();
48                 int GetValue();
49                 void SetValue(int value);
50 };
53 #endif
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy