src/app/cn3d/animation_controls.cpp File Reference

#include <ncbi_pch.hpp>
#include <corelib/ncbistd.hpp>
#include <corelib/ncbireg.hpp>
#include "remove_header_conflicts.hpp"
#include "animation_controls.hpp"
#include <algo/structure/wx_tools/wx_tools.hpp>
#include "cn3d_tools.hpp"
#include <wx/image.h>
#include <wx/statline.h>
#include <wx/spinbutt.h>
#include <wx/spinctrl.h>
#include <wx/splitter.h>
#include <wx/listctrl.h>
#include <wx/treectrl.h>
#include <wx/notebook.h>
#include <wx/grid.h>

Include dependency graph for animation_controls.cpp:

Go to the source code of this file.

Defines

#define ID_TEXT   10000
#define ID_TEXTCTRL   10001
#define ID_SPINBUTTON   10002
#define ID_B_DONE   10003
#define DECLARE_AND_FIND_WINDOW_RETURN_ON_ERR(var, id, type)
#define SET_ISPINCTRL_FROM_REGISTRY_VALUE(section, name, iSpinCtrl)
#define SET_FSPINCTRL_FROM_REGISTRY_VALUE(section, name, fSpinCtrl)
#define SET_INTEGER_REGISTRY_VALUE_IF_DIFFERENT(section, name, iSpinCtrl)
#define SET_DOUBLE_REGISTRY_VALUE_IF_DIFFERENT(section, name, fSpinCtrl)

Functions

wxSizer * SetupAnimationDialog (wxWindow *parent, bool call_fit=TRUE, bool set_sizer=TRUE)
 USING_SCOPE (Cn3D)

Variables

 USING_NCBI_SCOPE
static IntegerSpinCtrlgiSpinDelay
static IntegerSpinCtrlgiFrameDelay
static FloatingPointSpinCtrlgfSpinIncrement


Define Documentation

#define DECLARE_AND_FIND_WINDOW_RETURN_ON_ERR var,
id,
type   ) 
 

Value:

type *var; \
    var = wxDynamicCast(FindWindow(id), type); \
    if (!var) { \
        ERRORMSG("Can't find window with id " << id); \
        return; \
    }

Definition at line 77 of file animation_controls.cpp.

Referenced by AnnotationEditorDialog::AnnotationEditorDialog(), CDDEvidenceDialog::CDDEvidenceDialog(), CDDRefDialog::CDDRefDialog(), CDDSplashDialog::CDDSplashDialog(), CDDAnnotateDialog::DeleteAnnotation(), AnnotateDialog::DeleteAnnotation(), CDDAnnotateDialog::DeleteEvidence(), CDDAnnotateDialog::EditAnnotation(), AnnotateDialog::EditAnnotation(), CDDAnnotateDialog::EditEvidence(), CDDAnnotateDialog::HighlightAnnotation(), CDDAnnotateDialog::MoveAnnotation(), AnnotateDialog::MoveAnnotation(), CDDAnnotateDialog::MoveEvidence(), CDDAnnotateDialog::NewEvidence(), PNGOptionsDialog::OnButton(), CDDRefDialog::OnButton(), AnnotateDialog::OnButton(), PNGOptionsDialog::OnChangeSize(), PreferencesDialog::OnCheckbox(), PNGOptionsDialog::OnCheckbox(), CDDBookRefDialog::OnClick(), PreferencesDialog::OnCloseWindow(), CDDAnnotateDialog::OnSelection(), AnnotateDialog::OnSelection(), ProgressMeter::ProgressMeter(), CDDRefDialog::ResetListBox(), AnnotateDialog::ResetListBoxes(), AnnotateDialog::SetButtonStates(), CDDEvidenceDialog::SetupGUIControls(), CDDAnnotateDialog::SetupGUIControls(), ProgressMeter::SetValue(), CDDBookRefDialog::SetWidgetStates(), and CDDAnnotateDialog::ShowEvidence().

#define ID_B_DONE   10003
 

Definition at line 64 of file animation_controls.cpp.

Referenced by PreferencesDialog::OnButton(), AnimationControls::OnButton(), CDDBookRefDialog::OnClick(), SetupAnimationDialog(), SetupAnnotationControlDialog(), SetupBookRefDialog(), SetupCDDSplashDialog(), SetupPreferencesNotebook(), and SetupReferencesDialog().

#define ID_SPINBUTTON   10002
 

Definition at line 63 of file animation_controls.cpp.

#define ID_TEXT   10000
 

Definition at line 61 of file animation_controls.cpp.

