File: AlignmentAppearanceDialog.h

package info (click to toggle)
gentle 1.9%2Bcvs20100605%2Bdfsg1-5
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 12,224 kB
  • ctags: 6,214
  • sloc: cpp: 41,569; ansic: 3,978; sh: 1,420; makefile: 243
file content (42 lines) | stat: -rw-r--r-- 1,946 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/** \file
	\brief Contains the AlignmentAppearanceDialog class
*/
#ifndef _ALIGNMENTAPPEARANCEDIALOG_H_
#define _ALIGNMENTAPPEARANCEDIALOG_H_

#include "Alignment.h"

/**	\brief The class implementing the "Alignment appearance" dialog in the alignment module
*/
class AlignmentAppearanceDialog : public wxDialog
    {
    public :
    AlignmentAppearanceDialog ( wxWindow *_parent , const wxString& title ) ; ///< Constructor
	~AlignmentAppearanceDialog () ;
    virtual void setup ( int _from , int _to , int _firstline , int _lastline , TAlignment *_ali ) ; ///< Setup from marked region

    virtual void OnLineColorButton ( wxCommandEvent &event ) ; ///< Line color button event handler
    virtual void OnForegroundButton ( wxCommandEvent &event ) ; ///< Foreground color button event handler
    virtual void OnBackgroundButton ( wxCommandEvent &event ) ; ///< Background color button event handler
    virtual void OnOK ( wxCommandEvent &event ) ; ///< OK button event handler
    virtual void OnCancel ( wxCommandEvent &event ) ; ///< Cancel button event handler
    virtual void OnReset ( wxCommandEvent &event ) ; ///< Reset button event handler
    virtual void OnCharHook(wxKeyEvent& event) ; ///< Key event handler
    
    private :
    void set_pen ( SequenceCharMarkup &scm , int id , int border ) ; ///< Sets a pen in the markup object; used by OnOK
    void addLine ( wxString name , wxArrayString &as , wxFlexGridSizer *sizer ) ; ///< Adds a line of elements (radio boxes, buttons)
    
    vector <wxRadioBox*> radioboxes ;
    vector <wxSpinCtrl*> thickness ;
    vector <wxColour> colors ;
    int line_color_buttons ;
    wxCheckBox *use_foreground , *use_background , *bold , *italics ;
    wxColour color_foreground , color_background ;
    int from , to , firstline , lastline ;
    TAlignment *ali ; ///< Pointer to the alignment
    
    DECLARE_EVENT_TABLE()
    } ;

#endif