~ubuntu-branches/ubuntu/lucid/skrooge/lucid

« back to all changes in this revision

Viewing changes to skrooge_operation/skgoperationpluginwidget.h

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Mercatante
  • Date: 2009-05-02 06:47:15 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090502064715-b7l4eciitw3asos3
Tags: 0.2.7-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
 
31
31
class SKGDocumentBank;
32
32
class SKGObjectModel;
 
33
class SKGAutoHide;
33
34
class KAction;
34
35
 
35
36
/**
43
44
        /**
44
45
         * Default Constructor
45
46
         */
46
 
        SKGOperationPluginWidget(SKGMainPanel* iParent, SKGDocumentBank* iDocument, KAction* iFastEditionAction);
 
47
        SKGOperationPluginWidget ( SKGMainPanel* iParent, SKGDocumentBank* iDocument, KAction* iFastEditionAction );
47
48
 
48
49
        /**
49
50
         * Default Destructor
75
76
         * MUST BE OVERWRITTEN
76
77
         * @param iState must be interpreted to set the state of the widget
77
78
         */
78
 
        virtual void setState(const QString& iState);
 
79
        virtual void setState ( const QString& iState );
79
80
 
80
81
        /**
81
82
         * Get the widget must be printed
88
89
         * @param iOperation the operation to open
89
90
         * @param iParent the parent widget
90
91
         */
91
 
        static void openOperation(const SKGOperationObject& iOperation, SKGMainPanel* iParent);
 
92
        static void openOperation ( const SKGOperationObject& iOperation, SKGMainPanel* iParent );
92
93
 
93
94
public slots:
94
95
        /**
109
110
        void onDoubleClick();
110
111
        void onSplitOperationClicked();
111
112
        void onQuantityChanged();
112
 
        void onSubopCellChanged(int row,int column);
 
113
        void onSubopCellChanged ( int row,int column );
113
114
        void onRemoveSubOperation();
 
115
        void onRefreshInformationZone();
 
116
        void onRotateAccountTools();
 
117
        void onValidatePointedOperations();
114
118
 
115
119
private:
116
 
        Q_DISABLE_COPY(SKGOperationPluginWidget);
 
120
        Q_DISABLE_COPY ( SKGOperationPluginWidget );
117
121
 
118
 
        SKGError confirmMissingObjectsCreation(bool &iConfirmation);
119
 
        SKGError getSelectedOperation(SKGOperationObject& operation);
 
122
        SKGError getSelectedOperation ( SKGOperationObject& operation );
120
123
 
121
124
        void displaySplitted();
122
125
        void displayStandard();
123
126
        void displaySubOperations();
 
127
        void displaySubOperations ( const SKGOperationObject& iOperation );
124
128
        double getRemainingQuantity();
125
 
        void addSubOperationLine(int row, QString category, QString comment, double quantity, int id=0);
126
 
        SKGError updateSelection(const SKGObjectBase::SKGListSKGObjectBase& iSelection);
 
129
        void addSubOperationLine ( int row, QString category, QString comment, double quantity, int id=0 );
 
130
        SKGError updateSelection ( const SKGObjectBase::SKGListSKGObjectBase& iSelection );
127
131
 
128
132
 
129
133
        Ui::skgoperationplugin_base ui;
138
142
 
139
143
        QWidget* splittedPage;
140
144
        QWidget* standardPage;
 
145
        SKGAutoHide* autoHidder;
 
146
 
 
147
        bool numberFieldIsNotUptodate;
 
148
        int modeInfoZone;
141
149
};
142
150
 
143
151
#endif // SKGOPERATIONPLUGINWIDGET_H