Referenced by BlockAlignerOptionsDialog::BlockAlignerOptionsDialog(), CSelectionPanel::CreateControls(), CSequenceSearchForm::GetWidget(), CFeatureSearchForm::GetWidget(), CEntrezSearchForm::GetWidget(), CComponentSearchForm::GetWidget(), LayoutDetailsPage(), LayoutLabelsPage(), LayoutNotebook(), LayoutSettingsPage(), ProgressMeter::ProgressMeter(), RegionDialog::RegionDialog(), SetupAdvancedPage(), SetupAnimationDialog(), SetupAnnotationControlDialog(), SetupAnnotationEditorDialog(), SetupBookRefDialog(), SetupCDDSplashDialog(), SetupPNGOptionsDialog(), and SetupQualityPage().

#define ID_TEXTCTRL   10001
 

Definition at line 62 of file animation_controls.cpp.

Referenced by CwxTrackSettingsDlg::CreateControls(), and CwxTrackNameDlg::CreateControls().

#define SET_DOUBLE_REGISTRY_VALUE_IF_DIFFERENT section,
name,
fSpinCtrl   ) 
 

Value:

do { \
        double oldValue, newValue; \
        if (!RegistryGetDouble((section), (name), &oldValue)) throw "RegistryGetInteger() failed"; \
        if (!((fSpinCtrl)->GetDouble(&newValue))) throw "GetInteger() failed"; \
        if (newValue != oldValue && !RegistrySetDouble((section), (name), newValue)) \
            throw "RegistrySetInteger() failed"; \
    } while (0)

Definition at line 141 of file animation_controls.cpp.

Referenced by PreferencesDialog::OnCloseWindow(), and AnimationControls::OnCloseWindow().

#define SET_FSPINCTRL_FROM_REGISTRY_VALUE section,
name,
fSpinCtrl   ) 
 

Value:

do { \
        double value; \
        if (!RegistryGetDouble((section), (name), &value) || !((fSpinCtrl)->SetDouble(value))) \
            WARNINGMSG("PreferencesDialog::PreferencesDialog() - error with " << (name)); \
    } while (0)

Definition at line 92 of file animation_controls.cpp.

Referenced by AnimationControls::AnimationControls(), and PreferencesDialog::PreferencesDialog().

#define SET_INTEGER_REGISTRY_VALUE_IF_DIFFERENT section,
name,
iSpinCtrl   ) 
 

Value:

do { \
        int oldValue, newValue; \
        if (!RegistryGetInteger((section), (name), &oldValue)) throw "RegistryGetInteger() failed"; \
        if (!((iSpinCtrl)->GetInteger(&newValue))) throw "GetInteger() failed"; \
        if (newValue != oldValue && !RegistrySetInteger((section), (name), newValue)) \
            throw "RegistrySetInteger() failed"; \
    } while (0)

Definition at line 132 of file animation_controls.cpp.

Referenced by PreferencesDialog::OnCloseWindow(), and AnimationControls::OnCloseWindow().

#define SET_ISPINCTRL_FROM_REGISTRY_VALUE section,
name,
iSpinCtrl   ) 
 

Value:

do { \
        int value; \
        if (!RegistryGetInteger((section), (name), &value) || !((iSpinCtrl)->SetInteger(value))) \
            WARNINGMSG("PreferencesDialog::PreferencesDialog() - error with " << (name)); \
    } while (0)

Definition at line 85 of file animation_controls.cpp.

Referenced by AnimationControls::AnimationControls(), and PreferencesDialog::PreferencesDialog().


Function Documentation

wxSizer * SetupAnimationDialog wxWindow *  parent,
bool  call_fit = TRUE,
bool  set_sizer = TRUE
 

Definition at line 198 of file animation_controls.cpp.

References IntegerSpinCtrl::GetSpinButton(), FloatingPointSpinCtrl::GetSpinButton(), IntegerSpinCtrl::GetTextCtrl(), FloatingPointSpinCtrl::GetTextCtrl(), gfSpinIncrement, giFrameDelay, giSpinDelay, ID_B_DONE, ID_TEXT, and TRUE.

Referenced by AnimationControls::AnimationControls().

USING_SCOPE Cn3D   ) 
 


Variable Documentation

FloatingPointSpinCtrl* gfSpinIncrement [static]
 

Definition at line 75 of file animation_controls.cpp.

Referenced by SetupAnimationDialog().

IntegerSpinCtrl * giFrameDelay [static]
 

Definition at line 74 of file animation_controls.cpp.

Referenced by SetupAnimationDialog().

IntegerSpinCtrl* giSpinDelay [static]
 

Definition at line 74 of file animation_controls.cpp.

Referenced by SetupAnimationDialog().

USING_NCBI_SCOPE
 

Definition at line 69 of file animation_controls.cpp.


Generated on Mon Dec 7 07:18:29 2009 for NCBI C++ ToolKit by  doxygen 1.4.6
Modified on Mon Dec 07 16:21:41 2009 by modify_doxy.py rev. 173732